Produce an automaton that accepts the complement of the language of the input automaton.
Precondition:
Postcondition:
See also:
import vcsn
b = vcsn.context('lal_char(abc), b')
a = b.expression('a+b').standard().determinize().complete()
a
The prefix operator ~
invokes complement()
.
~a
c = a.complement()
c
a.shortest(2)
c.shortest(10)