USA2018 P2
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.CharP.Defs
import Mathlib.Algebra.EuclideanDomain.Basic
import Mathlib.Algebra.EuclideanDomain.Field
import Mathlib.Algebra.Order.Ring.Star
import Mathlib.Algebra.Order.Star.Real
import Mathlib.Analysis.Normed.Field.Basic
import Mathlib.Tactic.IntervalCases
theorem _root_.LeanGolf.compfiles.usa2018_p2 (f : ℝ → ℝ) :
f ∈ solution_set ↔
(∀ x : ℝ, 0 < x → 0 < f x) ∧
(∀ x y z : ℝ, 0 < x → 0 < y → 0 < z → x * y * z = 1 →
f (x + 1 / y) + f (y + 1 / z) + f (z + 1 / x) = 1)Trusted statement context
noncomputable section
namespace Usa2018P2
variable {f : ℝ → ℝ}
variable (fpos : ∀ x : ℝ, 0 < x → 0 < f x)
variable (fe : ∀ x y z : ℝ, 0 < x → 0 < y → 0 < z → x * y * z = 1 →
f (x + 1 / y) + f (y + 1 / z) + f (z + 1 / x) = 1)
abbrev solution_set : Set (ℝ → ℝ) :=
{ f | ∃ k : ℝ, k ∈ Set.Icc (-1 / 2) 1 ∧ ∀ t : ℝ, 0 < t → f t = k / (t + 1) + (1 - k) / 3 }