Zulip Chat Archive
Stream: lean4
Topic: See synthesized argument
Nir Paz (Sep 20 2024 at 18:16):
Is there a way to see what argument lean inserted in an _
? Hovering over it only shows the type. For example in
example (n : ℕ) : n ^ 2 = n ^ 2 := Eq.refl _
I want to see n ^ 2
is the argument used for Eq.refl
.
Mario Carneiro (Sep 20 2024 at 19:19):
Patrick Massot (Sep 20 2024 at 19:48):
You can use by show_term Eq.refl _
.
Thomas Murrills (Sep 21 2024 at 01:09):
By the way, this seems like a special case of this discussion: #lean4 > Pre-RFC: Forcing terms to be shown in hover? (I never did make an RFC, though, so I’ll simply comment on the GitHub issue linked above.)
Last updated: May 02 2025 at 03:31 UTC