Zulip Chat Archive

Stream: mathlib4

Topic: Instances of a given class


Sébastien Gouëzel (Sep 14 2025 at 12:56):

Is there a simple way to get the list of all registered instances for a given class? (not on master, where doc-gen does this). I'm using the class_abbrev mechanism to try to unbundle norm stuff from algebra, and I need this to check I didn't mess up (or fix the mess :-)

Aaron Liu (Sep 14 2025 at 12:56):

you can try #synthing it

Aaron Liu (Sep 14 2025 at 12:57):

and look at the trace

Jireh Loreaux (Sep 14 2025 at 13:03):

Don't we have #instances?

Aaron Liu (Sep 14 2025 at 13:03):

oh we do, it's in Batteries.Tactic.Instances

Aaron Liu (Sep 14 2025 at 13:04):

that's probably a better way

Sébastien Gouëzel (Sep 14 2025 at 14:19):

#instances is perfect, thanks! (But thanks also for the #synth suggestion :-)


Last updated: Dec 20 2025 at 21:32 UTC