Lemma 6.3: lower tail bound for the binomial distribution
ProvedNeymanPearsonClassification.binomial_lower_tailLet be a binomial random variable with parameters and . Then for every with ,
It controls the random class sizes and in Corollary 4.1.
Formalization Note is written as the explicit sum .
import Mathlib import Definitions.Def_NeymanPearsonClassification_Basic open MeasureTheory ProbabilityTheory
namespace NeymanPearsonClassification
theorem binomial_lower_tail (n : ℕ) (hn : 1 ≤ n) (q : ℝ) (hq : q ∈ Set.Ioo 0 1)
(t : ℝ) (ht : 0 < t) (htq : t ≤ n * q / 2) :
1 - Real.exp (-(n * q ^ 2 / 2)) ≤ binomTail n q t := by sorry
end NeymanPearsonClassificationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number , every real with (strict on both sides), and every real with
the statement asserts the inequality
Here is a custom quantity from the definitions file. It is defined as
This is the probability for a random variable that is binomial with trials and success probability . However, it is defined directly as this finite sum, not through any probability measure.
A few features of the sum:
- The exponent is ordinary subtraction, since throughout.
- Because , the term never appears.
- The sum therefore runs over the integers with . If no such integer exists, the sum is .
The upper bound involves but not . The exponent in the lower bound is exactly , with squared.
The hypotheses can be satisfied for every admissible and , because . For example, is always allowed. Note that need not be an integer.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.