Zulip Chat Archive
Stream: new members
Topic: Tooling: Line-by-line checking for lean?
Markus de Medeiros (Jun 10 2024 at 13:19):
I come from rocq and I'm used to being able to check my proof script line by line. Is there any way to do the same thing with the current lean tooling? I'm on emacs but may be willing to change for this feature if it's present in some other editor.
Richard Copley (Jun 10 2024 at 13:35):
The tools will check a proof and give you feedback, if the proof is part of a project. How far have you got? Do you have lean4-mode on your load-path and added to your auto-mode-alist?
Kyle Miller (Jun 10 2024 at 13:36):
There's no line-by-line checking in Lean (I assume you're talking about the feature where you can set the point up to which rocq checks the proof, right Markus?)
Markus de Medeiros (Jun 10 2024 at 13:41):
Yes to Kyle-- sounds like what I want doesn't exist then. Thanks anyways!
Bolton Bailey (Jun 11 2024 at 01:04):
I'm confused, are we not just talking about putting your cursor on the line you are interested in and seeing the proof state at that location? What is it that Rocq has that Lean doesn't?
Kyle Miller (Jun 11 2024 at 01:57):
There's an editing model other ITPs use where there's a point you set where everything before that point has been checked and everything after is not being checked. (Here's a section of the Proof General documentation about that.)
I usually fake it by inserting #exit
nearby to keep things from repeatedly typechecking as I'm editing.
Markus de Medeiros (Jun 11 2024 at 13:01):
This is helpful, thanks. I've been commenting and uncommenting code but #exit
is cleaner .
Last updated: May 02 2025 at 03:31 UTC