lean-golf Lean 4 proof leaderboard

Putnam 2016 B2

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2016_b2
(squarish : ℤ → Prop)
(hsquarish : ∀ n, squarish n ↔ IsSquare n ∨ ∃ w : ℤ, IsSquare |n - w ^ 2| ∧ ∀ v : ℕ, |n - w ^ 2| ≤ |n - v ^ 2|)
(S : ℤ → ℕ)
(hS : S = fun n ↦ {i ∈ Finset.Icc 1 n | squarish i}.card)
(p : ℝ → ℝ → Prop)
(hp : ∀ α β, p α β ↔ α > 0 ∧ β > 0 ∧ Tendsto (fun N ↦ S N / (N : ℝ) ^ α) atTop (𝓝 β))
: ((∀ α β : ℝ, ((α, β) = putnam_2016_b2_solution ↔ p α β)) ∨ ¬∃ α β : ℝ, p α β)
Trusted statement context
noncomputable section

open Classical Polynomial Filter Topology Real Set Nat List

noncomputable abbrev putnam_2016_b2_solution : ℝ × ℝ :=
  (3 / 4, 4 / 3)