Lax314295.AperiodicOfFO
First-order definable languages are aperiodic
concepts/Lax314295/AperiodicOfFO.lean · lax-314295
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 130 of the paper of lax-157538, Transducers
Theorem
Every language definable in first-order logic is recognised by an aperiodic deterministic automaton (Theorem C.4.11 of Transducers, the implication from definable to aperiodic). A first-order sentence of quantifier rank depends only on the -type of the string (Lemma C.4.13); the automaton whose states are the -types, which is finite and aperiodic by Lemma C.4.15, recognises the language.
Lean source view on GitHub
| 1 | import Lax765601.StateTransformations |
| 2 | import Lax314295.MSOLogic |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: First-order definable languages are aperiodic |
| 7 | type: theorem |
| 8 | --- |
| 9 | Every language definable in first-order logic is recognised by an aperiodic |
| 10 | deterministic automaton (Theorem C.4.11 of *Transducers*, the implication from |
| 11 | definable to aperiodic). A first-order sentence of quantifier rank depends |
| 12 | only on the -type of the string (Lemma C.4.13); the automaton whose states |
| 13 | are the -types, which is finite and aperiodic by Lemma C.4.15, recognises |
| 14 | the language. |
| 15 | |
| 16 | # Formalization notes |
| 17 | |
| 18 | A deterministic automaton is mathlib's `DFA`; it is aperiodic if its transition |
| 19 | function satisfies the stabilisation condition `TransAperiodic` of |
| 20 | `Lax765601.StateTransformations`. The alphabet is assumed finite. |
| 21 | -/ |
| 22 | |
| 23 | namespace Lax314295.AperiodicOfFO |
| 24 | |
| 25 | open Lax765601.StateTransformations Lax314295.MSOLogic |
| 26 | |
| 27 | /-- A first-order definable language is recognised by an aperiodic dfa. -/ |
| 28 | axiom exists_aperiodic_dfa_of_foDefinable {A : Type} [Finite A] {L : Language A} |
| 29 | (hL : FODefinable L) : |
| 30 | ∃ (σ : Type) (_ : Finite σ) (M : DFA A σ), TransAperiodic M.step ∧ M.accepts = L |
| 31 | |
| 32 | end Lax314295.AperiodicOfFO |
| 33 |
Formalization notes
A deterministic automaton is mathlib's ; it is aperiodic if its transition function satisfies the stabilisation condition of . The alphabet is assumed finite.
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