2014-08-25 02:58:48 +00:00
|
|
|
import logic
|
2014-09-03 23:00:38 +00:00
|
|
|
open bool
|
2014-07-23 15:22:53 +00:00
|
|
|
|
|
|
|
namespace set
|
|
|
|
|
|
|
|
definition set (T : Type) := T → bool
|
2014-07-29 02:58:57 +00:00
|
|
|
definition mem {T : Type} (a : T) (s : set T) := s a = tt
|
2014-10-21 22:27:45 +00:00
|
|
|
infix `∈` := mem
|
2014-07-23 15:22:53 +00:00
|
|
|
|
|
|
|
section
|
2014-10-09 14:13:06 +00:00
|
|
|
variable {T : Type}
|
2014-07-23 15:22:53 +00:00
|
|
|
|
2014-07-29 02:58:57 +00:00
|
|
|
definition empty : set T := λx, ff
|
2014-07-23 15:22:53 +00:00
|
|
|
notation `∅` := empty
|
|
|
|
|
|
|
|
theorem mem_empty (x : T) : ¬ (x ∈ ∅)
|
2014-07-29 02:58:57 +00:00
|
|
|
:= not_intro (λH : x ∈ ∅, absurd H ff_ne_tt)
|
2014-08-07 23:59:08 +00:00
|
|
|
end
|
|
|
|
|
2014-09-03 23:00:38 +00:00
|
|
|
end set
|