lean-golf Lean 4 proof leaderboard

Putnam 1986 A6

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1986_a6
(n : ℕ)
(npos : n > 0)
(a : ℕ → ℝ)
(b : ℕ → ℕ)
(bpos : ∀ i ∈ Finset.Icc 1 n, b i > 0)
(binj : ∀ i ∈ Finset.Icc 1 n, ∀ j ∈ Finset.Icc 1 n, b i = b j → i = j)
(f : Polynomial ℝ)
(hf : ∀ x : ℝ, (1 - x) ^ n * f.eval x = 1 + ∑ i : Finset.Icc 1 n, (a i) * x ^ (b i))
: (f.eval 1 = putnam_1986_a6_solution b n)
Trusted statement context
noncomputable section

open  Real Equiv

noncomputable abbrev putnam_1986_a6_solution : (ℕ → ℕ) → ℕ → ℝ :=
  fun b n ↦ (∏ i : Finset.Icc 1 n, b i) / Nat.factorial n