lean-golf Lean 4 proof leaderboard

Putnam 1982 B2

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1982_b2
(A : ℝ × ℝ → ℕ)
(g I : ℝ)
(hA : A = fun (x, y) => {(m, n) : ℤ × ℤ | m^2 + n^2 ≤ x^2 + y^2}.ncard)
(hg : g = ∑' k : ℕ, Real.exp (-k^2))
(hI : I = ∫ y : ℝ, ∫ x : ℝ, A (x, y) * Real.exp (-x^2 - y^2))
: I = putnam_1982_b2_solution.eval g
Trusted statement context
noncomputable section

open Set Function Filter Topology Polynomial Real

noncomputable abbrev putnam_1982_b2_solution : Polynomial ℝ :=
  C Real.pi * (2*X - 1)^2