Yeah the continuous editing in Lean is something I love so much! I love it how things live update as I do stuff, but maybe I’m just used to that from other languages… I generally use source control if I want to remember a past state.
Conversation
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
Ahhh yeah that sounds like a massive pain
1
1
And yeah I'm really fascinated about how the benefits of both could somehow be accommodated. But I'm always wanting to have my cake and eat it and it constantly gets me into trouble hah.
1
1
I haven't checked the state of Lean 4 in a while but yeah last time I was using it I also missed (for example) the user-driven hole-based editing you get in Adga.
1
1
I'd actually love to see a demonstration of someone effectively using them. Anyone know of such a recording?
1
Not sure… I can't remember how I learned in the past… I know somehow along the line I learned how you could plonk stuff in the hole and then run a command to case split or proof search based on that stuff…? Been a while since I goofed about with Agda and am far from an expert.
1
I just searched on youtube and maybe this one?
1
2
It's just a intro tutorial though so probably not illustrative of more advanced cases.
I also think I recall seeing people also being able to extend the hole commands with custom tactics as well, but not sure how common that is.
1
But yeah, shows how you use the hole to direct splitting and refining the state of the program. So you end up sort of… pushing around holes in order to build up your program… uhh proof.
1
I think having some scratch space is useful in the hole (they seem to call it a ‘shed’?) because it lets you give more info for the specific command you want to run. But yeah, as I say it’s been a while since I messed with it.
would be curious how this could work with a more “continuous” style of editing. Maybe in the hole you could write some sort of ‘hole tactic’ (that you’ve perhaps brought into scope in your editor, like “split” or “refine”) in the hole and it could prompt for info as you type.
2
That could perhaps save on the sequenced key commands but dunno if it would be annoying for power users.

