Lax916827.RegularOfSST
Every streaming string transducer computes a regular function
concepts/Lax916827/RegularOfSST.lean · lax-916827
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 110 of the paper of lax-157538, Transducers
Theorem
Every function computed by a streaming string transducer is regular (Theorem C.3.2 of Transducers, the implication from sst to regular). The sst is first normalised — the register update depends only on the letter read, and no register occurs twice in a final output string — by annotating the input with the states through a rational function; a two-way transducer then expands the final output string depth-first, moving left to expand a register and right when an expansion is finished, the copyless restriction making the place to resume an expansion a function of the register and the letter returned to. Two-way transducers compute regular functions (Theorem C.2.9).
Lean source view on GitHub
| 1 | import Lax916827.RegularFunctions |
| 2 | import Lax916827.StreamingStringTransducers |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Every streaming string transducer computes a regular function |
| 7 | type: theorem |
| 8 | --- |
| 9 | Every function computed by a streaming string transducer is regular (Theorem |
| 10 | C.3.2 of *Transducers*, the implication from sst to regular). The sst is first |
| 11 | normalised — the register update depends only on the letter read, and no |
| 12 | register occurs twice in a final output string — by annotating the input with |
| 13 | the states through a rational function; a two-way transducer then expands the |
| 14 | final output string depth-first, moving left to expand a register and right when |
| 15 | an expansion is finished, the copyless restriction making the place to resume |
| 16 | an expansion a function of the register and the letter returned to. Two-way |
| 17 | transducers compute regular functions (Theorem C.2.9). |
| 18 | |
| 19 | # Formalization notes |
| 20 | |
| 21 | Both alphabets are assumed finite, as in the book. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax916827.RegularOfSST |
| 25 | |
| 26 | open Lax916827.RegularFunctions Lax916827.StreamingStringTransducers |
| 27 | |
| 28 | /-- A function computed by a streaming string transducer is regular. -/ |
| 29 | axiom isRegularFun_of_isSST {A B : Type} [Finite A] [Finite B] {f : List A → List B} |
| 30 | (hf : IsSST f) : IsRegularFun f |
| 31 | |
| 32 | end Lax916827.RegularOfSST |
| 33 |
Formalization notes
Both alphabets are assumed finite, as in the book.
Used by
none
From Mathlib
none
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