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

automaton.lift(identities="default")

ParseError: KaTeX parse error: \newcommand{\bra} attempting to redefine \bra; use \renewcommand Turn an automaton into a spontaneous automaton by mapping each transition w\lweight{w}{\ell} into wε\lweight{\lweight{w}{\ell}}{\varepsilon}.

Preconditions:

  • None

See also:

Examples

import vcsn a = vcsn.Q.expression('(<1>a+<2>b+<3>c){2}').automaton() a
Image in a Jupyter notebook
b = a.lift() b
Image in a Jupyter notebook
from IPython.display import display display(a.context(), b.context())

{a,b,c}Q\{a, b, c\}\to\mathbb{Q}

{ε}RatE[{a,b,c}Q]\{\varepsilon\}\to\mathsf{RatE}[\{a, b, c\}\to\mathbb{Q}]

A different set of identities can be chosen.

a.lift().type()
'mutable_automaton<context<lao, expressionset<context<letterset<char_letters>, q>>>>'
a.lift(identities = 'trivial').type()
'mutable_automaton<context<lao, expressionset<context<letterset<char_letters>, q>>>>'