lean-golf Lean 4 proof leaderboard

Putnam 2023 B4

open: first valid proof sets the record

PutnamBench · 2023 B4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2023_b4
    (tne : ℕ → (ℕ → ℝ) → Set ℝ)
    (htne : ∀ n ts, tne n ts = {t | t > ts 0 ∧ ∀ i : Fin n, t ≠ ts (i.1 + 1)}) :
    IsLeast
    {(T : ℝ) | 0 ≤ T ∧ ∃ (n : ℕ) (ts : ℕ → ℝ) (f : ℝ → ℝ),
      (∀ k : Fin n, ts (k.1 + 1) ≥ ts k.1 + 1) ∧
      ContinuousOn f (Set.Ici (ts 0)) ∧
      ContDiffOn ℝ 1 f (tne n ts) ∧
      DifferentiableOn ℝ (derivWithin f (tne n ts)) (tne n ts) ∧
      f (ts 0) = 0.5 ∧
      (∀ k : Fin (n + 1),
        Tendsto (derivWithin f (tne n ts)) (𝓝[>] (ts k.1)) (𝓝 0)) ∧
      (∀ k : Fin n,
        ∀ t ∈ Set.Ioo (ts k.1) (ts (k.1 + 1)),
          iteratedDerivWithin 2 f (tne n ts) t = k.1 + 1) ∧
      (∀ t > ts n,
        iteratedDerivWithin 2 f (tne n ts) t = n + 1) ∧
      f (ts 0 + T) = 2023}
    putnam_2023_b4_solution
Trusted statement context
noncomputable section

open Nat Topology Filter

abbrev putnam_2023_b4_solution : ℝ :=
  29