Verify front-end declaration checking - #28
Open
kim-em wants to merge 4 commits into
Open
Conversation
kim-em
marked this pull request as ready for review
August 3, 2026 22:38
kim-em
force-pushed
the
verify-environment-frontend
branch
from
August 3, 2026 22:43
36e7e1c to
68c8780
Compare
This was referenced Aug 3, 2026
kim-em
force-pushed
the
verify-environment-frontend
branch
from
August 4, 2026 01:28
68c8780 to
f83b64f
Compare
kim-em
force-pushed
the
verify-environment-frontend
branch
from
August 4, 2026 02:31
5bd5d86 to
90e17a5
Compare
kim-em
force-pushed
the
verify-environment-frontend
branch
from
August 4, 2026 02:54
90e17a5 to
352e9ee
Compare
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.
Adds the verified environment model and proves preservation across declaration checking and front-end environment extension.
Coverage
Environment/Boundaries.leanDeclaration.IsModelled; the current relation cannot represent self-referenceDeclaration.IsModelled; the current relation cannot represent mutually recursive bodiesDeclaration.IsModelleduntilAddInducthas a constructive modelThe preservation theorem is intentionally stated only for declaration forms represented by the current model; it does not assume false extension properties for recursive or inductive declarations.
The runtime parity fixes remain in this PR. Synthetic tests compare kernel and lean4lean behavior for mutual declarations, duplicate names, primitives, and partial definitions; the existing
DeclFVarsuite covers closure rejection.Suggested review order
fix: match kernel declaration checks— runtime parity and focused tests.refactor: model verified environment entries faithfully— environment relation and supporting lemmas.verify declaration checker correctness— constructive checker proofs and the isolated primitive-recognition boundary.verify front-end environment extension and dispatch— extension machinery and the final model-scoped declaration theorem.🤖 prepared with Codex