-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
clear
to clear all unused items in the context recursively
add exclude filters and test
- Loading branch information
Showing
5 changed files
with
51 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
lemma L: true. | ||
pose x:=false. | ||
clear x. | ||
(* `x` is now unbound *) | ||
pose x:=false. | ||
pose y:=x. | ||
pose z:=y. | ||
clear -y. | ||
(* `z` is unbound, but `x` is not, since `y` depends on it *) | ||
pose z:=x. | ||
clear y. | ||
pose y:=z. | ||
clear. | ||
(* everything is unbound, since nothing is in the goal *) | ||
pose x:=true. | ||
pose y:=false. | ||
clear. | ||
(* we cannot clear `x` since it is in the goal, | ||
but `y` is not used so it becomes unbound *) | ||
pose y:= x. | ||
abort. |