lean-golf Lean 4 proof leaderboard

Putnam 2018 A2

open: first valid proof sets the record

PutnamBench · 2018 A2 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2018_a2
(n : ℕ)
(S : Fin (2 ^ n - 1) → Set ℕ)
(M : Matrix (Fin (2 ^ n - 1)) (Fin (2 ^ n - 1)) ℝ)
(npos : n ≥ 1)
(hS : Set.range S = (Set.Icc 1 n).powerset \ {∅})
(hM : ∀ i j, M i j = if (S i ∩ S j = ∅) = True then 0 else 1) :
M.det = putnam_2018_a2_solution n
Trusted statement context
noncomputable section

abbrev putnam_2018_a2_solution : ℕ → ℝ :=
  (fun n : ℕ => if n = 1 then 1 else -1)