lean-golf Lean 4 proof leaderboard

Putnam 2010 A1

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2010_a1
    (n : ℕ)
    (kboxes : ℕ → Prop)
    (npos : n > 0)
    (hkboxes : ∀ k : ℕ, kboxes k =
      (∃ boxes : Finset.Icc 1 n → Fin k, ∀ i j : Fin k,
        ∑ x ∈ Finset.univ.filter (boxes · = i), (x : ℕ) =
        ∑ x ∈ Finset.univ.filter (boxes · = j), (x : ℕ))) :
    IsGreatest kboxes (putnam_2010_a1_solution n)
Trusted statement context
noncomputable section

noncomputable abbrev putnam_2010_a1_solution : ℕ → ℕ :=
  (fun n : ℕ => Nat.ceil ((n : ℝ) / 2))