Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Grid regrouping of chunk systems with variance control

Proved
KServer.chunk_regrid

by Shuze Chen · Sep 1, 2026 · Mathlib c5ea003 (Lean v4.30.0)

k-serverlower-boundmartingaleonline-algorithms

Grid regrouping of chunk systems, with exact totals and variance control. Let CCC be a chunk system with online escapes on a metric space XXX with marked points s,ts, ts,t: a finite probability space of outcomes carrying a filtration, whose request sequence is split into mmm adapted chunks with conditional sizes ci(ω)∈[cA,cB]c_i(\omega) \in [c_A, c_B]ci​(ω)∈[cA​,cB​], each certified against all evaders and online bail rules at escape price pep_epe​, with offline cost at most d(s,t)d(s,t)d(s,t) and expected total size at least TTT. Fix a spacing δ>0\delta > 0δ>0 with cB≤2δc_B \le 2\deltacB​≤2δ, a window count M≤mM \le mM≤m large enough that the total size is pointwise at most 2δM2\delta M2δM, and suppose the time-zero history is trivial and the total size has variance at most VVV:

∑ωP(ω)(∑ici(ω)−E[∑ici])2≤V.\sum_\omega P(\omega)\Big(\sum_i c_i(\omega) - \mathbb{E}\big[\textstyle\sum_i c_i\big]\Big)^2 \le V.ω∑​P(ω)(i∑​ci​(ω)−E[∑i​ci​])2≤V.

Then the chunks can be regrouped along the hitting times of the cumulative-mass grid {2δj}j≤M\{2\delta j\}_{j \le M}{2δj}j≤M​ into a chunk system with the same request sequence and MMM chunks whose sizes lie pointwise in [0,2δ+cB][0, 2\delta + c_B][0,2δ+cB​], at escape price p′≥pe+2δ+cBp' \ge p_e + 2\delta + c_Bp′≥pe​+2δ+cB​, such that the expected total is preserved exactly, the new time-zero history is again trivial, and the new total size has variance at most

V′  ≥  54 V+20 (2δ+cB) E[∑ici].V' \;\ge\; \tfrac54\, V + 20\,(2\delta + c_B)\,\mathbb{E}\big[\textstyle\sum_i c_i\big].V′≥45​V+20(2δ+cB​)E[∑i​ci​].

The variance bound comes from the orthogonal-increment decomposition of the output total: the output sizes are conditional expectations of the grid-window masses at their starting times, so the centred output total is a sum of martingale differences combining the Doob increments of the input total with window-restricted increments of the individual window masses; the former contribute the input variance, the latter a ceiling-scale term. This is the load-bearing renormalization step of the Bienkowski-Coester-Rabinovich lower-bound induction: it re-spaces chunk sizes to the next scale while carrying the variance invariant needed at the following level, with no loss in the expected total.

Preamble
import Mathlib
import Definitions.Def_KServer_evader
import Definitions.Def_KServer_evader_bail
import Definitions.Def_KServer_chunk_system_b
import Definitions.Def_KServer_chunk_cond
import Definitions.Def_KServer_chunk_stopping
import Definitions.Def_KServer_bail_append
import Definitions.Def_KServer_chunk_saturate
import Definitions.Def_KServer_chunk_var
Formal statement
namespace KServer

theorem chunk_regrid {X : Type*} [MetricSpace X] {s t : X}
    {cA cB T pe : ℝ} {mL : ℕ} (C : ChunkSystemB X s t cA cB T pe mL)
    {M : ℕ} {δ p' V V' : ℝ}
    (hMm : M ≤ C.m) (hM0 : 0 < M) (hδ : 0 < δ)
    (hcA0 : 0 ≤ cA) (hcB0 : 0 ≤ cB) (hcB2δ : cB ≤ 2 * δ) (hpe : 0 ≤ pe)
    (hp : pe + (2 * δ + cB) ≤ p')
    (hTmax : ∀ ω, (∑ i, C.size ω i) ≤ 2 * δ * M)
    (h0triv : ∀ ω₁ ω₂ : C.Ω, C.hist 0 ω₁ = C.hist 0 ω₂)
    (hVar : ∑ ω, C.P ω * ((∑ i, C.size ω i)
      - ∑ ω', C.P ω' * ∑ i, C.size ω' i) ^ 2 ≤ V)
    (hV' : 5 / 4 * V
      + 20 * ((2 * δ + cB) * ∑ ω, C.P ω * ∑ i, C.size ω i) ≤ V') :
    ∃ C' : ChunkSystemB X s t 0 (2 * δ + cB) T p' M,
      (∀ ω₁ ω₂ : C'.Ω, C'.hist 0 ω₁ = C'.hist 0 ω₂) ∧
      (∑ ω, C'.P ω * ((∑ i, C'.size ω i)
          - ∑ ω', C'.P ω' * (∑ i, C'.size ω' i)) ^ 2 ≤ V') := by sorry

end KServer
Source
BCR randomized k-server lower bound, combining/renormalization layer (v3)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me