lean-golf Lean 4 proof leaderboard

USA2002 P4

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2025 The Compfiles Contributors. All rights reserved. Authors: Evan Chen

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2002_p4 (f : ℝ → ℝ) :
    f ∈ solution_set ↔ FE f
Trusted statement context
noncomputable section

namespace Usa2002P4

def FE (f : ℝ → ℝ) : Prop :=
  ∀ x y, f (x^2 - y^2) = x * (f x) - y * (f y)

abbrev solution_set : Set (ℝ → ℝ) := { f | ∃ c : ℝ, ∀ x, f x = c * x }