Draft — mutable and not usable as a dependency; its citation marks the draft state.

Lax314295.MSOAnnotationRegular

The correctly annotated strings of an MSO relabelling form a regular language

concepts/Lax314295/MSOAnnotationRegular.lean · lax-314295

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Concept map

    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    Theorem

    For an mso relabelling with formulas Φ\Phi, the language over A×ΦA \times \Phi of the strings (a1,φ1)(an,φn)(a_1, \varphi_1) \cdots (a_n, \varphi_n) such that for every ii the formula φi\varphi_i is true at position ii of a1ana_1 \cdots a_n 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

    1import Lax314295.MSORelabellings
    2
    3/-!
    4---
    5title: The correctly annotated strings of an MSO relabelling form a regular language
    6type: theorem
    7---
    8For an mso relabelling with formulas Φ\Phi, the language over A×ΦA \times \Phi
    9of the strings (a1,φ1)(an,φn)(a_1, \varphi_1) \cdots (a_n, \varphi_n) such that for every
    10ii the formula φi\varphi_i is true at position ii of a1ana_1 \cdots a_n is
    11regular (Claim C.4.6 of *Transducers*). For each formula, the strings with one
    12marked position at which the formula holds form a regular language by Lemma
    13C.4.2, and the claim's language is the intersection, over the formulas, of the
    14complements of the projections of the strings that violate it.
    15
    16# Formalization notes
    17
    18The input alphabet is assumed finite; the formulas are indexed by `R.Idx`.
    19-/
    20
    21namespace Lax314295.MSOAnnotationRegular
    22
    23open Lax314295.MSOLogic Lax314295.MSORelabellings
    24
    25/-- The strings annotated at every position with a formula true there form a
    26regular language. -/
    27axiom 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
    32end Lax314295.MSOAnnotationRegular
    33
    Show Proof

    Formalization notes

    The input alphabet is assumed finite; the formulas are indexed by R.IdxR.Idx.

    Used by

    none

    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

    Loading discussion…