Infinite graph ramsey
Cslib.infinite_graph_ramsey
Plain-language statement
If the edges of an infinite complete graph is assigned a finite number of colors, then there must exist a color c and an infinite set s of vertices such that the edge between any two vertices of s is assigned the same color c.
Exact Lean statement
theorem infinite_graph_ramsey :
∃ c : Color, ∃ s : Set Vertex, s.Infinite ∧
∀ e : Finset Vertex, e.card = 2 → ↑e ⊆ s → color e = cFormal artifact
Lean source
theorem infinite_graph_ramsey : ∃ c : Color, ∃ s : Set Vertex, s.Infinite ∧ ∀ e : Finset Vertex, e.card = 2 → ↑e ⊆ s → color e = c := by classical obtain ⟨vs, v, c, h_sel⟩ := good_selections_exist color simp only [forall_and] at h_sel obtain ⟨h_vs, h_v, h_c⟩ := h_sel have : ∀ m n, m < n → v n ∈ vs m := by intro m n h_mn suffices h1 : (⋂ m < n, vs m) ⊆ vs m by grind exact biInter_subset_of_mem h_mn obtain ⟨c', s', h_s'_inf, h_s'_col⟩ : ∃ c' : Color, ∃ s' : Set ℕ, s'.Infinite ∧ ∀ n ∈ s', c n = c' := by obtain ⟨c', s', h_s'_inf, _, h_s'col⟩ := infinite_pigeonhole_principle c infinite_univ use c', s' use c', (v '' s') have h_v_inj : Injective v := by intro _ _ grind split_ands · exact Infinite.image (injOn_of_injective h_v_inj (s := s')) h_s'_inf · simp only [Finset.card_eq_two] grind [Finset.pair_comm, Finset.coe_insert, Finset.coe_singleton]- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Foundations/Combinatorics/InfiniteGraphRamsey.lean:123-145
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
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.
Source project: Lean Computer Science Library
Person-level attribution pending.
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.