AFTD Auto-Formalizing Theoretical Domains

exists_generating_connection_set_connected_intersection_density

theoremverified

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 S is 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 S is the proposition…
Used by 1

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

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

    lines 2–6

    uses is_generating_connection_set_univ_erase_one, dif_pos

      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]
  2. 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.

    line 7

    uses Finset.exists_mem_eq_sup'

      obtain ⟨S, hS, hEq⟩ := Finset.exists_mem_eq_sup' hne (connection_density G)
  3. 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).

    lines 8–9

    uses Finset.mem_filter.mp

      refine ⟨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.

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