OctoInform Beta

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

Section 3 (Setting): Rounding bounds, the 1/41/4 maximum-branch guarantee, worst-case branching, and the layered main rule

Geometric rounding, branching, and the main hidden-mask 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 matroid prophet problem against an almighty ordering adversary, a decision rule faces a finite labeled matroid M=(E,ℐ)M = (E, \mathcal{I}) on E={0,…,n−1}E = \{0, \dots, n - 1\}, where n∈ℕn \in \mathbb{N}, with rank rk⁡(X)\operatorname{rk}(X), closure cl⁡(X)\operatorname{cl}(X), and loops L=cl⁡(∅)L = \operatorname{cl}(\emptyset). For an element weight vector w=(we)e∈E∈ℝnw = (w_e)_{e \in E} \in \mathbb{R}^n, the offline optimum is OPT⁡M(w)=maxI∈ℐ∑e∈Iwe.\operatorname{OPT}_M(w) = \max_{I \in \mathcal{I}} \sum_{e \in I} w_e.(1)✦ To construct a rule with a constant worst-case guarantee, weights are discretized by geometric rounding to powers of a base B>1B > 1, and a random branch selector combines a single-choice maximum branch with a layered main branch built from nested flats.

Online and hidden-vector rules

An arrival order on EE is a permutation π\pi of EE✦, and a random bit seed of length b∈ℕb \in \mathbb{N} is a Boolean vector r∈{0,1}br \in \{0, 1\}^b.✦ At step k∈{0,…,n−1}k \in \{0, \dots, n - 1\}, the arrival history space consists of sequences of length k+1k + 1 in E×ℝE \times \mathbb{R}✦; for a weight vector v∈ℝnv \in \mathbb{R}^n and arrival order π\pi, the observed history through step kk sends each prefix position j∈{0,…,k}j \in \{0, \dots, k\} to (π(j),vπ(j))(\pi(j), v_{\pi(j)}).✦ An online decision rule AA on nn elements with bb random bits consists of a decision function taking a step kk, a seed rr, a sample weight vector s∈ℝns \in \mathbb{R}^n, and a history through step kk to an accept-or-reject Boolean, measurable jointly in (r,s,history)(r, s, \text{history}).✦ Given rr, ss, vv, and π\pi, the decision at step kk evaluates this function on the observed history through step kk✦, and the set of elements accepted through step t∈ℕt \in \mathbb{N} collects all elements accepted during the first tt arrivals.✦

A hidden-vector rule AA on nn elements with bb random bits pairs a mask map mask⁡A:{0,1}b→𝒫(E)\operatorname{mask}_A : \{0, 1\}^b \to \mathcal{P}(E) with an underlying online decision rule core⁡A\operatorname{core}_A.✦ For a seed rr and weight vector w∈ℝnw \in \mathbb{R}^n, the observed weight vector agrees with ww on mask⁡A(r)\operatorname{mask}_A(r) and equals 00 outside mask⁡A(r)\operatorname{mask}_A(r).✦ Under an arrival order π\pi, the hidden accepted elements through step tt are the elements accepted through step tt by core⁡A\operatorname{core}_A on the observed weight vector as sample and ww as realized weights, with mask⁡A(r)\operatorname{mask}_A(r) removed.✦ The hidden-vector reward is the sum of wew_e over the hidden accepted elements after all nn arrivals✦, and the worst-case hidden reward Rmin(A,w,r)R_{\min}(A, w, r) is the minimum hidden-vector reward over all arrival orders π\pi on EE.✦

Given a Boolean branch selector β:{0,1}b→{true,false}\beta : \{0, 1\}^b \to \{\text{true}, \text{false}\} and two online decision rules A1,A2A_1, A_2 on nn elements with bb random bits, the branched online rule follows A1A_1 at step kk when β(r)\beta(r) is true and follows A2A_2 otherwise.✦ For two hidden-vector rules A1A_1 and A2A_2, the branched hidden-mask rule branch⁡(β,A1,A2)\operatorname{branch}(\beta, A_1, A_2) uses mask⁡A1(r)\operatorname{mask}_{A_1}(r) when β(r)\beta(r) is true and mask⁡A2(r)\operatorname{mask}_{A_2}(r) otherwise, paired with the branched online rule of core⁡A1\operatorname{core}_{A_1} and core⁡A2\operatorname{core}_{A_2}.✦

