You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auxiliary declarations generated by Lean.Elab.Term.declareTacticSyntax to hold the Syntax of autoparams are never private per se, in the sense that they do not start with _private even when in private sections or declarations.
However, they do start with _auto and have macro scopes, so they are never directly accessible to the user.
I am not yet sure if this is intentional or not, so I have not yet filed this as a bug. (If this issue acquires the bug label, I will remove this paragraph.)
Context
This was noticed when Mathlib's private module linter, which lints against modules that have no public declarations, failed to warn on a module with no obviously public declarations besides these autogenerated autoparam declarations which do not satisfy isPrivateName. (Zulip).
In particular, the question there is whether this is an oversight, or if the criteria we use for detecting private declarations ought to be expanded.
Activity
chore: make auto param decls of private decls private (#11581)