Lemma 6.4: a binomial variable reaches its mean with probability at least min(q, 1/4)
ProvedNeymanPearsonClassification.binomial_at_least_meanLet be a binomial random variable with parameters and . Then
The bound is uniform in , and it is sharp for . It drives the second part of Proposition 3.1.
Formalization Note is written as the explicit sum .
import Mathlib import Definitions.Def_NeymanPearsonClassification_Basic open MeasureTheory ProbabilityTheory
namespace NeymanPearsonClassification
theorem binomial_at_least_mean (n : ℕ) (hn : 1 ≤ n) (q : ℝ) (hq0 : 0 < q) (hq : q ≤ 1 / 2) :
min q (1 / 4) ≤ binomTail n q (n * q) := by sorry
end NeymanPearsonClassificationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number and every real number with , the theorem asserts
where is the explicitly defined finite sum
How to read the sum:
- The index ranges over the integers .
- Only those with are kept, compared as real numbers.
- Here the threshold is , the real product of and . This number need not be an integer.
- The inequality is non-strict, so if is an integer, is included.
- Because , the exponent is an ordinary non-negative integer.
Under the hypotheses, , so every term is non-negative.
The sum is the formula for the upper tail probability of a binomial random variable with trials and success probability . In the statement, however, it appears only as this explicit sum; no probability space or random variable is involved.
The left-hand side splits into two cases:
- If , the claim is .
- If , the claim is .
The hypotheses are satisfiable, for example by and . The excluded cases are , and ; the statement says nothing about them.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.