Skip to content

proof(ir): guarded-function halting twin (lane 2.2) - #2299

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

proof(ir): guarded-function halting twin (lane 2.2)#2299
Th0rgal merged 1 commit into
mainfrom
proof/2087-function-halting

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Aug 12, 2026

Copy link
Copy Markdown
Member

Mirrors #2296 for modeled-halt endings: execIRStmts_guardedFunction_halting. Both exit classes of the guarded function composition are now covered, matching the guardedUnit pair (#2294).

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


Note

Low Risk
Additive Lean proof only; no compiler runtime, semantics, or axiom changes beyond registering one new public theorem.

Overview
Adds execIRStmts_guardedFunction_halting, the halting counterpart to execIRStmts_guardedFunction_fallthrough, for guarded function bodies that end in a modeled halt (return/stop/revert). The statement matches the fall-through theorem (param loads, lock revert vs acquire + release on success) but uses ys ++ [h] and ModeledHalt h, and the proof reuses param-load reduction plus execIRStmts_guardedUnit_halting.

The new theorem is listed in PrintAxioms.lean so the axiom inventory stays complete. Together with the existing fall-through and guardedUnit pair, both exit shapes of the guarded-function IR composition are now covered at this layer.

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

execIRStmts_guardedFunction_halting mirrors #2296 for bodies ending in
a modeled halt — both exit classes are now covered at the full-function
level, matching the guardedUnit pair.
@Th0rgal
Th0rgal merged commit 702e0ee into main Aug 12, 2026
1 of 2 checks passed
@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 5:08pm

Request Review

@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_a2485818-dc7c-44be-a6cd-b01d09cbb773)

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

@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