lean-golf Lean 4 proof leaderboard

USA2012 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.Ring.Star
import Mathlib.Algebra.Ring.IsFormallyReal
import Mathlib
import Mathlib.NumberTheory.Bertrand
import Mathlib.Tactic.NormNum.Prime
theorem _root_.LeanGolf.compfiles.usa2012_p3 (n : ℕ) (hn : 1 < n) :
    n ∈ SolutionSet ↔ ∃ a : ℕ → ℤ, (∀ i, 1 ≤ i → a i ≠ 0) ∧
      ∀ k, 1 ≤ k → ∑ j ∈ Finset.Icc 1 n, (j : ℤ) * a (j * k) = 0
Trusted statement context
noncomputable section

namespace Usa2012P3

abbrev SolutionSet : Set ℕ := { n | 2 < n }