Skip to content

proof: add direct helper sufficient fuel adapters#2170

Draft
Th0rgal wants to merge 1 commit into
codex/2080-direct-helper-summary-match-interfacefrom
codex/2080-direct-helper-sufficient-fuel-adapter
Draft

proof: add direct helper sufficient fuel adapters#2170
Th0rgal wants to merge 1 commit into
codex/2080-direct-helper-summary-match-interfacefrom
codex/2080-direct-helper-sufficient-fuel-adapter

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Jul 11, 2026

Copy link
Copy Markdown
Member

Summary

  • add directInternalHelperExtraFuel, the explicit inverse offset for internalHelperCallFuel
  • expose sufficient-fuel adapters for direct statement helper calls:
    • directInternalHelperStatementContextBridge_callStepMatch_of_sufficientFuel
    • directInternalHelperStatementContextBridge_assignStepMatch_of_sufficientFuel
  • these re-index the exact-fuel proof: expose direct helper summary step match interface #2169 direct step-match theorems to statement-level helper fuel and arbitrary IR fuel when:
    • 1 < stmtHelperFuel
    • sizeOf helper.body + 2 <= irFuel
  • refresh PrintAxioms.lean for the two new public proof declarations

Validation

  • lean-slot lake build Compiler.Proofs.HelperStepProofs
  • python3 scripts/check_proof_length.py
  • python3 scripts/generate_print_axioms.py
  • python3 scripts/generate_print_axioms.py --check
  • git diff --check
  • rg -n "\\bsorry\\b|\\badmit\\b|axiom |True :=|\\t" Compiler/Proofs/HelperStepProofs.lean PrintAxioms.lean (only generated audit comments report 0 sorry'd)

Issue #2080 Position

This still does not close #2080. It makes the remaining direct head-step fuel gap explicit: the helper-body summary path covers the sufficient-fuel region, while the existing direct head-step bridge asks for all positive statement fuel and all wrapper IR fuel. The next proof/interface review must account for the low-fuel cases or strengthen the public head-step fuel contract.

@vercel

vercel Bot commented Jul 11, 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, Comment Jul 11, 2026 7:14am

Request Review

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