forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Univ declarations can have extensible qualities (internally)
Not supported in syntax as due to collapsing qualities any quality we see must be named, but side effects use default_univ_decl which must allow the named qualities from the surrounding proof. Fix coq#19072
- Loading branch information
1 parent
f2dcd55
commit 435896b
Showing
7 changed files
with
36 additions
and
5 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 elpi https://github.com/SkySkimmer/coq-elpi abstract-sort-poly 19073 |
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,15 @@ | ||
Set Universe Polymorphism. | ||
|
||
Definition demo@{srt|u |} : True. | ||
Proof. | ||
abstract exact I. | ||
Defined. | ||
|
||
(* abstract doesn't restrict named qualities and universes | ||
(debatable behaviour but that's what it does currently) *) | ||
Check demo@{Type|Set}. | ||
|
||
Definition baz@{q|u|} (A:Type@{q|u}) (x:A) : A. | ||
Proof. | ||
abstract exact x. | ||
Defined. |
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