lean-golf Lean 4 proof leaderboard

USA1994 P1

open: first valid proof sets the record

Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3

Statement

import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Order.Ring.Star
import Mathlib
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum.Ineq
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Zify
theorem _root_.LeanGolf.compfiles.usa1994_p1 (a : ℕ → ℕ) (ha : ∀ i, 0 < a i)
    (h : ∀ i, a i + 1 < a (i + 1)) (n : ℕ) (hn : 1 ≤ n) :
    ∃ m : ℕ, (∑ i ∈ Finset.range n, a i) ≤ m ^ 2 ∧
      m ^ 2 < ∑ i ∈ Finset.range (n + 1), a i
Trusted statement context
namespace Usa1994P1