Zulip Chat Archive
Stream: general
Topic: calc widget UX
Miguel Marco (Feb 11 2024 at 15:56):
About UX, I just started using the lightbulb to create a calc
skeleton, and I noticed that it creates a single line proof, which is almost never what you will need (you use calc
to chain several (in)equalities, afterall). Wouldn't it be better to start with more than one? Or even better: have another lightbulb to insert new lines in the proof.
Ruben Van de Velde (Feb 11 2024 at 16:00):
What happened to the calc widget?
Miguel Marco (Feb 11 2024 at 16:32):
I didn't know about it. How does it work?
Eric Rodriguez (Feb 11 2024 at 20:00):
I've also noticed the widget for calc but no clue how it works
Patrick Massot (Feb 11 2024 at 21:35):
It should write all instructions below the tactic state.
Miguel Marco (Feb 11 2024 at 22:38):
I just see a text saying "Please select subterms".
Patrick Massot (Feb 12 2024 at 02:42):
And this indeed exactly what you should do.
Miguel Marco (Feb 12 2024 at 08:10):
How? I try to select subterms in the infoview and nothing happens. If I do so in the lean file, the message disappears.
Patrick Massot (Feb 12 2024 at 12:17):
Maybe you misunderstand what select means in this context. You need to shift-click on sub terms in the current goal.
Mario Carneiro (Feb 12 2024 at 12:18):
probably it should say that, shift-clicking isn't something you normally do in lean
Patrick Massot (Feb 12 2024 at 12:20):
This is the normal way of selecting things in the info view. It had nothing to do with this widget and is provided by Lean core. But indeed we could say it in the message.
Mario Carneiro (Feb 12 2024 at 12:21):
Is there something else you can select in the infoview in this manner?
Patrick Massot (Feb 12 2024 at 12:22):
Sure. Many widgets use this feature.
Mario Carneiro (Feb 12 2024 at 12:22):
non-widgets
Mario Carneiro (Feb 12 2024 at 12:22):
or stock / builtin widgets
Mario Carneiro (Feb 12 2024 at 12:23):
interacting with the goal view and expected type view doesn't reveal anything shift-clickable
Patrick Massot (Feb 12 2024 at 12:23):
I don't think so. You can always select stuff, but then nothing happens if you have no import.
Patrick Massot (Feb 12 2024 at 12:24):
So again I agree we should make the message more beginner-friendly.
Miguel Marco (Feb 12 2024 at 17:41):
I see. It works as you say.
Eric Rodriguez (Feb 13 2024 at 00:19):
I also really struggled to understand exactly how it was meant to be used; I see now that you place your start and end goal and then place your cursor somewhere on the by
, then allowing you to select this. Also not super easy to figure out.
Eric Rodriguez (Feb 13 2024 at 00:19):
I think some more documentation would be super welcome
Kim Morrison (Feb 13 2024 at 01:00):
shift-click should be in the message
Geoffrey Irving (Feb 13 2024 at 08:00):
We may want to move the calc discussion to a different thread.
Notification Bot (Feb 13 2024 at 17:29):
23 messages were moved here from #general > "Missing Tactics" list by Timo Carlin-Burns.
Last updated: May 02 2025 at 03:31 UTC