All proofs
Project-declaredLean 4.33.0-rc1 · mathlib@169c26b52a38

Is Regular eq fin i Sup hmul omega Pow

Cslib.ωLanguage.IsRegular.eq_fin_iSup_hmul_omegaPow

Plain-language statement

An ω-language is regular iff it is the finite union of ω-languages of the form L * M^ω, where all Ls and Ms are regular languages.

Exact Lean statement

theorem IsRegular.eq_fin_iSup_hmul_omegaPow [Inhabited Symbol] (p : ωLanguage Symbol) :
    p.IsRegular ↔ ∃ n : ℕ, ∃ l m : Fin n → Language Symbol,
      (∀ i, (l i).IsRegular ∧ (m i).IsRegular) ∧ p = ⨆ i, (l i) * (m i)^ω

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem IsRegular.eq_fin_iSup_hmul_omegaPow [Inhabited Symbol] (p : ωLanguage Symbol) :    p.IsRegular   n : ,  l m : Fin n  Language Symbol,      ( i, (l i).IsRegular  (m i).IsRegular)  p = ⨆ i, (l i) * (m i)^ω := by  constructor  · rintro State, _, na, rfl    rw [NA.Buchi.language_eq_fin_iSup_hmul_omegaPow na]    have eq_start := Finite.equivFinna.start    have eq_accept := Finite.equivFinna.accept    have eq_prod := eq_start.prodCongr eq_accept    have eq := (eq_prod.trans finProdFinEquiv).symm    refine Nat.cardna.start * Nat.cardna.accept,      fun i  na.pairLang (eq i).1 (eq i).2,      fun i  na.pairLang (eq i).2 (eq i).2,      by grind [LTS.pairLang_regular], ?_    apply mem_ext    intro xs    simp only [mem_iSup]    refine ?_, by grind    rintro s, h_s, t, h_t, h_mem    use eq.invFun (s, h_s, t, h_t)    have := Equiv.apply_symm_apply eq    simp_all  · rintro n, l, m, _, rfl    rw [ iSup_univ]    apply IsRegular.iSup    grind [IsRegular.hmul, IsRegular.omegaPow]
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Computability/Languages/OmegaRegularLanguage.lean:195-220

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.33.0-rc1

Unique minimal

Cslib.Automata.DA.FinAcc.unique_minimal

Plain-language statement

The minimal DFA M accepting the language l is unique up to unique isomorphism.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record
Project-declaredLean 4.33.0-rc1

Buchi Family cover

Cslib.Automata.NA.Buchi.buchiFamily_cover

Project documentation

na.buchiFamily is a cover if na has only finitely many states. This theorem uses the Ramsey theorem for infinite graphs and does not depend on any details of na.BuchiCongruence other than that it is of finite index.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record