Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Grid regrouping with exact window count

Proved
KServer.chunk_regrid2

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

chunk-systemk-serverlower-boundsonline-algorithmsprobability

A strengthening of the grid-regrouping lemma for chunk systems that additionally records the exact number of output windows. Given a chunk system with sizes in [cA,cB][c_A, c_B][cA​,cB​], expected total TTT, escape price pep_epe​, and at least MMM chunks, whose pathwise total mass never exceeds 2deltaM2\\delta M2deltaM and whose total has variance at most VVV, the chunks regroup along the cumulative-mass grid of mesh 2delta2\\delta2delta into a chunk system with exactly MMM windows, sizes in [0,2delta+cB][0, 2\\delta + c_B][0,2delta+cB​], the same expected total TTT, escape price p′gepe+2delta+cBp' \\ge p_e + 2\\delta + c_Bp′gepe​+2delta+cB​, a trivial initial history, and output variance at most V' \\ge \\tfrac{5}{4}V + 20(2\\delta + c_B)\\mathbb{E}[T_\\omega]. The exact window count C′.m=MC'.m = MC′.m=M is needed downstream to bound range terms in variance estimates of systems built from the regrouped one.

Preamble
import Mathlib
import Definitions.Def_KServer_evader
import Definitions.Def_KServer_evader_bail
import Definitions.Def_KServer_chunk_system_b
Formal statement
namespace KServer

theorem chunk_regrid2 {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'.m = 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
Bansal-Cohen-Ravi style randomized k-server lower bound: level recursion plumbing

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