Zulip Chat Archive

Stream: general

Topic: hole commands


Johan Commelin (Aug 30 2018 at 18:12):

One thing that might be of general interest that got some attention in Orsay: Lean has support for holes, but it isn't up to par to some other theorem provers. Nevertheless, try typing

import tactic.tidy

example : your_favourite_triviality := {! _ !}

and hit Ctrl-. (control-dot) while you are on the hole ({! _ !}). You will get a list of hole commands that are available. Three of them are somewhat silly, and one was added in Orsay: the tidy hole command. If your favourite triviality is actually Lean-trivial, then this hole-command will write a complete tactic proof for you.

Johan Commelin (Aug 30 2018 at 18:15):

It might be a good idea to think about other useful hole commands.

Kenny Lau (Aug 30 2018 at 18:18):

could you show us an example?

Kenny Lau (Aug 30 2018 at 18:19):

oh nvm I didn't import tactic.tidy


Last updated: Dec 20 2023 at 11:08 UTC