The setting
In the analysis of single-sample matroid prophet inequalities against an almighty adversary, elements of a finite labeled matroid are partitioned into weight groups and randomly assigned to filter, density, guard, and test masks. When evaluating a single weight group after conditioning on the filter mask and on the random masks outside , the remaining unobserved elements are captured by a nominal residual set built from a guarded flat path, competing test elements from lower weight groups, and a small family of witness sets. Because the realized residual set depends on the random masks inside , a union bound over those masks requires an a priori deterministic family of subsets of of subexponential size that contains every nominal residual set arising from any mask realization on and any bounded collection of witnesses.
Focal groups
Fix a natural number and a finite labeled matroid on the ground set , with natural-number matroid rank and closure for , and loop set . The random partition masks on consist of four subsets , called the filter, density, guard, and test masks, together with a Boolean parity bit .✦ Let be a partial integer labeling of assigning to each element either an integer weight level or an absent value.
Given elements with optional integer levels and , the level priority order holds if both and are integers with , or with and , or if is an integer and is absent, and fails otherwise.✦ An element with optional integer level is a non-spanned candidate element under , , and if is present, , and (1)✦ For an integer weight level , the true candidate group consists of all elements that are non-spanned candidate elements at (that is, and (1) holds at ) and have .✦
The active candidate weight levels under , , and form the finite set of integer weight levels realized by elements in the density mask that are non-spanned candidate elements at ✦, and the sorted active weight groups form the list obtained by sorting those active weight levels in nondecreasing order.✦ For a subset and a natural-number group index , the masked candidates in group under form the set (2)✦ where whenever .
To vary the density, guard, and test masks on a subset while holding the filter mask, the Boolean parity bit, and all mask assignments outside fixed, define for subsets the focal partition masks to have filter mask , Boolean parity bit , and remaining masks (3)✦ For an integer level , the focal reference masks are given by (3) with , , and .✦ The focal group index is the zero-based position of in the sorted active weight groups under , or the length of that list if does not appear.✦
Flat paths
For any matroid with ground set , a natural-number density threshold , and subsets , the density objective function is (4)✦ Given , a density-maximizing flat containing is a flat of with such that for every flat of containing .✦ For every , , , and , there exists a largest density-maximizing flat containing , namely a density-maximizing flat containing every other density-maximizing flat that contains ✦; denote it by .
For a natural-number group index , the group activation time is .✦ Given integers and subsets , the activated density expansion is (5)✦ Given sequences of density masks and guard masks of subsets of , the guarded flat path is defined recursively for and by (6)✦ The nominal flat path is then defined by applying (5) to (6): (7)✦
Nominal residuals
For an integer , the integer window consists of all integers satisfying .✦ Given also a parity bit , the parity index window consists of all whose remainder modulo equals .✦
Fix a step , a subset , and a parity bit . For each , the nominal layer set is (8)✦ Given a sequence of test masks of subsets of and an integer level , the lower competition set is defined recursively in by (9)✦
Collecting all possible nominal residual sets into a small deterministic family before revealing the random masks on the focal group allows a union bound even though the realized residual depends on those masks.
Given a family of subsets of , the nominal residual set is defined from (7), (8), and (9) by (10)✦ For focal partition masks with density, guard, and test masks , write and for the sets in (8) and (10) formed using the group-masked sequences , , and from (2).
The claim
Lemma 14. Let , let be a matroid on , let be a natural number, let be random partition masks on , let be a partial integer labeling of , let be a weight level whose true candidate group satisfies , and let . Then there exists a finite family of subsets of with (11)✦ such that for all subsets with nonempty, letting and , and for every family of subsets of satisfying for all and , the nominal residual set belongs to .
What is checked
In the Lean library, Lemma 14 is stated over an arbitrary finite matroid on , a natural-number density threshold , random partition masks , a partial integer labeling , an integer weight level with , and a parity bit , yielding a finite family of subsets of bounded by (11) that contains every nominal residual set across all focal mask replacements with nonempty and all witness families contained in the nominal layer sets with total cardinality at most .✦ For the supporting density-expansion construction, the Lean library also proves that for every matroid on a full ground set, every natural-number threshold , and all subsets and , a largest density-maximizing flat containing exists.✦