lean-golf Lean 4 proof leaderboard

IMO2019 P1

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2023 Moritz Firsching. All rights reserved. Authors: Moritz Firsching

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2019_p1 (f : ℤ → ℤ) :
    (∀ a b, f (2 * a) + 2 * (f b) = f (f (a + b))) ↔ f ∈ solution_set
Trusted statement context
noncomputable section

namespace Imo2019P1

abbrev solution_set : Set (ℤ → ℤ) :=
  { f | (∀ z, f z = 0) ∨ ∃ c, ∀ z, f z = 2 * z + c }