Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: Check if a theorem is generated as a part of another one


Leni Aniva (Feb 12 2026 at 07:29):

Is there a way to check if a theorem is generated as a part of another theorem?

e.g. _proof_123, match_1_1.

Using e.g. hasNum is not reliable.

Yury G. Kudryashov (Feb 12 2026 at 07:34):

There is docs#Batteries.Tactic.Lint.isAutoDecl

Leni Aniva (Feb 12 2026 at 07:36):

Yury G. Kudryashov said:

There is docs#Batteries.Tactic.Lint.isAutoDecl

This would detect private names as internal right? Name.isInternal uses the underscore prefix heuristic, which is true for private names. A user defined private name could be flagged as internal.


Last updated: Feb 28 2026 at 14:05 UTC