OctoInform Beta

OpenAI preprint, September 2026 · 3. Constructing the fixed-vector rule

Lemma 7: Every-prefix matroid independence, information invariance, and measurability of the main hidden-mask rule and observed weight maps

Feasibility and measurability of the layered main rule.

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 fixed-vector formulation of the matroid prophet inequality, a finite matroid M=(E,ℐ)M = (E, \mathcal{I}) on ground set E={0,…,n−1}E = \{0, \dots, n-1\} is known in advance, and each element e∈Ee \in E carries a real weight wew_e. An online algorithm draws a random bit seed, observes the weights of a seed-determined subset of masked elements, and then inspects the remaining elements as they arrive in an arbitrary permutation π\pi of EE. At each arrival step, the algorithm makes an irrevocable accept-or-reject decision based only on its random seed, the revealed weights on its mask, and the prefix of arriving element-weight pairs seen so far.

To embed the main branch of the fixed-vector construction into the online prophet framework, its decisions must maintain an independent accepted set at every arrival prefix and for every arrival order, remain disjoint from the revealed mask, depend only on the allowed information, and be measurable functions of the seed, weights, and arrival history. Lemma 7 establishes these feasibility, information-invariance, and measurability guarantees for the layered main rule and for the observed weight map of any hidden-vector rule.

Online rules and feasibility

Fix a natural number nn and write E={0,…,n−1}E = \{0, \dots, n-1\}. An element weight vector is a map w∈ℝEw \in \mathbb{R}^E✦, an arrival order is a permutation π\pi of EE✦, and a random bit seed of length b∈ℕb \in \mathbb{N} is a sequence r∈{0,1}br \in \{0, 1\}^b✦. For each step k∈Ek \in E, the arrival history space Histk=(E×ℝ)k+1\mathrm{Hist}_k = (E \times \mathbb{R})^{k+1} consists of sequences of length k+1k + 1 of element-weight pairs.✦ Given a weight vector v∈ℝEv \in \mathbb{R}^E and an arrival order π\pi, the observed history through step kk is hk(v,π)=((π(0),vπ(0)),…,(π(k),vπ(k)))∈Histk.h_k(v, \pi) = \bigl((\pi(0), v_{\pi(0)}), \dots, (\pi(k), v_{\pi(k)})\bigr) \in \mathrm{Hist}_k.(1)✦

An online decision rule AA on nn elements with bb random bits consists of a family of decision functions dk:{0,1}b×ℝE×Histk→{0,1}d_k : \{0, 1\}^b \times \mathbb{R}^E \times \mathrm{Hist}_k \to \{0, 1\} for k∈Ek \in E such that each dkd_k is jointly measurable on the product space {0,1}b×ℝE×Histk\{0, 1\}^b \times \mathbb{R}^E \times \mathrm{Hist}_k.✦ Given a seed rr, sample and realized weight vectors s,v∈ℝEs, v \in \mathbb{R}^E, and an arrival order π\pi, the decision at step kk is dec⁡k(A,r,s,v,π)=dk(r,s,hk(v,π)).\operatorname{dec}_k(A, r, s, v, \pi) = d_k\bigl(r, s, h_k(v, \pi)\bigr).(2)✦ For t∈ℕt \in \mathbb{N}, the set Acc⁡A(r,s,v,π,t)⊆E\operatorname{Acc}_A(r, s, v, \pi, t) \subseteq E denotes the finite set of elements accepted by AA during the first tt arrivals.✦ The online decision rule AA is feasible for MM if Acc⁡A(r,s,v,π,t)∈ℐ\operatorname{Acc}_A(r, s, v, \pi, t) \in \mathcal{I} for every seed r∈{0,1}br \in \{0, 1\}^b, all nonnegative weight vectors s,v∈ℝ≥0Es, v \in \mathbb{R}_{\ge 0}^E, every arrival order π\pi, and every t∈ℕt \in \mathbb{N}.✦

