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:
is_valid
Postconditions:
The automaton is_letterized
The automaton is_proper
See also:
In [1]:
import vcsn
In [2]:
law = vcsn.context("law_char, b")
In [3]:
a = law.expression("(ab)*+(cd+ef)*").thompson()
a
Out[3]:
In [4]:
a.is_valid()
Out[4]:
In [5]:
a.is_letterized()
Out[5]:
In [6]:
a.is_proper()
Out[6]:
In [7]:
r = a.realtime()
r
Out[7]:
In [8]:
r.context()
Out[8]:
In [9]:
r.is_letterized()
Out[9]:
In [10]:
r.is_proper()
Out[10]:
In [11]:
a.letterize().proper()
Out[11]: