lean-golf Lean 4 proof leaderboard

USA2022 P3

open: first valid proof sets the record

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

Statement

import Mathlib
import Mathlib.Algebra.Order.Positive.Field
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2022_p3 (f : ℝ+ → ℝ+) :
  f ∈ solution_set ↔
    (∀ x y : ℝ+, f x = f (f (f x) + y) + f (x * f y) * f (x + y))
Trusted statement context
noncomputable section

namespace Usa2022P3

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

notation "ℝ+" => PosReal

abbrev solution_set : Set (ℝ+ → ℝ+) :=
  { f : ℝ+ → ℝ+ | ∃ c : ℝ+, f = fun x ↦ c / x }