Lax916827.TwoWayIffRegular
Two-way transducers compute exactly the regular functions
concepts/Lax916827/TwoWayIffRegular.lean · lax-916827
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 98 of the paper of lax-157538, Transducers
Theorem
A string-to-string function is computed by a two-way transducer if and only if it is regular (Theorem C.2.9 of Transducers). The two implications are the separate statements (Corollary C.2.8) and (the decomposition into primes through the snake lemma); this statement is their conjunction.
Lean source view on GitHub
| 1 | import Lax916827.RegularFunctions |
| 2 | import Lax916827.TwoWayTransducers |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Two-way transducers compute exactly the regular functions |
| 7 | type: theorem |
| 8 | --- |
| 9 | A string-to-string function is computed by a two-way transducer if and only if |
| 10 | it is regular (Theorem C.2.9 of *Transducers*). The two implications are the |
| 11 | separate statements `TwoWayOfRegular` (Corollary C.2.8) and `RegularOfTwoWay` |
| 12 | (the decomposition into primes through the snake lemma); this statement is |
| 13 | their conjunction. |
| 14 | |
| 15 | # Formalization notes |
| 16 | |
| 17 | Both alphabets are assumed finite. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax916827.TwoWayIffRegular |
| 21 | |
| 22 | open Lax916827.RegularFunctions Lax916827.TwoWayTransducers |
| 23 | |
| 24 | /-- A function is computed by a two-way transducer if and only if it is regular. -/ |
| 25 | axiom isTwoWay_iff_isRegularFun {A B : Type} [Finite A] [Finite B] (f : List A → List B) : |
| 26 | IsTwoWay f ↔ IsRegularFun f |
| 27 | |
| 28 | end Lax916827.TwoWayIffRegular |
| 29 |
Formalization notes
Both alphabets are assumed finite.
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