lean-golf Lean 4 proof leaderboard

Putnam 2020 B1

open: first valid proof sets the record

PutnamBench · 2020 B1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2020_b1
(d : ℕ → ℕ)
(S : ℤ)
(hd : d = fun n : ℕ => ∑ i : Fin (Nat.digits 2 n).length, (Nat.digits 2 n)[i]!)
(hS : S = ∑ k : Icc 1 2020, ((-1 : ℤ)^(d k))*(k : ℤ)^3)
: S % 2020 = putnam_2020_b1_solution
Trusted statement context
noncomputable section

open Filter Topology Set

abbrev putnam_2020_b1_solution : ℕ :=
  1990