Most of caching theory assumes a cache of fixed size, but real caches change size over time: a processor's last-level cache is repartitioned among cores at runtime, and a virtual machine's memory is reclaimed and regranted by its host. Cache-adaptive analysis studies algorithms on such caches, and it relies on one comparison: how much more memory and speed the online policy LRU (least recently used) needs to finish every request sequence no later than the offline optimum OPT. Analyses of cache-adaptive algorithms bound their misses under an optimal replacement policy and transfer the bound to LRU through this comparison (Bender et al., SODA 2014; Bender et al., SPAA 2016).
Timeline:
A page is an identifier; a request sequence is a finite list of pages, repetitions allowed. A request is a hit if its page is in the cache and a miss otherwise; a miss on a page's first request is cold. Both caches start empty and load only the requested page, one page per miss.
Time is measured in misses: a miss takes one unit and a hit none. A memory profile is a sequence of positive integers with
so the capacity may drop by any amount at once but grows by at most one page per unit of time. A legal policy may discard any page at any time, may use the whole sequence, and on its -th miss must fit the loaded page into capacity . is the fewest misses of a legal policy.
Under augmentation, LRU has times the capacity and serves each miss in time : after misses its capacity is
LRU orders its pages by most recent request; on a request it moves the page to the front, loading it on a miss, and discards the oldest pages until the rest fit. Each policy reads the profile at its own clock, so LRU and OPT reach the same request at different times and different capacities. The makespan of LRU is ; that of OPT is .
The proof introduces the bank after requests, and reduced runs: runs in which every request misses in LRU (R1), every miss of OPT is cold (R2), and OPT holds exactly pages just before its -th miss (R3).
The paper's two main results are the upper bound, refTheorem 1.1, and the lower bound, refTheorem 1.2. The platform allows one goal, so Theorem 1.1 remains the goal and Theorem 1.2 is a milestone of equal standing.
The milestones of Section 6 and Appendices A and B were added on 2026-11-15 so that the mission covers every theorem of the paper.
For every memory profile and finite request sequence , under augmentation,
The profile is arbitrary: not bounded, not monotone, with no minimum residency time. No additive term appears.
For every augmentation with real : Observation 3.1 (a policy with only cold misses is optimal on every prefix); Lemma 4.4 (stack-depth domination); Lemma 4.5 (coupling held pages by rank); Lemma 4.6 (inserting a miss); Lemma 4.3 (request-sequence reduction to (R1), (R2) and greedy requests); Lemma 4.7 (tight profile, adding (R3)); Corollary 4.2: a counterexample yields a reduced run with .
Lemma 5.2 (LRU's cache is a window of distinct recent requests); Lemma 5.3 (LRU is full at positions ); Lemma 5.4 (the first negative bank violates Eq. (4)); Lemma 5.5 (slack before the first failure of Eq. (4)); Lemma 5.6 (counting); Lemma 5.7 (keeping pages on a ramp profile); and Theorem 5.1:
Wherever the guarantee of 2014 is used as a black box in cache-adaptive analysis, Theorem 1.1 substitutes . With the lower bound of the same paper ( gives an unbounded makespan ratio), it settles integer speed augmentation for memory factor 2; the exact speed between 2.18 and 3 remains open. The normal form of Section 4 is a reusable reduction: it is also the starting point of the paper's lower bound.
The result is proved on paper in a 2026 submission; it has no machine-checked proof. The mission asks for a Lean proof of the full chain. The operational model (profiles, augmented LRU, legal policies, OPT as a minimum over schedules) is itself new on the platform: existing caching items fix the capacity, use fractional costs or a stochastic arrival model.
The obvious attempt combines Sleator and Tarjan's phase argument with the 2014 inner-square argument. The phase argument needs a fixed cache boundary: within a window of distinct requests LRU keeps every page it loads, which fails when the profile drops. The inner-square argument tolerates changing memory but treats LRU only as a cache of the right size and loses constant factors. Neither controls two policies that read the profile at different clocks: a change of profile alters not only what each policy holds but how fast it advances.
The proof of Theorem 5.1 does not proceed by induction along one run. It takes the earliest failure of Eq. (4) over all reduced runs and all profiles, and constructs a different reduced run, with a modified profile, that fails earlier. A formal proof must therefore quantify over runs and profiles, and must certify optimality and the reduced-run properties of every transformed run. The Section 4 reductions rename and delete requests while comparing LRU stacks rank by rank, which needs precise bookkeeping of stacks, ranks and partner pages.
Lean representation and conventions:
σ[i]; position is the moment after the first requests.m : ℕ → ℕ with and ; is not assumed.S i of pages held after the first requests, with every voluntary discard placed before the next request: , , and at the -th miss. This is the placement of (R3); it changes no hit or miss of any policy.augCap a s m k. At the capacity is . A miss increments the count before the new capacity applies; free slots are filled only by requests.Trivializing formalizations ruled out: the goal assumes none of (R1)–(R3), no bound on the bank, no fixed or monotone capacity, and it is stated against the attained optimum, not against an arbitrary number.
Infrastructure needed: LRU's stack property (the cache is the top of the stack), invariance of LRU and of legality under injective renaming of pages, and the optimality of cold-miss-only policies. These are reusable for any formal work on paging. Contributions to any milestone, and to general lemmas about the model, are welcome.
namespace ChangingCache.UpperBound
/-- **Theorem 1.1 (Upper bound)**, p. 2 (repeated p. 12). Under `(2, 3)` augmentation LRU has a
makespan competitive ratio of at most 1: for every memory profile `m` and finite request sequence
`σ`, both caches starting empty, LRU (capacity `2 m(⌊k/3⌋)` after `k` misses) incurs at most three
times as many misses as OPT, so its makespan `F_LRU / 3` is at most OPT's makespan `F_OPT`. -/
theorem lru_three_speed_upper_bound {α : Type*} [DecidableEq α] (m : ℕ → ℕ)
(hm : IsMemoryProfile m) (σ : List α) :
(lruRun (augCap 2 3 m) σ).misses ≤ 3 * optMisses m σ ∧
((lruRun (augCap 2 3 m) σ).misses : ℝ) / 3 ≤ (optMisses m σ : ℝ) := by sorry
end ChangingCache.UpperBound
Let be any memory profile: positive integers with . Let be any finite request sequence over any set of pages. Both caches start empty and load only requested pages. OPT is the fewest misses of a legal policy with capacity after its -th miss. LRU runs under augmentation, so its capacity after misses is and each of its misses takes time . Then LRU incurs at most three times as many misses as OPT, so its makespan is at most OPT's:
In other words, under augmentation LRU's makespan competitive ratio is at most 1. The bound improves the guarantee of Bender et al. (2014); Theorem 1.2 of the same paper shows that augmentation does not suffice.
Differences from the source:
List, request is the 0-based entry σ[i] and position is the moment after the first requests; reason: Lean convention; same instancesoptMisses 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 numbersaugCap 2 3 m k with the real speed ; reason: the same capacity law as Section 4 at ; it equals No open leaves. Every sub-goal is proved or awaiting decomposition.