Skip to content

fix: respect visibility for section variable autoParam helpers - #15249

Open
kim-em wants to merge 2 commits into
masterfrom
issue-14708
Open

kim-em wants to merge 2 commits into
masterfrom
issue-14708

Conversation

@kim-em

@kim-em kim-em commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes public declarations using autoParam section variables so their default tactics remain usable, including from importing modules.

Outside declarations, generate exported auxiliary names with a non-private, module-specific prefix, and elaborate section variables under the visibility required by the declarations that use them. Preserve each declaration's own visibility in mixed mutual blocks.

Closes #14708

This PR fixes public declarations using autoParam section variables so their default tactics remain usable, including from importing modules.

Generate exported auxiliary names with a non-private, module-specific prefix, and elaborate section variables under the visibility required by the declarations that use them. Preserve each declaration's own visibility in mixed mutual blocks.

Closes #14708
@kim-em kim-em added the changelog-language Language features and metaprograms label Sep 21, 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 Sep 21, 2026
This PR limits public auxiliary naming to the module-level name generator and adds coverage for helper visibility under `import all`.
@kim-em
kim-em added this pull request to the merge queue Sep 21, 2026
@kim-em
kim-em removed this pull request from the merge queue due to a manual request Sep 21, 2026
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.

Autoparam helper decls are always private

1 participant