AFTD Auto-Formalizing Theoretical Domains

connection_density_le_connected_intersection_density

theoremverified

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 S is the proposition…
  • connection_densityGiven a type $G$ with [Group G] and [Fintype G], and a finite set $S : \mathrm{Finset}\ G$, connection_density G S is the rational…
Used by 1

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.

  1. 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$.

    lines 2–3

      classical
      unfold connected_intersection_density
  2. The 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.

    lines 4–6

    uses dif_pos

      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⟩]
  3. 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.

    line 7

    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`.

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

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
See it in the graphDiscuss this resultChallenge it