lean-golf Lean 4 proof leaderboard

IMO1978 P5

open: first valid proof sets the record

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

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo1978_p5
    (n : ℕ)
    (f : ℕ → ℕ)
    (h₀ : ∀ (m : ℕ), 0 < m → 0 < f m)
    (h₁ : ∀ (p q : ℕ), 0 < p → 0 < q → p ≠ q → f p ≠ f q)
    (h₂ : 0 < n) :
    ∑ k ∈ Finset.Icc 1 n, (1 : ℝ) / k ≤ ∑ k ∈ Finset.Icc 1 n, ((f k):ℝ) / k ^ 2
Trusted statement context
open Finset

namespace Imo1978P5