lean4-htt/tests/lean/run/offset1.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

16 lines
476 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open nat
inductive {u} vec (α : Type u) : → Type u
| nil {} : vec 0
| cons : α → Π {n : nat}, vec n → vec (n+1)
namespace vec
def head {α : Type*} : Π {n : }, vec α (n+1) → α
| n (cons x xs) := x
end vec
constants (dret : Π {n : }, vec nat n → (vec nat n → nat) → nat)
axiom dret_spec : Π {n : } (xs : vec nat n) (f : vec nat n → nat), dret xs f = f xs
example (v : vec nat (id 1)) : dret v vec.head = vec.head v :=
by rw dret_spec