File: bug_18845.v

package info (click to toggle)
coq 9.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 35,964 kB
  • sloc: ml: 239,908; sh: 4,355; python: 2,985; ansic: 2,644; makefile: 874; lisp: 171; javascript: 63; xml: 24; sed: 2
file content (9 lines) | stat: -rw-r--r-- 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
Set Universe Polymorphism.

Inductive Box@{s;u|} (A:Type@{s;u}) := box (_:A).

Definition t1@{s;u|} (A:Type@{s;u}) (x y : A) := box _ x.
Definition t2@{s;u|} (A:Type@{s;u}) (x y : A) := box _ y.

Check fun A:SProp => eq_refl : t1 A = t2 A. (* What is in "test-suite/success/sort_polymorphism.v" *)
Check fun (A : SProp) => (fun (x : t1 A = t2 A) => x) eq_refl. (* Slight variation *)