A hidden-vector rule AA on nn elements with bb random bits consists of a mask map mask⁡A:{0,1}b→2E\operatorname{mask}_A : \{0, 1\}^b \to 2^E and a core online decision rule AcoreA_{\mathrm{core}} on nn elements with bb random bits.✦ Given a seed r∈{0,1}br \in \{0, 1\}^b and a weight vector w∈ℝEw \in \mathbb{R}^E, the observed weight vector obs⁡A(r,w)∈ℝE\operatorname{obs}_A(r, w) \in \mathbb{R}^E agrees with ww on mask⁡A(r)\operatorname{mask}_A(r) and equals 00 outside mask⁡A(r)\operatorname{mask}_A(r).✦ For an arrival order π\pi and t∈ℕt \in \mathbb{N}, the set of hidden accepted elements through step tt is SA(r,w,π,t)=Acc⁡Acore(r,obs⁡A(r,w),w,π,t)\mask⁡A(r).S_A(r, w, \pi, t) = \operatorname{Acc}_{A_{\mathrm{core}}}\bigl(r, \operatorname{obs}_A(r, w), w, \pi, t\bigr) \setminus \operatorname{mask}_A(r).(3)✦ A hidden-vector rule AA satisfies main rule feasibility for MM if six properties hold:

  1. AcoreA_{\mathrm{core}} is a feasible online decision rule for MM;

  2. for every k∈Ek \in E, the map (r,w,η)↦dk(r,obs⁡A(r,w),η)(r, w, \eta) \mapsto d_k\bigl(r, \operatorname{obs}_A(r, w), \eta\bigr) is measurable on {0,1}b×ℝE×Histk\{0, 1\}^b \times \mathbb{R}^E \times \mathrm{Hist}_k;

  3. for every w∈ℝ≥0Ew \in \mathbb{R}_{\ge 0}^E, r∈{0,1}br \in \{0, 1\}^b, arrival order π\pi, and t∈ℕt \in \mathbb{N}, the set SA(r,w,π,t)S_A(r, w, \pi, t) is independent in MM;

  4. for every r∈{0,1}br \in \{0, 1\}^b, w,w′∈ℝEw, w' \in \mathbb{R}^E, arrival orders π,π′\pi, \pi', and t∈ℕt \in \mathbb{N}, if we=we′w_e = w'_e for all e∈mask⁡A(r)e \in \operatorname{mask}_A(r) and (π(j),wπ(j))=(π′(j),wπ′(j)′)(\pi(j), w_{\pi(j)}) = (\pi'(j), w'_{\pi'(j)}) for all j∈Ej \in E with j<tj < t, then SA(r,w,π,t)=SA(r,w′,π′,t)S_A(r, w, \pi, t) = S_A(r, w', \pi', t);

  5. for every r∈{0,1}br \in \{0, 1\}^b, w∈ℝEw \in \mathbb{R}^E, and arrival order π\pi, the map t↦SA(r,w,π,t)t \mapsto S_A(r, w, \pi, t) is nondecreasing under set inclusion;

  6. for every r∈{0,1}br \in \{0, 1\}^b, w∈ℝEw \in \mathbb{R}^E, arrival order π\pi, and t∈ℕt \in \mathbb{N}, the set SA(r,w,π,t)S_A(r, w, \pi, t) is disjoint from mask⁡A(r)\operatorname{mask}_A(r).

Density expansions and guarded flat paths

For a matroid M=(E,ℐ)M = (E, \mathcal{I}) with rank rk⁡(X)\operatorname{rk}(X) and closure cl⁡(X)\operatorname{cl}(X), a natural-number density threshold κ∈ℕ\kappa \in \mathbb{N}, and subsets D,X⊆ED, X \subseteq E, the density objective function is fκ(D,X)=|D∩X|−κrk⁡(X).f_\kappa(D, X) = |D \cap X| - \kappa \operatorname{rk}(X).(4)✦ Given P⊆EP \subseteq E, a flat QQ of MM containing PP is a density-maximizing flat if fκ(D,Z)≤fκ(D,Q)f_\kappa(D, Z) \le f_\kappa(D, Q) for every flat ZZ of MM containing PP.✦ Among all density-maximizing flats containing PP, there is a unique largest one under inclusion, denoted ℰκ(D,P)\mathcal{E}_\kappa(D, P).✦ For integers a,k∈ℤa, k \in \mathbb{Z}, the activated density expansion is ℰκact(D,a,k,P)={ℰκ(D,P),a≤k,P,k<a.\mathcal{E}_\kappa^{\mathrm{act}}(D, a, k, P) = \begin{cases} \mathcal{E}_\kappa(D, P), & a \le k, \\ P, & k < a. \end{cases}(5)✦

For each group index h∈ℕh \in \mathbb{N}, the group activation time is a(h)=−3(h+1)a(h) = -3(h + 1).✦ Given sequences of density masks (Dh)h∈ℕ(D_h)_{h \in \mathbb{N}} and guard masks (Ch)h∈ℕ(C_h)_{h \in \mathbb{N}} of subsets of EE, the guarded flat path Fh(k)F_h(k) and nominal flat path Xh(k)X_h(k) are subsets of EE defined recursively for h∈ℕh \in \mathbb{N} and k∈ℤk \in \mathbb{Z} by F0(k)={cl⁡(∅),k<0,E,k≥0,Xh(k)=ℰκact(Dh,a(h),k,Fh(k)),Fh+1(k)=cl⁡(Xh(k)∪(Ch∩Xh(k+1))).\begin{aligned} F_0(k) &= \begin{cases} \operatorname{cl}(\emptyset), & k < 0, \\ E, & k \ge 0, \end{cases} \\ X_h(k) &= \mathcal{E}_\kappa^{\mathrm{act}}\bigl(D_h, a(h), k, F_h(k)\bigr), \\ F_{h+1}(k) &= \operatorname{cl}\bigl(X_h(k) \cup (C_h \cap X_h(k + 1))\bigr). \end{aligned}(6) For every h∈ℕh \in \mathbb{N} and e∈Ee \in E, there exists j∈ℕj \in \mathbb{N} with e∈Xh(a(h)+j)e \in X_h(a(h) + j)✦; the nominal birth time of ee at group hh is a(h)+ja(h) + j for the least such j∈ℕj \in \mathbb{N}.✦

The layered main rule

Let KK be a countable measurable space with measurable singletons, let φ:ℝ→K\varphi : \mathbb{R} \to K be a measurable key map, and let ψ\psi be a Boolean choice function taking a step k∈Ek \in E, a seed r∈{0,1}br \in \{0, 1\}^b, sample keys in KEK^E, and a key-valued prefix in (E×K)k+1(E \times K)^{k+1}. The discretized online rule for φ\varphi and ψ\psi is the online decision rule that applies φ\varphi coordinatewise to the sample weight vector and to the weights in the arrival history before evaluating ψ\psi.✦ Given a family of base subsets B(b)⊆EB(b) \subseteq E indexed by b∈ℤb \in \mathbb{Z} and a level assignment E×K→ℤ∪{⊥}E \times K \to \mathbb{Z} \cup \{\bot\}, the layered key decision returns a Boolean accept-or-reject decision at step k∈Ek \in E from the prefix of element-key pairs through step kk.✦ Parameterizing the base family and level assignment by (r,seen)∈{0,1}b×KE(r, \mathrm{seen}) \in \{0, 1\}^b \times K^E and applying the discretized online rule construction yields the layered online rule.✦

For a real base BB, the logarithmic weight level ρB:ℝ→ℤ∪{⊥}\rho_B : \mathbb{R} \to \mathbb{Z} \cup \{\bot\} is defined by ρB(x)={⌊log⁡Bx⌋,x>0,⊥,x≤0.\rho_B(x) = \begin{cases} \lfloor \log_B x \rfloor, & x > 0, \\ \bot, & x \le 0. \end{cases}(7)✦ The main algorithm uses the weight rounding base B0=232B_0 = 2^{32} and the main seed bit length 4n+24n + 2. Random partition masks consist of four subsets H,D,C,T⊆EH, D, C, T \subseteq E (the filter, density, guard, and test masks) together with a Boolean parity bit p∈{0,1}p \in \{0, 1\}.✦ For a seed r∈{0,1}4n+2r \in \{0, 1\}^{4n+2} and slot j∈{0,1,2,3}j \in \{0, 1, 2, 3\}, the seed-decoded element mask is {e∈E:r4e+j=1}\{e \in E : r_{4e + j} = 1\}.✦ The decoded partition masks (H(r),D(r),C(r),T(r),p(r))(H(r), D(r), C(r), T(r), p(r)) take the seed-decoded element masks at slots 0,1,2,30, 1, 2, 3 for H(r),D(r),C(r),T(r)H(r), D(r), C(r), T(r) and bit r4n+1r_{4n+1} for the parity bit p(r)p(r).✦

Fix random partition masks (H,D,C,T,p)(H, D, C, T, p) and observed optional integer levels seen:E→ℤ∪{⊥}\mathrm{seen} : E \to \mathbb{Z} \cup \{\bot\}. On pairs in E×(ℤ∪{⊥})E \times (\mathbb{Z} \cup \{\bot\}), the level priority order declares that (f,a)(f, a) precedes (e,b)(e, b) if a=ia = i and b=jb = j are integers with j<ij < i or with j=ij = i and f<ef < e, or if a∈ℤa \in \mathbb{Z} and b=⊥b = \bot.✦ An element e∈Ee \in E with optional level w∈ℤ∪{⊥}w \in \mathbb{Z} \cup \{\bot\} is a non-spanned candidate element if w≠⊥w \neq \bot, e∉He \notin H, and e∉cl⁡{f∈H:(f,seen(f)) precedes (e,w)}.e \notin \operatorname{cl}\bigl\{f \in H : (f, \mathrm{seen}(f)) \text{ precedes } (e, w)\bigr\}.(8)✦ The active candidate weight levels form the finite set of integer levels seen(e)∈ℤ\mathrm{seen}(e) \in \mathbb{Z} over all e∈De \in D that are non-spanned candidate elements at seen(e)\mathrm{seen}(e)✦; sorting this finite set in nondecreasing order produces the list g0,…,gm−1g_0, \dots, g_{m-1} of sorted active weight groups.✦ For any mask U⊆EU \subseteq E and h∈ℕh \in \mathbb{N}, the set of masked candidates in group hh consists of all e∈Ue \in U that are non-spanned candidate elements at seen(e)\mathrm{seen}(e) and satisfy seen(e)=gh\mathrm{seen}(e) = g_h (and is empty for h≥mh \ge m).✦ Setting κ=2100\kappa = 2^{100} and taking the sequences of masked candidates for DD and CC in (6) yields the final guarded flat path Fˆ(k)=Fm(k)\widehat{F}(k) = F_m(k).✦ For e∈Ee \in E and i∈ℤi \in \mathbb{Z}, the element birth time b(e,i)b(e, i) is the nominal birth time of ee with κ=2100\kappa = 2^{100}, the masked candidate sequences for DD and CC, and the group index of ii in the sorted active weight groups.✦ 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, e∈Te \in T, ee is a non-spanned candidate element at level ii, ii appears in the sorted active weight groups at some index hh, b(e,i)≥a(h)+2b(e, i) \ge a(h) + 2, b(e,i)≡p(mod⁡2)b(e, i) \equiv p \pmod{2}, and e∉Fˆ(b(e,i)−2)e \notin \widehat{F}\bigl(b(e, i) - 2\bigr).✦

The main layer assignment maps (e,⊥)(e, \bot) to ⊥\bot, and for i∈ℤi \in \mathbb{Z} maps (e,i)(e, i) to b(e,i)b(e, i) if ee is an eligible element at level ii and to ⊥\bot otherwise.✦ The main layered online rule AcoreA_{\mathrm{core}} on 4n+24n + 2 seed bits is the layered online rule obtained from the measurable key map ρ232\rho_{2^{32}}, the base family (r,seen,b)↦Fˆ(b−2)(r, \mathrm{seen}, b) \mapsto \widehat{F}(b - 2) constructed with the decoded partition masks of rr, and the main layer assignment on seen\mathrm{seen}.✦

The main hidden-mask rule AmainA_{\mathrm{main}} is the hidden-vector rule on 4n+24n + 2 seed bits whose mask on each seed r∈{0,1}4n+2r \in \{0, 1\}^{4n+2} is mask⁡Amain(r)=H(r)∪D(r)∪C(r)\operatorname{mask}_{A_{\mathrm{main}}}(r) = H(r) \cup D(r) \cup C(r) and whose core online rule is AcoreA_{\mathrm{core}}.✦

The claim

Lemma 7. Let n∈ℕn \in \mathbb{N} and let M=(E,ℐ)M = (E, \mathcal{I}) be a matroid on ground set E={0,…,n−1}E = \{0, \dots, n-1\}. The main hidden-mask rule AmainA_{\mathrm{main}} satisfies main rule feasibility for MM: its core rule AcoreA_{\mathrm{core}} is feasible for MM, the map (r,w,η)↦dk(r,obs⁡Amain(r,w),η)(r, w, \eta) \mapsto d_k\bigl(r, \operatorname{obs}_{A_{\mathrm{main}}}(r, w), \eta\bigr) is measurable for every k∈Ek \in E, and for every seed r∈{0,1}4n+2r \in \{0, 1\}^{4n+2}, arrival order π\pi, and t∈ℕt \in \mathbb{N}, the hidden accepted set SAmain(r,w,π,t)S_{A_{\mathrm{main}}}(r, w, \pi, t) depends only on w|mask⁡Amain(r)w|_{\operatorname{mask}_{A_{\mathrm{main}}}(r)} and the first tt arriving element-weight pairs, is nondecreasing in tt, and is disjoint from mask⁡Amain(r)\operatorname{mask}_{A_{\mathrm{main}}}(r) for all w∈ℝEw \in \mathbb{R}^E, while for all nonnegative weight vectors s,v,w∈ℝ≥0Es, v, w \in \mathbb{R}_{\ge 0}^E, Acc⁡Acore(r,s,v,π,t)∈ℐ,SAmain(r,w,π,t)∈ℐ.\begin{aligned} \operatorname{Acc}_{A_{\mathrm{core}}}(r, s, v, \pi, t) &\in \mathcal{I}, \\ S_{A_{\mathrm{main}}}(r, w, \pi, t) &\in \mathcal{I}. \end{aligned}(9)✦ In addition, AmainA_{\mathrm{main}} satisfies the stepwise feasibility contract: for every k∈Ek \in E, the core decision function (r,s,η)↦dk(r,s,η)(r, s, \eta) \mapsto d_k(r, s, \eta) is measurable, the hidden accepted set SAmain(r,w,π,t)S_{A_{\mathrm{main}}}(r, w, \pi, t) is independent in MM for every w∈ℝ≥0Ew \in \mathbb{R}_{\ge 0}^E, nondecreasing in tt, and disjoint from H(r)∪D(r)∪C(r)H(r) \cup D(r) \cup C(r) for every w∈ℝEw \in \mathbb{R}^E, and for all r∈{0,1}4n+2r \in \{0, 1\}^{4n+2}, w,w′∈ℝEw, w' \in \mathbb{R}^E, arrival orders π,π′\pi, \pi', and k∈Ek \in E, whenever we=we′w_e = w'_e for all e∈H(r)∪D(r)∪C(r)e \in H(r) \cup D(r) \cup C(r) and hk(w,π)=hk(w′,π′)h_k(w, \pi) = h_k(w', \pi'), dec⁡k(Acore,r,obs⁡Amain(r,w),w,π)=dec⁡k(Acore,r,obs⁡Amain(r,w′),w′,π′).\begin{aligned} &\operatorname{dec}_k\bigl(A_{\mathrm{core}}, r, \operatorname{obs}_{A_{\mathrm{main}}}(r, w), w, \pi\bigr) \\ &\qquad = \operatorname{dec}_k\bigl(A_{\mathrm{core}}, r, \operatorname{obs}_{A_{\mathrm{main}}}(r, w'), w', \pi'\bigr). \end{aligned}(10)✦ Finally, for every b∈ℕb \in \mathbb{N}, every hidden-vector rule AA on nn elements with bb random bits, and every seed r∈{0,1}br \in \{0, 1\}^b, the observed weight map satisfies w↦obs⁡A(r,w)is measurable on ℝE.w \longmapsto \operatorname{obs}_A(r, w) \quad\text{is measurable on } \mathbb{R}^E.(11)✦

What is checked

The feasibility and contract claims (9) and (10) are stated for every n∈ℕn \in \mathbb{N} and every matroid M=(E,ℐ)M = (E, \mathcal{I}) whose ground set is E={0,…,n−1}E = \{0, \dots, n-1\}, while (11) is stated for all n,b∈ℕn, b \in \mathbb{N}, every hidden-vector rule AA on nn elements with bb random bits, and every seed r∈{0,1}br \in \{0, 1\}^b. For the underlying constructions, the Lean library establishes that a largest density-maximizing flat exists for every matroid on EE, threshold κ∈ℕ\kappa \in \mathbb{N}, and subsets D,P⊆ED, P \subseteq E✦, that every element enters the nominal flat path Xh(a(h)+j)X_h(a(h) + j) for some j∈ℕj \in \mathbb{N}✦, and that the logarithmic weight level ρB\rho_B is measurable for every real base BB.✦