Proposition 3: fixed sequence testing controls FWER
ProvedLearnThenTest.fixed_sequence_controls_fwerLet and let be a set of initializations. Fixed sequence testing (Algorithm 1) runs as follows. For each not already rejected, it rejects for as long as the current p-value is at most , and it stops at the first acceptance or at index . This procedure is an FWER-controlling algorithm at level in the sense of Definition 2.
Single-start fixed sequence testing () needs no multiplicity correction. It is the procedure the paper recommends when the risk is nearly monotone in .
Formalization Note The while loop of Algorithm 1 is stopped at the last index , where the printed loop would read the undefined . Initializations are visited in increasing order.
import Mathlib import Definitions.Def_LearnThenTest_Basic open MeasureTheory ProbabilityTheory Filter
namespace LearnThenTest
theorem fixed_sequence_controls_fwer (N : ℕ) (δ : ℝ) (hδ : 0 < δ ∧ δ < 1)
(J : Finset (Fin N)) : IsFWERControlling N δ (fixedSeq N δ J) := by sorry
end LearnThenTestRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a natural number , a real number with , and a set of indices, called the initializations. may be empty, and may be . Indices are ordered in the usual way, . A point is read as a vector of p-values.
The rejection rule (fixed sequence testing). Let and set the threshold . When the threshold is the junk value , but it is never used.
For each index , define the chain starting at :
This is the run of consecutive indices whose p-values are all at most . It stops just before the first index whose p-value exceeds , or at . It is empty if .
Now list in increasing order as and compute as follows:
- Start with .
- For in turn:
- if , leave unchanged;
- otherwise replace by .
- The output is the final , a set of indices.
If , then for every .
What is asserted. The theorem states that, for every such , and , the rule is FWER-controlling at level . By definition, this is the conjunction of two claims.
-
Measurability. For every index , the set is a Borel-measurable subset of .
-
Error control. Suppose the following hold:
- is any probability measure on , with arbitrary dependence between coordinates;
- is any index set, with no relation to required;
- -almost every has all coordinates in ;
- for each , the coordinate is a valid p-value under , meaning
Then
that is, with -probability at least , contains no index of .
Remarks on scope.
- No assumption is placed on the coordinates outside , beyond lying almost surely in .
- "True nulls" enter only as the index set together with the validity condition on its coordinates.
- Since , the bound is a positive number.
- When , , or , the event in claim 2 holds for every , so its probability is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.