Lax765601.AperiodicOfFlipFlops
Compositions of flip-flop machines are aperiodic
concepts/Lax765601/AperiodicOfFlipFlops.lean · lax-765601
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 28 of the paper of lax-157538, Transducers
Theorem
Every composition of flip-flop Mealy machines computes an aperiodic function: the implication "composition of flip-flops aperiodic" of Theorem A.2.8 of Transducers. A single flip-flop is aperiodic, because the last letter of depends only on the last letter read and on the last letter of whose state transformation is a constant, neither of which depends on ; and aperiodicity is preserved by composition, by the pumping form of aperiodicity (Claim A.2.9), in which the shifts of the two functions add up.
Lean source view on GitHub
| 1 | import Lax765601.PrimeMealyMachines |
| 2 | import Lax765601.Aperiodicity |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Compositions of flip-flop machines are aperiodic |
| 7 | type: theorem |
| 8 | --- |
| 9 | Every composition of flip-flop Mealy machines computes an aperiodic function: |
| 10 | the implication "composition of flip-flops aperiodic" of Theorem |
| 11 | A.2.8 of *Transducers*. A single flip-flop is aperiodic, because the last letter |
| 12 | of depends only on the last letter read and on the last letter of |
| 13 | whose state transformation is a constant, neither of which depends on |
| 14 | ; and aperiodicity is preserved by composition, by the pumping form of |
| 15 | aperiodicity (Claim A.2.9), in which the shifts of the two functions add up. |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | The hypothesis is membership in the composition closure `CompClosure FlipFlopFam` |
| 20 | of the family of flip-flop machines. No finiteness of the alphabets is needed: |
| 21 | every member of the closure is a Mealy function, and the argument only uses its |
| 22 | state space. |
| 23 | -/ |
| 24 | |
| 25 | namespace Lax765601.AperiodicOfFlipFlops |
| 26 | |
| 27 | open Lax765601.CompositionClosure Lax765601.PrimeMealyMachines Lax765601.Aperiodicity |
| 28 | |
| 29 | /-- A composition of flip-flop Mealy machines is aperiodic. -/ |
| 30 | axiom aperiodic_of_compClosure_flipFlop {A B : Type} {f : List A → List B} |
| 31 | (hf : CompClosure FlipFlopFam A B f) : Aperiodic f |
| 32 | |
| 33 | end Lax765601.AperiodicOfFlipFlops |
| 34 |
Formalization notes
The hypothesis is membership in the composition closure of the family of flip-flop machines. No finiteness of the alphabets is needed: every member of the closure is a Mealy function, and the argument only uses its state space.
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