The setting
Consider a finite ground set whose coordinates are realized as independent Bernoulli random bits, together with an increasing event that fails with positive probability . A positive certificate for is any subset belonging to , since setting the coordinates in to one forces the event regardless of the remaining coordinates. An adaptive algorithm queries coordinates of one by one without repeating any coordinate, possibly using an independent auxiliary random seed, and groups its queries into consecutive transactions. A transaction succeeds only if the positive coordinates observed during that transaction alone form a certificate for . Lemma 9 bounds the expected number of successful transactions by , where denotes the natural logarithm.
Bernoulli product laws
Let be a finite set and let assign a real weight to each coordinate. For finite subsets , the Bernoulli subset probability is defined by (1): (1)✦ For a real-valued function and a subset , the Bernoulli mask expectation is given by (2): (2)✦
A family is increasing if and imply . Write for the indicator equal to when a condition holds and otherwise. For any family and subsets , the certificate failure probability with forced positives is given by (3): (3)✦ In particular, is the failure probability of over the full ground set .
Adaptive query programs
A query program over is a finite-depth decision tree built inductively from a terminal node , a branching query node with and subprograms , and a transaction boundary with continuation .✦ Because every query program has finite depth, the number of queries and transactions along every execution path is deterministically bounded.
For a subset of available coordinates, a query program is fresh on if is fresh on , a node is fresh on when and both and are fresh on , and is fresh on when is fresh on .✦ Given a family , a realization , and a set of positive coordinates collected in the current transaction, the query program certificate count is defined recursively by (4): (4)✦
Separating the declared success flag from the certificate predicate lets an adaptive procedure decline to count a certified transaction while still forbidding uncertified declarations.
A marked query program over is a finite-depth decision tree built from , with , and a marked transaction boundary carrying a Boolean outcome and continuation . Freshness of on is defined by the same recursion as for query programs, ignoring the flag at each node.✦ For a fixed realization , the program has branch freshness at on if satisfies the condition, satisfies it when and the taken branch ( if and if ) has branch freshness at on , and satisfies it when has branch freshness at on .✦
For a family , a realization , and an accumulated positive set , a marked query program has certificate soundness at from if:
has certificate soundness at from ;
has certificate soundness at from when has certificate soundness at from if , and has certificate soundness at from if ;
has certificate soundness at from when implies and has certificate soundness at from .
The marked program success count is defined recursively by (5): (5)✦
The claim
Lemma 9. Let be a finite set, let be an increasing family, and let satisfy for every . Assume that the failure probability is strictly positive.
Let be a probability space and let assign a query program over to each . Suppose that is fresh on for every , and that for every the map is measurable. Then is -integrable and satisfies (6)✦
Let be a probability space and let assign a marked query program over to each . Suppose that for -almost every , the program is fresh on , and for -almost every , the program has certificate soundness at from for every with . Suppose also that for every the map is measurable. Then is -integrable and satisfies (7)✦
Let be a marked query program over . Suppose that for every with , the program has branch freshness at on and certificate soundness at from . Then (8)✦
What is checked
In the Lean library, Lemma 9 is stated over finite ground sets, increasing subset families with strictly positive certificate failure probability under independent Bernoulli product laws, and finite-depth query programs and marked query programs, with auxiliary-seed measurability and integrability for (6) and (7) and supported-branch freshness and certificate soundness for (8).