Skip to content

feat: verify accepted snapshot and node membership - #499

Open
ejgallego wants to merge 3 commits into
v4.35.0from
feat/snapshot-merge-laws
Open

ejgallego wants to merge 3 commits into
v4.35.0from
feat/snapshot-merge-laws

Conversation

@ejgallego

@ejgallego ejgallego commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

This PR proves that successful production assembly preserves exact statement/proof snapshot membership and that Node.leanDecls contains exactly selected associations or declarations of the accepted payload node. A shared executable name check discharges the erasure-stability premise for both local registration and import replay, rather than assuming Lean producers always supply stable names.

  • Prove canonical union, uniqueness, and presence for the production indexed snapshot merge; reuse one fold-membership principle for both facets.
  • Reject selected references whose once-erased canonical key changes on a second erasure, including missing references. Preserve complete evidence and existing payload, collision, and priority diagnostic precedence.
  • Prove checker exactness, successful-assembly stability, and the revised acceptance contract. Assembly membership theorems no longer require a caller-supplied naming premise.
  • Exercise real attribute and statement/proof directive producers, atomic malformed local rejection, malformed imported evidence retention and no resurrection, and collision precedence.
  • Build the laws and print dependencies in CI. This verifies checked acceptance, not arbitrary Lean name-resolution APIs; broader payload-frame, environment/index coherence, and completion-status proofs remain separate.

@ejgallego ejgallego changed the title feat: prove snapshot merge canonical and presence laws feat: prove snapshot and assembled node membership Oct 23, 2026
@ejgallego ejgallego changed the title feat: prove snapshot and assembled node membership feat: verify accepted snapshot and node membership Oct 23, 2026

This branch has not been deployed

No deployments
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