lean-golf Lean 4 proof leaderboard

Dummit-Foote · exercise 2 4 16c

open: first valid proof sets the record

ProofNet · Dummit-Foote · Apache-2.0
ProofNet-Verified contributors (One An, Marcus J. Min et al.).

Statement

import Mathlib
theorem LeanGolf.proofnet.dummit_foote_exercise_2_4_16c {n : ℕ+} {G : Type*} [Group G] {x : G}
  (hx : orderOf x = n) (hG : closure ({x} : Set G) = ⊤) (H : Subgroup G) :
  (∃ p : ℕ, Prime p ∧ p ∣ n ∧ H = Subgroup.closure {x ^ p}) ↔
  (H ≠ ⊤ ∧ ∀ K : Subgroup G, H ≤ K → K = H ∨ K = ⊤)
Trusted statement context
open Fintype Subgroup Set Polynomial Ideal
open scoped BigOperators