AFTD Auto-Formalizing Theoretical Domains

connected_intersection_density

def

For a finite group $G$ ([Group G] [Fintype G]), connected_intersection_density G : ℚ is the connected intersection density $\rho_{\mathrm{gen}}(G)$: the maximum of connection_density G S (that is, $\frac{1}{|G||S|}\sum_{s\in S} c_G(s)$ with $c_G(s) = |\{g : g \in \langle sg\rangle \lor sg \in \langle g\rangle\}|$, the knowledge-base definitions connection_density and c) over the finite set of all S : Finset G with is_generating_connection_set G S (identity-free, inverse-closed, generating $G$), taken with Finset.sup' (classical decidability). If that set of connection sets were empty the value would be $0$; it never is ($G \setminus \{1\}$ qualifies). For the trivial group the only admissible set is empty and the value is $0$ (the paper leaves the trivial group out).

Statement

noncomputable def connected_intersection_density (G : Type*) [Group G] [Fintype G] : ℚ
Defined in
arXiv:2611.26732, Definition 1.4 (equation (2)); the value 0 for the trivial group is a Lean convention, the paper excludes it
Verified
26 Nov 2026
Axioms
none listed
Built on 3
  • 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…
  • cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
Used by 3

Read back from the Lean

For a finite group G, connected_intersection_density G is defined as the maximum of connection_density G S over all generating connection sets S of G (subsets S : Finset G satisfying is_generating_connection_set G S), or 0 if no such subset exists.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

noncomputable def connected_intersection_density (G : Type*) [Group G] [Fintype G] : ℚ :=
  open Classical in
  if h : ((Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S)).Nonempty then
    ((Finset.univ : Finset (Finset G)).filter (fun S => is_generating_connection_set G S)).sup' h
      (connection_density G)
  else 0
See it in the graphDiscuss this resultChallenge it