Skip to content

fix: do not reserve all when using Lean.Parser.Module.import in syntax - #16650

Open
thorimur wants to merge 1 commit into
leanprover:masterfrom
thorimur:unreserve-all
Open

thorimur wants to merge 1 commit into
leanprover:masterfrom
thorimur:unreserve-all

Conversation

@thorimur

Copy link
Copy Markdown
Contributor

This PR ensures that Lean.Parser.Module.import may be used as a component in syntax declarations without causing the all symbol to become reserved.


The inclusion of Lean.Parser.Module.import in syntax in ImportGraph (for module tooling, specifically #import_diff) broke downstream, and required an adaptation PR to recreate this parser with a nonreserved symbol: leanprover/downstream-lean4#270 . Ideally this is not necessary, and users can include the canonical import parser in syntax freely.

@thorimur

Copy link
Copy Markdown
Contributor Author

changelog-language

@github-actions github-actions Bot added the changelog-language Language features and metaprograms label Nov 20, 2026
@thorimur thorimur changed the title fix: do not reserve all in Lean.Parser.Module.import fix: do not reserve all when using Lean.Parser.Module.import in syntax Nov 20, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Nov 20, 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

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant