OctoInform Beta

OpenAI preprint, September 2026 · 5. From safe samples to unobserved rank

Lemma 14: Bounding a deterministic family of subsets of UiU_i that contains every nominal residual set across focal mask realizations

A uniform deterministic family capturing nominal residual sets.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

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 UiU_i after conditioning on the filter mask and on the random masks outside UiU_i, 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 UiU_i, a union bound over those masks requires an a priori deterministic family of subsets of UiU_i of subexponential size that contains every nominal residual set arising from any mask realization on UiU_i and any bounded collection of witnesses.

Focal groups

Fix a natural number nn and a finite labeled matroid M=(E,ℐ)M = (E, \mathcal{I}) on the ground set E={0,…,n−1}E = \{0, \dots, n - 1\}, with natural-number matroid rank rk⁡(X)\operatorname{rk}(X) and closure cl⁡(X)\operatorname{cl}(X) for X⊆EX \subseteq E, and loop set L=cl⁡(∅)L = \operatorname{cl}(\emptyset). The random partition masks d=(H,D,C,T,β)d = (H, D, C, T, \beta) on EE consist of four subsets H,D,C,T⊆EH, D, C, T \subseteq E, called the filter, density, guard, and test masks, together with a Boolean parity bit β\beta.✦ Let ss be a partial integer labeling of EE assigning to each element e∈Ee \in E either an integer weight level s(e)∈ℤs(e) \in \mathbb{Z} or an absent value.

Given elements f,e∈Ef, e \in E with optional integer levels aa and bb, the level priority order (f,a)≻(e,b)(f, a) \succ (e, b) holds if both aa and bb are integers with b<ab < a, or with b=ab = a and f<ef < e, or if aa is an integer and bb is absent, and fails otherwise.✦ An element e∈Ee \in E with optional integer level ww is a non-spanned candidate element under MM, dd, and ss if ww is present, e∉He \notin H, and e∉cl⁡({f∈H:(f,s(f))≻(e,w)}).e \notin \operatorname{cl}\bigl(\{f \in H : (f, s(f)) \succ (e, w)\}\bigr).(1)✦ For an integer weight level i∈ℤi \in \mathbb{Z}, the true candidate group Ui⊆EU_i \subseteq E consists of all elements e∈Ee \in E that are non-spanned candidate elements at w=s(e)w = s(e) (that is, e∉He \notin H and (1) holds at w=s(e)w = s(e)) and have s(e)=is(e) = i.✦

The active candidate weight levels under MM, dd, and ss form the finite set of integer weight levels s(e)s(e) realized by elements e∈De \in D in the density mask that are non-spanned candidate elements at s(e)s(e)✦, and the sorted active weight groups form the list g0,g1,…,gr−1g_0, g_1, \dots, g_{r - 1} obtained by sorting those active weight levels in nondecreasing order.✦ For a subset S⊆ES \subseteq E and a natural-number group index h∈ℕh \in \mathbb{N}, the masked candidates in group hh under dd form the set Sh(d)={e∈S:e is a non-spanned candidate at s(e) and s(e)=gh},S_h(d) = \bigl\{e \in S : e \text{ is a non-spanned candidate at } s(e) \text{ and } s(e) = g_h\bigr\},(2)✦ where Sh(d)=∅S_h(d) = \emptyset whenever h≥rh \ge r.

To vary the density, guard, and test masks on a subset U⊆EU \subseteq E while holding the filter mask, the Boolean parity bit, and all mask assignments outside UU fixed, define for subsets D′,C′,T′⊆ED', C', T' \subseteq E the focal partition masks f=focal⁡(d,U,D′,C′,T′)f = \operatorname{focal}(d, U, D', C', T') to have filter mask HH, Boolean parity bit β\beta, and remaining masks Df=(D\U)∪D′,Cf=(C\U)∪C′,Tf=(T\U)∪T′.\begin{aligned} D_f &= (D \setminus U) \cup D', \\ C_f &= (C \setminus U) \cup C', \\ T_f &= (T \setminus U) \cup T'. \end{aligned}(3)✦ For an integer level i∈ℤi \in \mathbb{Z}, the focal reference masks direfd_i^{\mathrm{ref}} are given by (3) with U=UiU = U_i, D′=UiD' = U_i, and C′=T′=∅C' = T' = \emptyset.✦ The focal group index hi∈ℕh_i \in \mathbb{N} is the zero-based position of ii in the sorted active weight groups under direfd_i^{\mathrm{ref}}, or the length of that list if ii does not appear.✦

Flat paths

