test(lean/run): add another test for new elaborator

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-25 13:18:32 -07:00
parent 543b1003a6
commit 49a6048060

21
tests/lean/run/e3.lean Normal file
View file

@ -0,0 +1,21 @@
definition Bool [inline] := Type.{0}
definition false := ∀x : Bool, x
check false
theorem false_elim (C : Bool) (H : false) : C
:= H C
definition eq {A : Type} (a b : A)
:= ∀ {P : A → Bool}, P a → P b
check eq
infix `=` 50 := eq
theorem refl {A : Type} (a : A) : a = a
:= λ P H, H
theorem subst {A : Type} {P : A -> Bool} {a b : A} (H1 : a = b) (H2 : P a) : P b
:= @H1 P H2