1 Commits
Author SHA1 Message Date
adm afce5cbbfe [Proofs] speculative_draft.lean: lossless greedy spec equivalence + rollback=truncate
Brick 1 of DSpark Step 1 (proof-first per AGENTS invariant 6):
- spec_lossless: one speculative round (draft, batched causal verify, accept
  longest matching prefix, emit correction/bonus) emits EXACTLY the plain-greedy
  prefix of length match_len+1 for ANY draft => speculation changes throughput,
  never the token sequence.
- kept_rejected_disjoint: with ring R >= window+chunk, kept window and rejected
  draft tail occupy disjoint ring slots => rollback = truncate history length,
  no KV data restore needed.
Core tactics only; 0 sorryAx; all 7 proofs green.
2026-12-02 20:05:11 +01:00