Lemma 5.3 — LRU is full at positions
ProvedChangingCache.UpperBound.lemma_5_3cachingcompetitive-analysislrup2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-v1pagingresource-augmentation
Consider a reduced run of length under augmentation, and let be LRU's capacity after misses. Then for every integer with ,
That is, LRU is full after every request at a position , from position on.
This is why the invariant Eq. (4) is stated only at positions .
Differences from the source:
- encoding: a page is an identifier; a request sequence is a finite list → pages are elements of an arbitrary type with decidable equality; the sequence is a
List, request is the 0-based entryσ[i]and position is the moment after the first requests; reason: Lean convention; same instances - encoding: a legal policy may discard pages at any time; on its -th miss the loaded page must fit capacity → a policy is the family of pages held after the first requests, including the discards made before request : , , and at its -th miss; reason: moving a discard earlier, to just after the previous request, changes no hit, miss or capacity check; this is the placement the source itself uses in (R3) and Eq. (5)
- encoding: (Eq. (3)) →
augCap 2 3 m kwith the real speed ; reason: the same capacity law as Section 4 at ; it equals - encoding: a reduced run of OPT and LRU on a memory profile →
IsReduced 2 3 m σ S: is a memory profile, is an optimal legal policy for on , and (R1)–(R3) hold; reason: Definition 4.1 transcribed; OPT is a designated optimal policy of the run
Preamble
import Mathlib import Definitions.Def_ChangingCache_UpperBound_NormalForm
Formal statement
namespace ChangingCache.UpperBound
/-- **Lemma 5.3**, p. 12. In a reduced run of length `n` under `(2, 3)` augmentation,
`|P_LRU(3i + 1)| = 2 m(i) = m_LRU(3i + 1)` for every integer `i ≥ 1` with `3i + 1 ≤ n`, where
`m_LRU(k) = 2 m(⌊k/3⌋)` is LRU's capacity after `k` misses (Eq. (3)): LRU is full after every
request at a position `≡ 1 (mod 3)` from position `4` on. -/
theorem lemma_5_3 {α : Type*} [DecidableEq α] (m : ℕ → ℕ) (σ : List α) (S : ℕ → Finset α)
(hred : IsReduced 2 3 m σ S) :
∀ i : ℕ, 1 ≤ i → 3 * i + 1 ≤ σ.length →
(lruCache (augCap 2 3 m) σ (3 * i + 1)).card = 2 * m i ∧
2 * m i = augCap 2 3 m (3 * i + 1) := by sorry
end ChangingCache.UpperBound
Source
Michael A. Bender, Daniel DeLayo, Pritom Kundu, Charlie McGuffey, Zofia Stefankovic, Zhonglue Wang, STOC 2027 submission #93 (October 2026), Caching with a Changing Cache Size, SHA-256 9d5334fdae9f69a8802bcb33b61c3699463aa88862a32b7bb8d17bd3efdf533d, Lemma 5.3, p. 12
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.