OctoInform Beta

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

Lemma 13: Inserting at most ss marked movable occurrences into a spanning old sequence produces at most 4s∑ℓ=0s(nℓ)4^s \sum_{\ell=0}^s \binom{n}{\ell} pivot patterns on nn nonloops

Bounding marked pivot patterns under movable insertions.

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 an online matroid process, labeled elements arrive at distinct timestamps, each carrying a binary mark. Every nonloop test element acquires the mark of its pivot, the arrival at which it first enters the closure of the elements seen so far. Suppose a fixed sequence of marked old occurrences whose labels span the matroid is interleaved with at most ss labeled movable occurrences, placed at arbitrary positions and assigned arbitrary binary marks. The number of distinct mark patterns realized on nn test nonloops is bounded by a function of nn and ss alone, independent of the length of the old sequence.

Occurrences and pivots

Let MM be a matroid on a set α\alpha with ground set E⊆αE \subseteq \alpha and closure operator cl\operatorname{cl}. An element e∈αe \in \alpha is a loop if e∈cl⁡(∅)e \in \operatorname{cl}(\emptyset) and a nonloop otherwise.

The pivot of an element tracks the exact step in an arrival order at which that element first enters the matroid closure of the elements seen so far.

Given an index set β\beta, a labeling λ:β→α\lambda : \beta \to \alpha, a timestamp map τ:β→ℕ\tau : \beta \to \mathbb{N}, and an element e∈αe \in \alpha, an index o∈βo \in \beta is a pivot for ee under λ\lambda and τ\tau if e∈cl⁡({λ(p):p∈β,τ(p)≤τ(o)}),e∉cl⁡({λ(p):p∈β,τ(p)<τ(o)}).\begin{aligned} e &\in \operatorname{cl}(\{\lambda(p) : p \in \beta,\ \tau(p) \le \tau(o)\}), \\ e &\notin \operatorname{cl}(\{\lambda(p) : p \in \beta,\ \tau(p) < \tau(o)\}). \end{aligned}(1)✦

For any natural number m∈ℕm \in \mathbb{N}, write [m]={0,…,m−1}[m] = \{0, \dots, m - 1\}, which is empty when m=0m = 0. Given r,q∈ℕr, q \in \mathbb{N}, the set of occurrences is the disjoint union Ωr,q=[r]⊔[q]\Omega_{r,q} = [r] \sqcup [q].✦ Write old⁡(i)\operatorname{old}(i) for the ii-th old occurrence (i∈[r]i \in [r]) and mov⁡(j)\operatorname{mov}(j) for the jj-th movable occurrence (j∈[q]j \in [q]).

For a sequence b:ℕ→αb : \mathbb{N} \to \alpha and k∈ℕk \in \mathbb{N}, the old prefix of length kk is the set Pk(b)={b(i):i∈ℕ,i<k}⊆αP_k(b) = \{b(i) : i \in \mathbb{N},\ i < k\} \subseteq \alpha.✦ Given b:ℕ→αb : \mathbb{N} \to \alpha and a tuple a:[q]→αa : [q] \to \alpha, the occurrence labeling λb,a:Ωr,q→α\lambda_{b,a} : \Omega_{r,q} \to \alpha assigns b(i)b(i) to old⁡(i)\operatorname{old}(i) and a(j)a(j) to mov⁡(j)\operatorname{mov}(j).✦ Similarly, given mark assignments μold:[r]→{0,1}\mu_{\mathrm{old}} : [r] \to \{0, 1\} and μmov:[q]→{0,1}\mu_{\mathrm{mov}} : [q] \to \{0, 1\}, the occurrence mark μ:Ωr,q→{0,1}\mu : \Omega_{r,q} \to \{0, 1\} assigns μold(i)\mu_{\mathrm{old}}(i) to old⁡(i)\operatorname{old}(i) and μmov(j)\mu_{\mathrm{mov}}(j) to mov⁡(j)\operatorname{mov}(j).✦ A timestamp map τ:Ωr,q→ℕ\tau : \Omega_{r,q} \to \mathbb{N} is old-ordered if τ(old⁡(i))<τ(old⁡(j))\tau(\operatorname{old}(i)) < \tau(\operatorname{old}(j)) for all i,j∈[r]i, j \in [r] with i<ji < j.✦

Given an occurrence labeling λ:Ωr,q→α\lambda : \Omega_{r,q} \to \alpha, a tuple of nn test elements v:[n]→αv : [n] \to \alpha, a timestamp map τ:Ωr,q→ℕ\tau : \Omega_{r,q} \to \mathbb{N}, and mark assignments μold:[r]→{0,1}\mu_{\mathrm{old}} : [r] \to \{0, 1\} and μmov:[q]→{0,1}\mu_{\mathrm{mov}} : [q] \to \{0, 1\} with combined occurrence mark μ\mu, a subset W⊆[n]W \subseteq [n] records the pivot marks if for every f∈[n]f \in [n] there exists an occurrence o∈Ωr,qo \in \Omega_{r,q} that is a pivot for v(f)v(f) under λ\lambda and τ\tau and satisfies μ(o)=1⇔f∈W.\mu(o) = 1 \iff f \in W.(2)✦

