test(tests/lean/run): add some 'lost' tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
75005765d6
commit
d998bf9300
5 changed files with 38 additions and 0 deletions
4
tests/lean/run/booltst.lean
Normal file
4
tests/lean/run/booltst.lean
Normal file
|
@ -0,0 +1,4 @@
|
|||
import standard
|
||||
using bool
|
||||
|
||||
check '0
|
4
tests/lean/run/bug5.lean
Normal file
4
tests/lean/run/bug5.lean
Normal file
|
@ -0,0 +1,4 @@
|
|||
import standard
|
||||
|
||||
theorem symm2 {A : Type} {a b : A} (H : a = b) : b = a
|
||||
:= subst H (refl a)
|
5
tests/lean/run/goal.lean
Normal file
5
tests/lean/run/goal.lean
Normal file
|
@ -0,0 +1,5 @@
|
|||
import standard
|
||||
using tactic
|
||||
|
||||
theorem T {a b c d : Prop} (H : a) (H : b) (H : c) (H : d) : a
|
||||
:= by state; assumption
|
7
tests/lean/run/set.lean
Normal file
7
tests/lean/run/set.lean
Normal file
|
@ -0,0 +1,7 @@
|
|||
import standard bool
|
||||
using bool
|
||||
|
||||
definition set {{T : Type}} := T → bool
|
||||
infix `∈`:50 := λx A, A x = '1
|
||||
|
||||
check 1 ∈ (λ x, '1)
|
18
tests/lean/run/set2.lean
Normal file
18
tests/lean/run/set2.lean
Normal file
|
@ -0,0 +1,18 @@
|
|||
import standard bool
|
||||
using bool
|
||||
|
||||
namespace set
|
||||
|
||||
definition set (T : Type) := T → bool
|
||||
definition mem {T : Type} (a : T) (s : set T) := s a = '1
|
||||
infix `∈`:50 := mem
|
||||
|
||||
section
|
||||
parameter {T : Type}
|
||||
|
||||
definition empty : set T := λx, '0
|
||||
notation `∅` := empty
|
||||
|
||||
theorem mem_empty (x : T) : ¬ (x ∈ ∅)
|
||||
:= not_intro (λH : x ∈ ∅, absurd H b0_ne_b1)
|
||||
end
|
Loading…
Reference in a new issue