Lax765601.AperiodicPumping
Aperiodicity as a pumping property
concepts/Lax765601/AperiodicPumping.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
A function computed by a Mealy machine is aperiodic if and only if for all input strings there are output strings and a number such that
(Claim A.2.9 of Transducers). The right-to-left direction is immediate, since the last letter of does not depend on . For the other direction, aperiodicity fixes the last letters of for large , so that from some point on the output ends with repetitions of a fixed string of length , and fixes the last letters of , which gives . The pumping form is what makes aperiodicity compatible with composition: the shift of is the sum of the shifts of and .
Lean source view on GitHub
| 1 | import Lax765601.MealyMachine |
| 2 | import Lax765601.Aperiodicity |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Aperiodicity as a pumping property |
| 7 | type: theorem |
| 8 | --- |
| 9 | A function computed by a Mealy machine is aperiodic if and only if for all |
| 10 | input strings there are output strings and a number such |
| 11 | that |
| 12 | |
| 13 | (Claim A.2.9 of *Transducers*). The right-to-left direction is immediate, since |
| 14 | the last letter of does not depend on . For the other direction, |
| 15 | aperiodicity fixes the last letters of for large , so that |
| 16 | from some point on the output ends with repetitions of a fixed string of |
| 17 | length , and fixes the last letters of , which gives . |
| 18 | The pumping form is what makes aperiodicity compatible with composition: the |
| 19 | shift of is the sum of the shifts of and . |
| 20 | |
| 21 | # Formalization notes |
| 22 | |
| 23 | `npow v n` is `vⁿ`. The hypothesis that `f` is computed by a Mealy machine is |
| 24 | used only in the left-to-right direction; no finiteness of the alphabets is |
| 25 | needed. |
| 26 | -/ |
| 27 | |
| 28 | namespace Lax765601.AperiodicPumping |
| 29 | |
| 30 | open Lax765601.MealyMachine Lax765601.Aperiodicity |
| 31 | |
| 32 | /-- A Mealy function is aperiodic if and only if it has the pumping property: for |
| 33 | all `u, v, w` there are `x, y, z` and `k` with `f (u v^(n+k) w) = x yⁿ z` for all |
| 34 | `n > 0`. -/ |
| 35 | axiom aperiodic_iff_pumping {A B : Type} {f : List A → List B} (hf : IsMealy f) : |
| 36 | Aperiodic f ↔ |
| 37 | ∀ u v w : List A, ∃ (x y z : List B) (k : ℕ), ∀ n > 0, |
| 38 | f (u ++ npow v (n + k) ++ w) = x ++ npow y n ++ z |
| 39 | |
| 40 | end Lax765601.AperiodicPumping |
| 41 |
Formalization notes
is . The hypothesis that is computed by a Mealy machine is used only in the left-to-right direction; no finiteness of the alphabets is needed.
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