Zulip Chat Archive

Stream: general

Topic: underscores are holes


Johan Commelin (Jun 11 2020 at 16:48):

I really love the new "_ is a hole" feature!
Thanks @Gabriel Ebner

Reid Barton (Jun 11 2020 at 17:00):

What is this? Weren't underscores already holes?

Patrick Massot (Jun 11 2020 at 17:01):

Holes in the sense of hole commands I think.

Pedro Minicz (Jun 12 2020 at 03:03):

Could you please elaborate? I'd be very interested in knowing what exactly changed.

Mario Carneiro (Jun 12 2020 at 03:05):

Previously, you could type {! !} where a term is expected, and you get a lightbulb with suggestions a.k.a "hole commands"

Mario Carneiro (Jun 12 2020 at 03:05):

Now the same thing happens on any _

Utensil Song (Jun 12 2020 at 03:34):

See https://leanprover-community.github.io/mathlib_docs/hole_commands.html for more info (BTW, it's not updated to reflect this change yet)

Bryan Gin-ge Chen (Jun 12 2020 at 03:47):

Thanks for pointing that out. I just made a PR: doc-gen#29

Bryan Gin-ge Chen (Jun 12 2020 at 03:52):

Pedro Minicz said:

Could you please elaborate? I'd be very interested in knowing what exactly changed.

The specific change is at lean#307, if you feel like digging into the C++...


Last updated: Dec 20 2023 at 11:08 UTC