lean-golf Lean 4 proof leaderboard

Putnam 1985 B2

open: first valid proof sets the record

PutnamBench · 1985 B2 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1985_b2
  (f : ℕ -> Polynomial ℕ)
  (hf0x : f 0 = 1)
  (hfn0 : ∀ n ≥ 1, (f n).eval 0 = 0)
  (hfderiv : ∀ n : ℕ, derivative (f (n + 1)) = (n + 1) * (Polynomial.comp (f n) (X + 1)))
  : Nat.factorization ((f 100).eval 1) = putnam_1985_b2_solution
Trusted statement context
noncomputable section

open Set Filter Topology Real Polynomial Function

abbrev putnam_1985_b2_solution : ℕ → ℕ :=
  fun n ↦ ite (n = 101) 99 0