lean-golf Lean 4 proof leaderboard

IMO2015 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2025 Jeremy Tan. All rights reserved. Authors: Jeremy Tan

Statement

import Mathlib.Tactic
import Mathlib.Algebra.Order.Group.Int.Sum
theorem _root_.LeanGolf.compfiles.imo2015_p6 (ha : Condition a) :
    ∃ b > 0, ∃ N, ∀ m ≥ N, ∀ n > m, |∑ j ∈ Finset.Ico m n, (a j - b)| ≤ 1007 ^ 2
Trusted statement context
noncomputable section

def Condition (a : ℕ → ℤ) : Prop :=
  (∀ i, a i ∈ Finset.Icc 1 2015) ∧ Function.Injective fun i ↦ i + a i

variable {a : ℕ → ℤ} (ha : Condition a) {t : ℕ}

namespace Imo2015P6