Skip to content

Preserve handler effects through BEAM emission - #472

Merged
CommaBot merged 1 commit into
mainfrom
feat/p3-front-c-emission-effects
Dec 6, 2026
Merged

CommaBot merged 1 commit into
mainfrom
feat/p3-front-c-emission-effects

Conversation

@CommaBot

@CommaBot CommaBot commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Prove that every real instruction dispatch, completed block, and emission prefix preserves the function-relative index and the full cached effect table.
  • Recover the original handler operand and pop at the live mixed-simulation cursor. The catch-end, try-end, and try-case steps now obtain their stack effect through the actual emission and preparation traces.
  • Extend production relocation to IS_FUNCTION2, IS_TAGGED_TUPLE, IS_NATIVE_RECORD, IS_RECORD_ACCESSIBLE, and HAS_MAP_FIELDS. These cases reuse the established literal, operand-list, and edge relocation rules. Dispatches outside the covered families still take the existing relocation premise.

Verification

  • Targeted Front C Lake build and static proof audit.
  • Printed dependencies of the main emission, mixed-trace, and relocation theorems contain only the standard Lean axioms.
  • Zero reachable *Cbv modules in the Front C closure. The existing evaluator artifacts retain their timestamps.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@CommaBot
CommaBot merged commit 8e24984 into main Dec 6, 2026
1 check passed
@CommaBot
CommaBot deleted the feat/p3-front-c-emission-effects branch December 6, 2026 01:28
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.

2 participants