For a seed r∈{0,1}br \in \{0, 1\}^b, its true-bit index set is S(r)={i∈{0,…,b−1}:ri=1}S(r) = \{i \in \{0, \dots, b - 1\} : r_i = 1\}.✦ Given bit probabilities q=(qi)i=0b−1q = (q_i)_{i=0}^{b-1} with 0≤qi≤10 \le q_i \le 1 for every ii, the Bernoulli subset probability of SS on a finite set VV is ∏i∈Vqi𝟏i∈S(1−qi)𝟏i∉S\prod_{i \in V} q_i^{\mathbf{1}_{i \in S}} (1 - q_i)^{\mathbf{1}_{i \notin S}}.✦ The Bernoulli seed probability mass function (PMF) assigns each seed rr the Bernoulli subset probability of S(r)S(r) over all bb bit positions✦, inducing the Bernoulli product seed law μq\mu_q on {0,1}b\{0, 1\}^b.✦

Geometric rounding and the maximum branch

Let ℤ⊥=ℤ∪{⊥}\mathbb{Z}_\bot = \mathbb{Z} \cup \{\bot\} be the integers adjoined with a bottom element ⊥\bot below every integer. For real numbers BB and xx, the logarithmic weight level ℓB(x)∈ℤ⊥\ell_B(x) \in \mathbb{Z}_\bot is ⌊log⁡Bx⌋\lfloor \log_B x \rfloor when x>0x > 0 and ⊥\bot otherwise.✦ The level weight ωB:ℤ⊥→ℝ\omega_B : \mathbb{Z}_\bot \to \mathbb{R} sends ⊥\bot to 00 and i∈ℤi \in \mathbb{Z} to BiB^i✦, and the rounded weight is w̃B(x)=ωB(ℓB(x)).\tilde{w}_B(x) = \omega_B(\ell_B(x)).(2)✦ For a weight vector w∈ℝnw \in \mathbb{R}^n, write w̃B(w)\tilde{w}_B(w) for the vector e↦w̃B(we)e \mapsto \tilde{w}_B(w_e). The fixed weight rounding base used by the algorithm is 2322^{32}.✦

Let KK be a countable measurable space with measurable singletons and let ϕ:ℝ→K\phi : \mathbb{R} \to K be measurable. Given a Boolean choice function taking step kk, seed rr, sample keys in KnK^n, and a key-valued prefix of length k+1k + 1 in (E×K)k+1(E \times K)^{k+1}, the discretized online rule applies ϕ\phi to the sample weights and to each arriving weight before evaluating the choice function.✦ Given an acceptance predicate on (r,skey,(e,a))(r, s_{\mathrm{key}}, (e, a)), the first-allowed online rule accepts the first arriving element satisfying the predicate and rejects all subsequent elements.✦

When KK is linearly ordered, the lexicographic key order on E×KE \times K puts (e,a)≻(f,b)(e, a) \succ (f, b) if a>ba > b, or if a=ba = b and e<fe < f.✦ For a matroid MM on EE, an activity predicate on KK, a mask map mask\operatorname{mask}, a seed rr, and sample keys s:E→Ks : E \to K, a pair (e,a)(e, a) satisfies the sample-maximum threshold predicate if e∉mask⁡(r)e \notin \operatorname{mask}(r), {e}∈ℐ\{e\} \in \mathcal{I}, aa is active, and (e,a)≻(f,s(f))(e, a) \succ (f, s(f)) for every f∈mask⁡(r)f \in \operatorname{mask}(r) such that {f}∈ℐ\{f\} \in \mathcal{I} and s(f)s(f) is active.✦ The maximum-element threshold rule is the first-allowed online rule with this predicate✦, and the maximum-element hidden rule pairs mask\operatorname{mask} with the maximum-element threshold rule.✦

The maximum branch is included to capture the offline optimum when a single label carries most of the total weight.

