Theorem 7 — a law-independent empirical caching learner attains every larger factor
OpenNonuniformCompetitive.Snoopy.Supplement.theorem_7For every integral transfer cost there is one deterministic empirical threshold policy , independent of all run laws, with the following property. For every fixed finite block address space, every positive number of processors, every initial block-state family and every collection of iid run-length laws on ,
The expectations use actual causal cache costs on the run inputs. All finite per-block horizons and all valid processor changes are covered. Blocks can have different laws and arbitrary cross-block dependence. The policy minimizes empirical complete-run cost over using all prior runs; its first choice is .
This is an exact every-strict-factor guarantee, with no moment or finite-support assumptions. The additive constant depends on the fixed instance, the laws and , not on the input horizon.
Differences from the source:
- encoding: a fixed unlimited-cache multiprocessor address space with possibly different laws per block → an arbitrary finite block type and sums of the projected block costs; reason: §2 uses finite task systems; all finite address spaces and all interleavings are represented
- encoding: independent successive run lengths for each block → every joint input law with iid per-block marginals, and arbitrary adjacent-distinct run owners; reason: cost is invariant under interleaving and renaming active processors, so no cross-block independence is added
- encoding: a deterministic adaptive learner obtained from the source mixture → the named empirical minimizer over the mixture support 0 through p, with A_p initially; reason: the finite family already has a member within the source ratio by the averaging argument on p. 557; this fixes an explicit witness without excluding any input law
- encoding: c-competitive for all c above e_p/(e_p−1) → the learner is chosen before the instance laws and c, with a before every horizon; reason: this makes distribution independence and the additive-constant quantifiers explicit
import Mathlib import Definitions.Def_NonuniformCompetitive_Snoopy_Supplement_cacheLearning
namespace NonuniformCompetitive.Snoopy.Supplement
open MeasureTheory
/-- Theorem 7, pp.556–557. A single deterministic law-independent per-block
threshold learner works for all iid laws, all strict factors, and every fixed
finite unlimited-cache instance. No moment bound on run lengths is imposed.
All finite address spaces and any interleavings of their runs are covered;
separate blocks need not be independent. -/
theorem theorem_7 (p : ℕ) (hp : 1 ≤ p) :
∃ f : CachePolicy p, f = empiricalCachePolicy p ∧ ∀ (B : Type) [Fintype B] (n : ℕ), 1 ≤ n →
∀ (s₀ : B → NonuniformCompetitive.Snoopy.State n) (P : B → Measure ℕ),
(∀ b, IsProbabilityMeasure (P b)) →
∀ c : ℝ, NonuniformCompetitive.Snoopy.ep p / (NonuniformCompetitive.Snoopy.ep p - 1) < c →
CacheIIDCompetitive f s₀ P c := by sorry
end NonuniformCompetitive.Snoopy.Supplement