lean-golf Lean 4 proof leaderboard

IMO2009 P5

open: first valid proof sets the record

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

Statement

import Mathlib.Algebra.Order.Positive.Field
import Mathlib.Data.Nat.Periodic
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2009_p5 (f : ℕ+ → ℕ+) :
    f ∈ solution_set ↔
    ∀ a b, (f (b + f a - 1) < f b + a ∧
            a < f b + f (b + f a - 1) ∧
            f b < f (b + f a - 1) + a)
Trusted statement context
noncomputable section

namespace Imo2009P5

abbrev solution_set : Set (ℕ+ → ℕ+) := { id }