Skip to content

proof(ir): attachNonReentrantGuard halting twin (lane 2.2 pair complete) - #2300

Merged
Th0rgal merged 1 commit into
mainfrom
proof/2087-attach-halting
Aug 12, 2026
Merged

proof(ir): attachNonReentrantGuard halting twin (lane 2.2 pair complete)#2300
Th0rgal merged 1 commit into
mainfrom
proof/2087-attach-halting

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Aug 12, 2026

Copy link
Copy Markdown
Member

Completes the symmetric pair for #2297: attachNonReentrantGuard_exec_halting covers modeled-halt bodies at the transformation level. Every statement in the guarded chain — unit, function, transformation — now exists in both exit classes.

Validation: full lake build OK, make check all passed, no sorry/admit/new axiom.


Note

Low Risk
Proof-only addition in IR generation simulation; no runtime or compiler behavior changes.

Overview
Adds attachNonReentrantGuard_exec_halting, the halting counterpart to attachNonReentrantGuard_exec. It states that after attachNonReentrantGuard, executing the guarded IR body matches the guarded semantics when the compiled body is genParamLoads plus a splice-sim fragment ending in a modeled halt (return/stop/revert), not a fall-through body.

The proof reuses attachNonReentrantGuard_some_shape to relate guardedFn.body to the guarded prologue plus lock-release-wrapped (ys ++ [h]), then delegates to execIRStmts_guardedFunction_halting. PrintAxioms.lean lists the new theorem so the axiom inventory stays complete.

Reviewed by Cursor Bugbot for commit eb00e8a. Bugbot is set up for automated code reviews on this repo. Configure here.

…2.2)

attachNonReentrantGuard_exec_halting completes the pair: both exit
classes of the transformation-level correctness statement now exist,
symmetric with the guardedUnit and guardedFunction pairs.
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
verity Ready Ready Preview Aug 12, 2026 5:12pm

Request Review

@Th0rgal
Th0rgal merged commit 7c804be into main Aug 12, 2026
1 of 2 checks passed
@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_41e8c310-0e6c-4998-81e3-85d093b6bd69)

@Th0rgal
Th0rgal deleted the proof/2087-attach-halting branch August 12, 2026 17:12

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OpenCodeReview first-pass review

OCR did not run — this diff has no OCR-supported files. Not a review outcome.

No changed files matched OCR include rules.

OCR pilot metrics & packet coverage

OCR pilot metrics

  • Routing: no-supported (router-v10)
  • Changed files: 0 supported / 0 total; Lean 0, trust docs 0, workflow/scripts 0, contracts 0, docs 0
  • Changed lines: 0 supported; thresholds large Lean >=3 files or >800 lines
  • OCR: status no-supported; comments 0; files 0; tokens 0; tool calls 0; warnings 0; duration 0s

Pilot mode: advisory only. Codex Review remains the merge gate.

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