lean-golf Lean 4 proof leaderboard

Putnam 2017 B6

open: first valid proof sets the record

PutnamBench · 2017 B6 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2017_b6
  (S : Finset (Finset.range 64 → Finset.Icc 1 2017))
  (hs : ∀ x, x ∈ S ↔ (Injective x ∧ (2017 ∣ (∑ i : Finset.range 64, if i ≤ (⟨1, by norm_num⟩ : Finset.range 64) then (x i : ℤ) else i * (x i : ℤ))))) :
  S.card = putnam_2017_b6_solution
Trusted statement context
noncomputable section

open Topology Filter Real Function Nat

abbrev putnam_2017_b6_solution : ℕ :=
  2016! / 1953! - 63! * 2016