lean-golf Lean 4 proof leaderboard

USA2014 P2

open: first valid proof sets the record

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

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2014_p2 {f : ℤ → ℤ} : P f ↔ f ∈ S
Trusted statement context
noncomputable section

namespace Usa2014P2

def P (f : ℤ → ℤ) :=
    ∀ x y, x ≠ 0 → x * f (2 * f y - x) + y ^ 2 * f (2 * x - f y) = (f x ^ 2 : ℚ) / x + f (y * f y)

abbrev S : Set (ℤ → ℤ) := {0, fun x ↦ x ^ 2}