Zulip Chat Archive
Stream: lean4
Topic: Have #print unfold definitions?
Asta Halkjær From (Jul 07 2022 at 12:29):
I have a def
inition that builds an inhabitant of an inductive type using several helper def
initions that abbreviate smaller parts.
This means that when I #print
my definition, those helper definitions show up in the output.
I would like to have them all unfolded down to the constructors of the inductive type, so I can see the full unabbreviated term.
Can I do this?
Sebastian Ullrich (Jul 07 2022 at 12:37):
#reduce
does this, though it will also continue inside the constructor arguments of your inductive type, which for the non-recursive arguments sometimes can be more than you wished for.
Asta Halkjær From (Jul 07 2022 at 13:29):
Perfect! I knew I was missing something...
Last updated: Dec 20 2023 at 11:08 UTC