Mechanized LeanGuard replay lemmas.#97
Merged
Merged
Conversation
Add a shared TraceSpec replay skeleton with mechanized soundness and invariant-preservation lemmas for canonical trace replay. Instantiate the replay skeleton for the AQM and PFC event-log checkers, including coverage-observing replay and checker-level soundness theorems that connect successful checks to canonical TraceSpec replay. Validation: - cd /Users/bli/Playground/days/lean && lake build dcqcn_check pfc_check cubic_check drr_check wfq_check aqm_check aqm_dcqcn_check - cd /Users/bli/Playground/days && bash lean/scripts/run-aqm-fixtures.sh - cd /Users/bli/Playground/days && bash lean/scripts/run-aqm-coverage-fixtures.sh - cd /Users/bli/Playground/days && cargo run --features "l2_pfc,lean" --bin leanguard-run -- --config configs/ci/leanguard_pfc.toml --checker-dir lean/.lake/build/bin Co-authored-by: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR mechanized the checker-side replay scope needed by the LeanGuard paper revision. It adds a shared TraceSpec replay skeleton and representative AQM/PFC instantiations without claiming independent validation of every protocol specification.
Changes
Added a shared
TraceSpecinterface for canonical trace replay, with executable replay, coverage-observing replay, a replay relation induced by the checker step function, replay soundness lemmas, and invariant-preservation lemmas.Refactored the AQM and PFC event-log checkers to replay canonical rows through the shared TraceSpec skeleton while preserving coverage reporting and first-failure behavior.
Added AQM and PFC soundness theorems connecting successful checker runs to canonical TraceSpec replay over the sorted row sequence.
Validation
Ran
cd /Users/bli/Playground/days/lean && lake build dcqcn_check pfc_check cubic_check drr_check wfq_check aqm_check aqm_dcqcn_check.Ran
cd /Users/bli/Playground/days && bash lean/scripts/run-aqm-fixtures.sh.Ran
cd /Users/bli/Playground/days && bash lean/scripts/run-aqm-coverage-fixtures.sh.Ran
cd /Users/bli/Playground/days && cargo run --features "l2_pfc,lean" --bin leanguard-run -- --config configs/ci/leanguard_pfc.toml --checker-dir lean/.lake/build/bin.Ran
git diff --check.