| 1 |
Inductive Empty@{uu} : Type@{uu} := . |
| 2 |
(* uu |= *) |
| 3 |
Record PWrap@{uu} (A : Type@{uu}) : Type@{uu} := pwrap |
| 4 |
{ punwrap : A }. |
| 5 |
(* uu |= *) |
| 6 |
|
| 7 |
PWrap has primitive projections with eta conversion. |
| 8 |
Arguments PWrap A%_type_scope |
| 9 |
Arguments pwrap A%_type_scope punwrap |
| 10 |
Arguments punwrap A%_type_scope p |
| 11 |
Record PWrap@{uu} (A : Type@{uu}) : Type@{uu} := pwrap |
| 12 |
{ punwrap : A }. |
| 13 |
(* uu |= *) |
| 14 |
|
| 15 |
PWrap has primitive projections with eta conversion. |
| 16 |
Arguments PWrap A%_type_scope |
| 17 |
Arguments pwrap A%_type_scope punwrap |
| 18 |
Arguments punwrap A%_type_scope p |
| 19 |
Record RWrap@{uu} (A : Type@{uu}) : Type@{uu} := rwrap |
| 20 |
{ runwrap : A }. |
| 21 |
(* uu |= *) |
| 22 |
|
| 23 |
Arguments RWrap A%_type_scope |
| 24 |
Arguments rwrap A%_type_scope runwrap |
| 25 |
Arguments runwrap A%_type_scope r |
| 26 |
runwrap@{uu} = |
| 27 |
fun (A : Type@{uu}) (r : RWrap@{uu} A) => let (runwrap) := r in runwrap |
| 28 |
: forall A : Type@{uu}, RWrap@{uu} A -> A |
| 29 |
(* uu |= *) |
| 30 |
|
| 31 |
runwrap is a projection of RWrap |
| 32 |
Arguments runwrap A%_type_scope r |
| 33 |
Wrap@{uu} = fun A : Type@{uu} => A |
| 34 |
: Type@{uu} -> Type@{uu} |
| 35 |
(* uu |= *) |
| 36 |
|
| 37 |
Arguments Wrap A%_type_scope |
| 38 |
wrap@{uu} = |
| 39 |
fun (A : Type@{uu}) (Wrap : Wrap@{uu} A) => Wrap |
| 40 |
: forall {A : Type@{uu}}, Wrap@{uu} A -> A |
| 41 |
(* uu |= *) |
| 42 |
|
| 43 |
Arguments wrap {A}%_type_scope {Wrap} |
| 44 |
bar@{uu} = nat |
| 45 |
: Wrap@{uu} Set |
| 46 |
(* uu |= Set < uu *) |
| 47 |
foo@{uu u v} = |
| 48 |
Type@{u} -> Type@{v} -> Type@{uu} |
| 49 |
: Type@{max(uu+1,u+1,v+1)} |
| 50 |
(* uu u v |= *) |
| 51 |
Type@{i} -> Type@{j} |
| 52 |
: Type@{max(i+1,j+1)} |
| 53 |
(* {j i} |= *) |
| 54 |
= Type@{i} -> Type@{j} |
| 55 |
: Type@{max(i+1,j+1)} |
| 56 |
(* {j i} |= *) |
| 57 |
mono = Type@{mono.uu} |
| 58 |
: Type@{mono.uu+1} |
| 59 |
mono |
| 60 |
: Type@{mono.uu+1} |
| 61 |
Type@{mono.uu} |
| 62 |
: Type@{mono.uu+1} |
| 63 |
File "./output/UnivBinders.v", line 50, characters 2-31: |
| 64 |
The command has indeed failed with message: |
| 65 |
Universe uu already exists. |
| 66 |
monomono |
| 67 |
: Type@{MONOU+1} |
| 68 |
mono.monomono |
| 69 |
: Type@{mono.MONOU+1} |
| 70 |
monomono |
| 71 |
: Type@{MONOU+1} |
| 72 |
mono |
| 73 |
: Type@{mono.uu+1} |
| 74 |
File "./output/UnivBinders.v", line 70, characters 0-52: |
| 75 |
The command has indeed failed with message: |
| 76 |
Universe uu already exists. |
| 77 |
bobmorane = |
| 78 |
let tt := Type@{fooS.u1} in let ff := Type@{fooS.u3} in tt -> ff |
| 79 |
: Type@{max(fooS.u0,fooS.u2)} |
| 80 |
File "./output/UnivBinders.v", line 87, characters 23-25: |
| 81 |
The command has indeed failed with message: |
| 82 |
Universe uu already bound. |
| 83 |
foo@{E M N} = |
| 84 |
Type@{M} -> Type@{N} -> Type@{E} |
| 85 |
: Type@{max(E+1,M+1,N+1)} |
| 86 |
(* E M N |= *) |
| 87 |
foo@{uu u v} = |
| 88 |
Type@{u} -> Type@{v} -> Type@{uu} |
| 89 |
: Type@{max(uu+1,u+1,v+1)} |
| 90 |
(* uu u v |= *) |
| 91 |
foo@{u u IMPORTANT} = |
| 92 |
Type@{u} -> Type@{IMPORTANT} -> Type@{u} |
| 93 |
: Type@{max(u+1,u+1,IMPORTANT+1)} |
| 94 |
(* u u IMPORTANT |= *) |
| 95 |
Inductive Empty@{E} : Type@{E} := . |
| 96 |
(* E |= *) |
| 97 |
Record PWrap@{E} (A : Type@{E}) : Type@{E} := pwrap |
| 98 |
{ punwrap : A }. |
| 99 |
(* E |= *) |
| 100 |
|
| 101 |
PWrap has primitive projections with eta conversion. |
| 102 |
Arguments PWrap A%_type_scope |
| 103 |
Arguments pwrap A%_type_scope punwrap |
| 104 |
Arguments punwrap A%_type_scope p |
| 105 |
punwrap@{K} : forall A : Type@{K}, PWrap@{K} A -> A |
| 106 |
(* K |= *) |
| 107 |
|
| 108 |
punwrap is universe polymorphic |
| 109 |
punwrap is a primitive projection of PWrap |
| 110 |
Arguments punwrap A%_type_scope p |
| 111 |
punwrap is transparent |
| 112 |
Expands to: Constant UnivBinders.punwrap |
| 113 |
Declared in library UnivBinders, line 12, characters 43-50 |
| 114 |
File "./output/UnivBinders.v", line 104, characters 0-19: |
| 115 |
The command has indeed failed with message: |
| 116 |
Universe instance length for foo is 3 but should be 1. |
| 117 |
File "./output/UnivBinders.v", line 105, characters 0-20: |
| 118 |
The command has indeed failed with message: |
| 119 |
Universe instance length for mono is 0 but should be 1. |
| 120 |
File "./output/UnivBinders.v", line 108, characters 0-33: |
| 121 |
The command has indeed failed with message: |
| 122 |
This object does not support universe names. |
| 123 |
File "./output/UnivBinders.v", line 112, characters 0-50: |
| 124 |
The command has indeed failed with message: |
| 125 |
Cannot enforce v < u because u < gU < gV < v |
| 126 |
insec@{v} = Type@{uu} -> Type@{v} |
| 127 |
: Type@{max(uu+1,v+1)} |
| 128 |
(* v |= *) |
| 129 |
Inductive insecind@{k} : Type@{k+1} := |
| 130 |
inseccstr : Type@{k} -> insecind@{k}. |
| 131 |
(* k |= *) |
| 132 |
|
| 133 |
Arguments inseccstr _%_type_scope |
| 134 |
insec@{uu v} = Type@{uu} -> Type@{v} |
| 135 |
: Type@{max(uu+1,v+1)} |
| 136 |
(* uu v |= *) |
| 137 |
Inductive insecind@{uu k} : Type@{k+1} := |
| 138 |
inseccstr : Type@{k} -> insecind@{uu k}. |
| 139 |
(* uu k |= *) |
| 140 |
|
| 141 |
Arguments inseccstr _%_type_scope |
| 142 |
insec2@{u} = Prop |
| 143 |
: Type@{Set+1} |
| 144 |
(* u |= *) |
| 145 |
inmod@{uu} = Type@{uu} |
| 146 |
: Type@{uu+1} |
| 147 |
(* uu |= *) |
| 148 |
SomeMod.inmod@{uu} = Type@{uu} |
| 149 |
: Type@{uu+1} |
| 150 |
(* uu |= *) |
| 151 |
inmod@{uu} = Type@{uu} |
| 152 |
: Type@{uu+1} |
| 153 |
(* uu |= *) |
| 154 |
Applied.infunct@{uu v} = |
| 155 |
inmod@{uu} -> Type@{v} |
| 156 |
: Type@{max(uu+1,v+1)} |
| 157 |
(* uu v |= *) |
| 158 |
axfoo@{i u u0} : Type@{u} -> Type@{i} |
| 159 |
(* i u u0 |= *) |
| 160 |
|
| 161 |
axfoo is universe polymorphic |
| 162 |
Arguments axfoo _%_type_scope |
| 163 |
Expands to: Constant UnivBinders.axfoo |
| 164 |
Declared in library UnivBinders, line 151, characters 6-11 |
| 165 |
axbar@{i u u0} : Type@{u0} -> Type@{i} |
| 166 |
(* i u u0 |= *) |
| 167 |
|
| 168 |
axbar is universe polymorphic |
| 169 |
Arguments axbar _%_type_scope |
| 170 |
Expands to: Constant UnivBinders.axbar |
| 171 |
Declared in library UnivBinders, line 151, characters 17-22 |
| 172 |
axfoo' : Type@{axfoo'.u0} -> Type@{axfoo'.i} |
| 173 |
|
| 174 |
axfoo' is not universe polymorphic |
| 175 |
Arguments axfoo' _%_type_scope |
| 176 |
Expands to: Constant UnivBinders.axfoo' |
| 177 |
Declared in library UnivBinders, line 152, characters 18-24 |
| 178 |
axbar' : Type@{axfoo'.u1} -> Type@{axfoo'.i} |
| 179 |
|
| 180 |
axbar' is not universe polymorphic |
| 181 |
Arguments axbar' _%_type_scope |
| 182 |
Expands to: Constant UnivBinders.axbar' |
| 183 |
Declared in library UnivBinders, line 152, characters 30-36 |
| 184 |
*** [ axfoo@{i u u0} : Type@{u} -> Type@{i} ] |
| 185 |
(* i u u0 |= *) |
| 186 |
|
| 187 |
Arguments axfoo _%_type_scope |
| 188 |
*** [ axbar@{i u u0} : Type@{u0} -> Type@{i} ] |
| 189 |
(* i u u0 |= *) |
| 190 |
|
| 191 |
Arguments axbar _%_type_scope |
| 192 |
*** [ axfoo' : Type@{axfoo'.u0} -> Type@{axfoo'.i} ] |
| 193 |
|
| 194 |
Arguments axfoo' _%_type_scope |
| 195 |
*** [ axbar' : Type@{axfoo'.u1} -> Type@{axfoo'.i} ] |
| 196 |
|
| 197 |
Arguments axbar' _%_type_scope |
| 198 |
File "./output/UnivBinders.v", line 158, characters 19-26: |
| 199 |
The command has indeed failed with message: |
| 200 |
When declaring multiple assumptions in one command, only the first name is |
| 201 |
allowed to mention a universe binder (which will be shared by the whole |
| 202 |
block). |
| 203 |
foo@{i} = Type@{M.i} -> Type@{i} |
| 204 |
: Type@{max(M.i+1,i+1)} |
| 205 |
(* i |= *) |
| 206 |
Type@{u0} -> Type@{UnivBinders.83} |
| 207 |
: Type@{max(u0+1,UnivBinders.83+1)} |
| 208 |
(* {UnivBinders.83} |= *) |
| 209 |
bind_univs.mono = Type@{bind_univs.mono.u} |
| 210 |
: Type@{bind_univs.mono.u+1} |
| 211 |
bind_univs.poly@{u} = Type@{u} |
| 212 |
: Type@{u+1} |
| 213 |
(* u |= *) |
| 214 |
Inductive MutualR1@{u} (A : Type@{u}) : Prop := Build_MutualR1 |
| 215 |
{ p1 : MutualR2@{u} A } |
| 216 |
with MutualR2@{u} (A : Type@{u}) : Prop := Build_MutualR2 |
| 217 |
{ p2 : MutualR1@{u} A }. |
| 218 |
(* u |= *) |
| 219 |
|
| 220 |
Arguments MutualR1 A%_type_scope |
| 221 |
Arguments Build_MutualR1 A%_type_scope p1 |
| 222 |
Arguments p1 A%_type_scope m |
| 223 |
Arguments MutualR2 A%_type_scope |
| 224 |
Arguments Build_MutualR2 A%_type_scope p2 |
| 225 |
Arguments p2 A%_type_scope m |
| 226 |
Inductive MutualI1@{u u0} (A : Type@{u}) : Type@{u0} := |
| 227 |
C1 : MutualI2@{u u0} A -> MutualI1@{u u0} A |
| 228 |
with MutualI2@{u u0} (A : Type@{u}) : Type@{u0} := |
| 229 |
C2 : MutualI1@{u u0} A -> MutualI2@{u u0} A. |
| 230 |
(* u u0 |= *) |
| 231 |
|
| 232 |
Arguments MutualI1 A%_type_scope |
| 233 |
Arguments C1 A%_type_scope p1 |
| 234 |
Arguments MutualI2 A%_type_scope |
| 235 |
Arguments C2 A%_type_scope p2 |
| 236 |
CoInductive MutualR1'@{u} (A : Type@{u}) : Prop := Build_MutualR1' |
| 237 |
{ p1' : MutualR2'@{u} A } |
| 238 |
with MutualR2'@{u} (A : Type@{u}) : Prop := Build_MutualR2' |
| 239 |
{ p2' : MutualR1'@{u} A }. |
| 240 |
(* u |= *) |
| 241 |
|
| 242 |
Arguments MutualR1' A%_type_scope |
| 243 |
Arguments Build_MutualR1' A%_type_scope p1' |
| 244 |
Arguments p1' A%_type_scope m |
| 245 |
Arguments MutualR2' A%_type_scope |
| 246 |
Arguments Build_MutualR2' A%_type_scope p2' |
| 247 |
Arguments p2' A%_type_scope m |
| 248 |
CoInductive MutualI1'@{u u0} (A : Type@{u}) : Type@{u0} := |
| 249 |
C1' : MutualI2'@{u u0} A -> MutualI1'@{u u0} A |
| 250 |
with MutualI2'@{u u0} (A : Type@{u}) : Type@{u0} := |
| 251 |
C2' : MutualI1'@{u u0} A -> MutualI2'@{u u0} A. |
| 252 |
(* u u0 |= *) |
| 253 |
|
| 254 |
Arguments MutualI1' A%_type_scope |
| 255 |
Arguments C1' A%_type_scope p1 |
| 256 |
Arguments MutualI2' A%_type_scope |
| 257 |
Arguments C2' A%_type_scope p2 |
| 258 |
File "./output/UnivBinders.v", line 209, characters 0-33: |
| 259 |
The command has indeed failed with message: |
| 260 |
Universe inconsistency. Cannot enforce a < a because a = a. |
| 261 |
JMeq : |
| 262 |
forall [A : Type@{JMeq.u0}], A -> forall [B : Type@{JMeq.u1}], B -> Prop |
| 263 |
|
| 264 |
JMeq is template universe polymorphic on JMeq.u0 (cannot be instantiated to Prop) |
| 265 |
Arguments JMeq [A]%_type_scope x [B]%_type_scope _ |
| 266 |
Expands to: Inductive UnivBinders.PartialTemplate.JMeq |
| 267 |
Declared in library UnivBinders, line 219, characters 10-14 |
| 268 |
File "./output/UnivBinders.v", line 234, characters 2-38: |
| 269 |
The command has indeed failed with message: |
| 270 |
Universe u0 already exists. |
| 271 |
File "./output/UnivBinders.v", line 241, characters 6-26: |
| 272 |
The command has indeed failed with message: |
| 273 |
Tactic failure: Not equal (due to universes). |
| 274 |
eq_rect |
| 275 |
: forall (A : Type@{eq_rect.u1}) (x : A) (P : A -> Type@{eq_rect.u0}), |
| 276 |
P x -> forall y : A, x = y -> P y |
| 277 |
File "./output/UnivBinders.v", line 259, characters 18-19: |
| 278 |
Warning: Separating sorts from universes with "|" is deprecated. |
| 279 |
Use ";" instead. |
| 280 |
[deprecated-sort-poly-syntax,deprecated-since-9.1,deprecated,default] |
| 281 |
File "./output/UnivBinders.v", line 259, characters 33-34: |
| 282 |
Warning: Separating sorts from universes with "|" is deprecated. |
| 283 |
Use ";" instead. |
| 284 |
[deprecated-sort-poly-syntax,deprecated-since-9.1,deprecated,default] |
| 285 |
File "./output/UnivBinders.v", line 265, characters 16-17: |
| 286 |
Warning: Separating sorts from universes with "|" is deprecated. |
| 287 |
Use ";" instead. |
| 288 |
[deprecated-sort-poly-syntax,deprecated-since-9.1,deprecated,default] |
| 289 |
id@{Prop ; Set} |
| 290 |
: forall A : Prop, A -> A |
| 291 |
id@{SProp ; Set} |
| 292 |
: forall A : SProp, A -> A |
| 293 |
id3@{s ; u} = |
| 294 |
fun (A : Type@{s ; u}) (a : A) => a |
| 295 |
: forall A : Type@{s ; u}, A -> A |
| 296 |
(* s ; u |= Set < u *) |
| 297 |
|
| 298 |
Arguments id3 A%_type_scope a |