lean4-htt/tests/lean/run/1163.lean
Leonardo de Moura bf9f7560f7 feat(frontends/lean): (Type u) can't be a proposition
(Type u)  is the old (Type (u+1))
(PType u) is the old (Type u)
Type*     is the old (Type (_+1))
PType*    is the old Type*

The stdlib can be compiled, but we still have > 70 broken tests

See discussion at #1341
2017-01-30 11:54:00 -08:00

7 lines
216 B
Text

inductive {u} Foo : Type → Type (u+1)
| mk : Π (X : Type), Foo X
| wrap : Π (X : Type), Foo X → Foo X
def rig : Π {X : Type}, Foo X → Foo X
| X (Foo.wrap .X foo) := foo
| X foo := foo