Skip to content

passes: restructure phi_elim + RTA to defs/proofs/correctness/rollup pattern#171

Open
charles-cooper wants to merge 4 commits intomainfrom
refactor-passes
Open

passes: restructure phi_elim + RTA to defs/proofs/correctness/rollup pattern#171
charles-cooper wants to merge 4 commits intomainfrom
refactor-passes

Conversation

@charles-cooper
Copy link
Contributor

co-authored by claude opus 4.6

Restructure venom/passes/ to match the analysis directory pattern (defs/, proofs/, correctness, rollup).

Changes

Directory structure (both passes)

  • defs/ — definitions and well-formedness predicates
  • proofs/ — correctness proofs (block-level, helpers, lifting)
  • *CorrectnessScript.sml — top-level correctness theorems (ACCEPT_TAC)
  • *Script.sml — rollup (consumers just need Ancestors phiElim or Ancestors rta)

phi_elimination renames

before after
dfgOriginsScript defs/phiOriginsScript
phiFunctionScript proofs/phiCorrectnessProofScript
new phiElimCorrectnessScript (ACCEPT_TAC)
new phiElimScript (rollup)

revert_to_assert renames

before after
rtaPassDefsScript defs/rtaDefsScript
rtaPattern1Script proofs/rtaBlockProofScript
rtaProofHelpersScript proofs/rtaHelpersScript
rtaPassCorrectnessScript proofs/rtaCorrectnessProofScript
new rtaCorrectnessScript (ACCEPT_TAC)
new rtaScript (rollup)

Other

  • venomPassesHolScript.sml — passes rollup (like venomAnalysisHol)
  • RTA: removed export_theory(), modernized to Theory/Ancestors syntax
  • Root Holmakefile simplified to just venom/passes

…pattern

Matches the analysis directory structure (defs/, proofs/, Props, rollup).

phi_elimination:
- defs/: phiDefs, phiTransform, phiWellFormed, phiOrigins (was dfgOrigins)
- proofs/: phiBlock, phiCorrectnessProof (was phiFunction)
- phiElimCorrectness: ACCEPT_TAC top-level correctness theorems
- phiElim: rollup

revert_to_assert:
- defs/: rtaDefs (was rtaPassDefs)
- proofs/: rtaHelpers (was rtaProofHelpers), rtaBlockProof (was rtaPattern1),
           rtaCorrectnessProof (was rtaPassCorrectness)
- rtaCorrectness: ACCEPT_TAC top-level correctness theorem
- rta: rollup

Also:
- venomPassesHol rollup theory (like venomAnalysisHol)
- RTA: removed export_theory(), modernized syntax
- Root Holmakefile simplified to just venom/passes
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.

1 participant