OctoInform Beta

OpenAI preprint, September 2026 · 6. Rank and payoff for every arrival order

Lemma 15: The listed group statistic λh\lambda_h lower-bounds accepted high-weight elements for every arrival permutation and satisfies a thinning bound

Order-uniform rank bound for every arrival order.

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 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 λh\lambda_h that depends only on the random masks and the weight levels.

Fix a natural number nn and let E={0,…,n−1}E = \{0, \dots, n - 1\}. Let M=(E,ℐ)M = (E, \mathcal{I}) be a matroid on ground set EE with natural-number rank function rk⁡(X)\operatorname{rk}(X) and closure operator cl⁡(X)\operatorname{cl}(X) for subsets X⊆EX \subseteq E. For subsets S,P⊆ES, P \subseteq E, the conditional rank of SS given PP is rk⁡(S∣P)=rk⁡(S∪P)−rk⁡(P).\operatorname{rk}(S \mid P) = \operatorname{rk}(S \cup P) - \operatorname{rk}(P).(1)✦ An arrival order on EE is a permutation π\pi of EE.✦ An optional integer weight assignment is a function w:E→ℤ∪{⊥}w : E \to \mathbb{Z} \cup \{\bot\}, where ⊥\bot denotes an absent level. Random partition masks d=(H,D,C,T,odd)d = (H, D, C, T, \mathrm{odd}) consist of four subsets H,D,C,T⊆EH, D, C, T \subseteq E, called the filter mask, density mask, guard mask, and test mask, together with a Boolean parity flag odd\mathrm{odd}✦ whose boolean parity bit is ε∈{0,1}\varepsilon \in \{0, 1\}, equal to 11 when odd\mathrm{odd} is true and 00 otherwise.✦

Candidates and flat paths

The level priority order compares pairs (f,a)(f, a) and (e,b)(e, b) in E×(ℤ∪{⊥})E \times (\mathbb{Z} \cup \{\bot\}): (f,a)(f, a) precedes (e,b)(e, b) when a=ia = i and b=jb = j are both present with j<ij < i or with j=ij = i and f<ef < e, or when aa is present and b=⊥b = \bot; it fails in all other cases.✦ Given MM, dd, and ww, an element e∈Ee \in E with optional level a∈ℤ∪{⊥}a \in \mathbb{Z} \cup \{\bot\} is a non-spanned candidate element if a≠⊥a \neq \bot, e∉He \notin H, and e∉cl⁡({f∈H:(f,w(f)) precedes (e,a)}).e \notin \operatorname{cl}\bigl(\{f \in H : (f, w(f)) \text{ precedes } (e, a)\}\bigr).(2)✦ The active candidate weight levels form the finite set of integers realized as w(e)w(e) by non-spanned candidate elements e∈De \in D at their observed levels.✦ Sorting these levels in nondecreasing order yields the list g=(g0,…,gm−1)g = (g_0, \dots, g_{m-1}) of sorted active weight groups, of length mm.✦ For any i∈ℤi \in \mathbb{Z}, write idx⁡(i)\operatorname{idx}(i) for the zero-based index of ii in gg if ii occurs in gg, and mm otherwise.

For a subset S⊆ES \subseteq E and a group index h∈ℕh \in \mathbb{N}, the set ShS_h of masked candidates in group hh consists of all e∈Se \in S that are non-spanned candidate elements at w(e)w(e) with w(e)=ghw(e) = g_h, where Sh=∅S_h = \emptyset whenever h≥mh \ge m.✦ Write DhD_h, ChC_h, ThT_h, and EhE_h for the choices S=D,C,T,ES = D, C, T, E, respectively. For each h∈ℕh \in \mathbb{N}, let Gh⊆EG_h \subseteq E denote the finite set of listed group elements, consisting of all elements of EhE_h.✦ The group activation time of group h∈ℕh \in \mathbb{N} is ah=−3(h+1)a_h = -3(h + 1).✦

