test(lean/run): add another test for new elaborator
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
543b1003a6
commit
49a6048060
1 changed files with 21 additions and 0 deletions
21
tests/lean/run/e3.lean
Normal file
21
tests/lean/run/e3.lean
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue