exists_generating_connection_set_connected_intersection_density
For every finite group $G$ the maximum defining $\rho_{\mathrm{gen}}(G)$ is attained: some inverse-closed generating connection set $S$ has density exactly $\rho_{\mathrm{gen}}(G)$.
Statement
theorem exists_generating_connection_set_connected_intersection_density (G : Type*) [Group G] [Fintype G] : ∃ S : Finset G, is_generating_connection_set G S ∧ connection_density G S = connected_intersection_density G
- Source
- sanity lemma for connected_intersection_density (arXiv:2611.26732, Definition 1.4)
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- connected_intersection_densityFor a finite group $G$ (
[Group G] [Fintype G]),connected_intersection_density G : ℚis the connected intersection density… - is_generating_connection_set_univ_erase_oneIn every finite group $G$, the set $G \setminus \{1\}$ of all non-identity elements is an inverse-closed generating connection set.
- connection_densityGiven a type $G$ with
[Group G]and[Fintype G], and a finite set $S : \mathrm{Finset}\ G$,connection_density G Sis the rational… - is_generating_connection_setFor a group $G$ (multiplicative,
[Group G]) and a finite set $S$ (S : Finset G),is_generating_connection_set G Sis the proposition…
- connected_intersection_densityFor a finite group $G$ (
- Used by 1
- connected_intersection_density_elementary_abelian_square_times_cyclicLet $p \ne q$ be primes and $a \ge 1$, $m = q^a$, and $G = (C_p \times C_p) \times C_{q^a}$ (as…
The proof, explained
The connected intersection density ρ_gen(G) is defined as the supremum of connection densities over all generating connection sets of the finite group G. Because G \ {1} is always an inverse-closed generating connection set, the family of such subsets is a nonempty finite set. Any function from a nonempty finite set into a linear order attains its maximum, yielding a generating connection set S whose density is exactly ρ_gen(G).
The connected intersection density ρ_gen(G) simplifies to the supremum of connection densities over the nonempty finite set of generating connection sets of G.
We enable classical logic and unfold the definition of connected_intersection_density. The density is defined conditionally: if the finset S of generating connection sets in G is nonempty, it equals the supremum of the connection densities over S; otherwise it defaults to 0. By is_generating_connection_set_univ_erase_one, the subset G \ {1} (written Finset.univ.erase 1) is a generating connection set, which proves that S is nonempty (hypothesis hne). Rewriting with dif_pos hne reduces the conditional definition to the supremum over S.
uses
is_generating_connection_set_univ_erase_one,dif_posclassical unfold connected_intersection_density have hne : ((Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S)).Nonempty := ⟨Finset.univ.erase 1, by simp [is_generating_connection_set_univ_erase_one]⟩ rw [dif_pos hne]
There exists a generating connection set S whose connection density achieves the supremum.
Because S is a nonempty finite set, Finset.exists_mem_eq_sup' applied to connection_density G produces an element S ∈ S such that the supremum equals connection_density G S.
uses
Finset.exists_mem_eq_sup'obtain ⟨S, hS, hEq⟩ := Finset.exists_mem_eq_sup' hne (connection_density G)The subset S satisfies the theorem: it is a generating connection set and its density equals ρ_gen(G).
We provide S as the existential witness. By Finset.mem_filter.mp, membership of S in the filtered finset guarantees that S is indeed a generating connection set. Finally, rewriting with the equality hEq from the previous step confirms that its connection density equals the supremum defining ρ_gen(G).
uses
Finset.mem_filter.mprefine ⟨S, (Finset.mem_filter.mp hS).2, ?_⟩ rw [hEq]
is_generating_connection_set_univ_erase_one- In any finite group G, the set G \ {1} of all non-identity elements is an inverse-closed generating connection set.
dif_pos- If a proposition c holds with proof hc, the dependent conditional expression (if h : c then t h else e) reduces to t hc.
Finset.exists_mem_eq_sup'- For any nonempty finite set s and any function f into a linearly ordered type, the supremum of f over s is attained at some element of s.
Finset.mem_filter.mp- If an element belongs to the filtered finset {x ∈ s | p x}, then it belongs to s and satisfies the predicate p.
- In Lean, connected_intersection_density is formally defined using a dependent if-then-else: it equals the supremum of connection densities if a generating connection set exists, and 0 otherwise. A paper proof treats the existence of such a set and taking the maximum as immediate, whereas Lean requires an explicit proof of nonemptiness before evaluating the conditional.
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.
theorem exists_generating_connection_set_connected_intersection_density (G : Type*) [Group G] [Fintype G] : ∃ S : Finset G, is_generating_connection_set G S ∧ connection_density G S = connected_intersection_density G := by classical unfold connected_intersection_density have hne : ((Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S)).Nonempty := ⟨Finset.univ.erase 1, by simp [is_generating_connection_set_univ_erase_one]⟩ rw [dif_pos hne] obtain ⟨S, hS, hEq⟩ := Finset.exists_mem_eq_sup' hne (connection_density G) refine ⟨S, (Finset.mem_filter.mp hS).2, ?_⟩ rw [hEq]