For a threshold κ∈ℕ\kappa \in \mathbb{N} 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).(3)✦ A subset Q⊆EQ \subseteq E is a density-maximizing flat over a subset P⊆EP \subseteq E with respect to κ\kappa and D′D' if QQ is a flat of MM containing PP such that ϕκ,D′(Z)≤ϕκ,D′(Q)\phi_{\kappa, D'}(Z) \le \phi_{\kappa, D'}(Q) for every flat ZZ of MM containing PP.✦ Such a flat admits a unique largest member Exp⁡κ,D′(P)\operatorname{Exp}_{\kappa, D'}(P) containing every density-maximizing flat over PP.✦ For integers a,k∈ℤa, k \in \mathbb{Z}, the activated density expansion En⁡κ,D′(a,k,P)\operatorname{En}_{\kappa, D'}(a, k, P) equals Exp⁡κ,D′(P)\operatorname{Exp}_{\kappa, D'}(P) when a≤ka \le k, and PP when k<ak < a.✦

Given κ∈ℕ\kappa \in \mathbb{N} and sequences (Dh′)h∈ℕ(D'_h)_{h \in \mathbb{N}} and (Ch′)h∈ℕ(C'_h)_{h \in \mathbb{N}} of subsets of EE, the guarded flat path Fh(k)F_h(k) and the nominal flat path Xh(k)X_h(k) are defined for h∈ℕh \in \mathbb{N} and k∈ℤk \in \mathbb{Z} by F0(k)=cl⁡(∅)F_0(k) = \operatorname{cl}(\emptyset) for k<0k < 0, F0(k)=EF_0(k) = E for k≥0k \ge 0, and Xh(k)=En⁡κ,Dh′(ah,k,Fh(k)),Fh+1(k)=cl⁡(Xh(k)∪(Ch′∩Xh(k+1))).\begin{aligned} X_h(k) &= \operatorname{En}_{\kappa, D'_h}(a_h, k, F_h(k)), \\ F_{h+1}(k) &= \operatorname{cl}\bigl(X_h(k) \cup (C'_h \cap X_h(k + 1))\bigr). \end{aligned}(4) For every h∈ℕh \in \mathbb{N} and e∈Ee \in E, there exists j∈ℕj \in \mathbb{N} with e∈Xh(ah+j)e \in X_h(a_h + j)✦; the nominal birth time of ee at group hh is ah+ja_h + j for the least such jj.✦ Setting κ=2100\kappa = 2^{100} and using the mask sequences (Dh)(D_h) and (Ch)(C_h) gives the final guarded flat path Fˆ(k)=Fm(k)\widehat{F}(k) = F_m(k) and, for e∈Ee \in E and i∈ℤi \in \mathbb{Z}, the element birth time b(e,i)b(e, i) defined as the nominal birth time of ee at group index idx⁡(i)\operatorname{idx}(i).

Layered greedy selection and the rank statistic

An element e∈Ee \in E is an eligible element at level i∈ℤi \in \mathbb{Z} if e∉H∪D∪Ce \notin H \cup D \cup C, ee is a non-spanned candidate element at level ii, ii belongs to gg, e∈Te \in T, aidx⁡(i)+2≤b(e,i)a_{\operatorname{idx}(i)} + 2 \le b(e, i), b(e,i)mod⁡2=εb(e, i) \bmod 2 = \varepsilon, and e∉Fˆ(b(e,i)−2)e \notin \widehat{F}(b(e, i) - 2).✦ The main layer assignment αe:ℤ∪{⊥}→ℤ∪{⊥}\alpha_e : \mathbb{Z} \cup \{\bot\} \to \mathbb{Z} \cup \{\bot\} maps an integer level ii to b(e,i)b(e, i) if ee is eligible at level ii, and maps all other inputs to ⊥\bot.✦ Given any layer assignment αe\alpha_e and values v(e)v(e), the set of assigned eligible elements consists of all e∈Ee \in E with αe(v(e))≠⊥\alpha_e(v(e)) \neq \bot✦, and the assigned element layer of ee is αe(v(e))\alpha_e(v(e)) when present and 00 otherwise.✦

