Skip to content

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Sep 24, 2025

No description provided.

Comment on lines +646 to +647
It is nearly always clearer to disambiguate the call by using an explicit namespace,
and this should be preferred where possible. (There are currently many places in Mathlib that break this rule.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is nearly always clearer to disambiguate the call by using an explicit namespace,
and this should be preferred where possible. (There are currently many places in Mathlib that break this rule.)
Avoid `nonrec` when the recursive call conflicts with another declaration *in a namespace*, because then adding the namespace to that declaration is more informative (to both Lean and the user). If it conflicts with a declaration in the root namespace, then both `nonrec` and `_root_.[...]` are acceptable.
(There are currently many places in Mathlib that break this rule.)

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.

3 participants