-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fleche] Support Coq Meta Commands Reset and Back
They are pretty easy to support in our model, and actually I can see how they pretty useful to hint the incremental engine to ignore changes! For example, see this document: ```coq (* Coq code 1 ... *) Lemma foo : .... (* Coq code 2 ... *) Reset foo. (* Coq code 3 ... *) ``` In this case, `Reset` allows us to put a barrier so we can update Coq code 2 at will, and still don't re-check the 3rd code block as it depends on a previous state.
- Loading branch information
Showing
10 changed files
with
199 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Lemma foo : 3 = 3. | ||
Proof. now reflexivity. Qed. | ||
|
||
About foo. | ||
|
||
Reset Initial. | ||
|
||
About foo. | ||
|
||
Lemma foo : 2 = 2. | ||
Proof. now reflexivity. Qed. | ||
|
||
Lemma bar : 4 = 4. | ||
Proof. now reflexivity. Qed. | ||
|
||
About bar. | ||
About foo. | ||
|
||
Reset foo. | ||
|
||
About foo. | ||
About bar. | ||
|
||
Lemma muu : 4 = 4. | ||
Proof. | ||
now reflexivity. | ||
Back 2. | ||
now reflexivity. | ||
Qed. | ||
|
||
Reset Initial. | ||
|
||
About muu. | ||
About foo. | ||
About bar. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters