test-suite/bugs/bug_7695.v
raw| 1 | Require Import TestSuite.hurkens. |
| 2 | |
| 3 | Universes i j k. |
| 4 | Module Type T. |
| 5 | Parameter T1 : Type@{i+1}. |
| 6 | Parameter e : Type@{j} = T1 : Type@{k}. |
| 7 | End T. |
| 8 | |
| 9 | Module M. |
| 10 | Definition T1 := Type@{j}. |
| 11 | Definition e : Type@{j} = T1 : Type@{k} := eq_refl. |
| 12 | End M. |
| 13 | |
| 14 | Module F (A:T). |
| 15 | Definition bad := TypeNeqSmallType.paradox _ A.e. |
| 16 | End F. |
| 17 | |
| 18 | Set Printing Universes. |
| 19 | Fail Module X := F M. |
| 20 | (* Universe inconsistency. Cannot enforce j <= i because i < Stdlib.Logic.Hurkens.105 = j. *) |