Observation 3.1 — a legal policy with only cold misses is optimal on every prefix
ProvedChangingCache.UpperBound.observation_3_1cachingcompetitive-analysislrup2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-v1pagingresource-augmentation
Let be a sequence of capacities and a request sequence of length , and let be a legal policy on all of whose misses are cold. Then for every , the number of misses of among the first requests equals OPT's number of misses on the prefix :
Every policy starts empty and loads a page only when it is requested, so every policy misses at least on cold requests; this observation turns "only cold misses" into optimality, and it is used by Lemma 4.3, Lemma 4.7 and Lemma 5.7 to certify that a transformed policy is still OPT.
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: OPT, the legal policy with the fewest misses →
optMisses m σ, the infimum over legal policies of their miss count (attained, the set being nonempty for a memory profile); reason: Lean convention; the minimum of a nonempty set of natural numbers - encoding: optimal after every prefix of the request sequence → the policy's miss count after the first requests equals
optMisses m (σ.take r)for every ; reason: a policy is optimal on a prefix when its miss count there is the minimum over legal policies on that prefix, and the restriction of a legal policy to a prefix is legal
Preamble
import Mathlib import Definitions.Def_ChangingCache_UpperBound_Model
Formal statement
namespace ChangingCache.UpperBound
/-- **Observation 3.1** (p. 6): a legal policy that has only cold misses is optimal after every
prefix of the request sequence: after the first `r` requests its miss count equals OPT's on that
prefix. -/
theorem observation_3_1 {α : Type*} [DecidableEq α] (m : ℕ → ℕ) (σ : List α)
(S : ℕ → Finset α) (hS : IsLegal m σ S) (hcold : AllMissesCold σ S) :
∀ r ≤ σ.length, policyMisses σ S r = optMisses m (σ.take r) := 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, Observation 3.1, p. 6
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.