Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted union bound over a finite union

Proved
BookSixth.sum_biUnion_le

by Tamas Fulop · Sep 16, 2026 · Mathlib c5ea003 (Lean v4.30.0)

combinatoricsprobabilistic-method

Finite weighted union bound. Let sss be a finite index set, t(i)t(i)t(i) finite sets, and www a nonnegative real weight. The weight of the union is at most the sum of the weights. The proof is induction on the index set, splitting off one piece as a disjoint union up to an already-counted remainder. This is the subadditivity step behind every probabilistic-method existence argument formalized with explicit finite sums. Formalization Note Lean states nonnegativity globally and both sums with explicit Finset.sum.

Preamble
import Mathlib
import Definitions.Def_BookSixth

set_option autoImplicit false
Formal statement
theorem BookSixth.sum_biUnion_le (I A : Type) [DecidableEq I] [DecidableEq A]
    (s : Finset I) (t : I -> Finset A) (w : A -> Real)
    (hw : forall a, LE.le 0 (w a)) :
    LE.le (Finset.sum (s.biUnion t) w) (Finset.sum s (fun i => Finset.sum (t i) w)) := by sorry
Source
Standard finite union bound for weighted sums, as used in probabilistic-method existence arguments; cf. Alon--Spencer, The Probabilistic Method, Chapter 1 (union bound)

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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me