Skip to content

Commit 5aef80d

Browse files
committed
put subset in Set module
1 parent 97225cd commit 5aef80d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Minimathlib/Set.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ infixl:65 " ∪ " => Set.union
4949
postfix:max "ᶜ" => Set.compl
5050
notation "⋃ " f => Set.iUnion f
5151

52+
-- Basic subset relation
53+
def subset (s t : Set X) : Prop := ∀ x, x ∈ s → x ∈ t
54+
55+
infixl:50 " ⊆ " => subset
56+
5257
macro "ode_to_grind" : tactic =>
5358
`(tactic| (
5459
try unfold Set.compl

Minimathlib/Topology.lean

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@ open TopologicalSpace
3131

3232
-- De Morgan's laws for closed sets
3333
theorem isClosed_iUnion : ∀ {ι : Type u} (s : ι → Set X), (∀ i, isClosed (s i)) → isClosed (⋃ s) := by
34+
intro ι s i
3435
sorry
3536

3637
theorem isClosed_union : ∀ s t : Set X, isClosed s → isClosed t → isClosed (s ∪ t) := by
3738
sorry
3839

39-
-- Basic subset relation
40-
def subset (s t : Set X) : Prop := ∀ x, x ∈ s → x ∈ t
41-
42-
infixl:50 " ⊆ " => subset
43-
4440
-- Neighborhood definitions and properties
4541
def nhds (x : X) : Set (Set X) := fun s => ∃ t, isOpen t ∧ x ∈ t ∧ t ⊆ s
4642

0 commit comments

Comments
 (0)