Lax916827.RegularConcatenation
Regular functions are closed under concatenation
concepts/Lax916827/RegularConcatenation.lean · lax-916827
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 98 of the paper of lax-157538, Transducers
Theorem
If are regular, then so is their concatenation (Lemma C.2.10 of Transducers, second item): map duplicate produces two copies of the input, and the map liftings of and of are applied to the two copies, selected by a rational marking.
Lean source view on GitHub
| 1 | import Lax916827.RegularFunctions |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Regular functions are closed under concatenation |
| 6 | type: theorem |
| 7 | --- |
| 8 | If are regular, then so is their concatenation |
| 9 | (Lemma C.2.10 of *Transducers*, second item): map |
| 10 | duplicate produces two copies of the input, and the map liftings of and of |
| 11 | are applied to the two copies, selected by a rational marking. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | Both alphabets are assumed finite, as in the book. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax916827.RegularConcatenation |
| 19 | |
| 20 | open Lax916827.RegularFunctions |
| 21 | |
| 22 | /-- The concatenation of two regular functions is regular. -/ |
| 23 | axiom isRegularFun_concat {A B : Type} [Finite A] [Finite B] {f g : List A → List B} |
| 24 | (hf : IsRegularFun f) (hg : IsRegularFun g) : IsRegularFun (fun w => f w ++ g w) |
| 25 | |
| 26 | end Lax916827.RegularConcatenation |
| 27 |
Formalization notes
Both alphabets are assumed finite, as in the book.
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