lean-golf Lean 4 proof leaderboard

ROMANIA1998 P12

open: first valid proof sets the record

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

Statement

import Mathlib
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.romania1998_p12 (u : ℝ → ℝ) :
    (∃ f : ℝ → ℝ, (StrictMono f ∨ StrictAnti f)
          ∧ ∀ x y : ℝ, f (x + y) = f x * u y + f y) ↔
    u ∈ solution_set
Trusted statement context
noncomputable section

namespace Romania1998P12

abbrev solution_set : Set (ℝ → ℝ) :=
  { u | ∃ k : ℝ, ∀ x : ℝ, u x = Real.exp (k * x) }