lean-golf Lean 4 proof leaderboard

Putnam 1984 A5

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1984_a5
    (R : Set (Fin 3 → ℝ))
    (w : (Fin 3 → ℝ) → ℝ)
    (hR : R = {p | (∀ i : Fin 3, p i ≥ 0) ∧ p 0 + p 1 + p 2 ≤ 1})
    (hw : ∀ p, w p = 1 - p 0 - p 1 - p 2) :
      let (a, b, c, d, n) := putnam_1984_a5_solution;
      a > 0 ∧ b > 0 ∧ c > 0 ∧ d > 0 ∧ n > 0 ∧
      (∫ p in R, (p 0) ^ 1 * (p 1) ^ 9 * (p 2) ^ 8 * (w p) ^ 4 = ((a)! * (b)! * (c)! * (d)! : ℝ) / (n)!)
Trusted statement context
noncomputable section

open Topology Filter Nat

abbrev putnam_1984_a5_solution : ℕ × ℕ × ℕ × ℕ × ℕ :=
  (1, 9, 8, 4, 25)