connection_density_le_connected_intersection_density
For every finite group $G$ and every inverse-closed generating connection set $S$, the density of $S$ is at most the connected intersection density $\rho_{\mathrm{gen}}(G)$.
Statement
theorem connection_density_le_connected_intersection_density (G : Type*) [Group G] [Fintype G] (S : Finset G) (hS : 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 3
- connected_intersection_densityFor a finite group $G$ (
[Group G] [Fintype G]),connected_intersection_density G : ℚis the connected intersection density… - 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… - 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…
- 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 $\rho_{\mathrm{gen}}(G)$ is defined as the supremum of connection densities across all generating connection sets of $G$ (or 0 if no such set exists). Since $S$ is assumed to be a generating connection set, the collection is nonempty, so the definition reduces to the supremum over all such sets. The inequality then holds directly because the value at $S$ is bounded by the supremum over the collection.
The goal is rewritten in terms of the conditional definition of connected intersection density.
We enable classical logic and unfold the definition of `connected_intersection_density`. By definition, it is an `if-then-else` expression: if the collection of generating connection sets of $G$ is nonempty, it evaluates to the supremum of `connection_density G` over that collection; otherwise, it evaluates to $0$.
classical unfold connected_intersection_densityThe connected intersection density simplifies to the supremum over all generating connection sets.
Since $S$ is a generating connection set by hypothesis `hS`, it belongs to the filtered universe of generating connection sets (`hmem`). This exhibits a witness `⟨S, hmem⟩` that the collection is nonempty. Rewriting with `dif_pos` then resolves the `if-then-else` to its positive branch, namely the supremum of connection densities over all generating connection sets.
uses
dif_poshave hmem : S ∈ (Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S) := by simp [hS] rw [dif_pos ⟨S, hmem⟩]
The connection density of $S$ is at most the connected intersection density of $G$.
Because $S$ is an element of the collection of generating connection sets (`hmem`), the lemma `Finset.le_sup'` guarantees that the connection density of $S$ is at most the supremum of connection densities over that collection.
uses
Finset.le_sup'convert Finset.le_sup' (connection_density G) hmem
dif_pos- For any proposition `c` that holds (witnessed by `hc`), a dependent conditional `if h : c then t h else e` simplifies to `t hc`.
Finset.le_sup'- For any element `b` in a finite set `s`, the value `f b` is bounded above by the supremum `s.sup' h f` of `f` over `s`.
- The use of `convert` on line 7 handles a formal detail: `Finset.sup'` takes a proof that the finset is nonempty, and `convert` unifies the goal with `Finset.le_sup'` while silently discharging the proof irrelevance between the two nonemptiness witnesses.
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 connection_density_le_connected_intersection_density (G : Type*) [Group G] [Fintype G] (S : Finset G) (hS : is_generating_connection_set G S) : connection_density G S ≤ connected_intersection_density G := by classical unfold connected_intersection_density have hmem : S ∈ (Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S) := by simp [hS] rw [dif_pos ⟨S, hmem⟩] convert Finset.le_sup' (connection_density G) hmem