AFTD Auto-Formalizing Theoretical Domains

is_generating_connection_set_univ_erase_one

theoremverified

In every finite group $G$, the set $G \setminus \{1\}$ of all non-identity elements is an inverse-closed generating connection set.

Statement

theorem is_generating_connection_set_univ_erase_one (G : Type*) [Group G] [Fintype G] [DecidableEq G] : is_generating_connection_set G (Finset.univ.erase 1)
Source
sanity lemma for connected_intersection_density (arXiv:2611.26732, Definition 1.4: the maximum exists because G \ {e} is admissible)
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • 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 proof verifies the three defining conditions of a generating connection set for the set S = G \ {1}. First, 1 ∉ S holds immediately by construction. Second, S is closed under taking inverses because s ≠ 1 implies s⁻¹ ≠ 1. Finally, the subgroup generated by S contains every element of G, because the identity element 1 is in every subgroup and every non-identity element g ≠ 1 is already in S.

  1. To show that G \ {1} is a generating connection set, it suffices to prove that it is closed under inversion and that its subgroup closure is the entire group G.

    By definition, a generating connection set must not contain 1, must be closed under taking inverses, and must generate the whole group. The identity element 1 does not belong to G \ {1} by definition of erasing 1, which simp closes immediately, leaving the other two goals.

    line 2

      refine ⟨by simp, fun s hs => ?_, ?_⟩
  2. The set G \ {1} is closed under inversion.

    Rewriting with `Finset.mem_erase`, `Finset.mem_univ`, and `and_true` simplifies membership of an element s in G \ {1} to s ≠ 1. If s ≠ 1, then s⁻¹ ≠ 1 by `inv_ne_one.mpr`, so s⁻¹ is also in G \ {1}.

    lines 3–4

    uses Finset.mem_erase, Finset.mem_univ, and_true, inv_ne_one.mpr

      · simp only [Finset.mem_erase, Finset.mem_univ, and_true] at hs ⊢
        exact inv_ne_one.mpr hs
  3. To show that the subgroup generated by G \ {1} is all of G, it suffices to show that every element g ∈ G belongs to ⟨G \ {1}⟩.

    By `eq_top_iff`, proving that the subgroup closure is the top subgroup ⊤ is equivalent to showing ⊤ ≤ Subgroup.closure (G \ {1}). We introduce an arbitrary element g ∈ G.

    lines 5–6

    uses eq_top_iff

      · rw [eq_top_iff]
        intro g _
  4. If g = 1, then g belongs to the subgroup generated by G \ {1}.

    We split into cases on whether g = 1. In the positive case, substituting g = 1 reduces the goal to showing 1 belongs to the generated subgroup, which holds for any subgroup by `one_mem`.

    lines 7–8

    uses one_mem

        by_cases hg : g = 1
        · rw [hg]; exact one_mem _
  5. If g ≠ 1, then g belongs to the subgroup generated by G \ {1}.

    Since g ≠ 1, g is an element of the generating set G \ {1}. Any element of a generating set belongs to the generated subgroup by `Subgroup.subset_closure`.

    line 9

    uses Subgroup.subset_closure

        · exact Subgroup.subset_closure (by simp [hg])
and_true
Conjunction of a proposition p with True simplifies to p.
eq_top_iff
An element of a partially ordered set with a top element equals ⊤ if and only if ⊤ is less than or equal to it.
one_mem
The identity element 1 belongs to any subobject with a OneMemClass instance, such as a subgroup.
Subgroup.subset_closure
A set is contained in the subgroup closure of itself.
Finset.mem_erase
An element belongs to a finite set with one element removed if and only if it is not the removed element and belongs to the original set.
Finset.mem_univ
Every element of a finite type belongs to the universal finite set `Finset.univ`.
inv_ne_one.mpr
If an element in a division monoid is not equal to 1, then its inverse is not equal to 1.

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 is_generating_connection_set_univ_erase_one (G : Type*) [Group G] [Fintype G] [DecidableEq G] : is_generating_connection_set G (Finset.univ.erase 1) := by  refine ⟨by simp, fun s hs => ?_, ?_⟩  · simp only [Finset.mem_erase, Finset.mem_univ, and_true] at hs ⊢    exact inv_ne_one.mpr hs  · rw [eq_top_iff]    intro g _    by_cases hg : g = 1    · rw [hg]; exact one_mem _    · exact Subgroup.subset_closure (by simp [hg])
See it in the graphDiscuss this resultChallenge it