Reliability decay and the optimal checkpoint
Parent: derivations
0. Claim and contribution
For a task of error-prone atomic steps:
- Exponential reliability decay — with no intermediate check, P(correct) ; half-life (Thm 1–2).
- Restart cost without checkpoints — expected total work , super-exponential (Thm 3).
- Checkpoints drop the exponent — expected execution work (Thm 4).
- Optimal interval — exact per-interval expected work in a Poisson model, then the rigorous limit, with checkpoint cost in the accounting throughout (Thm 5). Cites only basic probability.
1. Discrete model
sequential steps. (A1) each step is correct (prob ) or wrong (prob ), independently. (A2) a checkpoint perfectly detects whether the segment since the last one is all-correct. (A3) with no intermediate check, detection is only at the end (errors are silent within a pass, so each pass executes all steps).
2. Theorem 1 (exponential decay)
Theorem 1by independence (A1). Since , .
3. Theorem 2 (half-life, with bounds)
Theorem 2solving satisfies
Proofgives the equality. From : gives the upper bound; gives the lower.
(e.g. .)
4. Theorem 3 (restart cost, no checkpoints)
LemmaGeometric mean. Success prob per trial; first-success index has .
Proof. ; with , .
Theorem 3Redo the whole task on failure expected execution work .
Proof. Passes are i.i.d. with success (Thm 1); ; each pass executes steps (A3). Super-exponential in .
5. Theorem 4 (checkpoints: exponent )
Theorem 4Partition into segments of length , each with a detecting checkpoint (redo only the failed segment to pass). Expected execution work . Ratio to Thm 3: , exponentially small for .
(Accounting) This counts execution only, not checkpoint cost ; if were free, is optimal. The optimal granularity once is priced is §6 — fixing the inconsistency of counting work but not gates.
6. Theorem 5 (optimal interval, exact then asymptotic)
Theorem 5Model. Progress in useful work; failures a Poisson process of rate (so mean work between failures); checkpoint every , cost ; a failure rolls back to the last checkpoint (redo the whole current interval).
Exact per-interval work. Per-attempt no-failure prob . Truncated mean: , so ; expected failed attempts . Hence
Rare-failure limit . With : (the linear term cancels via ). So extra overhead per interval , and over total useful work :
Convex;
with checkpoint and rework costs equal at the optimum.
RemarkSecond order gives Daly (2006)'s correction — cited; leading order is the result.
7. Scope
Independent steps (correlated/common-cause failures change ); perfect detection (a miss rate makes the gate only partly truncate the exponent — the "semantic error passing the type gate" case); rollback-to-checkpoint (finer recovery shrinks the waste and shifts ); §2–5 discrete vs §6 continuous — consistent (both: the gate truncates the long-horizon multiplicative cost).
8. Cited vs proved
Proved: via independence; log-series bounds; geometric mean; restart & segmented work; exact per-interval cost and its limit. Cited: exponential inter-arrival of the Poisson process; Daly's second-order correction.