Zulip Chat Archive

Stream: lean4

Topic: print kernel terms


Leonard Wiechmann (Oct 11 2022 at 10:33):

i'm trying to understand what's going on here:

theorem Fin.eq_of_val_eq {n} :  {i j : Fin n}, Eq i.val j.val  Eq i j
  | _, _⟩, _, _⟩, rfl => rfl

sadly, #print gives me a term with match instead of recursors.
how can i print the kernel term?

Leonard Wiechmann (Oct 11 2022 at 10:34):

i found this option set_option trace.PrettyPrinter.delab false, but it doesn't seem to be about #print.

Alex J. Best (Oct 11 2022 at 10:42):

set_option pp.match false

Leonard Wiechmann (Oct 11 2022 at 10:44):

awesome, thanks!


Last updated: Dec 20 2023 at 11:08 UTC