Lax314295.MSOAnnotationRegular
The correctly annotated strings of an MSO relabelling form a regular language
concepts/Lax314295/MSOAnnotationRegular.lean · lax-314295
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 121 of the paper of lax-157538, Transducers
Theorem
For an mso relabelling with formulas , the language over of the strings such that for every the formula is true at position of is regular (Claim C.4.6 of Transducers). For each formula, the strings with one marked position at which the formula holds form a regular language by Lemma C.4.2, and the claim's language is the intersection, over the formulas, of the complements of the projections of the strings that violate it.
Lean source view on GitHub
| 1 | import Lax314295.MSORelabellings |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: The correctly annotated strings of an MSO relabelling form a regular language |
| 6 | type: theorem |
| 7 | --- |
| 8 | For an mso relabelling with formulas , the language over |
| 9 | of the strings such that for every |
| 10 | the formula is true at position of is |
| 11 | regular (Claim C.4.6 of *Transducers*). For each formula, the strings with one |
| 12 | marked position at which the formula holds form a regular language by Lemma |
| 13 | C.4.2, and the claim's language is the intersection, over the formulas, of the |
| 14 | complements of the projections of the strings that violate it. |
| 15 | |
| 16 | # Formalization notes |
| 17 | |
| 18 | The input alphabet is assumed finite; the formulas are indexed by `R.Idx`. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax314295.MSOAnnotationRegular |
| 22 | |
| 23 | open Lax314295.MSOLogic Lax314295.MSORelabellings |
| 24 | |
| 25 | /-- The strings annotated at every position with a formula true there form a |
| 26 | regular language. -/ |
| 27 | axiom isRegular_annotation {A B : Type} [Finite A] (R : MSORelabelling A B) : |
| 28 | Language.IsRegular |
| 29 | {u : List (A × R.Idx) | ∀ (p : ℕ) (hp : p < u.length), |
| 30 | MSO.Sat (u.map Prod.fst) (fun _ => p) (fun _ => ∅) (R.form (u.get ⟨p, hp⟩).2)} |
| 31 | |
| 32 | end Lax314295.MSOAnnotationRegular |
| 33 |
Formalization notes
The input alphabet is assumed finite; the formulas are indexed by .
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