Zulip Chat Archive

Stream: general

Topic: show_term and sorryAx


Damiano Testa (Jul 13 2023 at 11:51):

I imagine that this is probably not especially problematic, but I found this suggestion amusing:

import Std.Tactic.ShowTerm

example : False := by
  show_term{dsimp only}  -- Try this: exact sorryAx False true

Kyle Miller (Jul 13 2023 at 12:36):

Just to be clear, this is because the { ... } tactic does sorry for you (and gives the "unsolved goals" message) if there are still goals remaining.

Damiano Testa (Jul 13 2023 at 12:48):

Ah, I did not realize that in Lean 4 I should use show_term (...) with round brackets! Thanks!

Kyle Miller (Jul 13 2023 at 13:37):

You don't need brackets at all actually: show_term dsimp only

This works too

  show_term
    rw []
    dsimp only

Kyle Miller (Jul 13 2023 at 13:37):

There's also the show_term term, so you can do show_term by dsimp only


Last updated: Dec 20 2023 at 11:08 UTC