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.
kernel conversion: universe on array literals is irrelevant
Fix coq#17868
- Loading branch information
1 parent
b5d259a
commit dea2714
Showing
2 changed files
with
25 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From Coq Require Import Uint63 PArray. | ||
|
||
Class pointed T := point : T. | ||
|
||
Inductive PROOF_OF A := the (x : A). | ||
|
||
Definition foo : PROOF_OF (@make (pointed nat) 0 0 = @make nat 0 0). | ||
constructor. | ||
cbv. (* @eq (array@{pointed.u0} nat) [| | O : nat |]@{pointed.u0} [| | O : nat |]@{Set} *) | ||
reflexivity. | ||
Defined. | ||
|
||
Notation barv | ||
:= (@exist (array@{Set} nat) (fun x => x = @make nat 0 0) _ (eq_refl (@make nat 0 0))) | ||
(only parsing). | ||
|
||
Definition bar1 : { x | x = @make (pointed nat) 0 0 } | ||
:= Eval cbv in barv. | ||
|
||
Definition bar0 : { x | x = @make (pointed nat) 0 0 } | ||
:= Eval vm_compute in barv. | ||
|
||
Definition bar := Eval cbv in foo. |