The setting
In online matroid prophet inequalities against an almighty adversary, an algorithm partitions ground-set elements into weight groups and tracks available rank across integer levels through guarded and nominal flat paths. A random test mask then thins each weight group independently at a fixed Bernoulli probability. Lemma 17 isolates the effect of averaging over the test bits of a single focal group while keeping the filter, density, and guard masks, the parity bit, and all test memberships outside that group fixed. Under this conditioning, the expected thinned rank statistic is at least the thinning rate times the corresponding unthinned rank statistic.
Density expansion and flat paths
Let be a matroid on a finite ground set , with closure operator and loops . The matroid rank of a subset is the natural-number rank of in ✦, and the conditional rank of given is (1)✦
Fix a natural-number density threshold and subsets . The density objective function assigns to each subset the integer (2)✦ A subset is a density-maximizing flat for if is a flat of containing such that for every flat of containing .✦ For every , , , and , there exists a density-maximizing flat that contains every density-maximizing flat for .✦ The largest density-maximizing flat is this unique maximum flat.✦
For each natural-number group index , the group activation time is .✦ Given integers and subsets , the activated density expansion is (3)✦
Given sequences of density masks and of guard masks in , the guarded flat path for and is defined recursively by (4)✦ The nominal flat path is obtained from by applying the activated density expansion at step : (5)✦
Final rank statistic and Bernoulli thinning
For an integer , the integer window is the set of integers satisfying .✦ Given a parity bit , the parity index window consists of all with .✦
For a step , a candidate set , a parity bit , and an index , the nominal layer set is (6)✦ The lower competition set depends only on test bits from strictly earlier weight groups, so it remains fixed when averaging the test mask of group . Given a sequence of test masks in and an integer , the lower competition set is defined recursively for by (7)✦ For step indices , a candidate set , an excluded set , a test set , and a parity bit , the final rank statistic is (8)✦
For real-valued inclusion probabilities and finite subsets , the Bernoulli subset probability is (9)✦ For any real-valued function on finite subsets of , the Bernoulli mask expectation of over with probabilities is (10)✦ When takes a constant real value on , we write . The thinning rate is the real constant .✦
Weight groups and the listed group statistic
Fix and write . Random partition masks on consist of a tuple of four finite subsets (the filter mask, density mask, guard mask, and test mask) together with a Boolean parity flag .✦ The boolean parity bit equals when is true and otherwise.✦
Let assign each element an optional integer weight level, where marks an absent level. In the level priority order, a pair precedes if both levels are present as integers and with or with and , or if is present and is absent; otherwise does not precede .✦ Given a matroid on and random partition masks , an element with optional level is a non-spanned candidate element if , , and (11)✦
The active candidate weight levels form the finite set of integer levels realized by non-spanned candidate elements at their observed level ✦, and the sorted active weight groups list those levels in nondecreasing order, with length .✦ For any mask and , the masked candidates in group form the set of elements that are non-spanned candidate elements at their observed level and satisfy (and if ).✦ The listed group elements form the finite set of non-spanned candidate elements at their observed level satisfying (and if ).✦ Writing , , and for the group-restricted masks and , the listed group statistic is (12)✦
The claim
Lemma 17. Let , let be a matroid on , let be random partition masks on , let be an optional integer weight map, and let . Write for the length of the sorted active weight groups, and for the group-restricted density and guard masks, for the -th listed group elements, , and for the mask configuration with test mask . For every subset disjoint from , (13)✦ where equals when and otherwise.
More generally, let be a matroid on a finite ground set , let , let and be sequences of subsets of , and let be a sequence of pairwise disjoint finite subsets of . For all , , , , and every finite subset disjoint from , (14)✦
What is checked
In Lemma 17, the Lean library states the conditional thinning bound (13) for a matroid on with random partition masks, optional integer weights, density threshold , and thinning rate , together with the fixed-outside thinning bound (14) for a matroid on a finite ground set , arbitrary density threshold , pairwise disjoint finite subsets , and thinning probability . For these constructions, the Lean library establishes the existence of a largest density-maximizing flat containing any given subset .