Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 45901
Kernel: Python 3

automaton.realtime

Compute the realtime automaton, i.e. the equivalent automaton in which transitions are labeled with only letters (as viewed by the labelset), without spontaneous transitions.

Calling realtime is equivalent to calling letterize then proper.

Preconditions:

  • The automaton is_valid

Postconditions:

  • The automaton is_letterized

  • The automaton is_proper

See also:

Examples

import vcsn
law = vcsn.context("law_char, b")
a = law.expression("(ab)*+(cd+ef)*").thompson() a
Image in a Jupyter notebook
a.is_valid()
True
a.is_letterized()
False
a.is_proper()
False
r = a.realtime() r
Image in a Jupyter notebook
r.context()

{a,b,c,d,e,f}B\{a, b, c, d, e, f\}\to\mathbb{B}

r.is_letterized()
True
r.is_proper()
True
a.letterize().proper()
Image in a Jupyter notebook