Lax765601.ReversibleComposition
Reversible Mealy machines are closed under composition
concepts/Lax765601/ReversibleComposition.lean · lax-765601
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 27 of the paper of lax-157538, Transducers
Theorem
The composition of two functions computed by reversible Mealy machines is computed by a reversible Mealy machine (Lemma A.2.6 of Transducers). Hence the class of compositions of reversible machines is just the class of reversible machines: the product machine of the composition (Theorem A.1.3) is reversible, since the state transformation of a letter in it is a permutation in each coordinate.
Lean source view on GitHub
| 1 | import Lax765601.PrimeMealyMachines |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Reversible Mealy machines are closed under composition |
| 6 | type: theorem |
| 7 | --- |
| 8 | The composition of two functions computed by reversible Mealy machines is |
| 9 | computed by a reversible Mealy machine (Lemma A.2.6 of *Transducers*). Hence the |
| 10 | class of compositions of reversible machines is just |
| 11 | the class of reversible machines: the product machine of the composition |
| 12 | (Theorem A.1.3) is reversible, since the state transformation of a letter in it |
| 13 | is a permutation in each coordinate. |
| 14 | |
| 15 | # Formalization notes |
| 16 | |
| 17 | As for closure under composition of Mealy machines, the intermediate alphabet is |
| 18 | assumed finite. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax765601.ReversibleComposition |
| 22 | |
| 23 | open Lax765601.PrimeMealyMachines |
| 24 | |
| 25 | /-- The composition of two reversible Mealy machines is a reversible Mealy |
| 26 | machine. -/ |
| 27 | axiom isReversibleMealy_comp {A B C : Type} [Finite B] |
| 28 | {f : List A → List B} {g : List B → List C} |
| 29 | (hf : IsReversibleMealy f) (hg : IsReversibleMealy g) : IsReversibleMealy (g ∘ f) |
| 30 | |
| 31 | end Lax765601.ReversibleComposition |
| 32 |
Formalization notes
As for closure under composition of Mealy machines, the intermediate alphabet is assumed finite.
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