Repository navigation
Prevent capture of temporary nested-inductive names by later declarations - #122
Draft
heathsanchez wants to merge 3 commits into
Draft
heathsanchez wants to merge 3 commits into
heathsanchez wants to merge 3 commits into
Conversation
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.
Source-pinned name-capture soundness regression (draft)
The published Flash checker chooses temporary names for specialized nested inductives by looking only at declarations preceding the block. A later declaration can reuse
_nested.<type>_<n>.recand capture a supposedly temporary recursor reference in a previously accepted reduction rule. The NanoDa issue #74 reports an axiom-free forged proof ofFalsefrom this mechanism.This patch chooses the generated type name only if the entire imported export contains no declaration with that type name, its generated
.recname, or any corresponding generated constructor name. This preserves type-specific freshening while preventing later source declarations from capturing those temporary bindings; it does not special-case the exploit or cache accepted results.The Actions pair builds the exact published Flash
78c7502bac8a5ba000057b3f083bc0595ac65750and candidate identically and requires the official Arenabugs/nested-name-captureinvalid export to change ACCEPT → REJECT with all other downloaded non-performance verdicts preserved, recording SHA-pinned artifacts even on failure.Independent from draft #120 (nested field count) and #121 (universe scope). Qualification pending. Keep DRAFT until source-level tests, full Mathlib, and performance have been reviewed; no leaderboard claim.