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.
Exact Lean statement
theorem unique_minimal [Finite State]
(l : Language α) (hr : l.IsRegular) (hm : M.IsMinimalAutomaton l) :
∃! φ : State ≃ l.NerodeQuotient, ∀ x, φ (M.mtr M.start x) = ⟦ x ⟧Formal artifact
Lean source
theorem unique_minimal [Finite State] (l : Language α) (hr : l.IsRegular) (hm : M.IsMinimalAutomaton l) : ∃! φ : State ≃ l.NerodeQuotient, ∀ x, φ (M.mtr M.start x) = ⟦ x ⟧ := by obtain ⟨rfl, hc⟩ := hm have := Language.IsRegular.iff_finite_nerodeQuotient.mp hr let φ : State → Quotient ((language M).NerodeCongruence).eq := fun s ↦ ⟦ Classical.epsilon (fun x : List α ↦ M.mtr M.start x = s) ⟧ have hφ (x : List α) : φ (M.mtr M.start x) = ⟦ x ⟧ := by apply Quotient.sound apply stateCongruence_le_nerodeCongruence intro z have := @Classical.epsilon_spec _ (fun y : List α ↦ M.mtr M.start y = M.mtr M.start x) ⟨x, rfl⟩ grind [FLTS.mtr] have hφ_surj : Function.Surjective φ := fun q ↦ q.inductionOn (fun x ↦ ⟨M.mtr M.start x, hφ x⟩) have hφ_inj : Function.Injective φ := by have eqT := Classical.inhabited_of_nonempty <| Finite.card_eq.mp hc apply hφ_surj.injective_of_finite eqT.default use Equiv.ofBijective φ ⟨hφ_inj, hφ_surj⟩, hφ intro ψ hψ ext s induction h : φ s using Quotient.inductionOn with | h x => grind [hφ_inj ((hφ x).trans h.symm)]- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Computability/Languages/MyhillNerode.lean:193-214
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
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.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family saturation
Cslib.Automata.NA.Buchi.buchiFamily_saturation
Plain-language statement
na.buchiFamily saturates the ω-language accepted by na.
Source project: Lean Computer Science Library
Person-level attribution pending.
Concat language eq
Cslib.Automata.NA.Buchi.concat_language_eq
Plain-language statement
The Buchi automaton formed from concat na1 na2 accepts the ω-language that is the concatenation of the language of na1 and the ω-language of na2.
Source project: Lean Computer Science Library
Person-level attribution pending.