Buchi congr saturates
Automata.buchi_congr_saturates
Plain-language statement
The BuchiCongr of an NA saturates the ω-language accepted by the NA. Note that this result does not need to assume that the NA is finite-state.
Exact Lean statement
theorem buchi_congr_saturates : (M.BuchiCongr acc).Saturates (M.AcceptedOmegaLang acc)
Formal artifact
Lean source
theorem buchi_congr_saturates : (M.BuchiCongr acc).Saturates (M.AcceptedOmegaLang acc) := by rintro p q ⟨as, h_congr, ss, ⟨h_init, h_next⟩, h_acc⟩ as' h_congr' obtain ⟨φ, h_mono, h_eqv_p, h_eqv_q⟩ := mem_ConcatInf_IterOmega h_congr obtain ⟨φ', h_mono', h_eqv_p', h_eqv_q'⟩ := mem_ConcatInf_IterOmega h_congr' have h_congr_p := congruence_same_eqvcls_imp_eq h_eqv_p h_eqv_p' have h_congr_q := fun m ↦ congruence_same_eqvcls_imp_eq (h_eqv_q m) (h_eqv_q' m) have h_pair_0 := pair_lang_fin_subseq h_next (show 0 ≤ φ 0 by omega) have h_pair_1 := fun m ↦ pair_lang_fin_subseq h_next (le_of_lt <| h_mono (show m < m + 1 by omega)) have h_pair_0' := (h_congr_p (ss 0) (ss (φ 0))).1.mp <| h_pair_0 have h_pair_1' := fun m ↦ (h_congr_q m (ss (φ m)) (ss (φ (m + 1)))).1.mp <| h_pair_1 m have h_inf := pair_acc_lang_frequently_from_run h_next h_acc h_mono have h_inf' : ∃ᶠ m in atTop, as'.extract (φ' m) (φ' (m + 1)) ∈ M.PairAccLang acc (ss (φ m)) (ss (φ (m + 1))) := by apply Frequently.mono h_inf ; intro m exact (h_congr_q m (ss (φ m)) (ss (φ (m + 1)))).2.mp obtain ⟨ss0', h_ss_0, h_ss_φ0, h_next0'⟩ := h_pair_0' simp (disch := omega) [length_extract, get_extract'] at h_ss_φ0 h_next0' have h_lem1 : ∀ m, (as'.drop (φ' 0)).extract (φ' m - φ' 0) (φ' (m + 1) - φ' 0) = as'.extract (φ' m) (φ' (m + 1)) := by intro m have := StrictMono.monotone h_mono' (show 0 ≤ m by omega) have := StrictMono.monotone h_mono' (show 0 ≤ m + 1 by omega) simp [extract_drop, (show φ' 0 + (φ' m - φ' 0) = φ' m by omega), (show φ' 0 + (φ' (m + 1) - φ' 0) = φ' (m + 1) by omega)] obtain ⟨ss1', h_ss1', h_next1', h_acc1'⟩ := pair_acc_lang_frequently_to_run (acc := acc) (φ := (φ' · - φ' 0)) (as := as'.drop (φ' 0)) (ss' := fun k ↦ ss (φ k)) (base_zero_strict_mono h_mono') (base_zero_shift φ') (by simp [h_lem1, h_pair_1']) (by simp [h_lem1, h_inf']) use (fun k ↦ if k < φ' 0 then ss0' k else ss1' (k - φ' 0)) constructor · constructor · rcases (show φ' 0 = 0 ∨ φ' 0 > 0 by omega) with h_k | h_k · simp [h_k] ; grind · grind intro k rcases (show k + 1 < φ' 0 ∨ k + 1 = φ' 0 ∨ k + 1 > φ' 0 by omega) with h_k | h_k | h_k · grind · have h_k' : k < φ' 0 := by omega have h1 := h_ss1' 0 simp at h1 have h2 := h_next0' k h_k' simp [h_k, h_ss_φ0] at h2 simp [h_k, h_k', h1, h2] · simp [(show ¬ k < φ' 0 by omega), (show ¬ k + 1 < φ' 0 by omega)] have h1 := h_next1' (k - φ' 0) simp [get_drop', (show φ' 0 + (k - φ' 0) = k by omega)] at h1 simp [(show k + 1 - φ' 0 = k - φ' 0 + 1 by omega), h1] · simp [Filter.frequently_atTop] at h_acc1' ⊢ intro k0 obtain ⟨k1, h_k1, h_k1_acc⟩ := h_acc1' (k0 + φ' 0) use (k1 + φ' 0) simp [(show k0 ≤ k1 + φ' 0 by omega), h_k1_acc]- Project
- Automata Theory
- License
- Apache-2.0
- Commit
- f196548710ce
- Source
- AutomataTheory/Congruences/BuchiCongr.lean:60-109
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.