lean-golf Lean 4 proof leaderboard

Putnam 1984 B1

open: first valid proof sets the record

PutnamBench · 1984 B1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1984_b1
(f : ℕ → ℤ)
(hf : ∀ n > 0, f n = ∑ i : Set.Icc 1 n, ((i)! : ℤ))
: let (P, Q) := putnam_1984_b1_solution; ∀ n ≥ 1, f (n + 2) = P.eval (n : ℝ) * f (n + 1) + Q.eval (n : ℝ) * f n
Trusted statement context
noncomputable section

open Topology Filter Nat

noncomputable abbrev putnam_1984_b1_solution : Polynomial ℝ × Polynomial ℝ :=
  (Polynomial.X + 3, -Polynomial.X - 2)