-
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.
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 #19072
- Loading branch information
1 parent
4d1f888
commit 90e31e2
Showing
6 changed files
with
35 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
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