Add an optional executed code overlay #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description and Motivation
This PR adds an overlay that appears over executed (and pending) HOL4 code in the current working editor. The feature is hidden by an option and is bu default set to
off.This solves one of my main problems when reading HOL4 code:
Demo:
Kooha-2025-10-03-13-23-41.webm
Discussion
It is not clear to me what should be the expected result after removing an "executed" piece of code. Should the we go back in the proof before that line was executed? AFAIK this can only be done in a "goal" state.
Should there be a better visual indication of the order of executed selections? This could either be done with a gradient or minimally, an indication of the last executed code selection. This might be useful for people that don't necessarily follow a linear order, when developing a proof.
Keeping the list of executed actions opens a possibility of adding a "Send since last selection" command. Would that be useful? (I think that it makes sense for tactics)