lean-golf Lean 4 proof leaderboard

Putnam 2016 B4

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2016_b4
  (n : ℕ) (npos : n ≥ 1)
  (mats01 : Set (Matrix (Fin (2 * n)) (Fin (2 * n)) ℝ))
  (hmats01 : mats01 = {A | ∀ i j : Fin (2 * n), A i j = 0 ∨ A i j = 1}) :
  (∑' A : mats01, (A.1 - (Matrix.transpose A)).det) / mats01.ncard = putnam_2016_b4_solution n
Trusted statement context
noncomputable section

open Real Set Nat

noncomputable abbrev putnam_2016_b4_solution : ℕ → ℝ :=
  (fun n : ℕ => (2 * n)! / (4 ^ n * (n)!))