Lax709149.RegularUnderRepresentation
Regular functions on types under string representation
concepts/Lax709149/RegularUnderRepresentation.lean · lax-709149
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 139 of the paper of lax-157538, Transducers
Definition
A type-to-type function is regular under string representation (Definition C.5.2 of Transducers) if there is a regular string-to-string function over the eight-letter alphabet making the square commute: maps the representation of to the representation of , for every . Rational functions between types are defined in the same way. Nothing is required of on the strings that represent no element.
Lean source view on GitHub
| 1 | import Lax132576.RationalFunctions |
| 2 | import Lax916827.RegularFunctions |
| 3 | import Lax709149.Types |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Regular functions on types under string representation |
| 8 | type: definition |
| 9 | --- |
| 10 | A type-to-type function is *regular under string representation* |
| 11 | (Definition C.5.2 of *Transducers*) if there is a regular string-to-string |
| 12 | function over the eight-letter alphabet making the square commute: |
| 13 | maps the representation of to the representation of , for every |
| 14 | . Rational functions between types are defined in the same way. Nothing |
| 15 | is required of on the strings that represent no element. |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | `IsRegularUnderRepr f` asks for a regular `f' : List Sym8 → List Sym8` with |
| 20 | `f' (A.repr a) = B.repr (f a)` for all `a`; `IsRationalUnderRepr` for a rational |
| 21 | one. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax709149.RegularUnderRepresentation |
| 25 | |
| 26 | open Lax132576.RationalFunctions Lax916827.RegularFunctions Lax709149.Types |
| 27 | |
| 28 | /-- A type-to-type function is regular under string representation if a regular |
| 29 | string-to-string function maps the representation of `a` to the representation |
| 30 | of `f a`. -/ |
| 31 | def IsRegularUnderRepr {A B : Ty} (f : A.Elt → B.Elt) : Prop := |
| 32 | ∃ f' : List Sym8 → List Sym8, IsRegularFun f' ∧ ∀ a : A.Elt, f' (A.repr a) = B.repr (f a) |
| 33 | |
| 34 | /-- A type-to-type function is rational under string representation. -/ |
| 35 | def IsRationalUnderRepr {A B : Ty} (f : A.Elt → B.Elt) : Prop := |
| 36 | ∃ f' : List Sym8 → List Sym8, IsRationalFun f' ∧ ∀ a : A.Elt, f' (A.repr a) = B.repr (f a) |
| 37 | |
| 38 | end Lax709149.RegularUnderRepresentation |
| 39 |
Formalization notes
asks for a regular with for all ; for a rational one.
Used by
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