Skip to content

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Dec 8, 2025

This PR ensures the auxiliary definitions created by register_try?_tactic are internal implementation details that should not be visible to user-facing linters.

🤖 Generated with Claude Code

@kim-em kim-em changed the title fix: make register_try?_tactic auxiliary definitions internal fix: make register_try?_tactic auxiliary definitions internal Dec 8, 2025
@kim-em kim-em added the changelog-tactics User facing tactics label Dec 8, 2025
@kim-em kim-em enabled auto-merge December 8, 2025 05:35
The auxiliary definitions created by `register_try?_tactic` are internal
implementation details that should not be visible to user-facing linters.

This change marks them as internal by using `Name.mkSimpleInternal` instead
of `Name.mkSimple`, which automatically exempts them from linting via the
existing `isAutoDecl` check in Batteries.

Fixes linter errors in downstream projects (e.g., Mathlib) when using
`register_try?_tactic`.

🤖 Generated with Claude Code
@kim-em kim-em force-pushed the fix-register-try-tactic-internal-names branch from 625b997 to 62ded6e Compare December 8, 2025 05:41
@kim-em
Copy link
Collaborator Author

kim-em commented Dec 8, 2025

Fixed the build error - doesn't exist. The correct approach is to prefix the name with _ to make it internal (any name component starting with _ is considered internal per Name.isInternal).

@kim-em kim-em added this pull request to the merge queue Dec 8, 2025
Merged via the queue into leanprover:master with commit 62f2f92 Dec 8, 2025
14 checks passed
algebraic-dev pushed a commit that referenced this pull request Dec 8, 2025
This PR ensures the auxiliary definitions created by
`register_try?_tactic` are internal implementation details that should
not be visible to user-facing linters.

🤖 Generated with Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-tactics User facing tactics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant