lifting roots through coprime kernels (a small lean proof)

November 30, 2026


introduction

Left to Solve is a site that lists tens of thousands of open and known math problems, each stated in Lean, and accepts a solution only if the Lean kernel checks it. Claude and I took on an open lemma needing to be proved in the formalizable proof of Frobenius’ conjecture. The conjecture is true, but its proof (Iiyori and Yamaki, 1991)1 relies on the classification of finite simple groups, so the full statement is far out of reach for a Lean formalization today. The specific reduction of the proof in need of being addressed is (R1.H2.R2).

the statement

Let $G$ be a finite group, $K$ a normal subgroup, and $n > 0$ with $\gcd(\lvert K \rvert, n) = 1$. Then:

  1. $G/K$ has at most as many solutions of $y^n = 1$ as $G$ has of $x^n = 1$;
  2. every subgroup of order $n$ in $G/K$ lifts to a subgroup of order $n$ in $G$.

In Lean, as stated on the site:

def H1 : Prop :=
  ∀ (G : Type) [Group G] [Fintype G] (K : Subgroup G) [K.Normal] (n : ℕ),
    0 < n → (Nat.card K).Coprime n →
    {y : G ⧸ K | y ^ n = 1}.ncard ≤ {x : G | x ^ n = 1}.ncard ∧
    ∀ J : Subgroup (G ⧸ K), Nat.card J = n → ∃ H : Subgroup G, Nat.card H = n

the proof

Part 1. It’s enough to show that the quotient map $x \mapsto xK$ sends the roots in $G$ onto the roots in $G/K$, since a set is never larger than its preimage under a surjection.

So take a coset $gK$ with $(gK)^n = 1$. That means $g^n \in K$, and by Lagrange’s theorem in $K$, $(g^n)^{\lvert K \rvert} = 1$. Since $\lvert K \rvert$ is invertible mod $n$, pick $c$ with $\lvert K \rvert c \equiv 1 \pmod n$ and set $x = g^{\lvert K \rvert c}$. Then

\[x^n = \left(g^{n \lvert K \rvert}\right)^{c} = 1, \qquad xK = (gK)^{\lvert K \rvert c} = gK,\]

where the second equality uses $(gK)^n = 1$ and $\lvert K \rvert c \equiv 1 \pmod n$. So $x$ is a root in $G$ lying over $gK$.

Part 2. Let $J \le G/K$ have order $n$, and let $P$ be its preimage in $G$. Then $K \le P$, $K$ is normal in $P$, and $\lvert P \rvert = n \lvert K \rvert$, so $K$ has index $n$ in $P$. Since $\gcd(\lvert K \rvert, n) = 1$, the Schur–Zassenhaus theorem gives a complement $H$ to $K$ in $P$, and $\lvert H \rvert = \lvert P \rvert / \lvert K \rvert = n$.

the lean code

