Conformance Verification (LeanGuard)
Trace-certificate checking and executable Lean models for both Days engines.
Scope: Days AGO and Legacy Days. Days ships a Lean 4 verification tree under lean/. It has two related surfaces:
- Legacy protocol certificates:
days-legacy, built with theleanCargo feature, writes*_events.csvfiles. LeanGuard canonicalizes and replays those traces. - Days AGO certificates and proofs: the executor exposes exact-integer transition records for
TCP, AQM, DCQCN, RoCE queue pairs, PFC, schedulers, rate sources, and collectives. The
tcp_check,sp_check, andp10c_*checkers replay their CSV projections using the executor's completeEventKey, whilelean/DaysExecutor/formalizes the image, transition, safe-horizon, and round-execution model.
An accepted certificate means every recorded transition satisfies that checker's executable reference semantics. It does not, by itself, prove code that was not represented in the trace.
This section covers:
- Use guide: emit legacy traces, build the Lean targets, and run legacy or exact-executor checkers.
- Design sketch: canonical keys, replay contracts, and the separate
DaysExecutortheorem surface.