Proposition 4 (as proved): the FWER of single-start fixed sequence testing is the probability of rejecting the first null
ProvedLearnThenTest.fixed_sequence_fwer_first_nullConsider fixed sequence testing (Algorithm 1) with a single initialization and level , applied to p-values (random variables on one probability space). Let be the set of true nulls, and let be the first null in the sequence: , , and no null lies in . Then:
- the procedure rejects a true null if and only if it rejects , so ;
- ;
- if , then .
Formalization Note The paper prints the equality without restriction. Its proof establishes items 1 and 2 only. The equality fails when a non-null before can be accepted. Example: , , false with , and true with uniform. Then , while . The statement therefore records what the proof establishes, together with the case in which the printed equality holds.
import Mathlib import Definitions.Def_LearnThenTest_Basic open MeasureTheory ProbabilityTheory Filter
namespace LearnThenTest
theorem fixed_sequence_fwer_first_null {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] {N : ℕ} (δ : ℝ) (hδ : 0 < δ ∧ δ < 1) (p : Fin N → Ω → ℝ)
(hp : ∀ j, Measurable (p j)) (j0 : Fin N) (J0 : Finset (Fin N)) (jstar : Fin N)
(hjstar : jstar ∈ J0) (hj0 : j0 ≤ jstar) (hfirst : ∀ k ∈ J0, j0 ≤ k → jstar ≤ k) :
fwer P (fixedSeq N δ {j0}) p J0 = P {ω | jstar ∈ fixedSeq N δ {j0} (fun i => p i ω)} ∧
fwer P (fixedSeq N δ {j0}) p J0 ≤ P {ω | p jstar ω ≤ δ} ∧
(jstar = j0 → fwer P (fixedSeq N δ {j0}) p J0 = P {ω | p jstar ω ≤ δ}) := by sorry
end LearnThenTestRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a probability space. Let be a natural number and let be a real number with . For each index , let be a measurable real-valued random variable. The theorem places no other conditions on the :
- they are not required to be valid p-values;
- they are not required to lie in ;
- no independence or other dependence structure is assumed.
Fix three further objects:
- an index , so implicitly ;
- a set , thought of as the true nulls;
- an index satisfying:
- ;
- ;
- every with satisfies .
In other words, is the smallest element of that is . Elements of below are allowed and unconstrained.
The rejection rule. The procedure is fixed sequence testing with the single initialization . The threshold is . For a vector , the procedure unfolds to
This is the maximal run of consecutive indices whose entries are all , stopping at the first index whose entry exceeds or at . It is empty if .
The error rate. The family-wise error rate is
This is the probability that at least one index of is rejected. All probabilities here are values of in , viewed as extended non-negative reals.
Conclusion. Under these hypotheses, the theorem asserts all three of the following.
- The family-wise error rate equals the probability that itself is rejected:
- The family-wise error rate is bounded by the probability that the single statistic falls at or below :
- If , so that the starting index is itself in , then the bound in item 2 holds with equality:
The statement does not assert . Since no validity assumption is placed on , the right-hand side of item 2 may be any value in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.