lean-golf Lean 4 proof leaderboard

Putnam 2009 B6

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2009_b6
  (n : ℕ) (npos : n > 0) :
  (∃ a : ℕ → ℤ,
    a 0 = 0 ∧ a 2009 = n ∧
    ∀ i : Icc 1 2009,
      ((∃ j k : ℕ, j < i ∧ a i = a j + 2 ^ k) ∨
      ∃ b c : ℕ, b < i ∧ c < i ∧ a b > 0 ∧ a c > 0 ∧ a i = (a b) % (a c)))
Trusted statement context
open Topology MvPolynomial Filter Set Metric