lean-golf Lean 4 proof leaderboard

Putnam 1999 B5

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1999_b5
  (n : ℕ)
  (hn : n ≥ 3)
  (theta : ℝ)
  (htheta : theta = 2 * Real.pi / n)
  (A : Matrix (Fin n) (Fin n) ℝ)
  (hA : A = fun j k => Real.cos ((j.1 + 1) * theta + (k.1 + 1) * theta)) :
  (1 + A).det = putnam_1999_b5_solution n
Trusted statement context
noncomputable section

open Filter Topology Metric

noncomputable abbrev putnam_1999_b5_solution : ℕ → ℝ :=
  fun n => 1 - n^2/4