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

Lax765601.ReversibleComposition

Reversible Mealy machines are closed under composition

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

    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 (Reversible)(\mathrm{Reversible})^* 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

    1import Lax765601.PrimeMealyMachines
    2
    3/-!
    4---
    5title: Reversible Mealy machines are closed under composition
    6type: theorem
    7---
    8The composition of two functions computed by reversible Mealy machines is
    9computed by a reversible Mealy machine (Lemma A.2.6 of *Transducers*). Hence the
    10class (Reversible)(\mathrm{Reversible})^* of compositions of reversible machines is just
    11the 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
    13is a permutation in each coordinate.
    14
    15# Formalization notes
    16
    17As for closure under composition of Mealy machines, the intermediate alphabet is
    18assumed finite.
    19-/
    20
    21namespace Lax765601.ReversibleComposition
    22
    23open Lax765601.PrimeMealyMachines
    24
    25/-- The composition of two reversible Mealy machines is a reversible Mealy
    26machine. -/
    27axiom 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
    31end Lax765601.ReversibleComposition
    32
    Show Proof

    Formalization notes

    As for closure under composition of Mealy machines, the intermediate alphabet is assumed finite.

    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…