Zulip Chat Archive
Stream: lean4
Topic: List instance priorities
Michael Stoll (May 07 2024 at 21:03):
Is there a way to get a list of all instances for, say, SMul
together with their priorities?
I can do
import Mathlib
set_option trace.Meta.synthInstance true
#synth SMul _ _
and (after two clicks in the infoview) I can see the list of instances (ordered by increasing priority), but it does not show what the priorities are.
Thomas Murrills (May 07 2024 at 21:22):
Does the solution here work for you?
Kyle Miller (May 07 2024 at 21:26):
Std has #instances SMul _ _
Thomas Murrills (May 07 2024 at 21:30):
#instances
doesn’t show priorities, though, right? (The quick code at the linked message does)
Kyle Miller (May 07 2024 at 21:33):
It shows them if the priority isn't 1000
Eric Wieser (May 07 2024 at 22:39):
@Henrik Böving, could we get the same priority-showing behavior in doc-gen?
Henrik Böving (May 08 2024 at 05:51):
soon on a documentation server nearby
Michael Stoll (May 08 2024 at 14:46):
Kyle Miller said:
It shows them if the priority isn't 1000
It also shows the signatures, which is more than I bargained for. I like the #show_instances
"quick hack", though!
Last updated: May 02 2025 at 03:31 UTC