lean-golf Lean 4 proof leaderboard

Putnam 2003 A1

open: first valid proof sets the record

PutnamBench · 2003 A1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2003_a1
(n : ℕ) (hn : n > 0)
: Set.encard {a : ℕ → ℤ |
  ∃ k > 0, (∑ i : Fin k, a i = n) ∧
    (∀ i : Fin k, a i > 0) ∧
    (∀ i : Fin (k - 1), a i ≤ a (i + 1)) ∧
    a (k - 1) ≤ a 0 + 1 ∧ (∀ i ≥ k, a i = 0)}
  = putnam_2003_a1_solution n
Trusted statement context
noncomputable section

open MvPolynomial

abbrev putnam_2003_a1_solution : ℕ → ℕ :=
  fun n => n