lean-golf Lean 4 proof leaderboard

USA1993 P3

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved. Authors: David Renshaw

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa1993_p3 :
    IsLeast {c | ∀ f, valid f → ∀ x, f x ≤ c * x } min_c
Trusted statement context
noncomputable section

namespace Usa1993P3

def valid (f : Set.Icc (0 : ℝ) 1 → ℝ) : Prop :=
  (∀ x, 0 ≤ f x) ∧
  f 1 = 1 ∧
  ∀ x y, (h : x.val + y.val ∈ Set.Icc 0 1) → f x + f y ≤ f ⟨x.val + y.val, h⟩

abbrev min_c : ℝ := 2