The rounded maximum-element hidden rule on MM with bb random bits and mask map mask\operatorname{mask} is the maximum-element hidden rule with key space ℤ⊥\mathbb{Z}_\bot, key map x↦ℓ232(x)x \mapsto \ell_{2^{32}}(x), and activity predicate a≠⊥a \neq \bot.✦ Taking b=nb = n and mask r↦S(r)r \mapsto S(r), the maximum branch expected payoff Pmax(M,w)P_{\max}(M, w) is the expectation of the worst-case hidden reward of this rule under the uniform Bernoulli product seed law μ1/2\mu_{1/2} (qi=1/2q_i = 1/2 for all ii).✦ The maximum rounded weight Mmax(M,w)∈ℝM_{\max}(M, w) \in \mathbb{R} is the maximum of w̃232(we)\tilde{w}_{2^{32}}(w_e) over all elements e∈Ee \in E with {e}∈ℐ\{e\} \in \mathcal{I}, taken to be 00 when every element is a loop.✦

Density-maximizing flats and guarded paths

Let MM be a matroid whose ground set is all of a set Ω\Omega, let κ∈ℕ\kappa \in \mathbb{N} be a density threshold, and let D,P⊆ΩD, P \subseteq \Omega. The density objective function is gκ,D(X)=|D∩X|−κrk⁡(X)g_{\kappa, D}(X) = |D \cap X| - \kappa \operatorname{rk}(X)(3)✦ for X⊆ΩX \subseteq \Omega. A subset Q⊆ΩQ \subseteq \Omega is a density-maximizing flat over PP if QQ is a flat of MM containing PP that maximizes gκ,D(Z)g_{\kappa, D}(Z) over all flats ZZ of MM containing PP.✦ Let ℰκ,D(P)\mathcal{E}_{\kappa, D}(P) denote the largest density-maximizing flat containing PP.✦ For integers aa and kk, the activated density expansion ℰκ,D(a,k;P)\mathcal{E}_{\kappa, D}(a, k; P) equals ℰκ,D(P)\mathcal{E}_{\kappa, D}(P) if a≤ka \le k and equals PP otherwise.✦

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 Dh,Ch⊆ΩD_h, C_h \subseteq \Omega (h∈ℕh \in \mathbb{N}), the guarded flat path Fh(k)⊆ΩF_h(k) \subseteq \Omega (h∈ℕh \in \mathbb{N}, k∈ℤk \in \mathbb{Z}) is defined recursively by F0(k)=cl⁡(∅)F_0(k) = \operatorname{cl}(\emptyset) for k<0k < 0, F0(k)=ΩF_0(k) = \Omega for k≥0k \ge 0, and Fh+1(k)=cl⁡(ℰκ,Dh(a(h),k;Fh(k))∪(Ch∩ℰκ,Dh(a(h),k+1;Fh(k+1)))).\begin{aligned} F_{h+1}(k) = \operatorname{cl}\Bigl( &\mathcal{E}_{\kappa, D_h}(a(h), k; F_h(k)) \\ &\cup \bigl(C_h \cap \mathcal{E}_{\kappa, D_h}(a(h), k + 1; F_h(k + 1))\bigr) \Bigr). \end{aligned}(4)✦ The nominal flat path is Xh(k)=ℰκ,Dh(a(h),k;Fh(k))X_h(k) = \mathcal{E}_{\kappa, D_h}(a(h), k; F_h(k)).✦ For an element e∈Ωe \in \Omega, the nominal birth time at step hh is τh(e)=a(h)+min⁡{j∈ℕ:e∈Xh(a(h)+j)}.\tau_h(e) = a(h) + \min \{j \in \mathbb{N} : e \in X_h(a(h) + j)\}.(5)✦

The layered main online rule

Fix a matroid MM on E={0,…,n−1}E = \{0, \dots, n - 1\} whose ground set is all of EE. The main seed bit length is 4n+24n + 2.✦ 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 (the filter, density, guard, and test masks) and a Boolean parity bit odd\mathrm{odd}.✦ 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 d(r)d(r) take H,D,C,TH, D, C, T to be the seed-decoded element masks at slots 0,1,2,30, 1, 2, 3 and take odd\mathrm{odd} to be bit r4n+1r_{4n+1}.✦

