Title:Lemma regular_saturationNumber_lower_bound · TxGraffiti Conjecture 3: independent domination versus saturation (regular)
Reuse this lemma — paste it into your Solution.lean, before the theorem that uses it
/-- Intermediate lemma (nosorry): Universal double-counting lower bound on μ*(G) for r-regular graphs: any maximal matching M covers 2|M| vertices leaving an independent set U with r|U| ≤ 2(r-1)|M|, so r|V| ≤ (4r-2)μ*(G). -/
theorem regular_saturationNumber_lower_bound (V : Type) [Fintype V] [DecidableEq V]
(G : SimpleGraph V) [DecidableRel G.Adj]
(r : ℕ) (hReg : ∀ v, G.degree v = r) (hr : 1 ≤ r) :
r * Fintype.card V ≤ (4 * r - 2) * G.saturationNumber := by
classical
obtain ⟨M, hM, hMcard⟩ := exists_maximal_matching_eq_saturationNumber V G
let S : Finset V := M.biUnion Sym2.toFinset
let U : Finset V := Finset.univ \ S
have hdisj_M : ∀ e₁ ∈ M, ∀ e₂ ∈ M, e₁ ≠ e₂ → Disjoint e₁.toFinset e₂.toFinset := by
intro e₁ h1 e₂ h2 hne
rw [Finset.disjoint_left]
intro v hv1 hv2
rw [Sym2.mem_toFinset] at hv1 hv2
rcases hM.1.2 e₁ h1 e₂ h2 with rfl | hdisj
· exact hne rfl
· exact hdisj v ⟨hv1, hv2⟩
have hcard2 : ∀ e ∈ M, e.toFinset.card = 2 := by
intro e he
exact Sym2.card_toFinset_of_not_isDiag e (G.not_isDiag_of_mem_edgeSet (hM.1.1 e he))
have hScard : S.card = 2 * M.card := by
rw [Finset.card_biUnion hdisj_M, Finset.sum_congr rfl hcard2, Finset.sum_const, smul_eq_mul]
omega
have hSU : S.card + U.card = Fintype.card V := by
have := Finset.card_sdiff_add_card_eq_card (Finset.subset_univ S)
rw [Finset.card_univ] at this
change S.card + (Finset.univ \ S).card = Fintype.card V
omega
-- Every unmatched vertex has all its neighbors in S
have hU_nb : ∀ u ∈ U, G.neighborFinset u ⊆ S := by
intro u hu v hv
rw [SimpleGraph.mem_neighborFinset] at hv
by_contra hvS
have huS : u ∉ S := (Finset.mem_sdiff.mp hu).2
have he_edge : s(u, v) ∈ G.edgeSet := hv
have he_notM : s(u, v) ∉ M := by
intro hmem
exact huS (Finset.mem_biUnion.mpr ⟨s(u, v), hmem, Sym2.mem_toFinset.mpr (Sym2.mem_mk_left u v)⟩)
apply hM.2 s(u, v) he_edge he_notM
refine ⟨?_, ?_⟩
· intro e he
rw [Finset.mem_insert] at he
rcases he with rfl | he
· exact he_edge
· exact hM.1.1 e he
· intro e₁ h1 e₂ h2
rw [Finset.mem_insert] at h1 h2
rcases h1 with rfl | h1 <;> rcases h2 with rfl | h2
· exact Or.inl rfl
· right; intro x ⟨hx1, hx2⟩
rw [Sym2.mem_iff] at hx1
rcases hx1 with rfl | rfl
· exact huS (Finset.mem_biUnion.mpr ⟨e₂, h2, Sym2.mem_toFinset.mpr hx2⟩)
· exact hvS (Finset.mem_biUnion.mpr ⟨e₂, h2, Sym2.mem_toFinset.mpr hx2⟩)
· right; intro x ⟨hx1, hx2⟩
rw [Sym2.mem_iff] at hx2
rcases hx2 with rfl | rfl
· exact huS (Finset.mem_biUnion.mpr ⟨e₁, h1, Sym2.mem_toFinset.mpr hx1⟩)
· exact hvS (Finset.mem_biUnion.mpr ⟨e₁, h1, Sym2.mem_toFinset.mpr hx1⟩)
· exact hM.1.2 e₁ h1 e₂ h2
-- Every matched vertex has at least one neighbor in S, hence at most r - 1 in U
have hS_nb : ∀ v ∈ S, (G.neighborFinset v ∩ U).card ≤ r - 1 := by
intro v hv
rw [Finset.mem_biUnion] at hv
obtain ⟨e, heM, hve⟩ := hv
rw [Sym2.mem_toFinset] at hve
obtain ⟨w, rfl⟩ := Sym2.mem_iff_exists.mp hve
have hvw : G.Adj v w := hM.1.1 s(v, w) heM
have hwS : w ∈ S := Finset.mem_biUnion.mpr ⟨s(v, w), heM, Sym2.mem_toFinset.mpr (Sym2.mem_mk_right v w)⟩
have hw_notU : w ∉ U := fun h => (Finset.mem_sdiff.mp h).2 hwS
have hsub : G.neighborFinset v ∩ U ⊆ (G.neighborFinset v).erase w := by
intro x hx
rw [Finset.mem_inter] at hx
exact Finset.mem_erase.mpr ⟨fun hEq => hw_notU (hEq ▸ hx.2), hx.1⟩
have h1 := Finset.card_le_card hsub
have hw_nb : w ∈ G.neighborFinset v := (SimpleGraph.mem_neighborFinset G v w).mpr hvw
have h2 : ((G.neighborFinset v).erase w).card + 1 = (G.neighborFinset v).card :=
Finset.card_erase_add_one hw_nb
rw [SimpleGraph.card_neighborFinset_eq_degree, hReg v] at h2
omega
-- Double counting edges between U and S
have hdouble : ∑ u ∈ U, (G.neighborFinset u ∩ S).card = ∑ v ∈ S, (G.neighborFinset v ∩ U).card := by
have hL : ∀ u ∈ U, (G.neighborFinset u ∩ S).card = ∑ v ∈ S, if G.Adj u v then 1 else 0 := by
intro u _
rw [Finset.sum_boole, Nat.cast_id]
congr 1; ext v; simp [SimpleGraph.mem_neighborFinset, and_comm]
have hR : ∀ v ∈ S, (G.neighborFinset v ∩ U).card = ∑ u ∈ U, if G.Adj u v then 1 else 0 := by
intro v _
rw [Finset.sum_boole, Nat.cast_id]
congr 1; ext u; simp [SimpleGraph.mem_neighborFinset, SimpleGraph.adj_comm, and_comm]
rw [Finset.sum_congr rfl hL, Finset.sum_congr rfl hR, Finset.sum_comm]
have hLHS : ∑ u ∈ U, (G.neighborFinset u ∩ S).card = U.card * r := by
have hEq : ∀ u ∈ U, (G.neighborFinset u ∩ S).card = r := by
intro u hu
rw [Finset.inter_eq_left.mpr (hU_nb u hu), SimpleGraph.card_neighborFinset_eq_degree, hReg u]
rw [Finset.sum_congr rfl hEq, Finset.sum_const, smul_eq_mul]
have hRHS : ∑ v ∈ S, (G.neighborFinset v ∩ U).card ≤ S.card * (r - 1) := by
calc ∑ v ∈ S, (G.neighborFinset v ∩ U).card
≤ ∑ _v ∈ S, (r - 1) := Finset.sum_le_sum hS_nb
_ = S.card * (r - 1) := by rw [Finset.sum_const, smul_eq_mul]
have hineq : U.card * r ≤ S.card * (r - 1) := by omega
rw [← hMcard]
have hstep : r * Fintype.card V = r * S.card + U.card * r := by
rw [← hSU, mul_add, mul_comm U.card r]
have hstep2 : r * S.card + S.card * (r - 1) = (4 * r - 2) * M.card := by
rw [hScard]
zify [hr, (by omega : 2 ≤ 4 * r)]
ring
omegaFrom the first verified proof, s-3vm03d811a (lemma proofs are public). If it relies on helper lemmas, copy them too.
Problem: Universal double-counting lower bound on μ*(G) for r-regular graphs: any maximal matching M covers 2|M| vertices leaving an independent set U with r|U| ≤ 2(r-1)|M|, so r|V| ≤ (4r-2)μ*(G). … Full statement & Lean theorem →
Intermediate steps towards this problem. Statements are checked by Lean automatically — no review needed. A proved lemma can be pasted into any proof; it earns nothing when proved; the first proof of the problem that uses it gives its prover +20 and its proposer +5. How lemmas work · All lemmas
No lemma yet. Break the problem into steps: propose one below, or submit a partial proof and share what is left open.
Sign in to propose a lemma.