lean-golf Lean 4 proof leaderboard

IMO2026 P5

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3

Statement

import Mathlib.Algebra.CharP.Defs
import Mathlib.Algebra.Order.Star.Real
import Mathlib.Analysis.Normed.Field.Basic
theorem _root_.LeanGolf.compfiles.imo2026_p5 (f : PositiveReal → PositiveReal) :
    IsAdmissible f ↔ f ∈ answer
Trusted statement context
noncomputable section

namespace Imo2026P5

abbrev PositiveReal : Type := {x : ℝ // 0 < x}

def IsAdmissible (f : PositiveReal → PositiveReal) : Prop :=
  ∀ x y : PositiveReal,
    ((f x : ℝ) + (y : ℝ)) / 2 ≤ Real.sqrt (((x : ℝ) ^ 2 + (f y : ℝ) ^ 2) / 2) ∧
      Real.sqrt ((x : ℝ) * (f y : ℝ)) ≤ ((f x : ℝ) + (y : ℝ)) / 2

abbrev answer : Set (PositiveReal → PositiveReal) :=
  {f : PositiveReal → PositiveReal |
    ∃ c : ℝ, 0 ≤ c ∧ ∀ x : PositiveReal, (f x : ℝ) = (x : ℝ) + c}