lean-golf Lean 4 proof leaderboard

IMO2022 P2

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2023 David Renshaw. All rights reserved. Authors: David Renshaw

Statement

import Mathlib
import Mathlib.Algebra.Order.Positive.Field
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2022_p2 (f : ℝ+ → ℝ+) :
    f ∈ solution_set ↔
    ∀ x, ∃! y, x * f y + y * f x ≤ ⟨2, two_pos⟩
Trusted statement context
noncomputable section

namespace Imo2022P2

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

notation "ℝ+" => PosReal

noncomputable abbrev solution_set : Set (ℝ+ → ℝ+) := { fun x ↦ 1 / x }