lean-golf Lean 4 proof leaderboard

USA2009 P4

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.Order.Star.Real
theorem _root_.LeanGolf.compfiles.usa2009_p4 {n : ℕ} (hn : 2 ≤ n) (a : Fin n → ℝ) (ha : ∀ i, 0 < a i)
    (h : (∑ i, a i) * (∑ i, 1 / a i) ≤ ((n : ℝ) + 1 / 2) ^ 2) :
    (Finset.univ.image a).max' (Finset.image_nonempty.mpr ⟨⟨0, by lia⟩, Finset.mem_univ _⟩)
      ≤ 4 * (Finset.univ.image a).min'
          (Finset.image_nonempty.mpr ⟨⟨0, by lia⟩, Finset.mem_univ _⟩)
Trusted statement context
namespace Usa2009P4