Given observed levels seen⁡:E→ℤ⊥\operatorname{seen} : E \to \mathbb{Z}_\bot, the level priority order (f,a)≻lvl(e,b)(f, a) \succ_{\mathrm{lvl}} (e, b) on E×ℤ⊥E \times \mathbb{Z}_\bot agrees with the lexicographic key order on E×ℤ⊥E \times \mathbb{Z}_\bot when a∈ℤa \in \mathbb{Z} (so every integer level beats ⊥\bot) and fails when a=⊥a = \bot.✦ An element e∈Ee \in E with level u∈ℤ⊥u \in \mathbb{Z}_\bot is a non-spanned candidate element if u≠⊥u \neq \bot, e∉He \notin H, and e∉cl⁡({f∈H:(f,seen⁡(f))≻lvl(e,u)}).e \notin \operatorname{cl}\bigl( \{f \in H : (f, \operatorname{seen}(f)) \succ_{\mathrm{lvl}} (e, u)\} \bigr).(6)✦ The active candidate weight levels form the finite set of integer levels seen⁡(e)∈ℤ\operatorname{seen}(e) \in \mathbb{Z} realized by elements e∈De \in D that are non-spanned candidate elements at level seen⁡(e)\operatorname{seen}(e)✦, and sorting them in nondecreasing order yields the sorted active weight groups g0<g1<…<gm−1g_0 < g_1 < \dots < g_{m-1}.✦ For a mask U⊆EU \subseteq E and h∈ℕh \in \mathbb{N}, the masked candidates in group hh are the elements e∈Ue \in U that are non-spanned candidate elements at seen⁡(e)\operatorname{seen}(e) with seen⁡(e)=gh\operatorname{seen}(e) = g_h (empty for h≥mh \ge m).✦

Applying the guarded flat path (4) with threshold κ=2100\kappa = 2^{100} and the masked candidate sequences DhD_h and ChC_h for DD and CC gives the final guarded flat path Ffin(k)=Fm(k)F^{\mathrm{fin}}(k) = F_m(k) at step mm.✦ For e∈Ee \in E and i∈ℤi \in \mathbb{Z}, the element birth time τ(e,i)\tau(e, i) is the nominal birth time (5) of ee with κ=2100\kappa = 2^{100}, these sequences DhD_h and ChC_h, and group index equal to the position of ii in the sorted active weight groups.✦ An element e∈Ee \in E is eligible 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, i=ghi = g_h belongs to the sorted active weight groups, τ(e,i)≥a(h)+2\tau(e, i) \ge a(h) + 2, τ(e,i)≡𝟏odd(mod⁡2)\tau(e, i) \equiv \mathbf{1}_{\mathrm{odd}} \pmod{2}, and e∉Ffin(τ(e,i)−2)e \notin F^{\mathrm{fin}}(\tau(e, i) - 2).✦ The main layer assignment assign⁡M,d,seen:E×ℤ⊥→ℤ⊥\operatorname{assign}_{M, d, \operatorname{seen}} : E \times \mathbb{Z}_\bot \to \mathbb{Z}_\bot maps (e,λ)(e, \lambda) to τ(e,i)\tau(e, i) when λ=i∈ℤ\lambda = i \in \mathbb{Z} and ee is eligible at level ii, and to ⊥\bot otherwise.✦

For a key space KK, a base family ℬ:ℤ→𝒫(E)\mathcal{B} : \mathbb{Z} \to \mathcal{P}(E), and a layer assignment α:E×K→ℤ⊥\alpha : E \times K \to \mathbb{Z}_\bot, the layered key decision at step kk maps an observed history in (E×K)k+1(E \times K)^{k+1} to a Boolean accept-or-reject decision that accepts the arriving element ee with key aa when α(e,a)=λ∈ℤ\alpha(e, a) = \lambda \in \mathbb{Z} and ee does not belong to the closure of ℬ(λ)\mathcal{B}(\lambda) together with all previously arrived elements in the history prefix assigned to layer λ\lambda.✦ Given a measurable key map ϕ:ℝ→K\phi : \mathbb{R} \to K and seed-and-sample-dependent base and assignment maps, the layered online rule is the discretized online rule that applies the layered key decision at each step.✦ The main layered online rule core⁡main(M)\operatorname{core}_{\mathrm{main}}(M) on 4n+24n + 2 random bits is the layered online rule using ℓ232\ell_{2^{32}}, shifted base family (r,seen⁡,λ)↦Ffin(λ−2)(r, \operatorname{seen}, \lambda) \mapsto F^{\mathrm{fin}}(\lambda - 2) built from d(r)d(r) and seen\operatorname{seen}, and main layer assignment assign⁡M,d(r),seen\operatorname{assign}_{M, d(r), \operatorname{seen}}.✦