Mathlib already has Schur–Zassenhaus (Subgroup.exists_right_complement'_of_coprime), so most of the work in part 2 is bookkeeping: computing $\lvert P \rvert$ from index identities and moving between $K$ as a subgroup of $G$ and as a subgroup of $P$. Part 1 needed a small case split, because the modular-inverse lemma requires $n > 1$ (when $n = 1$ everything is trivially $1$).

import OMAReductions.R_opg_subgroup_formed_by_elements_of_order_dividing_n_R1_H2_R2

theorem OMA.solution : OMA.R_opg_subgroup_formed_by_elements_of_order_dividing_n_R1_H2_R2.H1 := by
  intro G _ _ K _ n hn hcop
  constructor
  · -- Every root of `y ^ n = 1` in `G ⧸ K` lifts to a root in `G`: if `(gK) ^ n = 1` then
    -- `g ^ (n * |K|) = 1`, and `x = g ^ (|K| * c)` with `|K| * c ≡ 1 [MOD n]` works.
    have hsub : {y : G ⧸ K | y ^ n = 1} ⊆
        (QuotientGroup.mk' K) '' {x : G | x ^ n = 1} := by
      intro y hy
      obtain ⟨g, rfl⟩ := QuotientGroup.mk'_surjective K y
      have hy' : (QuotientGroup.mk' K g) ^ n = 1 := hy
      have hgn : g ^ n ∈ K := by
        rw [← map_pow] at hy'
        exact (QuotientGroup.eq_one_iff _).mp hy'
      have hk : g ^ (n * Nat.card K) = 1 := by
        have h : (⟨g ^ n, hgn⟩ : K) ^ Nat.card K = 1 := pow_card_eq_one'
        rw [pow_mul]
        simpa only [SubgroupClass.coe_pow, OneMemClass.coe_one] using congrArg Subtype.val h
      rcases Nat.lt_or_ge 1 n with hn1 | hn1
      · obtain ⟨c, hc⟩ := Nat.exists_mul_mod_eq_one_of_coprime hcop hn1
        refine ⟨g ^ (Nat.card K * c), ?_, ?_⟩
        · show (g ^ (Nat.card K * c)) ^ n = 1
          rw [← pow_mul, show Nat.card K * c * n = n * Nat.card K * c by ring, pow_mul, hk,
            one_pow]
        · rw [map_pow, ← Nat.div_add_mod (Nat.card K * c) n, hc.2, pow_add, pow_mul, hy', one_pow,
            one_mul, pow_one]
      · have : n = 1 := by omega
        subst this
        refine ⟨1, by simp, ?_⟩
        simpa using hy'.symm
    calc {y : G ⧸ K | y ^ n = 1}.ncard
        ≤ ((QuotientGroup.mk' K) '' {x : G | x ^ n = 1}).ncard :=
          Set.ncard_le_ncard hsub (Set.toFinite _)
      _ ≤ {x : G | x ^ n = 1}.ncard := Set.ncard_image_le (Set.toFinite _)
  · -- Lift `J` through the coprime kernel: in the preimage `P` of `J`, the subgroup `K` is normal
    -- with order coprime to its index `n`, so Schur–Zassenhaus gives a complement of order `n`.
    intro J hJ
    let P : Subgroup G := J.comap (QuotientGroup.mk' K)
    have hKP : K ≤ P := by
      intro k hk
      show QuotientGroup.mk' K k ∈ J
      rw [QuotientGroup.mk'_apply, (QuotientGroup.eq_one_iff k).mpr hk]
      exact J.one_mem
    have hidx : P.index = J.index :=
      Subgroup.index_comap_of_surjective J (QuotientGroup.mk'_surjective K)
    have hJidx : 0 < J.index := Nat.pos_of_ne_zero Subgroup.index_ne_zero_of_finite
    have hcardP : Nat.card P = n * Nat.card K := by
      have h : Nat.card P * J.index = n * Nat.card K * J.index := by
        calc Nat.card P * J.index = Nat.card P * P.index := by rw [hidx]
          _ = Nat.card G := P.card_mul_index
          _ = Nat.card (G ⧸ K) * Nat.card K := Subgroup.card_eq_card_quotient_mul_card_subgroup K
          _ = Nat.card J * J.index * Nat.card K := by rw [J.card_mul_index]
          _ = n * Nat.card K * J.index := by rw [hJ]; ring
      exact Nat.eq_of_mul_eq_mul_right hJidx h
    let K' : Subgroup P := K.subgroupOf P
    have hK'card : Nat.card K' = Nat.card K :=
      Nat.card_congr (Subgroup.subgroupOfEquivOfLe hKP).toEquiv
    have hKpos : 0 < Nat.card K := Nat.card_pos
    have hK'idx : K'.index = n := by
      have h := K'.card_mul_index
      rw [hK'card, hcardP] at h
      exact Nat.eq_of_mul_eq_mul_left hKpos (by rw [h]; ring)
    obtain ⟨H0, hH0⟩ :=
      Subgroup.exists_right_complement'_of_coprime (N := K') (by rw [hK'card, hK'idx]; exact hcop)
    have hH0card : Nat.card H0 = n := by
      have h := hH0.card_mul_card
      rw [hK'card, hcardP] at h
      exact Nat.eq_of_mul_eq_mul_left hKpos (by rw [h]; ring)
    refine ⟨H0.map P.subtype, ?_⟩
    rw [Subgroup.card_map_of_injective P.subtype_injective, hH0card]

The proof checks against Lean 4.33.1 and the site’s pinned Mathlib, using only the standard axioms (propext, Classical.choice, Quot.sound). It passes the site’s own checker and is submitted to the site as a pull request.

a closing remark

We’ve achieved language models capable of research mathematics, and this is a terrifying phenomenon to watch unfold in real time. It is also inspiring to consider how the bounds of scientific knowledge can be pushed. I relied on Claude Opus 5.5 extensively in this proof, and despite spending time to understand the steps more deeply after it was formalized, I am unsure if this type of discovery can coexist with deep human understanding.

references

  1. N. Iiyori and H. Yamaki, “On a conjecture of Frobenius,” Bulletin of the AMS 25 (1991), 413–416. doi:10.1090/S0273-0979-1991-16084-2
  2. The Schur–Zassenhaus theorem in Mathlib: Mathlib/GroupTheory/SchurZassenhaus.lean.
  3. The problem on Left to Solve: Subgroup formed by elements of order dividing n.

Page design by Ankit Sultana