Lax916827.ReversalContinuous
String reversal is continuous
concepts/Lax916827/ReversalContinuous.lean · lax-916827
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 86 of the paper of lax-157538, Transducers
Theorem
String reversal is continuous (Lemma C.1.2 of Transducers, first half): the inverse image of a regular language under reversal is recognised by the automaton with all transitions reversed and initial and accepting states swapped.
Lean source view on GitHub
| 1 | import Lax765601.Continuity |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: String reversal is continuous |
| 6 | type: theorem |
| 7 | --- |
| 8 | String reversal is continuous (Lemma C.1.2 of |
| 9 | *Transducers*, first half): the inverse image of a regular language under |
| 10 | reversal is recognised by the automaton with all transitions reversed and |
| 11 | initial and accepting states swapped. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | The alphabet is assumed finite, as in the book. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax916827.ReversalContinuous |
| 19 | |
| 20 | open Lax765601.Continuity |
| 21 | |
| 22 | /-- String reversal is continuous. -/ |
| 23 | axiom continuous_reverse {A : Type} [Finite A] : Continuous (List.reverse : List A → List A) |
| 24 | |
| 25 | end Lax916827.ReversalContinuous |
| 26 |
Formalization notes
The alphabet is 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