Skip to content

Commit

Permalink
closure_setC
Browse files Browse the repository at this point in the history
  • Loading branch information
t6s committed Oct 26, 2024
1 parent 7a09448 commit 560b843
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- in `topology_structure.v`:
+ definitions `regopen`, `regclosed`
+ lemmas `interiorC`, `closureU`, `interiorU`,
+ lemmas `closure_setC`, `interiorC`, `closureU`, `interiorU`,
`closureEbigcap`, `interiorEbigcup`,
`closure_open_regclosed`, `interior_closed_regopen`,
`closure_interior_idem`, `interior_closure_idem`
Expand Down
23 changes: 15 additions & 8 deletions theories/topology_theory/topology_structure.v
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,15 @@ Qed.

End closure_lemmas.

Section regular_open_closed.
Variable T : topologicalType.

Definition regopen (A : set T) := (closure A)^° = A.

Definition regclosed (A : set T) := closure (A^°) = A.

End regular_open_closed.

Section closure_interior_lemmas.
Variable T : topologicalType.

Expand All @@ -831,15 +840,16 @@ exists U=> //; apply/(subset_trans UX)/disjoints_subset; rewrite setIC.
by apply/eqP/negbNE/negP; rewrite set0P.
Qed.

Let _to_be_closureC (A : set T) : closure (~` A) = ~` A^°.
(* TODO: rename to closureC after removing the deprecated one *)
Lemma closure_setC (A : set T) : closure (~` A) = ~` A^°.
Proof. by apply: setC_inj; rewrite -interiorC !setCK. Qed.

Lemma closureU (A B : set T) : closure (A `|` B) = closure A `|` closure B.
Proof. by apply: setC_inj; rewrite setCU -!interiorC -interiorI setCU. Qed.

Lemma interiorU (A B : set T) : A^° `|` B^° `<=` (A `|` B)^°.
Proof.
by apply: subsetC2; rewrite setCU -!_to_be_closureC setCU; exact: closureI.
by apply: subsetC2; rewrite setCU -!closure_setC setCU; exact: closureI.
Qed.

Lemma closureEbigcap (A : set T) :
Expand All @@ -849,16 +859,13 @@ Proof. exact: closureE. Qed.
Lemma interiorEbigcup (A : set T) :
A^° = \bigcup_(x in [set U | open U /\ U `<=` A]) x.
Proof.
apply: setC_inj; rewrite -_to_be_closureC closureEbigcap setC_bigcup.
apply: setC_inj; rewrite -closure_setC closureEbigcap setC_bigcup.
rewrite -[RHS](bigcap_image _ setC idfun) /=.
apply: eq_bigcapl; split=> X /=.
by rewrite -openC -setCS setCK; exists (~` X)=> //; rewrite setCK.
by case=> Y + <-; rewrite closedC setCS.
Qed.

Definition regopen (A : set T) := (closure A)^° = A.
Definition regclosed (A : set T) := closure (A^°) = A.

Lemma interior_closed_regopen (A : set T) : closed A -> regopen A^°.
Proof.
move=> cA; rewrite /regopen eqEsubset; split=> x.
Expand All @@ -877,8 +884,8 @@ Qed.
Lemma closure_open_regclosed (A : set T) : open A -> regclosed (closure A).
Proof.
rewrite /regclosed -(setCK A) openC=> ?.
rewrite _to_be_closureC -[in RHS]interior_closed_regopen //.
by rewrite !(_to_be_closureC, interiorC).
rewrite closure_setC -[in RHS]interior_closed_regopen //.
by rewrite !(closure_setC, interiorC).
Qed.

Lemma interior_closure_idem : @idempotent_fun (set T) (interior \o closure).
Expand Down

0 comments on commit 560b843

Please sign in to comment.