Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weighted Cauchy–Schwarz on an event

Proved
NarrowDNF.BourgainIntegration.event_cauchy

by chenghua.liu · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsnarrow-dnf-authors-importprobabilitystoc-2027

Let α\alphaα be finite, let wx≥0w_x\ge0wx​≥0 be weights, let Fx≥0F_x\ge0Fx​≥0 be a real observable, and let B⊆αB\subseteq\alphaB⊆α be an event. Then

∑x∈BwxFx≤∑xwxFx2∑x∈Bwx.\sum_{x\in B}w_xF_x\le\sqrt{\sum_xw_xF_x^2}\sqrt{\sum_{x\in B}w_x}.x∈B∑​wx​Fx​≤x∑​wx​Fx2​​x∈B∑​wx​​.

The weights need not be a probability distribution. For normalized weights this bounds the expectation restricted to an event by the second-moment norm of the observable times the square root of the event probability. This is the estimate used to control the exceptional part of the integrated Bourgain decomposition.

Preamble
import Mathlib.Algebra.BigOperators.GroupWithZero.Finset
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Algebra.Order.BigOperators.Ring.Finset
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Nat.Choose.Bounds
import Mathlib.Data.Real.Basic
import Mathlib.Logic.Equiv.Prod
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.GCongr
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring
import Definitions.Def_NarrowDNF_Fourier
import Definitions.Def_NarrowDNF_Influence
import Definitions.Def_NarrowDNF_ProductMeasure

namespace NarrowDNF.BourgainComponents
end NarrowDNF.BourgainComponents

namespace NarrowDNF.BourgainIntegration
end NarrowDNF.BourgainIntegration

namespace NarrowDNF.FiberShift
end NarrowDNF.FiberShift

namespace NarrowDNF.Fourier
end NarrowDNF.Fourier

namespace NarrowDNF.Influence
end NarrowDNF.Influence

namespace NarrowDNF.ProductMeasure
end NarrowDNF.ProductMeasure
noncomputable section
open NarrowDNF
open NarrowDNF.BourgainIntegration
open BourgainComponents
open scoped BigOperators
attribute [local instance] Classical.propDecidable
variable {α : Type*} [Fintype α]
Formal statement
theorem NarrowDNF.BourgainIntegration.event_cauchy (w F : α → ℝ) (hw : ∀ x, 0 ≤ w x) (_hF : ∀ x, 0 ≤ F x)
    (B : α → Prop) [DecidablePred B] :
    (∑ x, w x * (if B x then F x else 0)) ≤
      Real.sqrt (∑ x, w x * F x^2) * Real.sqrt (∑ x, w x * (if B x then 1 else 0)) := by sorry
Source
https://github.com/liuchliuch/narrow-dnf-lean/blob/eecadd6a5ea0a331d6cf9fd5cb39fc6ec854b372/NarrowDNF/BourgainIntegration.lean#L36-L55

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