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

Lax765601.StateTransformationDecomposition

The state transformation transducer is a composition of primes

concepts/Lax765601/StateTransformationDecomposition.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

    For every pre-automaton, its state transformation transducer — the Mealy machine whose nn-th output letter is the state transformation of the first nn input letters — is a composition of prime Mealy machines (Lemma A.2.5 of Transducers, the main lemma in the proof of the Krohn–Rhodes theorem).

    The book proves it by induction on the number of states and, for a tie, on the number of letters whose state transformation is not a permutation. A pre-automaton all of whose letters are permutations is reversible as it stands. Otherwise one fixes a letter aa whose state transformation has a proper image PQP \subset Q, decomposes the input into its first aa-block, the middle aa-blocks and the aa-free suffix, and computes the three state transformations in five stages: the map lifting of the induction hypothesis for the alphabet without aa (Lemma A.2.4) handles the aa-free pieces, two flip-flops distribute the state transformations of the blocks, the induction hypothesis for the smaller state space PP handles the middle part, and a letter-to-letter homomorphism assembles the result.

    Lean source view on GitHub

    1import Lax765601.PrimeMealyMachines
    2import Lax765601.StateTransformations
    3
    4/-!
    5---
    6title: The state transformation transducer is a composition of primes
    7type: theorem
    8---
    9For every pre-automaton, its state transformation transducer — the Mealy
    10machine whose nn-th output letter is the state transformation of the first nn
    11input letters — is a composition of prime Mealy machines (Lemma A.2.5 of
    12*Transducers*, the main lemma in the proof of the Krohn–Rhodes theorem).
    13
    14The book proves it by induction on the number of states and, for a tie, on the
    15number of letters whose state transformation is not a permutation. A
    16pre-automaton all of whose letters are permutations is reversible as it stands.
    17Otherwise one fixes a letter aa whose state transformation has a proper image
    18PQP \subset Q, decomposes the input into its first aa-block, the middle
    19aa-blocks and the aa-free suffix, and computes the three state
    20transformations in five stages: the map lifting of the induction hypothesis for
    21the alphabet without aa (Lemma A.2.4) handles the aa-free pieces, two
    22flip-flops distribute the state transformations of the blocks, the induction
    23hypothesis for the smaller state space PP handles the middle part, and a
    24letter-to-letter homomorphism assembles the result.
    25
    26# Formalization notes
    27
    28The pre-automaton is its transition function `δ : Q → A → Q`, and the transducer
    29is `StateTransformations.stateTransTransducer δ`, of type
    30`Mealy A (Q → Q) (Q → Q)`; the conclusion is membership of its semantics in the
    31composition closure of the primes. Both the alphabet and the state space are
    32assumed finite, the two induction parameters. The formal induction keeps the
    33input alphabet fixed and makes the letter `a` act as the identity instead of
    34removing it, which measures the second parameter by the number of
    35non-permutation letters.
    36-/
    37
    38namespace Lax765601.StateTransformationDecomposition
    39
    40open Lax765601.MealyMachine Lax765601.CompositionClosure Lax765601.PrimeMealyMachines
    41 Lax765601.StateTransformations
    42
    43/-- The state transformation transducer of a finite pre-automaton over a finite
    44alphabet is a composition of prime Mealy machines. -/
    45axiom compClosure_stateTransTransducer {A Q : Type} [Finite A] [Finite Q] (δ : Q → A → Q) :
    46 CompClosure PrimeMealyFam A (Q → Q) (stateTransTransducer δ).eval
    47
    48end Lax765601.StateTransformationDecomposition
    49
    Show Proof

    Formalization notes

    The pre-automaton is its transition function δ:QAQδ : Q → A → Q, and the transducer is StateTransformations.stateTransTransducerδStateTransformations.stateTransTransducer δ, of type MealyA(QQ)(QQ)Mealy A (Q → Q) (Q → Q); the conclusion is membership of its semantics in the composition closure of the primes. Both the alphabet and the state space are assumed finite, the two induction parameters. The formal induction keeps the input alphabet fixed and makes the letter aa act as the identity instead of removing it, which measures the second parameter by the number of non-permutation letters.

    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…