Lax132576.MealyMachineIndependent
Machine-independent characterisation of Mealy machines
concepts/Lax132576/MealyMachineIndependent.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 66 of the paper of lax-157538, Transducers
Theorem
A function is computed by a Mealy machine if and only if it is (a) continuous, (b) prefix preserving, and (c) length preserving (Theorem B.4.1 of Transducers). A Mealy machine clearly has the three properties; conversely, for every output letter the language of inputs whose output ends with is regular by continuity, each input position contributes exactly one output letter by prefix and length preservation, and the product of the automata of these languages is the state space of a Mealy machine computing .
Lean source view on GitHub
| 1 | import Lax765601.Continuity |
| 2 | import Lax765601.ElementaryProperties |
| 3 | import Lax765601.MealyMachine |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Machine-independent characterisation of Mealy machines |
| 8 | type: theorem |
| 9 | --- |
| 10 | A function is computed by a Mealy machine if and only if it is |
| 11 | (a) continuous, (b) prefix preserving, and (c) length preserving (Theorem |
| 12 | B.4.1 of *Transducers*). A Mealy machine clearly has the three properties; |
| 13 | conversely, for every output letter the language of inputs whose output |
| 14 | ends with is regular by continuity, each input position contributes exactly |
| 15 | one output letter by prefix and length preservation, and the product of the |
| 16 | automata of these languages is the state space of a Mealy machine computing |
| 17 | . |
| 18 | |
| 19 | # Formalization notes |
| 20 | |
| 21 | Both alphabets are assumed finite: the product over the output letters is a |
| 22 | finite product. The three properties are those of `Lax765601.Continuity` and |
| 23 | `Lax765601.ElementaryProperties`. |
| 24 | -/ |
| 25 | |
| 26 | namespace Lax132576.MealyMachineIndependent |
| 27 | |
| 28 | open Lax765601.Continuity Lax765601.ElementaryProperties Lax765601.MealyMachine |
| 29 | |
| 30 | /-- A function is computed by a Mealy machine if and only if it is continuous, |
| 31 | prefix preserving and length preserving. -/ |
| 32 | axiom isMealy_iff {A B : Type} [Finite A] [Finite B] (f : List A → List B) : |
| 33 | IsMealy f ↔ Continuous f ∧ PrefixPreserving f ∧ LengthPreserving f |
| 34 | |
| 35 | end Lax132576.MealyMachineIndependent |
| 36 |
Formalization notes
Both alphabets are assumed finite: the product over the output letters is a finite product. The three properties are those of and .
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