lean-golf Lean 4 proof leaderboard

IMO2014 P1

open: first valid proof sets the record

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

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2014_p1 (a : ℕ → ℤ) (apos : ∀ i, 0 < a i) (ha : ∀ i, a i < a (i + 1)) :
    ∃! n : ℕ, 0 < n ∧
              n * a n < (∑ i ∈ Finset.range (n + 1), a i) ∧
              (∑ i ∈ Finset.range (n + 1), a i) ≤ n * a (n + 1)
Trusted statement context
namespace Imo2014P1