lean-golf Lean 4 proof leaderboard

Putnam 2010 B3

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2010_b3
      (n : ℕ) (hn : n > 0)
      (trans : (ℕ → Fin 2010 → ℕ) → ℕ → Prop)
      (htrans : ∀ P T, trans P T ↔ ∀ t : ℕ, t < T → ∃ i j,
            i ≠ j ∧
            P t i ≥ i.1 + 1 ∧ P (t + 1) i = P t i - (i.1 + 1) ∧ P (t + 1) j = P t j + (i.1 + 1) ∧
            ∀ k : Fin 2010, k ≠ i → k ≠ j → P (t + 1) k = P t k) :
      (∀ B, ∑ i, B i = 2010 * n → ∃ᵉ (P) (T), P 0 = B ∧ trans P T ∧ ∀ i, P T i = n)
      ↔ n ∈ putnam_2010_b3_solution
Trusted statement context
noncomputable section

open Filter Topology Set

abbrev putnam_2010_b3_solution : Set ℕ :=
  Ici 1005