formalization: totalize Ix.Tc and extend soundness proofs through WHNF K1h - #521
Merged
Conversation
…tend WHNF soundness through K1h
johnchandlerburnham
enabled auto-merge (squash)
July 27, 2026 19:53
arthurpaulino
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR establishes the formal-verification foundation for the reference Lean Ix.Tc kernel against Lean4Lean.Theory, totalizes the production checker call graph, and advances the WHNF proof through K1h.
The proof strategy is deliberately staged: prove properties over Ix.Tc first, then transport them to the Rust kernel with Aeneas or prove them directly for Aiur IxVM in later work.
What changed
Non-circular trust model
Execution, support, and caches
K0 totalization
Malformed inputs that could previously diverge now terminate with the documented exhaustion result, generally .maxRecDepth.
WHNF verification through K1h
Auditable trust boundary
Claim boundary
This PR does not claim complete Ix.Tc, Rust, or Aiur soundness.
K1 remains in progress. The next step is conditional RecM.WF closure for the public no-delta/full-WHNF drivers, including trace construction and explicit error/exhaustion outcomes. K2 must then close the tied methodsN table with Infer/DefEq and prove general suffix-context transport.
The remaining upstream Lean4Lean proof debt and all conditional oracle boundaries are listed explicitly in the trust manifests.
No Rust-kernel or Aiur IxVM implementation is claimed verified by this PR; those require later refinement chains from the completed Ix.Tc theorem.
Validation
All checks pass on top of current main.