For a subset E′⊆EE' \subseteq E, a layer map ℓ:E→ℤ\ell : E \to \mathbb{Z}, an arrival-time map τ:E→ℕ\tau : E \to \mathbb{N}, a layer b∈ℤb \in \mathbb{Z}, and a time k∈ℕk \in \mathbb{N}, the set of earlier elements in layer bb is Prior⁡(E′,ℓ,τ,b,k)={e∈E′:ℓ(e)=b and τ(e)<k}.\operatorname{Prior}(E', \ell, \tau, b, k) = \{e \in E' : \ell(e) = b \text{ and } \tau(e) < k\}.(5)✦ Given a base flat map B:ℤ→2EB : \mathbb{Z} \to 2^E, the layered greedy selection over E′E' accepts an element e∈E′e \in E' precisely when e∉cl⁡(B(ℓ(e))∪Prior⁡(E′,ℓ,τ,ℓ(e),τ(e)))e \notin \operatorname{cl}\bigl(B(\ell(e)) \cup \operatorname{Prior}(E', \ell, \tau, \ell(e), \tau(e))\bigr).✦ The main algorithm selection Sel⁡(d,w,π)⊆E\operatorname{Sel}(d, w, \pi) \subseteq E is the layered greedy selection on MM over the assigned eligible elements for ww, with base flat map b↦Fˆ(b−2)b \mapsto \widehat{F}(b - 2), the assigned element layer, and arrival-time map e↦π−1(e)e \mapsto \pi^{-1}(e).✦

