Skip to content

Conversation

@charles-cooper
Copy link
Contributor

No description provided.

charles-cooper and others added 2 commits December 28, 2025 03:29
Adds HOL4 proof skeleton for verifying the revert-to-assert
optimization pass. Includes definitions, helper lemmas, and main
correctness theorems (with cheats for filling in later).

Files:
- revertAssertDefsScript.sml: Pattern predicates, state_equiv_except
- revertAssertPropsScript.sml: Instruction behavior lemmas (36 cheats)
- revertAssertCorrectScript.sml: Main theorems (4 cheats, 2 proved)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy link
Member

@xrchz xrchz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

Some comments for next steps:

  • All the lemmas (A-D, or maybe just A-C) could be put in a general theory of properties about the semantics, they aren't super specific to this pass.
  • I suggest the next PR either just defines the compiler pass, or just proves those lemmas.

@xrchz xrchz merged commit 222c5bf into main Dec 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants