lean-golf Lean 4 proof leaderboard

IMO2009 P3

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: hillosanation

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo2009_p3 (s : ℕ → ℕ) (hs : StrictMono s) (_hpos : ∀ i, 0 < s i)
    (h1 : IsArithProg (fun n ↦ s (s n)))
    (h2 : IsArithProg (fun n ↦ s (s n + 1))) :
    IsArithProg s
Trusted statement context
noncomputable section

namespace Imo2009P3

def IsArithProg (f : ℕ → ℕ) : Prop := ∃ d : ℕ, ∀ n, f (n + 1) = f n + d