-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #12256: Move the static check of evaluability in unfold tact…
…ic to runtime. Reviewed-by: herbelin
- Loading branch information
Showing
13 changed files
with
88 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- **Changed:** | ||
The check that unfold arguments were indeed unfoldable has been moved to runtime | ||
(`#12256 <https://github.com/coq/coq/pull/12256>`_, | ||
by Pierre-Marie Pédrot). |
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,8 @@ | ||
Tactic Notation "myunfold" reference(x) := unfold x. | ||
Notation idnat := (@id nat). | ||
Goal let n := 0 in idnat n = 0. | ||
Proof. | ||
intro n. | ||
myunfold idnat. | ||
myunfold n. | ||
Abort. |
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,6 @@ | ||
Axiom a: bool. | ||
|
||
Goal a = true. | ||
Proof. | ||
try unfold a. | ||
Abort. |
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,12 @@ | ||
Axiom foo : Type. | ||
Definition bar := 1. | ||
Definition bar' := Eval cbv -[bar] in bar. | ||
Declare Reduction red' := cbv -[bar]. | ||
Opaque bar. | ||
Definition bar'' := Eval red' in bar. | ||
Declare Reduction red'' := cbv -[bar]. (* Error: Cannot coerce bar to an | ||
evaluable reference. *) | ||
Definition bar''' := Eval cbv -[bar] in bar. (* Error: Cannot coerce bar to an | ||
evaluable reference. *) | ||
Definition foo' := Eval cbv -[foo] in foo. (* Error: Cannot coerce foo to an | ||
evaluable reference. *) |
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,7 @@ | ||
Module Type A. | ||
Parameter a : nat. | ||
End A. | ||
|
||
Module B (mA : A). | ||
Ltac cbv_a := cbv [mA.a]. | ||
End B. |
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