-
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.
Fix universe abstraction for const_relevance of opaques
- Loading branch information
1 parent
2e13fcb
commit c43d5ca
Showing
3 changed files
with
18 additions
and
1 deletion.
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,5 @@ | ||
- **Fixed:** | ||
incorrect abstraction of sort variables for opaque constants | ||
(`#18596 <https://github.com/coq/coq/pull/18596>`_, | ||
fixes `#18594 <https://github.com/coq/coq/issues/18594>`_, | ||
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,12 @@ | ||
Set Universe Polymorphism. | ||
|
||
Lemma foo@{s| |} (A:Type@{s|Set}) (a:A) : A. | ||
Proof. | ||
exact a. | ||
Qed. | ||
|
||
Definition bar : foo nat = foo (id nat) := eq_refl. | ||
|
||
Fail Definition baz x y : foo nat x = foo nat y := eq_refl. | ||
|
||
Definition baz' (A:SProp) (f:A->nat) x y : f (foo A x) = f (foo A y) := eq_refl. |