Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Avg Over Le Of Weight Sum Le One

Proved
LIDT.MIPStarRE.LDT.avgOver_le_of_weight_sum_le_one

by Dengnifer · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

lidt

A sub-probability average obeys a nonnegative pointwise upper bound. Let D\mathcal DD be a distribution on α\alphaα, let f:α→Rf:\alpha\to\mathbb Rf:α→R be an error-valued family, and let δ≥0\delta\ge0δ≥0. Write w(a)w(a)w(a) for the stored weight and M=∑a∈supp⁡(D)w(a)M=\sum_{a\in\operatorname{supp}(\mathcal D)}w(a)M=∑a∈supp(D)​w(a). If M≤1M\le1M≤1 and f(a)≤δf(a)\le\deltaf(a)≤δ for every aaa, then

M≤1,δ≥0,(∀a∈α)  f(a)≤δ⟹avgOver⁡(D,f)≤δ.M\le1,\quad \delta\ge0,\quad (\forall a\in\alpha)\;f(a)\le\delta \quad\Longrightarrow\quad \operatorname{avgOver}(\mathcal D,f)\le\delta.M≤1,δ≥0,(∀a∈α)f(a)≤δ⟹avgOver(D,f)≤δ.

This is the scalar averaging estimate used when an incomplete distribution is bounded by a uniform error budget.

Formalization credit: Sirui Lu, Ruixuan Deng, Yanqiao Zhu, and Zhengfeng Ji (arXiv:2609.19814). Mathematical source: Zhengfeng Ji, Anand Natarajan, Thomas Vidick, John Wright, and Henry Yuen (arXiv:2009.12982).

Formalization Note. The source declaration is MIPStarRE.LDT.avgOver_le_of_weight_sum_le_one; its Lean statement gives the exact quantifier order and all boundary hypotheses.

Preamble
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_Distribution
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_DistributionAvg
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_DistributionUniformSums
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_PMFAverages
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_PMFUniformAverages
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersBase
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_Basic
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_BlockDiagonal
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_NormalizedTrace
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_Order
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_TracePairing
import Mathlib
import Mathlib.Analysis.MeanInequalitiesPow
import Mathlib.Probability.ProbabilityMassFunction.Integrals
import Mathlib.Probability.ProbabilityMassFunction.Monad

open LIDT
/-!
# Average lemmas for finite-support distributions

This module contains the finite-sum and uniform-average lemmas for the project
`Distribution` type.  The primitive distribution definitions, uniform
distributions, and total variation distance live in
`MIPStarRE.LDT.Basic.Distribution`.

## Main declarations

The main results are the algebraic rules for `avgOver`, scalar and
operator-valued forms of the module-valued finite-sum rules for uniform
distributions, and the comparison between finite uniform averages and Mathlib
uniform probability mass functions.

## References

These are formalization-internal finite probability lemmas for the low
individual degree test development.
-/

@[expose] public section

open scoped BigOperators MatrixOrder _root_.Matrix ComplexOrder

open LIDT.MIPStarRE.LDT

/-! ### Averaging infrastructure

Linearity proofs use `Distribution.weightedSumLinearMap`; order and support
estimates use Mathlib's `Finset.sum` API. -/
Formal statement
theorem LIDT.MIPStarRE.LDT.avgOver_le_of_weight_sum_le_one {α : Type*} (𝒟 : _root_.LIDT.MIPStarRE.LDT.Distribution α)
    (f : α → _root_.LIDT.MIPStarRE.LDT.Error) (δ : _root_.LIDT.MIPStarRE.LDT.Error)
    (h𝒟 : ∑ a ∈ 𝒟.support, 𝒟.weight a ≤ 1)
    (hδ_nonneg : 0 ≤ δ)
    (hf : ∀ a, f a ≤ δ) :
    _root_.LIDT.MIPStarRE.LDT.avgOver 𝒟 f ≤ δ := by sorry
Source
https://github.com/LionSR/MIPStarRE/blob/f382c801026f53a9efc260fdee707cb35e0adb15/MIPStarRE/LDT/Basic/DistributionAvg.lean#L165-L178

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me