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

Lax314295.MSODefinableOfRegular

Regular languages are MSO-definable

concepts/Lax314295/MSODefinableOfRegular.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

    Every regular language is definable in monadic second-order logic (Theorem C.4.1 of Transducers, Büchi–Elgot–Trakhtenbrot, the implication from regular to definable). The formula guesses the run of a deterministic automaton on the input as one set variable per state, and checks that the sets partition the positions, that the first position carries the initial state's successor, that consecutive positions follow the transition function, and that the last position leads to an accepting state.

    Lean source view on GitHub

    1import Lax314295.MSOLogic
    2
    3/-!
    4---
    5title: Regular languages are MSO-definable
    6type: theorem
    7---
    8Every regular language is definable in monadic second-order logic (Theorem
    9C.4.1 of *Transducers*, Büchi–Elgot–Trakhtenbrot, the implication from regular
    10to definable). The formula guesses the run of a deterministic automaton on the
    11input as one set variable per state, and checks that the sets partition the
    12positions, that the first position carries the initial state's successor, that
    13consecutive positions follow the transition function, and that the last
    14position leads to an accepting state.
    15
    16# Formalization notes
    17
    18The alphabet is assumed finite, as in the book.
    19-/
    20
    21namespace Lax314295.MSODefinableOfRegular
    22
    23open Lax314295.MSOLogic
    24
    25/-- A regular language is definable in mso. -/
    26axiom msoDefinable_of_isRegular {A : Type} [Finite A] {L : Language A} (hL : L.IsRegular) :
    27 MSODefinable L
    28
    29end Lax314295.MSODefinableOfRegular
    30
    Show Proof

    Formalization notes

    The alphabet is assumed finite, as in the book.

    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…