Lax132576.RationalComposition
Rational relations are closed under composition
concepts/Lax132576/RationalComposition.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 38 of the paper of lax-157538, Transducers
Theorem
If and are rational relations, then so is their relational composition
(Theorem B.1.4 of Transducers). The proof is the product construction of Theorem A.1.3, after splitting transitions so that each produces at most one letter of input or output and adding empty transitions around every state, so that the two runs can be synchronised on the intermediate string.
Lean source view on GitHub
| 1 | import Lax132576.RationalRelations |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Rational relations are closed under composition |
| 6 | type: theorem |
| 7 | --- |
| 8 | If and are rational |
| 9 | relations, then so is their relational composition |
| 10 | |
| 11 | (Theorem B.1.4 of *Transducers*). The proof is the product construction of |
| 12 | Theorem A.1.3, after splitting transitions so that each produces at most one |
| 13 | letter of input or output and adding empty transitions around every state, so |
| 14 | that the two runs can be synchronised on the intermediate string. |
| 15 | |
| 16 | # Formalization notes |
| 17 | |
| 18 | No finiteness of the alphabets is needed: the product construction only uses |
| 19 | the finiteness of the two state spaces. |
| 20 | -/ |
| 21 | |
| 22 | namespace Lax132576.RationalComposition |
| 23 | |
| 24 | open Lax132576.RationalRelations |
| 25 | |
| 26 | /-- The composition of two rational relations is rational. -/ |
| 27 | axiom isRationalRel_comp {A B C : Type} |
| 28 | {R : List A → List B → Prop} {S : List B → List C → Prop} |
| 29 | (hR : IsRationalRel R) (hS : IsRationalRel S) : |
| 30 | IsRationalRel (fun w v => ∃ u, R w u ∧ S u v) |
| 31 | |
| 32 | end Lax132576.RationalComposition |
| 33 |
Formalization notes
No finiteness of the alphabets is needed: the product construction only uses the finiteness of the two state spaces.
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