The setting
In online matroid selection against an almighty adversary, the main algorithm partitions elements into weight groups, builds nested flats from revealed weights, and runs a layered greedy rule. To analyze the algorithm uniformly over all arrival orders, one bounds the number of accepted elements of high weight from below by an order-independent rank statistic that depends only on the random masks and the weight levels.
Fix a natural number and let . Let be a matroid on ground set with natural-number rank function and closure operator for subsets . For subsets , the conditional rank of given is (1)✦ An arrival order on is a permutation of .✦ An optional integer weight assignment is a function , where denotes an absent level. Random partition masks consist of four subsets , called the filter mask, density mask, guard mask, and test mask, together with a Boolean parity flag ✦ whose boolean parity bit is , equal to when is true and otherwise.✦
Candidates and flat paths
The level priority order compares pairs and in : precedes when and are both present with or with and , or when is present and ; it fails in all other cases.✦ Given , , and , an element with optional level is a non-spanned candidate element if , , and (2)✦ The active candidate weight levels form the finite set of integers realized as by non-spanned candidate elements at their observed levels.✦ Sorting these levels in nondecreasing order yields the list of sorted active weight groups, of length .✦ For any , write for the zero-based index of in if occurs in , and otherwise.
For a subset and a group index , the set of masked candidates in group consists of all that are non-spanned candidate elements at with , where whenever .✦ Write , , , and for the choices , respectively. For each , let denote the finite set of listed group elements, consisting of all elements of .✦ The group activation time of group is .✦
For a threshold and subsets , the density objective function is (3)✦ A subset is a density-maximizing flat over a subset with respect to and if is a flat of containing such that for every flat of containing .✦ Such a flat admits a unique largest member containing every density-maximizing flat over .✦ For integers , the activated density expansion equals when , and when .✦
Given and sequences and of subsets of , the guarded flat path and the nominal flat path are defined for and by for , for , and (4) For every and , there exists with ✦; the nominal birth time of at group is for the least such .✦ Setting and using the mask sequences and gives the final guarded flat path and, for and , the element birth time defined as the nominal birth time of at group index .
Layered greedy selection and the rank statistic
An element is an eligible element at level if , is a non-spanned candidate element at level , belongs to , , , , and .✦ The main layer assignment maps an integer level to if is eligible at level , and maps all other inputs to .✦ Given any layer assignment and values , the set of assigned eligible elements consists of all with ✦, and the assigned element layer of is when present and otherwise.✦
For a subset , a layer map , an arrival-time map , a layer , and a time , the set of earlier elements in layer is (5)✦ Given a base flat map , the layered greedy selection over accepts an element precisely when .✦ The main algorithm selection is the layered greedy selection on over the assigned eligible elements for , with base flat map , the assigned element layer, and arrival-time map .✦
For , the integer window consists of all integers with ✦, and for , the parity index window is .✦ Given , sequences , , , a subset , a group index , and , the nominal layer set and the lower competition set (defined recursively from ) are (6) For a final step and subsets , the final rank statistic is (7)✦ The listed group statistic measures the residual rank of tested, unobserved candidates in a weight group after contracting the preceding final guarded flat and lower-weight test competitors, depending on the random masks but not on the arrival order. The listed group statistic is the final rank statistic (7) evaluated at , mask sequences , , , group index , final step , group set , observed set , test set , and parity bit .✦
The thinning rate is .✦ For a probability assignment , subsets , and a real-valued function on subsets of , the Bernoulli subset probability and the Bernoulli mask expectation are (8)
The claim
Lemma 15. Let , let be a matroid on , let be random partition masks with boolean parity bit , let be optional integer levels, and let . For every arrival order on and every subset disjoint from , writing and , (9)✦ where denotes the Bernoulli mask expectation with constant inclusion probability on . Moreover, if the -th entry of the sorted active weight groups exists and equals , then for every arrival order on , (10)✦
What is checked
Lemma 15 is stated in the Lean library for every natural number , every matroid on , all random partition masks , optional integer levels , group indices , arrival orders , and subsets disjoint from , covering both the order-uniform index bound and the thinning inequality in (9) as well as the weight-threshold bound (10) whenever . For the supporting flat constructions, the Lean library also proves that a largest density-maximizing flat exists over every subset and that every element enters the nominal flat path for some .