lean4 icon indicating copy to clipboard operation
lean4 copied to clipboard

feat: `show` tactic (full version)

Open digama0 opened this issue 3 years ago • 2 comments

This implements the TODO in the show tactic: show e will first try to change the goal to e, and if that doesn't work it will try to change one of the other open goals to e and select it. Note: This implementation allows the goal to change in a non-defeq way and will insert coercions. I plan to follow this up with an implementation of change which is only for strictly defeq changes, similar to dsimp only.

A thought: should the goal-selecting version of show be spelled show e => tac instead? It is a bit awkward that it acts like a move-to-front tactic but has no case => form so you have to do show e; . tac to actually work on the selected goal.

digama0 avatar Oct 18 '22 00:10 digama0

should the goal-selecting version of show be spelled show e => tac instead?

👍

gebner avatar Oct 19 '22 23:10 gebner

Dev meeting summary: make Lean 4 show compatible with Lean 3 show.

leodemoura avatar Oct 24 '22 16:10 leodemoura