Draft — mutable and not usable as a dependency; its citation marks the draft state.

Lax765601.AperiodicPumping

Aperiodicity as a pumping property

concepts/Lax765601/AperiodicPumping.lean · lax-765601

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Concept map

    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    Theorem

    A function ff computed by a Mealy machine is aperiodic if and only if for all input strings u,v,wu, v, w there are output strings x,y,zx, y, z and a number kk such that

    f(uvn+kw)=xynzfor all n>0f(u v^{n+k} w) = x y^n z \qquad \text{for all } n > 0

    (Claim A.2.9 of Transducers). The right-to-left direction is immediate, since the last letter of xynzx y^n z does not depend on nn. For the other direction, aperiodicity fixes the last v|v| letters of f(uvn)f(u v^n) for large nn, so that from some point on the output ends with repetitions of a fixed string yy of length v|v|, and fixes the last w|w| letters of f(uvnw)f(u v^n w), which gives zz. The pumping form is what makes aperiodicity compatible with composition: the shift kk of fgf \cdot g is the sum of the shifts of ff and gg.

    Lean source view on GitHub

    1import Lax765601.MealyMachine
    2import Lax765601.Aperiodicity
    3
    4/-!
    5---
    6title: Aperiodicity as a pumping property
    7type: theorem
    8---
    9A function ff computed by a Mealy machine is aperiodic if and only if for all
    10input strings u,v,wu, v, w there are output strings x,y,zx, y, z and a number kk such
    11that
    12f(uvn+kw)=xynzfor all n>0f(u v^{n+k} w) = x y^n z \qquad \text{for all } n > 0
    13(Claim A.2.9 of *Transducers*). The right-to-left direction is immediate, since
    14the last letter of xynzx y^n z does not depend on nn. For the other direction,
    15aperiodicity fixes the last v|v| letters of f(uvn)f(u v^n) for large nn, so that
    16from some point on the output ends with repetitions of a fixed string yy of
    17length v|v|, and fixes the last w|w| letters of f(uvnw)f(u v^n w), which gives zz.
    18The pumping form is what makes aperiodicity compatible with composition: the
    19shift kk of fgf \cdot g is the sum of the shifts of ff and gg.
    20
    21# Formalization notes
    22
    23`npow v n` is `vⁿ`. The hypothesis that `f` is computed by a Mealy machine is
    24used only in the left-to-right direction; no finiteness of the alphabets is
    25needed.
    26-/
    27
    28namespace Lax765601.AperiodicPumping
    29
    30open Lax765601.MealyMachine Lax765601.Aperiodicity
    31
    32/-- A Mealy function is aperiodic if and only if it has the pumping property: for
    33all `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`. -/
    35axiom 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
    40end Lax765601.AperiodicPumping
    41
    Show Proof

    Formalization notes

    npowvnnpow v n is vnvⁿ. The hypothesis that ff is computed by a Mealy machine is used only in the left-to-right direction; no finiteness of the alphabets is needed.

    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

    Loading discussion…