Skip to content

proof: connect internal helper IR execution to summaries#2166

Draft
Th0rgal wants to merge 1 commit into
codex/2080-n1a-expr-projectionfrom
codex/2080-n1a-ir-summary-bridge
Draft

proof: connect internal helper IR execution to summaries#2166
Th0rgal wants to merge 1 commit into
codex/2080-n1a-expr-projectionfrom
codex/2080-n1a-ir-summary-bridge

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Jul 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds execIRInternalFunctionWithInternals_obeys_internal_helper_summary, connecting the compiled internal-helper call wrapper to the existing helper-body execution bridge and real source summary postcondition.
  • Adds N2/N3 singleton call-wrapper instantiations for Stmt.internalCallAssign and Stmt.internalCall IR execution shapes.
  • Adds a small bindInternalArgs arity lemma plus result/fuel adapters used by downstream helper-call bridge code.
  • Keeps stop/return propagation explicit; ordinary helper-return callers still need the existing stop/return-free exclusions.

Validation

  • lean-slot lake build Compiler.Proofs.IRGeneration.HelperBodyBridge
  • python3 scripts/generate_print_axioms.py
  • python3 scripts/generate_print_axioms.py --check
  • python3 scripts/check_proof_length.py
  • git diff --check
  • rg -n "\bsorry\b|\badmit\b|axiom " Compiler/Proofs/IRGeneration/HelperBodyBridge.lean PrintAxioms.lean (only generated PrintAxioms comments matched)

@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 6:22am

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