Skip to content

proof(ir): attachNonReentrantGuard output shape (lane 2.2) - #2275

Merged
Th0rgal merged 1 commit into
mainfrom
proof/2087-guard-shape
Aug 12, 2026
Merged

proof(ir): attachNonReentrantGuard output shape (lane 2.2)#2275
Th0rgal merged 1 commit into
mainfrom
proof/2087-guard-shape

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Aug 12, 2026

Copy link
Copy Markdown
Member

Pins the guarded compilation unit to its proved pieces: attachNonReentrantGuard_some_shape shows the transformation's output is exactly take paramLoads ++ guardPrologueStmts slot ++ applyLockReleaseOnExits (release slot) (drop paramLoads) — the precise object of #2262/#2272/#2273/#2274. What remains for the full lift is the param-load prefix semantics + nested-control-flow splice points + threading into compile_preserves_semantics.

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


Note

Low Risk
Proof-only addition with no compiler or runtime behavior change; registers one new theorem and bumps the axiom inventory count.

Overview
Adds attachNonReentrantGuard_some_shape, proving that when a lock is present the transformation yields exactly param-loads ++ guardPrologueStmts ++ applyLockReleaseOnExits on the remaining body.

This ties the already-proved composed guard laws to the compiler's actual output shape, advancing the lane-2.2 nonreentrant IR correspondence. Also registers the theorem in PrintAxioms.lean.

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

attachNonReentrantGuard_some_shape: for an annotated function with a
resolved lock field, the transformation's output is exactly
param-loads ++ guardPrologueStmts slot ++ applyLockReleaseOnExits over
the body suffix — pinning the object the composed guard laws (#2272-
#2274) talk about to the transformation's actual output.
@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 Building Building Preview Aug 12, 2026 2:14pm

Request Review

@Th0rgal
Th0rgal merged commit 22f2f2f 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_8cfd2071-eab9-4724-9d44-47e39535726c)

@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