For a∈ℤa \in \mathbb{Z}, the integer window [a−2,1][a - 2, 1] consists of all integers kk with a−2≤k≤1a - 2 \le k \le 1✦, and for ε∈{0,1}\varepsilon \in \{0, 1\}, the parity index window is W(a,ε)={k∈[a−2,1]:kmod⁡2=ε}W(a, \varepsilon) = \{k \in [a - 2, 1] : k \bmod 2 = \varepsilon\}.✦ Given κ\kappa, sequences (Dj′)(D'_j), (Cj′)(C'_j), (Tj′)(T'_j), a subset U⊆EU \subseteq E, a group index h∈ℕh \in \mathbb{N}, and b∈W(ah,ε)b \in W(a_h, \varepsilon), the nominal layer set Ph,b(U)P_{h, b}(U) and the lower competition set Kh,b(T•′)K_{h, b}(T'_\bullet) (defined recursively from K0,b(T•′)=∅K_{0, b}(T'_\bullet) = \emptyset) are Ph,b(U)={e∈U:ah+2≤b≤0,e∈Xh(b),e∉Xh(b−1)},Kh+1,b(T•′)=Kh,b(T•′)∪(Th′∩(Xh(b)\Xh(b−1))).\begin{aligned} P_{h, b}(U) &= \{e \in U : a_h + 2 \le b \le 0,\, e \in X_h(b),\, e \notin X_h(b - 1)\}, \\ K_{h+1, b}(T'_\bullet) &= K_{h, b}(T'_\bullet) \cup \bigl(T'_h \cap (X_h(b) \setminus X_h(b - 1))\bigr). \end{aligned}(6) For a final step m′∈ℕm' \in \mathbb{N} and subsets U,O,R⊆EU, O, R \subseteq E, the final rank statistic is Λκ(D•′,C•′,T•′;h,m′,U,O,R,ε)=∑b∈W(ah,ε)rk⁡((Ph,b(U)\O)∩R|Fm′(b−2)∪Kh,b(T•′)).\begin{aligned} \Lambda_{\kappa}(D'_\bullet, C'_\bullet, T'_\bullet;\, h, m', U, O, R, \varepsilon) &= \\ \sum_{b \in W(a_h, \varepsilon)} \operatorname{rk}\Bigl((P_{h, b}(U) \setminus O) \cap R &\;\Big|\; F_{m'}(b - 2) \cup K_{h, b}(T'_\bullet)\Bigr). \end{aligned}(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 λh(d,w)∈ℕ\lambda_h(d, w) \in \mathbb{N} is the final rank statistic (7) evaluated at κ=2100\kappa = 2^{100}, mask sequences (Dj)(D_j), (Cj)(C_j), (Tj)(T_j), group index hh, final step mm, group set U=EhU = E_h, observed set O=H∪D∪CO = H \cup D \cup C, test set R=TR = T, and parity bit ε\varepsilon.✦

The thinning rate is q0=2−140q_0 = 2^{-140}.✦ For a probability assignment q:E→ℝq : E \to \mathbb{R}, subsets V,S⊆EV, S \subseteq E, and a real-valued function ff on subsets of EE, the Bernoulli subset probability pq(V,S)p_q(V, S) and the Bernoulli mask expectation 𝔼q,V[f]\mathbb{E}_{q, V}[f] are pq(V,S)=∏e∈V∩Sq(e)∏e∈V\S(1−q(e)),𝔼q,V[f]=∑S⊆Vpq(V,S)f(S).\begin{aligned} p_q(V, S) &= \prod_{e \in V \cap S} q(e) \prod_{e \in V \setminus S} (1 - q(e)), \\ \mathbb{E}_{q, V}[f] &= \sum_{S \subseteq V} p_q(V, S)\, f(S). \end{aligned}(8)

The claim

Lemma 15. 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 d=(H,D,C,T,odd)d = (H, D, C, T, \mathrm{odd}) be random partition masks with boolean parity bit ε\varepsilon, let w:E→ℤ∪{⊥}w : E \to \mathbb{Z} \cup \{\bot\} be optional integer levels, and let h∈ℕh \in \mathbb{N}. For every arrival order π\pi on EE and every subset A⊆EA \subseteq E disjoint from GhG_h, writing Tj(A)=A∩GjT^{(A)}_j = A \cap G_j and dA∪B=(H,D,C,A∪B,odd)d_{A \cup B} = (H, D, C, A \cup B, \mathrm{odd}), λh(d,w)≤|{e∈Sel⁡(d,w,π):w(e)=i for some i∈ℤ with h≤idx⁡(i)}|,q0⋅Λ2100(D•,C•,T•(A);h,m,Gh,H∪D∪C,E,ε)≤𝔼q0,Gh[B↦λh(dA∪B,w)],\begin{aligned} \lambda_h(d, w) &\le \bigl|\{e \in \operatorname{Sel}(d, w, \pi) : w(e) = i \\ &\qquad\text{ for some } i \in \mathbb{Z} \text{ with } h \le \operatorname{idx}(i)\}\bigr|, \\ q_0 \cdot \Lambda_{2^{100}}\bigl(D_\bullet, C_\bullet, T^{(A)}_\bullet;\, h, m, G_h, H \cup D \cup C, E, \varepsilon\bigr) &\le \mathbb{E}_{q_0, G_h}\bigl[B \mapsto \lambda_h(d_{A \cup B}, w)\bigr], \end{aligned}(9)✦ where 𝔼q0,Gh\mathbb{E}_{q_0, G_h} denotes the Bernoulli mask expectation with constant inclusion probability q0=2−140q_0 = 2^{-140} on GhG_h. Moreover, if the hh-th entry ghg_h of the sorted active weight groups exists and equals i∈ℤi \in \mathbb{Z}, then for every arrival order π\pi on EE, λh(d,w)≤|{e∈Sel⁡(d,w,π):w(e)=j for some j∈ℤ with i≤j}|.\begin{aligned} \lambda_h(d, w) &\le \bigl|\{e \in \operatorname{Sel}(d, w, \pi) : w(e) = j \\ &\qquad\text{ for some } j \in \mathbb{Z} \text{ with } i \le j\}\bigr|. \end{aligned}(10)✦

What is checked

Lemma 15 is stated in the Lean library for every natural number nn, every matroid MM on {0,…,n−1}\{0, \dots, n - 1\}, all random partition masks dd, optional integer levels ww, group indices hh, arrival orders π\pi, and subsets A⊆EA \subseteq E disjoint from GhG_h, covering both the order-uniform index bound and the thinning inequality in (9) as well as the weight-threshold bound (10) whenever gh=ig_h = i. For the supporting flat constructions, the Lean library also proves that a largest density-maximizing flat exists over every subset P⊆EP \subseteq E and that every element e∈Ee \in E enters the nominal flat path Xh(ah+j)X_h(a_h + j) for some j∈ℕj \in \mathbb{N}.