lean-golf Lean 4 proof leaderboard

Putnam 1983 B5

open: first valid proof sets the record

PutnamBench · 1983 B5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1983_b5
(dist_fun : ℝ → ℝ)
(hdist_fun : dist_fun = fun (x : ℝ) ↦ min (x - ⌊x⌋) (⌈x⌉ - x))
(fact : Tendsto (fun N ↦ ∏ n ∈ Finset.Icc 1 N, (2 * n / (2 * n - 1)) * (2 * n / (2 * n + 1)) : ℕ → ℝ) atTop (𝓝 (Real.pi / 2)))
: (Tendsto (fun n ↦ (1 / n) * ∫ x in (1)..n, dist_fun (n / x) : ℕ → ℝ) atTop (𝓝 putnam_1983_b5_solution))
Trusted statement context
noncomputable section

open Nat Filter Topology Real

noncomputable abbrev putnam_1983_b5_solution : ℝ :=
  log (4 / Real.pi)