lean-golf Lean 4 proof leaderboard

USA1986 P3

open: first valid proof sets the record

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

Statement

import Mathlib.Algebra.GCDMonoid.Nat
import Mathlib.Algebra.Order.Ring.Star
import Mathlib.Data.Nat.Prime.Defs
import Mathlib.Data.ZMod.Defs
import Mathlib.RingTheory.Coprime.Lemmas
import Mathlib.Tactic.IntervalCases
import Mathlib.Tactic.LinearCombination
theorem _root_.LeanGolf.compfiles.usa1986_p3 :
    IsLeast {n : ℕ | 1 < n ∧ ∃ m, ∑ i ∈ Finset.range n, (i+1)^2 = n * m^2}
      solution
Trusted statement context
noncomputable section

namespace Usa1986P3

abbrev solution : ℕ := 337