lean4-htt/tests/lean/run/offset1.lean

16 lines
470 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 vec (α : Type*) : → Type*
| 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