lean-golf Lean 4 proof leaderboard

USA2018 P3

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3

Statement

import Mathlib.Algebra.Order.Star.Basic
import Mathlib.Data.Nat.Choose.Sum
import Mathlib.Data.Nat.Totient
import Mathlib.NumberTheory.Padics.PadicVal.Basic
theorem _root_.LeanGolf.compfiles.usa2018_p3 (n : ℕ) (hn : 2 ≤ n) (k : ℕ) (_hk : 1 ≤ k)
    (h : ∀ p : ℕ, p.Prime → p ∣ n.totient → p ∣ n) :
    n.totient ∣ ∑ a ∈ (Finset.range n).filter (Nat.Coprime n), a ^ k
Trusted statement context
namespace Usa2018P3