The claim

Definition. Let MM be a matroid on E={0,…,n−1}E = \{0, \dots, n - 1\} whose ground set is all of EE. The main hidden-mask rule hidden⁡main(M)\operatorname{hidden}_{\mathrm{main}}(M) is the hidden-vector rule on nn elements with 4n+24n + 2 random bits whose mask on each seed r∈{0,1}4n+2r \in \{0, 1\}^{4n+2}, with decoded partition masks d(r)=(H(r),D(r),C(r),T(r),odd(r))d(r) = (H(r), D(r), C(r), T(r), \mathrm{odd}(r)), and whose core rule are given by mask⁡hidden⁡main(M)(r)=H(r)∪D(r)∪C(r),core⁡hidden⁡main(M)=core⁡main(M).\begin{aligned} \operatorname{mask}_{\operatorname{hidden}_{\mathrm{main}}(M)}(r) &= H(r) \cup D(r) \cup C(r), \\ \operatorname{core}_{\operatorname{hidden}_{\mathrm{main}}(M)} &= \operatorname{core}_{\mathrm{main}}(M). \end{aligned}(7)✦

Theorem A. Let n,b∈ℕn, b \in \mathbb{N}, let β:{0,1}b→{true,false}\beta : \{0, 1\}^b \to \{\text{true}, \text{false}\} be a Boolean branch selector, and let A1,A2A_1, A_2 be hidden-vector rules on nn elements with bb random bits. For every seed r∈{0,1}br \in \{0, 1\}^b and weight vector w∈ℝnw \in \mathbb{R}^n, Rmin(branch⁡(β,A1,A2),w,r)={Rmin(A1,w,r),if β(r)=true,Rmin(A2,w,r),if β(r)=false.R_{\min}(\operatorname{branch}(\beta, A_1, A_2), w, r) = \begin{cases} R_{\min}(A_1, w, r), & \text{if } \beta(r) = \text{true}, \\ R_{\min}(A_2, w, r), & \text{if } \beta(r) = \text{false}. \end{cases}(8)✦

Theorem B. Let n∈ℕn \in \mathbb{N}, let MM be a matroid on E={0,…,n−1}E = \{0, \dots, n - 1\}, and let w∈ℝnw \in \mathbb{R}^n satisfy we≥0w_e \ge 0 for every e∈Ee \in E. Then Mmax(M,w)4≤Pmax(M,w).\frac{M_{\max}(M, w)}{4} \le P_{\max}(M, w).(9)✦

Theorem C. Let n∈ℕn \in \mathbb{N}, let MM be a matroid on E={0,…,n−1}E = \{0, \dots, n - 1\}, let B>1B > 1 be real, and let w∈ℝnw \in \mathbb{R}^n satisfy we≥0w_e \ge 0 for every e∈Ee \in E. Then OPT⁡M(w)≤B⋅OPT⁡M(w̃B(w)).\operatorname{OPT}_M(w) \le B \cdot \operatorname{OPT}_M(\tilde{w}_B(w)).(10)✦

What is checked

The main hidden-mask rule (7) is stated for a matroid on {0,…,n−1}\{0, \dots, n - 1\} whose ground set is all of {0,…,n−1}\{0, \dots, n - 1\}; the worst-case branching identity (8) holds for arbitrary hidden-vector rules, Boolean branch selectors, seeds, and real weight vectors; and the maximum-branch guarantee (9) and geometric rounding bound (10) are stated for any matroid on {0,…,n−1}\{0, \dots, n - 1\}, nonnegative weight vector ww, and real base B>1B > 1. In addition, the Lean library establishes that the logarithmic weight level ℓB\ell_B is measurable for every real BB✦, that a largest density-maximizing flat containing any subset PP always exists✦, and that every element enters the nominal flat path at some nonnegative integer offset from the group activation time.✦