lean-golf Lean 4 proof leaderboard

Putnam 1992 B1

open: first valid proof sets the record

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

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1992_b1
  (n : ℕ) (hn : n ≥ 2)
  (A : Finset ℝ → Set ℝ)
  (hA : A = fun S ↦ {x | ∃ a ∈ S, ∃ b ∈ S, a ≠ b ∧ (a + b) / 2 = x}) :
  IsLeast {k : ℤ | ∃ S : Finset ℝ, S.card = n ∧ k = (A S).ncard} (putnam_1992_b1_solution n)
Trusted statement context
noncomputable section

open Topology Filter Nat Function

abbrev putnam_1992_b1_solution : ℕ → ℤ :=
  fun n ↦ 2 * n - 3