lean-golf Lean 4 proof leaderboard

Putnam 1997 A6

open: first valid proof sets the record

PutnamBench · 1997 A6 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1997_a6
  (n : ℤ)
  (hn : n > 0)
  (x : ℝ → (ℤ → ℝ))
  (hx0 : ∀ c, x c 0 = 0)
  (hx1 : ∀ c, x c 1 = 1)
  (hxk : ∀ c, ∀ k ≥ 0, x c (k + 2) = (c*(x c (k + 1)) - (n - k)*(x c k))/(k + 1))
  (S : Set ℝ)
  (hS : S = {c : ℝ | x c (n + 1) = 0}) :
  ∀ k : Set.Icc 1 n, x (sSup S) k = putnam_1997_a6_solution n k
Trusted statement context
noncomputable section

open Filter Topology

abbrev putnam_1997_a6_solution : ℤ → ℤ → ℝ :=
  fun n k => Nat.choose (n.toNat-1) (k.toNat-1)