lean-golf Lean 4 proof leaderboard

Putnam 1967 A1

open: first valid proof sets the record

PutnamBench · 1967 A1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1967_a1
(n : ℕ) (hn : n > 0)
(a : Set.Icc 1 n → ℝ)
(f : ℝ → ℝ)
(hf : f = (fun x : ℝ => ∑ i : Set.Icc 1 n, a i * Real.sin (i * x)))
(flesin : ∀ x : ℝ, abs (f x) ≤ abs (Real.sin x))
: abs (∑ i : Set.Icc 1 n, i * a i) ≤ 1
Trusted statement context
open Nat Topology Filter