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