lean-golf Lean 4 proof leaderboard

Putnam 2007 B4

open: first valid proof sets the record

PutnamBench · 2007 B4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2007_b4
(n : ℕ) (npos : n > 0) :
({(P, Q) : (Polynomial ℝ) × (Polynomial ℝ) | P ^ 2 + Q ^ 2 = Polynomial.X ^ (2 * n) + 1 ∧ P.degree > Q.degree}.ncard = putnam_2007_b4_solution n)
Trusted statement context
noncomputable section

open Set Nat Function

abbrev putnam_2007_b4_solution : ℕ → ℕ :=
  fun n ↦ 2 ^ (n + 1)