For a matroid MM on α\alpha, a sequence b:ℕ→αb : \mathbb{N} \to \alpha, tuples a:[q]→αa : [q] \to \alpha and v:[n]→αv : [n] \to \alpha, and an old mark assignment μold:[r]→{0,1}\mu_{\mathrm{old}} : [r] \to \{0, 1\}, the marked pivot pattern family ℱ(M,b,a,v,μold)\mathcal{F}(M, b, a, v, \mu_{\mathrm{old}}) is the family of all subsets W⊆[n]W \subseteq [n] for which there exist an injective old-ordered timestamp map τ:Ωr,q→ℕ\tau : \Omega_{r,q} \to \mathbb{N} and a movable mark assignment μmov:[q]→{0,1}\mu_{\mathrm{mov}} : [q] \to \{0, 1\} such that WW records the pivot marks under λb,a\lambda_{b,a}, τ\tau, μold\mu_{\mathrm{old}}, and μmov\mu_{\mathrm{mov}}.✦

The claim

Theorem A. Let MM be a matroid on α\alpha with closure operator cl\operatorname{cl}, let β\beta be a finite index set, let λ:β→α\lambda : \beta \to \alpha, and let τ:β→ℕ\tau : \beta \to \mathbb{N} be injective. If e∈αe \in \alpha satisfies e∉cl⁡(∅)e \notin \operatorname{cl}(\emptyset) and e∈cl⁡({λ(p):p∈β})e \in \operatorname{cl}(\{\lambda(p) : p \in \beta\}), then there exists a unique o∈βo \in \beta that is a pivot for ee under λ\lambda and τ\tau: ∃!o∈β,e∈cl⁡({λ(p):p∈β,τ(p)≤τ(o)})ande∉cl⁡({λ(p):p∈β,τ(p)<τ(o)}).\begin{aligned} \exists!\, o \in \beta,\quad & e \in \operatorname{cl}(\{\lambda(p) : p \in \beta,\ \tau(p) \le \tau(o)\}) \\ & \text{and}\quad e \notin \operatorname{cl}(\{\lambda(p) : p \in \beta,\ \tau(p) < \tau(o)\}). \end{aligned}(3)✦

Theorem B. Let MM be a matroid on a finite set α\alpha with ground set EE and closure operator cl\operatorname{cl}, let n,r,q,s∈ℕn, r, q, s \in \mathbb{N} with q≤sq \le s, let b:ℕ→αb : \mathbb{N} \to \alpha, a:[q]→αa : [q] \to \alpha, v:[n]→αv : [n] \to \alpha, and μold:[r]→{0,1}\mu_{\mathrm{old}} : [r] \to \{0, 1\}. Assume that λb,a(o)∈E\lambda_{b,a}(o) \in E for all o∈Ωr,qo \in \Omega_{r,q}, that cl⁡(Pr(b))=E\operatorname{cl}(P_r(b)) = E, and that v(f)∈E\cl⁡(∅)v(f) \in E \setminus \operatorname{cl}(\emptyset) for all f∈[n]f \in [n]. Let ℱ=ℱ(M,b,a,v,μold)\mathcal{F} = \mathcal{F}(M, b, a, v, \mu_{\mathrm{old}}) be the marked pivot pattern family, consisting of all subsets W⊆[n]W \subseteq [n] for which there exist an injective old-ordered timestamp map τ:Ωr,q→ℕ\tau : \Omega_{r,q} \to \mathbb{N} and a movable mark assignment μmov:[q]→{0,1}\mu_{\mathrm{mov}} : [q] \to \{0, 1\} such that WW records the pivot marks under λb,a\lambda_{b,a}, τ\tau, μold\mu_{\mathrm{old}}, and μmov\mu_{\mathrm{mov}}. Then |ℱ|≤4s∑ℓ=0s(nℓ),|\mathcal{F}| \le 4^s \sum_{\ell=0}^{s} \binom{n}{\ell},(4)✦ where (nℓ)=0\binom{n}{\ell} = 0 for ℓ>n\ell > n. Moreover, for every injective old-ordered timestamp map τ:Ωr,q→ℕ\tau : \Omega_{r,q} \to \mathbb{N} and every movable mark assignment μmov:[q]→{0,1}\mu_{\mathrm{mov}} : [q] \to \{0, 1\}, there exists a unique subset W∈ℱW \in \mathcal{F} that records the pivot marks under λb,a\lambda_{b,a}, τ\tau, μold\mu_{\mathrm{old}}, and μmov\mu_{\mathrm{mov}}.

What is checked

In the Lean library, pivot uniqueness in (3) is stated for an arbitrary matroid MM on α\alpha, an arbitrary index set β\beta, a labeling λ:β→α\lambda : \beta \to \alpha, an injective timestamp map τ:β→ℕ\tau : \beta \to \mathbb{N}, and a nonloop e∈cl⁡({λ(p):p∈β})e \in \operatorname{cl}(\{\lambda(p) : p \in \beta\}). The counting bound in (4) and the accompanying unique-pattern guarantee are stated for an arbitrary matroid MM on α\alpha, natural numbers n,r,q,sn, r, q, s with q≤sq \le s, occurrence labels in EE whose old prefix Pr(b)P_r(b) spans EE, and nn test nonloops v(f)v(f) in EE, with no finiteness assumption on MM and no injectivity assumption on bb, aa, or vv.