op_2282_turan_graph_sum_eq_one
For any natural numbers n and s with 2 ≤ s ≤ n, the Turán graph T_s(n) satisfies the equality that the sum over all its edges e of 1 / |E(T_{w(e)}(n))| equals 1.
Statement
theorem op_2282_turan_graph_sum_eq_one
(n s : ℕ) (hn : 2 ≤ n) (hs2 : 2 ≤ s) (hsn : s ≤ n) :
∑ e ∈ (SimpleGraph.turanGraph n s).edgeFinset,
(1 : ℝ) / (SimpleGraph.turanGraph n (edge_max_clique_order (SimpleGraph.turanGraph n s) e)).edgeFinset.card = 1- Formalizes
- arXiv:2611.30029 after Theorem 1.4
- Verified
- 25 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- edge_max_clique_orderFor a finite simple graph G and an edge e represented as an unordered pair in Sym2 V, edge_max_clique_order G e is the maximum cardinality…
Read back from the Lean
For all natural numbers $n$ and $s$ satisfying $2 \le n$, $2 \le s$, and $s \le n$, the sum over all edges $e$ of the Turán graph $T(n, s)$ of the quantity
$$\frac{1}{|E(T(n, \omega(e)))|}$$
equals $1$ (in $\mathbb{R}$), where $\omega(e)$ is edge_max_clique_order, the maximum order (cardinality) of a clique in $T(n, s)$ containing the endpoints of $e$, and $|E(T(n, \omega(e)))|$ is the number of edges in the Turán graph on $n$ vertices with $\omega(e)$ parts.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
To show that the sum of reciprocals 1 / |E(T_{ω(e)}(n))| over all edges e of the Turán graph T_s(n) equals 1, the proof first demonstrates that every edge e has maximum containing clique size ω(e) = s. The upper bound holds because T_s(n) is (s + 1)-clique-free, and the lower bound is verified by constructing an explicit s-clique containing e with one vertex from each color class modulo s. With ω(e) = s constant on all edges, the sum reduces to |E(T_s(n))| * (1 / |E(T_s(n))|), which equals 1 because T_s(n) has at least one edge when 2 ≤ s ≤ n.
For each color class i < s, the vertex chosen by op_2282_turan_clique_vertex has residue i modulo s.
Unfolding the definition of op_2282_turan_clique_vertex, split_ifs splits into three cases: if i = u.1 % s, the vertex is u, whose residue modulo s is i; if i = v.1 % s, the vertex is v, whose residue modulo s is i; otherwise the vertex is the canonical Fin n element with value i, which satisfies i % s = i by Nat.mod_eq_of_lt because i < s.
uses
Nat.mod_eq_of_ltdsimp [op_2282_turan_clique_vertex] split_ifs with h1 h2 · exact h1.symm · exact h2.symm · exact Nat.mod_eq_of_lt i.isLt
The vertex selection function op_2282_turan_clique_vertex is injective.
Assuming two indices i, j in Fin s map to the same vertex, taking the modulo s of both sides via congr_arg and rewriting using op_2282_turan_clique_vertex_mod gives i.1 = j.1. Applying Fin.ext concludes that i = j.
uses
congr_arg,op_2282_turan_clique_vertex_mod,Fin.extintro i j hij have h := congr_arg (fun (x : Fin n) => x.1 % s) hij rw [op_2282_turan_clique_vertex_mod, op_2282_turan_clique_vertex_mod] at h exact Fin.ext h
Any edge e of T_s(n) can be written as s(u, v) with u % s ≠ v % s, and s > 0.
Representing e as an unordered pair s(u, v) using Sym2.ind, membership in the edge set of T_s(n) simplifies via SimpleGraph.mem_edgeFinset, SimpleGraph.mem_edgeSet, and SimpleGraph.turanGraph_adj to u.1 % s ≠ v.1 % s. Furthermore, since 2 ≤ s, linear arithmetic gives 0 < s.
uses
Sym2.ind,SimpleGraph.mem_edgeFinset,SimpleGraph.mem_edgeSet,SimpleGraph.turanGraph_adjinduction' e using Sym2.ind with u v simp only [SimpleGraph.mem_edgeFinset, SimpleGraph.mem_edgeSet, SimpleGraph.turanGraph_adj] at he have hs_pos : 0 < s := by omega
Every clique in T_s(n) containing the edge s(u, v) has size at most s.
The graph T_s(n) is (s + 1)-clique-free by SimpleGraph.turanGraph_cliqueFree. For any clique t containing s(u, v), if |t| > s, then Finset.exists_subset_card_eq yields a subset w ⊆ t of size s + 1, which by Set.Pairwise.mono is an (s + 1)-clique, contradicting clique-freeness. Therefore, Finset.sup_le bounds the supremum of clique sizes containing the edge by s.
uses
SimpleGraph.turanGraph_cliqueFree,Finset.sup_le,Finset.exists_subset_card_eq,Set.Pairwise.monohave hle : edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) ≤ s := by have hcf := SimpleGraph.turanGraph_cliqueFree (n := n) hs_pos dsimp [edge_max_clique_order] classical apply Finset.sup_le intro t ht simp only [Finset.mem_filter, Finset.mem_univ, true_and] at ht by_contra! h obtain ⟨w, hw_sub, hw_card⟩ := Finset.exists_subset_card_eq h have hw_clique : (SimpleGraph.turanGraph n s).IsClique (w : Set (Fin n)) := Set.Pairwise.mono (Finset.coe_subset.mpr hw_sub) ht.1 exact hcf w ⟨hw_clique, hw_card⟩
The image K of the index set under op_2282_turan_clique_vertex is an s-element clique in T_s(n).
Let f = op_2282_turan_clique_vertex and K be its image on Finset.univ. Since f is injective by op_2282_turan_clique_vertex_inj, K has cardinality s by Finset.card_image_of_injective, Finset.card_univ, and Fintype.card_fin. For distinct elements x, y in K, writing x = f(i) and y = f(j) with i ≠ j, their residues modulo s are distinct by op_2282_turan_clique_vertex_mod, which by SimpleGraph.turanGraph_adj implies they are adjacent in T_s(n). If f(i) = f(j), congr_arg and Fin.ext would contradict x ≠ y.
uses
op_2282_turan_clique_vertex_inj,Finset.card_image_of_injective,Finset.card_univ,Fintype.card_fin,SimpleGraph.turanGraph_adj,op_2282_turan_clique_vertex_mod,congr_arg,Fin.exthave hge : s ≤ edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) := by let f := op_2282_turan_clique_vertex n s hsn u v let K : Finset (Fin n) := Finset.univ.image f have hcard : K.card = s := by rw [Finset.card_image_of_injective _ (op_2282_turan_clique_vertex_inj n s hsn u v), Finset.card_univ, Fintype.card_fin] have hclique : (SimpleGraph.turanGraph n s).IsClique (K : Set (Fin n)) := by intro x hx y hy hne rw [Finset.mem_coe, Finset.mem_image] at hx hy obtain ⟨i, -, rfl⟩ := hx obtain ⟨j, -, rfl⟩ := hy rw [SimpleGraph.turanGraph_adj, op_2282_turan_clique_vertex_mod, op_2282_turan_clique_vertex_mod] intro hij apply hne exact congr_arg f (Fin.ext hij)
Both endpoints u and v belong to K.
By Sym2.toFinset_mk_eq, the vertex set of the edge is {u, v}. Since u.1 % s < s by Nat.mod_lt, u is the image under f of ⟨u.1 % s, ...⟩ by the first branch of the definition. Similarly, since u.1 % s ≠ v.1 % s, the second branch shows v is the image of ⟨v.1 % s, ...⟩. Hence {u, v} ⊆ K.
uses
Sym2.toFinset_mk_eq,Nat.mod_lthave hsub : (s(u, v) : Sym2 (Fin n)).toFinset ⊆ K := by rw [Sym2.toFinset_mk_eq, Finset.insert_subset_iff, Finset.singleton_subset_iff] refine ⟨?_, ?_⟩ · rw [Finset.mem_image] refine ⟨⟨u.1 % s, Nat.mod_lt _ hs_pos⟩, Finset.mem_univ _, ?_⟩ dsimp [f, op_2282_turan_clique_vertex] exact if_pos rfl · rw [Finset.mem_image] refine ⟨⟨v.1 % s, Nat.mod_lt _ hs_pos⟩, Finset.mem_univ _, ?_⟩ dsimp [f, op_2282_turan_clique_vertex] rw [if_neg (Ne.symm he)] exact if_pos rfl
The maximum clique order containing the edge equals s.
Because K is a clique containing {u, v}, Finset.le_sup implies s = |K| is bounded above by the maximum clique order containing the edge. Combining this with the upper bound via le_antisymm establishes that the maximum containing clique order is exactly s.
uses
Finset.le_sup,le_antisymmhave hsup : K.card ≤ edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) := by dsimp [edge_max_clique_order] classical refine Finset.le_sup (f := Finset.card) ?_ simp [hclique, hsub] rwa [hcard] at hsup exact le_antisymm hle hge
The edge set of T_s(n) is nonempty when 2 ≤ s ≤ n.
Because 2 ≤ s ≤ n, vertices 0 and 1 are valid vertices in Fin n. Modulo s, 0 % s = 0 and 1 % s = 1 by Nat.mod_eq_of_lt. Since 0 ≠ 1 by zero_ne_one, 0 and 1 are adjacent by SimpleGraph.turanGraph_adj, so s(0, 1) belongs to the edge set by SimpleGraph.mem_edgeFinset and SimpleGraph.mem_edgeSet.
uses
SimpleGraph.turanGraph_adj,Nat.mod_eq_of_lt,zero_ne_one,SimpleGraph.mem_edgeFinset,SimpleGraph.mem_edgeSethave h0 : 0 < n := by omega have h1 : 1 < n := by omega let u : Fin n := ⟨0, h0⟩ let v : Fin n := ⟨1, h1⟩ have hadj : (SimpleGraph.turanGraph n s).Adj u v := by rw [SimpleGraph.turanGraph_adj] dsimp [u, v] rw [Nat.mod_eq_of_lt (by omega)] exact zero_ne_one refine ⟨s(u, v), ?_⟩ rw [SimpleGraph.mem_edgeFinset, SimpleGraph.mem_edgeSet] exact hadj
For each edge e of T_s(n), the maximum clique order containing e is s, so the summand 1 / |E(T_{ω(e)}(n))| equals 1 / |E(T_s(n))|.
By op_2282_turan_edge_max_clique_order_eq, any edge e in T_s(n) has maximum containing clique size s. Rewriting the denominator with this identity makes every term in the sum identically equal to 1 / |E(T_s(n))|.
uses
op_2282_turan_edge_max_clique_order_eqhave _ := hn have h_eq : ∀ e ∈ (SimpleGraph.turanGraph n s).edgeFinset, (1 : ℝ) / (SimpleGraph.turanGraph n (edge_max_clique_order (SimpleGraph.turanGraph n s) e)).edgeFinset.card = (1 : ℝ) / (SimpleGraph.turanGraph n s).edgeFinset.card := by intro e he rw [op_2282_turan_edge_max_clique_order_eq n s hs2 hsn he]
The sum of constant reciprocals simplifies to |E(T_s(n))| * (1 / |E(T_s(n))|).
Replacing the summand with 1 / |E(T_s(n))| via Finset.sum_congr, the summation over E(T_s(n)) reduces by Finset.sum_const to |E(T_s(n))| • (1 / |E(T_s(n))|), which by nsmul_eq_mul equals the real product |E(T_s(n))| * (1 / |E(T_s(n))|).
uses
Finset.sum_congr,Finset.sum_const,nsmul_eq_mulrw [Finset.sum_congr rfl h_eq] rw [Finset.sum_const, nsmul_eq_mul]
The number of edges in T_s(n) is non-zero, and the product evaluates to 1.
Since 2 ≤ s ≤ n, the edge set of T_s(n) is nonempty by op_2282_turan_edgeFinset_nonempty, so its cardinality is non-zero. Casting this to the real numbers via Nat.cast_ne_zero ensures the denominator is non-zero, and mul_one_div_cancel concludes that the product is 1.
uses
op_2282_turan_edgeFinset_nonempty,Nat.cast_ne_zero,mul_one_div_cancelhave hne : (SimpleGraph.turanGraph n s).edgeFinset.card ≠ 0 := (op_2282_turan_edgeFinset_nonempty n s hs2 hsn).card_pos.ne' have hne_real : ((SimpleGraph.turanGraph n s).edgeFinset.card : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hne exact mul_one_div_cancel hne_real
Nat.mod_eq_of_lt- If a natural number a is strictly less than b, then a % b = a.
congr_arg- Applying a function to equal inputs produces equal outputs.
op_2282_turan_clique_vertex_mod- The representative vertex chosen by op_2282_turan_clique_vertex for index i has residue i modulo s.
Fin.ext- Two elements of Fin n are equal if and only if their underlying natural values are equal.
Sym2.ind- To prove a property for all unordered pairs in Sym2, it suffices to prove it for pairs of the form s(x, y).
SimpleGraph.mem_edgeFinset- An edge belongs to the finite edge set edgeFinset of a graph if and only if it belongs to its edge set edgeSet.
SimpleGraph.mem_edgeSet- An unordered pair s(v, w) is in the edge set of a graph if and only if v and w are adjacent.
SimpleGraph.turanGraph_adj- Two vertices in the Turán graph T_r(n) are adjacent if and only if their residues modulo r are distinct.
SimpleGraph.turanGraph_cliqueFree- The Turán graph T_r(n) contains no clique of size r + 1.
Finset.sup_le- The supremum of a function over a finite set is at most a if the function value at every element is at most a.
Finset.exists_subset_card_eq- Any finite set with at least k elements contains a subset of cardinality k.
Set.Pairwise.mono- A subset of a pairwise-related set under a relation r is also pairwise-related under r.
op_2282_turan_clique_vertex_inj- The function op_2282_turan_clique_vertex is injective.
Finset.card_image_of_injective- The image of a finite set under an injective function has the same cardinality as the original set.
Finset.card_univ- The cardinality of the universal finset Finset.univ of a type is the cardinality of that type.
Fintype.card_fin- The finite type Fin n has cardinality n.
Sym2.toFinset_mk_eq- The finset of vertices in the unordered pair s(x, y) is the pair set {x, y}.
Nat.mod_lt- For any positive divisor y, the remainder x % y is strictly less than y.
Finset.le_sup- The value of a function at any element of a finite set is at most the supremum of the function over the set.
le_antisymm- If a ≤ b and b ≤ a in a partial order, then a = b.
zero_ne_one- Zero is not equal to one.
op_2282_turan_edge_max_clique_order_eq- For any edge e in the Turán graph T_s(n), the maximum size of a clique containing e is s.
Finset.sum_congr- Two sums over the same finite set are equal if their summands agree on all elements.
Finset.sum_const- Summing a constant value over a finite set equals the cardinality of the set scalar-multiplied by the constant.
nsmul_eq_mul- Natural scalar multiplication in a semiring equals multiplication by the natural number cast into the ring.
op_2282_turan_edgeFinset_nonempty- When 2 ≤ s ≤ n, the Turán graph T_s(n) has at least one edge.
Nat.cast_ne_zero- A natural number cast into a characteristic-zero ring is non-zero if and only if the natural number itself is non-zero.
mul_one_div_cancel- For any non-zero element a in a group with zero, a * (1 / a) = 1.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
def op_2282_turan_clique_vertex (n s : ℕ) (hsn : s ≤ n) (u v : Fin n) (i : Fin s) : Fin n := if i.1 = u.1 % s then u else if i.1 = v.1 % s then v else ⟨i.1, i.isLt.trans_le hsn⟩lemma op_2282_turan_clique_vertex_mod (n s : ℕ) (hsn : s ≤ n) (u v : Fin n) (i : Fin s) : (op_2282_turan_clique_vertex n s hsn u v i).1 % s = i.1 := by dsimp [op_2282_turan_clique_vertex] split_ifs with h1 h2 · exact h1.symm · exact h2.symm · exact Nat.mod_eq_of_lt i.isLtlemma op_2282_turan_clique_vertex_inj (n s : ℕ) (hsn : s ≤ n) (u v : Fin n) : Function.Injective (op_2282_turan_clique_vertex n s hsn u v) := by intro i j hij have h := congr_arg (fun (x : Fin n) => x.1 % s) hij rw [op_2282_turan_clique_vertex_mod, op_2282_turan_clique_vertex_mod] at h exact Fin.ext htheorem op_2282_turan_edge_max_clique_order_eq (n s : ℕ) (hs2 : 2 ≤ s) (hsn : s ≤ n) {e : Sym2 (Fin n)} (he : e ∈ (SimpleGraph.turanGraph n s).edgeFinset) : edge_max_clique_order (SimpleGraph.turanGraph n s) e = s := by induction' e using Sym2.ind with u v simp only [SimpleGraph.mem_edgeFinset, SimpleGraph.mem_edgeSet, SimpleGraph.turanGraph_adj] at he have hs_pos : 0 < s := by omega have hle : edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) ≤ s := by have hcf := SimpleGraph.turanGraph_cliqueFree (n := n) hs_pos dsimp [edge_max_clique_order] classical apply Finset.sup_le intro t ht simp only [Finset.mem_filter, Finset.mem_univ, true_and] at ht by_contra! h obtain ⟨w, hw_sub, hw_card⟩ := Finset.exists_subset_card_eq h have hw_clique : (SimpleGraph.turanGraph n s).IsClique (w : Set (Fin n)) := Set.Pairwise.mono (Finset.coe_subset.mpr hw_sub) ht.1 exact hcf w ⟨hw_clique, hw_card⟩ have hge : s ≤ edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) := by let f := op_2282_turan_clique_vertex n s hsn u v let K : Finset (Fin n) := Finset.univ.image f have hcard : K.card = s := by rw [Finset.card_image_of_injective _ (op_2282_turan_clique_vertex_inj n s hsn u v), Finset.card_univ, Fintype.card_fin] have hclique : (SimpleGraph.turanGraph n s).IsClique (K : Set (Fin n)) := by intro x hx y hy hne rw [Finset.mem_coe, Finset.mem_image] at hx hy obtain ⟨i, -, rfl⟩ := hx obtain ⟨j, -, rfl⟩ := hy rw [SimpleGraph.turanGraph_adj, op_2282_turan_clique_vertex_mod, op_2282_turan_clique_vertex_mod] intro hij apply hne exact congr_arg f (Fin.ext hij) have hsub : (s(u, v) : Sym2 (Fin n)).toFinset ⊆ K := by rw [Sym2.toFinset_mk_eq, Finset.insert_subset_iff, Finset.singleton_subset_iff] refine ⟨?_, ?_⟩ · rw [Finset.mem_image] refine ⟨⟨u.1 % s, Nat.mod_lt _ hs_pos⟩, Finset.mem_univ _, ?_⟩ dsimp [f, op_2282_turan_clique_vertex] exact if_pos rfl · rw [Finset.mem_image] refine ⟨⟨v.1 % s, Nat.mod_lt _ hs_pos⟩, Finset.mem_univ _, ?_⟩ dsimp [f, op_2282_turan_clique_vertex] rw [if_neg (Ne.symm he)] exact if_pos rfl have hsup : K.card ≤ edge_max_clique_order (SimpleGraph.turanGraph n s) s(u, v) := by dsimp [edge_max_clique_order] classical refine Finset.le_sup (f := Finset.card) ?_ simp [hclique, hsub] rwa [hcard] at hsup exact le_antisymm hle hgelemma op_2282_turan_edgeFinset_nonempty (n s : ℕ) (hs2 : 2 ≤ s) (hsn : s ≤ n) : (SimpleGraph.turanGraph n s).edgeFinset.Nonempty := by have h0 : 0 < n := by omega have h1 : 1 < n := by omega let u : Fin n := ⟨0, h0⟩ let v : Fin n := ⟨1, h1⟩ have hadj : (SimpleGraph.turanGraph n s).Adj u v := by rw [SimpleGraph.turanGraph_adj] dsimp [u, v] rw [Nat.mod_eq_of_lt (by omega)] exact zero_ne_one refine ⟨s(u, v), ?_⟩ rw [SimpleGraph.mem_edgeFinset, SimpleGraph.mem_edgeSet] exact hadj/-- Every Turan graph T_s(n) achieves equality in the exact edge-localized Turan inequality. -/theorem op_2282_turan_graph_sum_eq_one (n s : ℕ) (hn : 2 ≤ n) (hs2 : 2 ≤ s) (hsn : s ≤ n) : ∑ e ∈ (SimpleGraph.turanGraph n s).edgeFinset, (1 : ℝ) / (SimpleGraph.turanGraph n (edge_max_clique_order (SimpleGraph.turanGraph n s) e)).edgeFinset.card = 1 := by have _ := hn have h_eq : ∀ e ∈ (SimpleGraph.turanGraph n s).edgeFinset, (1 : ℝ) / (SimpleGraph.turanGraph n (edge_max_clique_order (SimpleGraph.turanGraph n s) e)).edgeFinset.card = (1 : ℝ) / (SimpleGraph.turanGraph n s).edgeFinset.card := by intro e he rw [op_2282_turan_edge_max_clique_order_eq n s hs2 hsn he] rw [Finset.sum_congr rfl h_eq] rw [Finset.sum_const, nsmul_eq_mul] have hne : (SimpleGraph.turanGraph n s).edgeFinset.card ≠ 0 := (op_2282_turan_edgeFinset_nonempty n s hs2 hsn).card_pos.ne' have hne_real : ((SimpleGraph.turanGraph n s).edgeFinset.card : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hne exact mul_one_div_cancel hne_real