For any matroid M=(E,ℐ)M = (E, \mathcal{I}) with ground set EE, a natural-number density threshold κ\kappa, and subsets D,X⊆ED, X \subseteq E, the density objective function is ϕκ,D(X)=|D∩X|−κrk⁡(X).\phi_{\kappa, D}(X) = |D \cap X| - \kappa \operatorname{rk}(X).(4)✦ Given P⊆EP \subseteq E, a density-maximizing flat containing PP is a flat QQ of MM with P⊆QP \subseteq Q such that ϕκ,D(Z)≤ϕκ,D(Q)\phi_{\kappa, D}(Z) \le \phi_{\kappa, D}(Q) for every flat ZZ of MM containing PP.✦ For every MM, κ\kappa, DD, and PP, there exists a largest density-maximizing flat containing PP, namely a density-maximizing flat containing every other density-maximizing flat that contains PP✦; denote it by ℰκ,D(P)\mathcal{E}_{\kappa, D}(P).

For a natural-number group index hh, the group activation time is ah=−3(h+1)a_h = -3(h + 1).✦ Given integers a,k∈ℤa, k \in \mathbb{Z} and subsets D,P⊆ED, P \subseteq E, the activated density expansion is ℰκ,Da,k(P)={ℰκ,D(P)if a≤k,Pif k<a.\mathcal{E}_{\kappa, D}^{a, k}(P) = \begin{cases} \mathcal{E}_{\kappa, D}(P) & \text{if } a \le k, \\ P & \text{if } k < a. \end{cases}(5)✦ Given sequences of density masks (Dh)h≥0(D_h)_{h \ge 0} and guard masks (Ch)h≥0(C_h)_{h \ge 0} of subsets of EE, the guarded flat path Fh(k)F_h(k) is defined recursively for h∈ℕh \in \mathbb{N} and k∈ℤk \in \mathbb{Z} by F0(k)={cl⁡(∅)if k<0,Eif k≥0,Fh+1(k)=cl⁡(ℰκ,Dhah,k(Fh(k))∪(Ch∩ℰκ,Dhah,k+1(Fh(k+1)))).\begin{aligned} F_0(k) &= \begin{cases} \operatorname{cl}(\emptyset) & \text{if } k < 0, \\ E & \text{if } k \ge 0, \end{cases} \\ F_{h + 1}(k) &= \operatorname{cl}\!\Bigl( \mathcal{E}_{\kappa, D_h}^{a_h, k}\bigl(F_h(k)\bigr) \cup \bigl(C_h \cap \mathcal{E}_{\kappa, D_h}^{a_h, k + 1}\bigl(F_h(k + 1)\bigr)\bigr) \Bigr). \end{aligned}(6)✦ The nominal flat path Xh(k)X_h(k) is then defined by applying (5) to (6): Xh(k)=ℰκ,Dhah,k(Fh(k)).X_h(k) = \mathcal{E}_{\kappa, D_h}^{a_h, k}\bigl(F_h(k)\bigr).(7)✦

Nominal residuals

For an integer a∈ℤa \in \mathbb{Z}, the integer window [a−2,1][a - 2, 1] consists of all integers kk satisfying a−2≤k≤1a - 2 \le k \le 1.✦ Given also a parity bit ε∈{0,1}\varepsilon \in \{0, 1\}, the parity index window 𝒫(a,ε)\mathcal{P}(a, \varepsilon) consists of all k∈[a−2,1]k \in [a - 2, 1] whose remainder modulo 22 equals ε\varepsilon.✦

Fix a step h∈ℕh \in \mathbb{N}, a subset U⊆EU \subseteq E, and a parity bit ε∈{0,1}\varepsilon \in \{0, 1\}. For each b∈𝒫(ah,ε)b \in \mathcal{P}(a_h, \varepsilon), the nominal layer set is Lh(U,ε,b)={e∈U:ah+2≤b≤0,e∈Xh(b)\Xh(b−1)}.\begin{aligned} L_h(U, \varepsilon, b) = \bigl\{e \in U :\; &a_h + 2 \le b \le 0, \\ &e \in X_h(b) \setminus X_h(b - 1)\bigr\}. \end{aligned}(8)✦ Given a sequence of test masks (Th)h≥0(T_h)_{h \ge 0} of subsets of EE and an integer level b∈ℤb \in \mathbb{Z}, the lower competition set Kh,bK_{h, b} is defined recursively in h∈ℕh \in \mathbb{N} by K0,b=∅,Kh+1,b=Kh,b∪(Th∩(Xh(b)\Xh(b−1))).\begin{aligned} K_{0, b} &= \emptyset, \\ K_{h + 1, b} &= K_{h, b} \cup \bigl(T_h \cap (X_h(b) \setminus X_h(b - 1))\bigr). \end{aligned}(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 W=(Wb)b∈𝒫(ah,ε)W = (W_b)_{b \in \mathcal{P}(a_h, \varepsilon)} of subsets of EE, the nominal residual set is defined from (7), (8), and (9) by Rh(U,ε,W)=⋃b∈𝒫(ah,ε)(Lh(U,ε,b)\cl⁡(Xh(b−2)∪Kh,b∪Wb)).R_h(U, \varepsilon, W) = \bigcup_{b \in \mathcal{P}(a_h, \varepsilon)} \Bigl(L_h(U, \varepsilon, b) \setminus \operatorname{cl}\bigl(X_h(b - 2) \cup K_{h, b} \cup W_b\bigr)\Bigr).(10)✦ For focal partition masks ff with density, guard, and test masks Df,Cf,TfD_f, C_f, T_f, write Lhf(U,ε,b)L_h^f(U, \varepsilon, b) and Rhf(U,ε,W)R_h^f(U, \varepsilon, W) for the sets in (8) and (10) formed using the group-masked sequences ((Df)j(f))j≥0\bigl((D_f)_j(f)\bigr)_{j \ge 0}, ((Cf)j(f))j≥0\bigl((C_f)_j(f)\bigr)_{j \ge 0}, and ((Tf)j(f))j≥0\bigl((T_f)_j(f)\bigr)_{j \ge 0} from (2).

The claim

Lemma 14. Let n∈ℕn \in \mathbb{N}, let M=(E,ℐ)M = (E, \mathcal{I}) be a matroid on E={0,…,n−1}E = \{0, \dots, n - 1\}, let κ≥2\kappa \ge 2 be a natural number, let dd be random partition masks on EE, let ss be a partial integer labeling of EE, let i∈ℤi \in \mathbb{Z} be a weight level whose true candidate group UiU_i satisfies |Ui|≥κ|U_i| \ge \kappa, and let ε∈{0,1}\varepsilon \in \{0, 1\}. Then there exists a finite family ℛi\mathcal{R}_i of subsets of UiU_i with |ℛi|≤exp⁡(1000log⁡κκ|Ui|)|\mathcal{R}_i| \le \exp\left(\frac{1000 \log \kappa}{\kappa}\, |U_i|\right)(11)✦ such that for all subsets D′,C′,T′⊆UiD', C', T' \subseteq U_i with D′D' nonempty, letting f=focal⁡(d,Ui,D′,C′,T′)f = \operatorname{focal}(d, U_i, D', C', T') and h=hih = h_i, and for every family of subsets W=(Wb)b∈𝒫(ah,ε)W = (W_b)_{b \in \mathcal{P}(a_h, \varepsilon)} of EE satisfying Wb⊆Lhf(Ui,ε,b)W_b \subseteq L_h^f(U_i, \varepsilon, b) for all b∈𝒫(ah,ε)b \in \mathcal{P}(a_h, \varepsilon) and ∑b∈𝒫(ah,ε)|Wb|≤⌊|Ui|/κ⌋\sum_{b \in \mathcal{P}(a_h, \varepsilon)} |W_b| \le \lfloor |U_i| / \kappa \rfloor, the nominal residual set Rhf(Ui,ε,W)R_h^f(U_i, \varepsilon, W) belongs to ℛi\mathcal{R}_i.

What is checked

In the Lean library, Lemma 14 is stated over an arbitrary finite matroid M=(E,ℐ)M = (E, \mathcal{I}) on {0,…,n−1}\{0, \dots, n - 1\}, a natural-number density threshold κ≥2\kappa \ge 2, random partition masks dd, a partial integer labeling ss, an integer weight level ii with |Ui|≥κ|U_i| \ge \kappa, and a parity bit ε∈{0,1}\varepsilon \in \{0, 1\}, yielding a finite family ℛi\mathcal{R}_i of subsets of UiU_i bounded by (11) that contains every nominal residual set Rhif(Ui,ε,W)R_{h_i}^f(U_i, \varepsilon, W) across all focal mask replacements D′,C′,T′⊆UiD', C', T' \subseteq U_i with D′D' nonempty and all witness families WW contained in the nominal layer sets with total cardinality at most ⌊|Ui|/κ⌋\lfloor |U_i| / \kappa \rfloor.✦ For the supporting density-expansion construction, the Lean library also proves that for every matroid on a full ground set, every natural-number threshold κ\kappa, and all subsets DD and PP, a largest density-maximizing flat containing PP exists.✦