diff options
author | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2015-01-15 18:45:27 +0530 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2015-01-18 00:16:43 +0530 |
commit | c87579a20b8f99b8dd968320f96dd470d274c3ca (patch) | |
tree | c0600c17af66feaee7529b6291f62b975dfc600a /theories/Init/Datatypes.v | |
parent | 93628d2e7156943edf3cfffa25a21855fb4b06db (diff) |
Correct restriction of vm_compute when handling universe polymorphic
definitions. Instead of failing with an anomaly when trying to do
conversion or computation with the vm's, consider polymorphic constants
as being opaque and keep instances around. This way the code is still
correct but (obviously) incomplete for polymorphic definitions and we
avoid introducing an anomaly. The patch does nothing clever, it only
keeps around instances with constants/inductives and compile constant
bodies only for non-polymorphic definitions.
Diffstat (limited to 'theories/Init/Datatypes.v')
-rw-r--r-- | theories/Init/Datatypes.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/theories/Init/Datatypes.v b/theories/Init/Datatypes.v index a04535f40..de615301d 100644 --- a/theories/Init/Datatypes.v +++ b/theories/Init/Datatypes.v @@ -342,8 +342,8 @@ Arguments identity_rect [A] a P f y i. (** Identity type *) -Polymorphic Definition ID := forall A:Type, A -> A. -Polymorphic Definition id : ID := fun A x => x. +Definition ID := forall A:Type, A -> A. +Definition id : ID := fun A x => x. Definition IDProp := forall A:Prop, A -> A. Definition idProp : IDProp := fun A x => x. |