Omega reg lang fin idx congr
omega_reg_lang_fin_idx_congr
Plain-language statement
If a congruence is of finite index, is ample, and saturates an ω-language L, then L is ω-regular.
Exact Lean statement
theorem omega_reg_lang_fin_idx_congr [Inhabited A] {c : Congruence A} {L : Set (Stream' A)}
(h_fin : Finite (c.QuotType)) (h_amp : c.Ample) (h_sat : c.Saturates L) : OmegaRegLang LFormal artifact
Lean source
theorem omega_reg_lang_fin_idx_congr [Inhabited A] {c : Congruence A} {L : Set (Stream' A)} (h_fin : Finite (c.QuotType)) (h_amp : c.Ample) (h_sat : c.Saturates L) : OmegaRegLang L := by rw [congruence_ample_saturates_union h_amp h_sat, omega_reg_lang_iff_finite_union_form] have eq_quot : Fin (Nat.card c.QuotType) ≃ c.QuotType := by exact (Finite.equivFin c.QuotType).symm have eq_prod := Equiv.prodCongr eq_quot eq_quot have eq_fin_prod := (finProdFinEquiv (m := Nat.card c.QuotType) (n := Nat.card c.QuotType)).symm have eq := Equiv.trans eq_fin_prod eq_prod use (Nat.card c.QuotType * Nat.card c.QuotType) use (fun i ↦ if (c.ConcatOmegaLang (eq i).1 (eq i).2 ∩ L).Nonempty then c.EqvCls (eq i).1 else ∅) use (fun i ↦ c.EqvCls (eq i).2) constructor · intro i have h_reg1 := reg_lang_fin_idx_congr h_fin (eq i).1 have h_reg2 := reg_lang_fin_idx_congr h_fin (eq i).2 rcases Classical.em ((c.ConcatOmegaLang (eq i).1 (eq i).2 ∩ L).Nonempty) with h | h <;> simp [h, h_reg1, h_reg2, reg_lang_empty] ext as ; simp ; constructor · rintro ⟨s, t, h_ne, h_as⟩ use (eq.invFun (s, t)) ; simp [h_ne] ; exact h_as · rintro ⟨i, h_as⟩ rcases Classical.em ((c.ConcatOmegaLang (eq i).1 (eq i).2 ∩ L).Nonempty) with h | h <;> simp [h] at h_as · use (eq i).1, (eq i).2 ; simpa [h] · simp [empty_ConcatInf] at h_as- Project
- Automata Theory
- License
- Apache-2.0
- Commit
- f196548710ce
- Source
- AutomataTheory/Languages/OmegaRegLang.lean:202-225
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
Acc lang congr
acc_lang_congr
Plain-language statement
The language accepted by c.toDA with a unique accepting state s is exactly the equivalence class of s.
Source project: Automata Theory
Person-level attribution pending.
Acc lang concat e
Automata.acc_lang_concat_e
Plain-language statement
The language of the concatenation NA that is accepted by M0's accepting states is the language accepted by M0.
Source project: Automata Theory
Person-level attribution pending.
Acc lang concat ne
Automata.acc_lang_concat_ne
Plain-language statement
The language of the concatenation NA that is accepted by M1's accepting states is the language accepted by M0 concatenated with the language accepted by M1 minus the empty word.
Source project: Automata Theory
Person-level attribution pending.