Zulip Chat Archive

Stream: mathlib4

Topic: Two questions about instance synthesis


Sina Hazratpour 𓃵 (Jan 14 2025 at 23:06):

  1. If I have a theorem whose proof is by infer_instance is there a way to get the list of instances used in the inference displayed in the Lean's infoview? a command ideally?
  2. Is there a way to know the places in mathlib's category theory where infer_instance has the longest list of instances in its inference?

Ruben Van de Velde (Jan 14 2025 at 23:18):

Maybe #synth is of interest to you

Sina Hazratpour 𓃵 (Jan 14 2025 at 23:23):

#synth can be made to work for the first question. I was wondering if we have something similar to show_term but for instances.

Yakov Pechersky (Jan 15 2025 at 00:13):

Some pretty printer option, likely more surgical could help, but a big hammer would be pp.all which iiuc would show the instance?


Last updated: May 02 2025 at 03:31 UTC