105c29b51e
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
18 lines
No EOL
366 B
Text
18 lines
No EOL
366 B
Text
import standard bool
|
|
using bool
|
|
|
|
namespace set
|
|
|
|
definition set (T : Type) := T → bool
|
|
definition mem {T : Type} (a : T) (s : set T) := s a = tt
|
|
infix `∈`:50 := mem
|
|
|
|
section
|
|
parameter {T : Type}
|
|
|
|
definition empty : set T := λx, ff
|
|
notation `∅` := empty
|
|
|
|
theorem mem_empty (x : T) : ¬ (x ∈ ∅)
|
|
:= not_intro (λH : x ∈ ∅, absurd H ff_ne_tt)
|
|
end |