lean-golf Lean 4 proof leaderboard

Putnam 1998 B4

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1998_b4
  (quantity : ℕ → ℕ → ℤ)
  (hquantity : quantity = fun n m => ∑ i ∈ Finset.range (m * n), (-1)^(i/m + i/n))
  (n m : ℕ)
  (hnm : n > 0 ∧ m > 0) :
  quantity n m = 0 ↔ ⟨n, m⟩ ∈ putnam_1998_b4_solution
Trusted statement context
noncomputable section

open Set Function Metric

abbrev putnam_1998_b4_solution : Set (ℕ × ℕ) :=
  {nm | let ⟨n,m⟩ := nm; multiplicity 2 n ≠ multiplicity 2 m}