Lax132576.HomomorphismComplement
The complement of a homomorphism is rational
concepts/Lax132576/HomomorphismComplement.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 40 of the paper of lax-157538, Transducers
Theorem
If is a string homomorphism, then its complement
is a rational relation (Claim B.1.7 of Transducers). The automaton guesses a prefix of the input on which the homomorphism is applied correctly, then insists on an error at the next letter: it outputs a proper prefix of the image of that letter and nothing more, or a string incomparable with it and then anything. This is the observation behind the undecidability of equivalence (Theorem B.1.6).
Lean source view on GitHub
| 1 | import Lax132576.RationalRelations |
| 2 | import Lax132576.StringHomomorphisms |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The complement of a homomorphism is rational |
| 7 | type: theorem |
| 8 | --- |
| 9 | If is a string homomorphism, then its complement |
| 10 | |
| 11 | is a rational relation (Claim B.1.7 of *Transducers*). The automaton guesses a |
| 12 | prefix of the input on which the homomorphism is applied correctly, then |
| 13 | insists on an error at the next letter: it outputs a proper prefix of the image |
| 14 | of that letter and nothing more, or a string incomparable with it and then |
| 15 | anything. This is the observation behind the undecidability of equivalence |
| 16 | (Theorem B.1.6). |
| 17 | |
| 18 | # Formalization notes |
| 19 | |
| 20 | Both alphabets are assumed finite, as in the book; the automaton has one |
| 21 | transition per letter and per prefix of its image. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax132576.HomomorphismComplement |
| 25 | |
| 26 | open Lax132576.RationalRelations Lax132576.StringHomomorphisms |
| 27 | |
| 28 | /-- The complement of the graph of a string homomorphism is a rational relation. -/ |
| 29 | axiom isRationalRel_ne_homOf {A B : Type} [Finite A] [Finite B] (φ : A → List B) : |
| 30 | IsRationalRel (fun (w : List A) (v : List B) => v ≠ homOf φ w) |
| 31 | |
| 32 | end Lax132576.HomomorphismComplement |
| 33 |
Formalization notes
Both alphabets are assumed finite, as in the book; the automaton has one transition per letter and per prefix of its image.
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