Lax132576.RationalContinuity
Rational relations are continuous
concepts/Lax132576/RationalContinuity.lean · lax-132576
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 39 of the paper of lax-157538, Transducers
Theorem
If is a rational relation and is a regular language, then the inverse image
is a regular language (Theorem B.1.5 of Transducers). The book deduces it from closure under composition: rational relations with an empty output alphabet are the regular languages over the input alphabet, and the inverse image is the composition of with the relation . Since rational relations are input/output symmetric, forward images of regular languages are regular too.
Lean source view on GitHub
| 1 | import Lax765601.Continuity |
| 2 | import Lax132576.RationalRelations |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Rational relations are continuous |
| 7 | type: theorem |
| 8 | --- |
| 9 | If is a rational relation and |
| 10 | is a regular language, then the inverse image |
| 11 | |
| 12 | is a regular language (Theorem B.1.5 of *Transducers*). The book deduces it |
| 13 | from closure under composition: rational relations with an empty output |
| 14 | alphabet are the regular languages over the input alphabet, and the inverse |
| 15 | image is the composition of with the relation . |
| 16 | Since rational relations are input/output symmetric, forward images of regular |
| 17 | languages are regular too. |
| 18 | |
| 19 | # Formalization notes |
| 20 | |
| 21 | The conclusion is `RelContinuous R` of `Lax765601.Continuity`, continuity in |
| 22 | the relational form. No finiteness of the alphabets is needed. |
| 23 | -/ |
| 24 | |
| 25 | namespace Lax132576.RationalContinuity |
| 26 | |
| 27 | open Lax765601.Continuity Lax132576.RationalRelations |
| 28 | |
| 29 | /-- A rational relation is continuous: inverse images of regular languages are |
| 30 | regular. -/ |
| 31 | axiom relContinuous_of_isRationalRel {A B : Type} {R : List A → List B → Prop} |
| 32 | (hR : IsRationalRel R) : RelContinuous R |
| 33 | |
| 34 | end Lax132576.RationalContinuity |
| 35 |
Formalization notes
The conclusion is of , continuity in the relational form. No finiteness of the alphabets is needed.
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