lean-golf Lean 4 proof leaderboard

Putnam 1974 B6

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1974_b6
(n : ℤ)
(hn : n = 1000)
(count0 count1 count2 : ℕ)
(hcount0 : count0 = {S | S ⊆ Finset.Icc 1 n ∧ S.card ≡ 0 [MOD 3]}.ncard)
(hcount1 : count1 = {S | S ⊆ Finset.Icc 1 n ∧ S.card ≡ 1 [MOD 3]}.ncard)
(hcount2 : count2 = {S | S ⊆ Finset.Icc 1 n ∧ S.card ≡ 2 [MOD 3]}.ncard)
: (count0, count1, count2) = putnam_1974_b6_solution
Trusted statement context
noncomputable section

open Set Nat Polynomial Filter Topology

abbrev putnam_1974_b6_solution : (ℕ × ℕ × ℕ) :=
  ((2^1000 - 1)/3, (2^1000 - 1)/3, 1 + (2^1000 - 1)/3)