tinyevil

Untitled

Mar 7th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Inductive PBox : Prop :=
  2. | wrap : forall P:Prop, P -> PBox.
  3.  
  4. Inductive TBox : Type :=
  5. | wrap_t : forall T:Type, T -> TBox.
  6.  
  7. Check (wrap PBox).
  8.  
  9. Fail Check (wrap_t TBox).
  10. (*
  11. The command has indeed failed with message:
  12. The term "TBox" has type
  13. "Type@{max(Prop, Top.8+1)}"
  14. while it is expected to have type
  15. "Type@{Top.8}"
  16. (universe inconsistency: Cannot enforce Top.8 <
  17. Top.8 because Top.8 = Top.8).
  18. *)
Add Comment
Please, Sign In to add comment