Lax194892.ForOfPolyregular
Polyregular functions are computed by for-transducers
concepts/Lax194892/ForOfPolyregular.lean · lax-194892
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 157 of the paper of lax-157538, Transducers
Theorem
Every polyregular function is computed by a for-transducer (Theorem D.1.1 of Transducers, the implication from polyregular to for-transducer): marked squaring is two nested loops, a regular function is computed by a two-way transducer whose run a for-transducer replays, and for-transducers are closed under composition (Lemma D.1.4).
Lean source view on GitHub
| 1 | import Lax194892.PolyregularFunctions |
| 2 | import Lax194892.ForTransducers |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Polyregular functions are computed by for-transducers |
| 7 | type: theorem |
| 8 | --- |
| 9 | Every polyregular function is computed by a for-transducer (Theorem D.1.1 of |
| 10 | *Transducers*, the implication from polyregular to for-transducer): marked |
| 11 | squaring is two nested loops, a regular function is computed by a two-way |
| 12 | transducer whose run a for-transducer replays, and for-transducers are closed |
| 13 | under composition (Lemma D.1.4). |
| 14 | |
| 15 | # Formalization notes |
| 16 | |
| 17 | Both alphabets are assumed finite, as in the book. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax194892.ForOfPolyregular |
| 21 | |
| 22 | open Lax194892.PolyregularFunctions Lax194892.ForTransducers |
| 23 | |
| 24 | /-- A polyregular function is computed by a for-transducer. -/ |
| 25 | axiom isForTransducer_of_isPolyregular {A B : Type} [Finite A] [Finite B] |
| 26 | {f : List A → List B} (hf : IsPolyregular f) : IsForTransducer f |
| 27 | |
| 28 | end Lax194892.ForOfPolyregular |
| 29 |
Formalization notes
Both alphabets are assumed finite, as in the book.
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