Lax132576.RationalOfBimachine
Bimachines compute rational functions
concepts/Lax132576/RationalOfBimachine.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 45 of the paper of lax-157538, Transducers
Theorem
Every function computed by a bimachine is rational: the implication (3) ⇒ (1) of Theorem B.2.3 of Transducers, the easiest one. The nondeterministic automaton guesses the runs of both the prefix and the suffix automaton, its states being pairs of their states plus one extra final state; a transition on the letter from to requires in the prefix automaton and in the suffix automaton and outputs the piece of the gap to the left of , and an empty transition into the final state outputs the piece of the last gap.
Lean source view on GitHub
| 1 | import Lax132576.RationalFunctions |
| 2 | import Lax132576.Bimachines |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Bimachines compute rational functions |
| 7 | type: theorem |
| 8 | --- |
| 9 | Every function computed by a bimachine is rational: the implication (3) ⇒ (1) |
| 10 | of Theorem B.2.3 of *Transducers*, the easiest one. The nondeterministic |
| 11 | automaton guesses the runs of both the prefix and the suffix automaton, its |
| 12 | states being pairs of their states plus one extra final state; a transition on |
| 13 | the letter from to requires in |
| 14 | the prefix automaton and in the suffix automaton and |
| 15 | outputs the piece of the gap to the left of , and an empty transition into |
| 16 | the final state outputs the piece of the last gap. |
| 17 | |
| 18 | # Formalization notes |
| 19 | |
| 20 | Both alphabets are assumed finite, as in the book's global convention; the |
| 21 | transition relation of the constructed automaton is indexed by the letters. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax132576.RationalOfBimachine |
| 25 | |
| 26 | open Lax132576.RationalFunctions Lax132576.Bimachines |
| 27 | |
| 28 | /-- A function computed by a bimachine is rational. -/ |
| 29 | axiom isRationalFun_of_isBimachine {A B : Type} [Finite A] [Finite B] |
| 30 | {f : List A → List B} (hf : IsBimachine f) : IsRationalFun f |
| 31 | |
| 32 | end Lax132576.RationalOfBimachine |
| 33 |
Formalization notes
Both alphabets are assumed finite, as in the book's global convention; the transition relation of the constructed automaton is indexed by the letters.
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments