Squared Finite-Sum Bound in
ProvedLevyStochCalc.Probability.sq_sum_le_card_sq_mul_readablefunctional-inequalitieskls-conjecturekls-modularkls-readablelog-concavevendored-levystochcalc
This is an elementary finite-sum inequality for nonnegative extended-real values.
For a finite set and a function , write for the cardinality of . Then
Here all quantities are ENNReal values, and the sums are finite. This bound is useful when replacing a squared coordinate sum by a sum of coordinatewise squares.
Original Lean declaration header
Within namespace LevyStochCalc.Probability. Shown in its original module context. Proof omitted.
theorem sq_sum_le_card_sq_mul {ι : Type*} (s : Finset ι) (f : ι → ℝ≥0∞) :
(∑ i ∈ s, f i) ^ 2 ≤ (s.card : ℝ≥0∞) ^ 2 * ∑ i ∈ s, f i ^ 2
Module navigation
Module: LevyStochCalc/Probability/DoobContinuous.
Previous: lintegral_sq_dyadicRunMax_le.
Source excerpt, lines 370–371 · Frozen source 408915f.
Preamble
import Definitions.Def_KLSModular_LevyStochCalc_Probability_DoobContinuous
/-
Copyright (c) 2026 Christian Garry. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Garry
-/
-- Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (upstream path LevyStochCalc/Probability/DoobContinuous.lean; Apache-2.0; provenance in formalization/vendor/vendor-lock.json of the KLS repository)
open scoped NNReal ENNReal
variable {Ω : Type*} {mΩ : MeasurableSpace Ω}
Formal statement
theorem LevyStochCalc.Probability.sq_sum_le_card_sq_mul_readable {ι : Type*} (s : Finset ι) (f : ι → ℝ≥0∞) :
(∑ i ∈ s, f i) ^ 2 ≤ (s.card : ℝ≥0∞) ^ 2 * ∑ i ∈ s, f i ^ 2 := by sorry
Source
Lean source: https://github.com/cgarryZA/LevyStochCalc/blob/984dbf0b790031eac05d56fe5a84b65e15e1e932/LevyStochCalc/Probability/DoobContinuous.lean#L369-L384 (repository human-ai-mathematics/kls-lean, commit 408915f, module `LevyStochCalc.Probability.DoobContinuous`, declaration `LevyStochCalc.Probability.sq_sum_le_card_sq_mul`; the repository is private at upload time). Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (Apache-2.0; upstream copyright notice retained in the Lean text).