lean-golf Lean 4 proof leaderboard

USA2023 P2

open: first valid proof sets the record

Compfiles · Usa · 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.usa2023_p2 (f : ℝ+ → ℝ+) :
    f ∈ solution_set ↔
    ∀ x y, f (x * y + (f x)) = x * (f y) + ⟨2, two_pos⟩
Trusted statement context
noncomputable section

namespace Usa2023P2

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

notation "ℝ+" => PosReal

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