-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #17576: Let with Qed: produce really-Qed side definition
Reviewed-by: proux01 Co-authored-by: proux01 <proux01@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
106 additions
and
29 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 @@ | ||
overlay metacoq https://github.com/SkySkimmer/metacoq let-abstract 17576 |
6 changes: 6 additions & 0 deletions
6
doc/changelog/08-vernac-commands-and-options/17576-let-abstract.rst
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 @@ | ||
- **Changed:** | ||
:cmd:`Let` with :cmd:`Qed` produces an opaque side definition | ||
instead of being treated as a transparent `let` after the section is closed. | ||
The previous behaviour can be recovered using :attr:`clearbody` and :cmd:`Defined` | ||
(`#17576 <https://github.com/coq/coq/pull/17576>`_, | ||
by Gaëtan Gilbert). |
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,34 @@ | ||
(* Let doesn't respect (default) Proof using *) | ||
|
||
(* Maybe we will want to change this behaviour someday | ||
but keep in mind that if we do then "bar'" should get 2 A arguments. | ||
*) | ||
|
||
Set Default Proof Using "Type". | ||
Set Warnings "-opaque-let". | ||
|
||
Section S. | ||
|
||
Variable A : Type. | ||
Variable a : A. | ||
|
||
Let foo : A. | ||
Proof. (* Default Proof Using silently ignored *) | ||
exact a. | ||
Qed. | ||
|
||
Definition bar := foo. | ||
|
||
Variable b : A. | ||
|
||
Let foo' : A. | ||
Fail Proof using a b. | ||
exact b. | ||
Qed. | ||
|
||
Definition bar' := foo'. | ||
|
||
End S. | ||
|
||
Check bar : forall A, A -> A. | ||
Check bar' : forall A, A -> A. |
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