| author | Thomas Lindae <thomas.lindae@in.tum.de> | 
| Thu, 18 Jul 2024 01:18:43 +0200 | |
| changeset 81080 | 4aa4bd946f96 | 
| parent 80914 | d97fdabd9e2b | 
| child 82323 | b022c013b04b | 
| permissions | -rw-r--r-- | 
| 
77939
 
98879407d33c
Two new theories containing material ported from HOL Light about abstract topology
 
paulson <lp15@cam.ac.uk> 
parents: 
77935 
diff
changeset
 | 
1  | 
(* Author: L C Paulson, University of Cambridge [ported from HOL Light] *)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3  | 
section \<open>Operators involving abstract topology\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
4  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
5  | 
theory Abstract_Topology  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
6  | 
imports  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
7  | 
Complex_Main  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
8  | 
"HOL-Library.Set_Idioms"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
9  | 
"HOL-Library.FuncSet"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
10  | 
begin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
11  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
12  | 
subsection \<open>General notion of a topology as a value\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
13  | 
|
| 70136 | 14  | 
definition\<^marker>\<open>tag important\<close> istopology :: "('a set \<Rightarrow> bool) \<Rightarrow> bool" where
 | 
| 70235 | 15  | 
"istopology L \<equiv> (\<forall>S T. L S \<longrightarrow> L T \<longrightarrow> L (S \<inter> T)) \<and> (\<forall>\<K>. (\<forall>K\<in>\<K>. L K) \<longrightarrow> L (\<Union>\<K>))"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
16  | 
|
| 70136 | 17  | 
typedef\<^marker>\<open>tag important\<close> 'a topology = "{L::('a set) \<Rightarrow> bool. istopology L}"
 | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
18  | 
morphisms "openin" "topology"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
19  | 
unfolding istopology_def by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
20  | 
|
| 
75449
 
51e05af57455
Added a couple of obvious simprules
 
paulson <lp15@cam.ac.uk> 
parents: 
73932 
diff
changeset
 | 
21  | 
lemma istopology_openin[iff]: "istopology(openin U)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
22  | 
using openin[of U] by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
23  | 
|
| 
75449
 
51e05af57455
Added a couple of obvious simprules
 
paulson <lp15@cam.ac.uk> 
parents: 
73932 
diff
changeset
 | 
24  | 
lemma istopology_open[iff]: "istopology open"  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
25  | 
by (auto simp: istopology_def)  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
26  | 
|
| 
75449
 
51e05af57455
Added a couple of obvious simprules
 
paulson <lp15@cam.ac.uk> 
parents: 
73932 
diff
changeset
 | 
27  | 
lemma topology_inverse' [simp]: "istopology U \<Longrightarrow> openin (topology U) = U"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
28  | 
using topology_inverse[unfolded mem_Collect_eq] .  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
29  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
30  | 
lemma topology_inverse_iff: "istopology U \<longleftrightarrow> openin (topology U) = U"  | 
| 
75449
 
51e05af57455
Added a couple of obvious simprules
 
paulson <lp15@cam.ac.uk> 
parents: 
73932 
diff
changeset
 | 
31  | 
by (metis istopology_openin topology_inverse')  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
32  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
33  | 
lemma topology_eq: "T1 = T2 \<longleftrightarrow> (\<forall>S. openin T1 S \<longleftrightarrow> openin T2 S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
34  | 
proof  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
35  | 
assume "T1 = T2"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
36  | 
then show "\<forall>S. openin T1 S \<longleftrightarrow> openin T2 S" by simp  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
37  | 
next  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
38  | 
assume H: "\<forall>S. openin T1 S \<longleftrightarrow> openin T2 S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
39  | 
then have "openin T1 = openin T2" by (simp add: fun_eq_iff)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
40  | 
then have "topology (openin T1) = topology (openin T2)" by simp  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
41  | 
then show "T1 = T2" unfolding openin_inverse .  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
42  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
43  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
44  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
45  | 
text\<open>The "universe": the union of all sets in the topology.\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
46  | 
definition "topspace T = \<Union>{S. openin T S}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
47  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
48  | 
subsubsection \<open>Main properties of open sets\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
49  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
50  | 
proposition openin_clauses:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
51  | 
fixes U :: "'a topology"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
52  | 
shows  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
53  | 
    "openin U {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
54  | 
"\<And>S T. openin U S \<Longrightarrow> openin U T \<Longrightarrow> openin U (S\<inter>T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
55  | 
"\<And>K. (\<forall>S \<in> K. openin U S) \<Longrightarrow> openin U (\<Union>K)"  | 
| 70235 | 56  | 
using openin[of U] unfolding istopology_def by auto  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
57  | 
|
| 72608 | 58  | 
lemma openin_subset: "openin U S \<Longrightarrow> S \<subseteq> topspace U"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
59  | 
unfolding topspace_def by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
60  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
61  | 
lemma openin_empty[simp]: "openin U {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
62  | 
by (rule openin_clauses)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
63  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
64  | 
lemma openin_Int[intro]: "openin U S \<Longrightarrow> openin U T \<Longrightarrow> openin U (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
65  | 
by (rule openin_clauses)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
66  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
67  | 
lemma openin_Union[intro]: "(\<And>S. S \<in> K \<Longrightarrow> openin U S) \<Longrightarrow> openin U (\<Union>K)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
68  | 
using openin_clauses by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
69  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
70  | 
lemma openin_Un[intro]: "openin U S \<Longrightarrow> openin U T \<Longrightarrow> openin U (S \<union> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
71  | 
  using openin_Union[of "{S,T}" U] by auto
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
72  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
73  | 
lemma openin_topspace[intro, simp]: "openin U (topspace U)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
74  | 
by (force simp: openin_Union topspace_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
75  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
76  | 
lemma openin_subopen: "openin U S \<longleftrightarrow> (\<forall>x \<in> S. \<exists>T. openin U T \<and> x \<in> T \<and> T \<subseteq> S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
77  | 
(is "?lhs \<longleftrightarrow> ?rhs")  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
78  | 
proof  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
79  | 
assume ?lhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
80  | 
then show ?rhs by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
81  | 
next  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
82  | 
assume H: ?rhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
83  | 
  let ?t = "\<Union>{T. openin U T \<and> T \<subseteq> S}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
84  | 
have "openin U ?t" by (force simp: openin_Union)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
85  | 
also have "?t = S" using H by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
86  | 
finally show "openin U S" .  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
87  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
88  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
89  | 
lemma openin_INT [intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
90  | 
assumes "finite I"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
91  | 
"\<And>i. i \<in> I \<Longrightarrow> openin T (U i)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
92  | 
shows "openin T ((\<Inter>i \<in> I. U i) \<inter> topspace T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
93  | 
using assms by (induct, auto simp: inf_sup_aci(2) openin_Int)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
94  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
95  | 
lemma openin_INT2 [intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
96  | 
  assumes "finite I" "I \<noteq> {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
97  | 
"\<And>i. i \<in> I \<Longrightarrow> openin T (U i)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
98  | 
shows "openin T (\<Inter>i \<in> I. U i)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
99  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
100  | 
have "(\<Inter>i \<in> I. U i) \<subseteq> topspace T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
101  | 
    using \<open>I \<noteq> {}\<close> openin_subset[OF assms(3)] by auto
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
102  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
103  | 
using openin_INT[of _ _ U, OF assms(1) assms(3)] by (simp add: inf.absorb2 inf_commute)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
104  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
105  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
106  | 
lemma openin_Inter [intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
107  | 
  assumes "finite \<F>" "\<F> \<noteq> {}" "\<And>X. X \<in> \<F> \<Longrightarrow> openin T X" shows "openin T (\<Inter>\<F>)"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
108  | 
by (metis (full_types) assms openin_INT2 image_ident)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
109  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
110  | 
lemma openin_Int_Inter:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
111  | 
assumes "finite \<F>" "openin T U" "\<And>X. X \<in> \<F> \<Longrightarrow> openin T X" shows "openin T (U \<inter> \<Inter>\<F>)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
112  | 
using openin_Inter [of "insert U \<F>"] assms by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
113  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
114  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
115  | 
subsubsection \<open>Closed sets\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
116  | 
|
| 70136 | 117  | 
definition\<^marker>\<open>tag important\<close> closedin :: "'a topology \<Rightarrow> 'a set \<Rightarrow> bool" where  | 
| 69600 | 118  | 
"closedin U S \<longleftrightarrow> S \<subseteq> topspace U \<and> openin U (topspace U - S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
119  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
120  | 
lemma closedin_subset: "closedin U S \<Longrightarrow> S \<subseteq> topspace U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
121  | 
by (metis closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
122  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
123  | 
lemma closedin_empty[simp]: "closedin U {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
124  | 
by (simp add: closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
125  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
126  | 
lemma closedin_topspace[intro, simp]: "closedin U (topspace U)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
127  | 
by (simp add: closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
128  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
129  | 
lemma closedin_Un[intro]: "closedin U S \<Longrightarrow> closedin U T \<Longrightarrow> closedin U (S \<union> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
130  | 
by (auto simp: Diff_Un closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
131  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
132  | 
lemma Diff_Inter[intro]: "A - \<Inter>S = \<Union>{A - s|s. s\<in>S}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
133  | 
by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
134  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
135  | 
lemma closedin_Union:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
136  | 
assumes "finite S" "\<And>T. T \<in> S \<Longrightarrow> closedin U T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
137  | 
shows "closedin U (\<Union>S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
138  | 
using assms by induction auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
139  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
140  | 
lemma closedin_Inter[intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
141  | 
  assumes Ke: "K \<noteq> {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
142  | 
and Kc: "\<And>S. S \<in>K \<Longrightarrow> closedin U S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
143  | 
shows "closedin U (\<Inter>K)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
144  | 
using Ke Kc unfolding closedin_def Diff_Inter by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
145  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
146  | 
lemma closedin_INT[intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
147  | 
  assumes "A \<noteq> {}" "\<And>x. x \<in> A \<Longrightarrow> closedin U (B x)"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
148  | 
shows "closedin U (\<Inter>x\<in>A. B x)"  | 
| 72608 | 149  | 
using assms by blast  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
150  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
151  | 
lemma closedin_Int[intro]: "closedin U S \<Longrightarrow> closedin U T \<Longrightarrow> closedin U (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
152  | 
  using closedin_Inter[of "{S,T}" U] by auto
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
153  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
154  | 
lemma openin_closedin_eq: "openin U S \<longleftrightarrow> S \<subseteq> topspace U \<and> closedin U (topspace U - S)"  | 
| 72608 | 155  | 
by (metis Diff_subset closedin_def double_diff equalityD1 openin_subset)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
156  | 
|
| 
69994
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
157  | 
lemma topology_finer_closedin:  | 
| 
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
158  | 
"topspace X = topspace Y \<Longrightarrow> (\<forall>S. openin Y S \<longrightarrow> openin X S) \<longleftrightarrow> (\<forall>S. closedin Y S \<longrightarrow> closedin X S)"  | 
| 72608 | 159  | 
by (metis closedin_def openin_closedin_eq)  | 
| 
69994
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
160  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
161  | 
lemma openin_closedin: "S \<subseteq> topspace U \<Longrightarrow> (openin U S \<longleftrightarrow> closedin U (topspace U - S))"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
162  | 
by (simp add: openin_closedin_eq)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
163  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
164  | 
lemma openin_diff[intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
165  | 
assumes oS: "openin U S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
166  | 
and cT: "closedin U T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
167  | 
shows "openin U (S - T)"  | 
| 77234 | 168  | 
by (metis Int_Diff cT closedin_def inf.orderE oS openin_Int openin_subset)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
169  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
170  | 
lemma closedin_diff[intro]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
171  | 
assumes oS: "closedin U S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
172  | 
and cT: "openin U T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
173  | 
shows "closedin U (S - T)"  | 
| 77234 | 174  | 
by (metis Int_Diff cT closedin_Int closedin_subset inf.orderE oS openin_closedin_eq)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
175  | 
|
| 77934 | 176  | 
lemma all_openin: "(\<forall>U. openin X U \<longrightarrow> P U) \<longleftrightarrow> (\<forall>U. closedin X U \<longrightarrow> P (topspace X - U))"  | 
177  | 
by (metis Diff_Diff_Int closedin_def inf.absorb_iff2 openin_closedin_eq)  | 
|
178  | 
||
179  | 
lemma all_closedin: "(\<forall>U. closedin X U \<longrightarrow> P U) \<longleftrightarrow> (\<forall>U. openin X U \<longrightarrow> P (topspace X - U))"  | 
|
180  | 
by (metis Diff_Diff_Int closedin_subset inf.absorb_iff2 openin_closedin_eq)  | 
|
181  | 
||
182  | 
lemma ex_openin: "(\<exists>U. openin X U \<and> P U) \<longleftrightarrow> (\<exists>U. closedin X U \<and> P (topspace X - U))"  | 
|
183  | 
by (metis Diff_Diff_Int closedin_def inf.absorb_iff2 openin_closedin_eq)  | 
|
184  | 
||
185  | 
lemma ex_closedin: "(\<exists>U. closedin X U \<and> P U) \<longleftrightarrow> (\<exists>U. openin X U \<and> P (topspace X - U))"  | 
|
186  | 
by (metis Diff_Diff_Int closedin_subset inf.absorb_iff2 openin_closedin_eq)  | 
|
187  | 
||
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
188  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
189  | 
subsection\<open>The discrete topology\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
190  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
191  | 
definition discrete_topology where "discrete_topology U \<equiv> topology (\<lambda>S. S \<subseteq> U)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
192  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
193  | 
lemma openin_discrete_topology [simp]: "openin (discrete_topology U) S \<longleftrightarrow> S \<subseteq> U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
194  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
195  | 
have "istopology (\<lambda>S. S \<subseteq> U)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
196  | 
by (auto simp: istopology_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
197  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
198  | 
by (simp add: discrete_topology_def topology_inverse')  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
199  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
200  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
201  | 
lemma topspace_discrete_topology [simp]: "topspace(discrete_topology U) = U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
202  | 
by (meson openin_discrete_topology openin_subset openin_topspace order_refl subset_antisym)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
203  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
204  | 
lemma closedin_discrete_topology [simp]: "closedin (discrete_topology U) S \<longleftrightarrow> S \<subseteq> U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
205  | 
by (simp add: closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
206  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
207  | 
lemma discrete_topology_unique:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
208  | 
   "discrete_topology U = X \<longleftrightarrow> topspace X = U \<and> (\<forall>x \<in> U. openin X {x})" (is "?lhs = ?rhs")
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
209  | 
proof  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
210  | 
assume R: ?rhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
211  | 
then have "openin X S" if "S \<subseteq> U" for S  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
212  | 
using openin_subopen subsetD that by fastforce  | 
| 77234 | 213  | 
then show ?lhs  | 
214  | 
by (metis R openin_discrete_topology openin_subset topology_eq)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
215  | 
qed auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
216  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
217  | 
lemma discrete_topology_unique_alt:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
218  | 
  "discrete_topology U = X \<longleftrightarrow> topspace X \<subseteq> U \<and> (\<forall>x \<in> U. openin X {x})"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
219  | 
using openin_subset  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
220  | 
by (auto simp: discrete_topology_unique)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
221  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
222  | 
lemma subtopology_eq_discrete_topology_empty:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
223  | 
   "X = discrete_topology {} \<longleftrightarrow> topspace X = {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
224  | 
  using discrete_topology_unique [of "{}" X] by auto
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
225  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
226  | 
lemma subtopology_eq_discrete_topology_sing:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
227  | 
   "X = discrete_topology {a} \<longleftrightarrow> topspace X = {a}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
228  | 
by (metis discrete_topology_unique openin_topspace singletonD)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
229  | 
|
| 78336 | 230  | 
abbreviation trivial_topology where "trivial_topology \<equiv> discrete_topology {}"
 | 
231  | 
||
232  | 
lemma null_topspace_iff_trivial [simp]: "topspace X = {} \<longleftrightarrow> X = trivial_topology"
 | 
|
233  | 
by (simp add: subtopology_eq_discrete_topology_empty)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
234  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
235  | 
subsection \<open>Subspace topology\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
236  | 
|
| 77234 | 237  | 
definition\<^marker>\<open>tag important\<close> subtopology :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a topology"  | 
238  | 
where "subtopology U V = topology (\<lambda>T. \<exists>S. T = S \<inter> V \<and> openin U S)"  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
239  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
240  | 
lemma istopology_subtopology: "istopology (\<lambda>T. \<exists>S. T = S \<inter> V \<and> openin U S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
241  | 
(is "istopology ?L")  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
242  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
243  | 
  have "?L {}" by blast
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
244  | 
  {
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
245  | 
fix A B  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
246  | 
assume A: "?L A" and B: "?L B"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
247  | 
from A B obtain Sa and Sb where Sa: "openin U Sa" "A = Sa \<inter> V" and Sb: "openin U Sb" "B = Sb \<inter> V"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
248  | 
by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
249  | 
have "A \<inter> B = (Sa \<inter> Sb) \<inter> V" "openin U (Sa \<inter> Sb)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
250  | 
using Sa Sb by blast+  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
251  | 
then have "?L (A \<inter> B)" by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
252  | 
}  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
253  | 
moreover  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
254  | 
  {
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
255  | 
fix K  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
256  | 
assume K: "K \<subseteq> Collect ?L"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
257  | 
have th0: "Collect ?L = (\<lambda>S. S \<inter> V) ` Collect (openin U)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
258  | 
by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
259  | 
from K[unfolded th0 subset_image_iff]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
260  | 
obtain Sk where Sk: "Sk \<subseteq> Collect (openin U)" "K = (\<lambda>S. S \<inter> V) ` Sk"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
261  | 
by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
262  | 
have "\<Union>K = (\<Union>Sk) \<inter> V"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
263  | 
using Sk by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
264  | 
moreover have "openin U (\<Union>Sk)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
265  | 
using Sk by (auto simp: subset_eq)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
266  | 
ultimately have "?L (\<Union>K)" by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
267  | 
}  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
268  | 
ultimately show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
269  | 
unfolding subset_eq mem_Collect_eq istopology_def by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
270  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
271  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
272  | 
lemma openin_subtopology: "openin (subtopology U V) S \<longleftrightarrow> (\<exists>T. openin U T \<and> S = T \<inter> V)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
273  | 
unfolding subtopology_def topology_inverse'[OF istopology_subtopology]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
274  | 
by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
275  | 
|
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
276  | 
lemma subset_openin_subtopology:  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
277  | 
"\<lbrakk>openin X S; S \<subseteq> T\<rbrakk> \<Longrightarrow> openin (subtopology X T) S"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
278  | 
by (metis inf.orderE openin_subtopology)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
279  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
280  | 
lemma openin_subtopology_Int:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
281  | 
"openin X S \<Longrightarrow> openin (subtopology X T) (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
282  | 
using openin_subtopology by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
283  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
284  | 
lemma openin_subtopology_Int2:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
285  | 
"openin X T \<Longrightarrow> openin (subtopology X S) (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
286  | 
using openin_subtopology by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
287  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
288  | 
lemma openin_subtopology_diff_closed:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
289  | 
"\<lbrakk>S \<subseteq> topspace X; closedin X T\<rbrakk> \<Longrightarrow> openin (subtopology X S) (S - T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
290  | 
unfolding closedin_def openin_subtopology  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
291  | 
by (rule_tac x="topspace X - T" in exI) auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
292  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
293  | 
lemma openin_relative_to: "(openin X relative_to S) = openin (subtopology X S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
294  | 
by (force simp: relative_to_def openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
295  | 
|
| 69874 | 296  | 
lemma topspace_subtopology [simp]: "topspace (subtopology U V) = topspace U \<inter> V"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
297  | 
by (auto simp: topspace_def openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
298  | 
|
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
299  | 
lemma topspace_subtopology_subset:  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
300  | 
"S \<subseteq> topspace X \<Longrightarrow> topspace(subtopology X S) = S"  | 
| 71172 | 301  | 
by (simp add: inf.absorb_iff2)  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
302  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
303  | 
lemma closedin_subtopology: "closedin (subtopology U V) S \<longleftrightarrow> (\<exists>T. closedin U T \<and> S = T \<inter> V)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
304  | 
unfolding closedin_def topspace_subtopology  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
305  | 
by (auto simp: openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
306  | 
|
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
307  | 
lemma closedin_subtopology_Int_closed:  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
308  | 
"closedin X T \<Longrightarrow> closedin (subtopology X S) (S \<inter> T)"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
309  | 
using closedin_subtopology inf_commute by blast  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
310  | 
|
| 
78037
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
311  | 
lemma closedin_subset_topspace:  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
312  | 
"\<lbrakk>closedin X S; S \<subseteq> T\<rbrakk> \<Longrightarrow> closedin (subtopology X T) S"  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
313  | 
using closedin_subtopology by fastforce  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
314  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
315  | 
lemma closedin_relative_to:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
316  | 
"(closedin X relative_to S) = closedin (subtopology X S)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
317  | 
by (force simp: relative_to_def closedin_subtopology)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
318  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
319  | 
lemma openin_subtopology_refl: "openin (subtopology U V) V \<longleftrightarrow> V \<subseteq> topspace U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
320  | 
unfolding openin_subtopology  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
321  | 
by auto (metis IntD1 in_mono openin_subset)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
322  | 
|
| 78336 | 323  | 
lemma subtopology_trivial_iff: "subtopology X S = trivial_topology \<longleftrightarrow> X = trivial_topology \<or> topspace X \<inter> S = {}"
 | 
324  | 
by (auto simp flip: null_topspace_iff_trivial)  | 
|
325  | 
||
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
326  | 
lemma subtopology_subtopology:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
327  | 
"subtopology (subtopology X S) T = subtopology X (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
328  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
329  | 
have eq: "\<And>T'. (\<exists>S'. T' = S' \<inter> T \<and> (\<exists>T. openin X T \<and> S' = T \<inter> S)) = (\<exists>Sa. T' = Sa \<inter> (S \<inter> T) \<and> openin X Sa)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
330  | 
by (metis inf_assoc)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
331  | 
have "subtopology (subtopology X S) T = topology (\<lambda>Ta. \<exists>Sa. Ta = Sa \<inter> T \<and> openin (subtopology X S) Sa)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
332  | 
by (simp add: subtopology_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
333  | 
also have "\<dots> = subtopology X (S \<inter> T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
334  | 
by (simp add: openin_subtopology eq) (simp add: subtopology_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
335  | 
finally show ?thesis .  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
336  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
337  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
338  | 
lemma openin_subtopology_alt:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
339  | 
"openin (subtopology X U) S \<longleftrightarrow> S \<in> (\<lambda>T. U \<inter> T) ` Collect (openin X)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
340  | 
by (simp add: image_iff inf_commute openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
341  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
342  | 
lemma closedin_subtopology_alt:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
343  | 
"closedin (subtopology X U) S \<longleftrightarrow> S \<in> (\<lambda>T. U \<inter> T) ` Collect (closedin X)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
344  | 
by (simp add: image_iff inf_commute closedin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
345  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
346  | 
lemma subtopology_superset:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
347  | 
assumes UV: "topspace U \<subseteq> V"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
348  | 
shows "subtopology U V = U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
349  | 
proof -  | 
| 77234 | 350  | 
  { fix S
 | 
351  | 
have "openin U S" if "openin U T" "S = T \<inter> V" for T  | 
|
352  | 
by (metis Int_subset_iff assms inf.orderE openin_subset that)  | 
|
353  | 
then have "(\<exists>T. openin U T \<and> S = T \<inter> V) \<longleftrightarrow> openin U S"  | 
|
354  | 
by (metis assms inf.orderE inf_assoc openin_subset)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
355  | 
}  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
356  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
357  | 
unfolding topology_eq openin_subtopology by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
358  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
359  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
360  | 
lemma subtopology_topspace[simp]: "subtopology U (topspace U) = U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
361  | 
by (simp add: subtopology_superset)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
362  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
363  | 
lemma subtopology_UNIV[simp]: "subtopology U UNIV = U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
364  | 
by (simp add: subtopology_superset)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
365  | 
|
| 78336 | 366  | 
lemma subtopology_empty_iff_trivial [simp]: "subtopology X {} = trivial_topology"
 | 
367  | 
by (simp add: subtopology_eq_discrete_topology_empty)  | 
|
368  | 
||
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
369  | 
lemma subtopology_restrict:  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
370  | 
"subtopology X (topspace X \<inter> S) = subtopology X S"  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
371  | 
by (metis subtopology_subtopology subtopology_topspace)  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
372  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
373  | 
lemma openin_subtopology_empty:  | 
| 77234 | 374  | 
  "openin (subtopology U {}) S \<longleftrightarrow> S = {}"
 | 
375  | 
by (metis Int_empty_right openin_empty openin_subtopology)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
376  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
377  | 
lemma closedin_subtopology_empty:  | 
| 77234 | 378  | 
  "closedin (subtopology U {}) S \<longleftrightarrow> S = {}"
 | 
379  | 
by (metis Int_empty_right closedin_empty closedin_subtopology)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
380  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
381  | 
lemma closedin_subtopology_refl [simp]:  | 
| 77234 | 382  | 
"closedin (subtopology U X) X \<longleftrightarrow> X \<subseteq> topspace U"  | 
383  | 
by (metis closedin_def closedin_topspace inf.absorb_iff2 le_inf_iff topspace_subtopology)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
384  | 
|
| 78336 | 385  | 
lemma closedin_topspace_empty [simp]: "closedin trivial_topology S \<longleftrightarrow> S = {}"
 | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
386  | 
by (simp add: closedin_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
387  | 
|
| 78336 | 388  | 
lemma openin_topspace_empty [simp]:  | 
389  | 
   "openin trivial_topology S \<longleftrightarrow> S = {}"
 | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
390  | 
by (simp add: openin_closedin_eq)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
391  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
392  | 
lemma openin_imp_subset:  | 
| 77234 | 393  | 
"openin (subtopology U S) T \<Longrightarrow> T \<subseteq> S"  | 
394  | 
by (metis Int_iff openin_subtopology subsetI)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
395  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
396  | 
lemma closedin_imp_subset:  | 
| 77234 | 397  | 
"closedin (subtopology U S) T \<Longrightarrow> T \<subseteq> S"  | 
398  | 
by (simp add: closedin_def)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
399  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
400  | 
lemma openin_open_subtopology:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
401  | 
"openin X S \<Longrightarrow> openin (subtopology X S) T \<longleftrightarrow> openin X T \<and> T \<subseteq> S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
402  | 
by (metis inf.orderE openin_Int openin_imp_subset openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
403  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
404  | 
lemma closedin_closed_subtopology:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
405  | 
"closedin X S \<Longrightarrow> (closedin (subtopology X S) T \<longleftrightarrow> closedin X T \<and> T \<subseteq> S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
406  | 
by (metis closedin_Int closedin_imp_subset closedin_subtopology inf.orderE)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
407  | 
|
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
408  | 
lemma closedin_trans_full:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
409  | 
"\<lbrakk>closedin (subtopology X U) S; closedin X U\<rbrakk> \<Longrightarrow> closedin X S"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
410  | 
using closedin_closed_subtopology by blast  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
411  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
412  | 
lemma openin_subtopology_Un:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
413  | 
"\<lbrakk>openin (subtopology X T) S; openin (subtopology X U) S\<rbrakk>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
414  | 
\<Longrightarrow> openin (subtopology X (T \<union> U)) S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
415  | 
by (simp add: openin_subtopology) blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
416  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
417  | 
lemma closedin_subtopology_Un:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
418  | 
"\<lbrakk>closedin (subtopology X T) S; closedin (subtopology X U) S\<rbrakk>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
419  | 
\<Longrightarrow> closedin (subtopology X (T \<union> U)) S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
420  | 
by (simp add: closedin_subtopology) blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
421  | 
|
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
422  | 
lemma openin_trans_full:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
423  | 
"\<lbrakk>openin (subtopology X U) S; openin X U\<rbrakk> \<Longrightarrow> openin X S"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
424  | 
by (simp add: openin_open_subtopology)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
425  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
426  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
427  | 
subsection \<open>The canonical topology from the underlying type class\<close>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
428  | 
|
| 70136 | 429  | 
abbreviation\<^marker>\<open>tag important\<close> euclidean :: "'a::topological_space topology"  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
430  | 
where "euclidean \<equiv> topology open"  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
431  | 
|
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
432  | 
abbreviation top_of_set :: "'a::topological_space set \<Rightarrow> 'a topology"  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
433  | 
where "top_of_set \<equiv> subtopology (topology open)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
434  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
435  | 
lemma open_openin: "open S \<longleftrightarrow> openin euclidean S"  | 
| 77234 | 436  | 
by simp  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
437  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
438  | 
declare open_openin [symmetric, simp]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
439  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
440  | 
lemma topspace_euclidean [simp]: "topspace euclidean = UNIV"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
441  | 
by (force simp: topspace_def)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
442  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
443  | 
lemma topspace_euclidean_subtopology[simp]: "topspace (top_of_set S) = S"  | 
| 71172 | 444  | 
by (simp)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
445  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
446  | 
lemma closed_closedin: "closed S \<longleftrightarrow> closedin euclidean S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
447  | 
by (simp add: closed_def closedin_def Compl_eq_Diff_UNIV)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
448  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
449  | 
declare closed_closedin [symmetric, simp]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
450  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
451  | 
lemma openin_subtopology_self [simp]: "openin (top_of_set S) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
452  | 
by (metis openin_topspace topspace_euclidean_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
453  | 
|
| 78336 | 454  | 
lemma euclidean_nontrivial [simp]: "euclidean \<noteq> trivial_topology"  | 
455  | 
by (simp add: subtopology_eq_discrete_topology_empty)  | 
|
456  | 
||
457  | 
||
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
458  | 
subsubsection\<open>The most basic facts about the usual topology and metric on R\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
459  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
460  | 
abbreviation euclideanreal :: "real topology"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
461  | 
where "euclideanreal \<equiv> topology open"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
462  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
463  | 
subsection \<open>Basic "localization" results are handy for connectedness.\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
464  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
465  | 
lemma openin_open: "openin (top_of_set U) S \<longleftrightarrow> (\<exists>T. open T \<and> (S = U \<inter> T))"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
466  | 
by (auto simp: openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
467  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
468  | 
lemma openin_Int_open:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
469  | 
"\<lbrakk>openin (top_of_set U) S; open T\<rbrakk>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
470  | 
\<Longrightarrow> openin (top_of_set U) (S \<inter> T)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
471  | 
by (metis open_Int Int_assoc openin_open)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
472  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
473  | 
lemma openin_open_Int[intro]: "open S \<Longrightarrow> openin (top_of_set U) (U \<inter> S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
474  | 
by (auto simp: openin_open)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
475  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
476  | 
lemma open_openin_trans[trans]:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
477  | 
"open S \<Longrightarrow> open T \<Longrightarrow> T \<subseteq> S \<Longrightarrow> openin (top_of_set S) T"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
478  | 
by (metis Int_absorb1 openin_open_Int)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
479  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
480  | 
lemma open_subset: "S \<subseteq> T \<Longrightarrow> open S \<Longrightarrow> openin (top_of_set T) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
481  | 
by (auto simp: openin_open)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
482  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
483  | 
lemma closedin_closed: "closedin (top_of_set U) S \<longleftrightarrow> (\<exists>T. closed T \<and> S = U \<inter> T)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
484  | 
by (simp add: closedin_subtopology Int_ac)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
485  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
486  | 
lemma closedin_closed_Int: "closed S \<Longrightarrow> closedin (top_of_set U) (U \<inter> S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
487  | 
by (metis closedin_closed)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
488  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
489  | 
lemma closed_subset: "S \<subseteq> T \<Longrightarrow> closed S \<Longrightarrow> closedin (top_of_set T) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
490  | 
by (auto simp: closedin_closed)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
491  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
492  | 
lemma closedin_closed_subset:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
493  | 
"\<lbrakk>closedin (top_of_set U) V; T \<subseteq> U; S = V \<inter> T\<rbrakk>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
494  | 
\<Longrightarrow> closedin (top_of_set T) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
495  | 
by (metis (no_types, lifting) Int_assoc Int_commute closedin_closed inf.orderE)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
496  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
497  | 
lemma finite_imp_closedin:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
498  | 
fixes S :: "'a::t1_space set"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
499  | 
shows "\<lbrakk>finite S; S \<subseteq> T\<rbrakk> \<Longrightarrow> closedin (top_of_set T) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
500  | 
by (simp add: finite_imp_closed closed_subset)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
501  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
502  | 
lemma closedin_singleton [simp]:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
503  | 
fixes a :: "'a::t1_space"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
504  | 
  shows "closedin (top_of_set U) {a} \<longleftrightarrow> a \<in> U"
 | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
505  | 
using closedin_subset by (force intro: closed_subset)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
506  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
507  | 
lemma openin_euclidean_subtopology_iff:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
508  | 
fixes S U :: "'a::metric_space set"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
509  | 
shows "openin (top_of_set U) S \<longleftrightarrow>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
510  | 
S \<subseteq> U \<and> (\<forall>x\<in>S. \<exists>e>0. \<forall>x'\<in>U. dist x' x < e \<longrightarrow> x'\<in> S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
511  | 
(is "?lhs \<longleftrightarrow> ?rhs")  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
512  | 
proof  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
513  | 
assume ?lhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
514  | 
then show ?rhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
515  | 
unfolding openin_open open_dist by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
516  | 
next  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
517  | 
  define T where "T = {x. \<exists>a\<in>S. \<exists>d>0. (\<forall>y\<in>U. dist y a < d \<longrightarrow> y \<in> S) \<and> dist x a < d}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
518  | 
have 1: "\<forall>x\<in>T. \<exists>e>0. \<forall>y. dist y x < e \<longrightarrow> y \<in> T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
519  | 
unfolding T_def  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
520  | 
apply clarsimp  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
521  | 
apply (rule_tac x="d - dist x a" in exI)  | 
| 72608 | 522  | 
by (metis add_0_left dist_commute dist_triangle_lt less_diff_eq)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
523  | 
assume ?rhs then have 2: "S = U \<inter> T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
524  | 
unfolding T_def  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
525  | 
by auto (metis dist_self)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
526  | 
from 1 2 show ?lhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
527  | 
unfolding openin_open open_dist by fast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
528  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
529  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
530  | 
lemma connected_openin:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
531  | 
"connected S \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
532  | 
\<not>(\<exists>E1 E2. openin (top_of_set S) E1 \<and>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
533  | 
openin (top_of_set S) E2 \<and>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
534  | 
                 S \<subseteq> E1 \<union> E2 \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 
71840
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
535  | 
unfolding connected_def openin_open disjoint_iff_not_equal by blast  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
536  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
537  | 
lemma connected_openin_eq:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
538  | 
"connected S \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
539  | 
\<not>(\<exists>E1 E2. openin (top_of_set S) E1 \<and>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
540  | 
openin (top_of_set S) E2 \<and>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
541  | 
                 E1 \<union> E2 = S \<and> E1 \<inter> E2 = {} \<and>
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
542  | 
                 E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 72608 | 543  | 
unfolding connected_openin  | 
544  | 
by (metis (no_types, lifting) Un_subset_iff openin_imp_subset subset_antisym)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
545  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
546  | 
lemma connected_closedin:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
547  | 
"connected S \<longleftrightarrow>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
548  | 
(\<nexists>E1 E2.  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
549  | 
closedin (top_of_set S) E1 \<and>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
550  | 
closedin (top_of_set S) E2 \<and>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
551  | 
        S \<subseteq> E1 \<union> E2 \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
552  | 
(is "?lhs = ?rhs")  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
553  | 
proof  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
554  | 
assume ?lhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
555  | 
then show ?rhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
556  | 
by (auto simp add: connected_closed closedin_closed)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
557  | 
next  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
558  | 
assume R: ?rhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
559  | 
then show ?lhs  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
560  | 
proof (clarsimp simp add: connected_closed closedin_closed)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
561  | 
fix A B  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
562  | 
    assume s_sub: "S \<subseteq> A \<union> B" "B \<inter> S \<noteq> {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
563  | 
      and disj: "A \<inter> B \<inter> S = {}"
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
564  | 
and cl: "closed A" "closed B"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
565  | 
have "S - A = B \<inter> S"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
566  | 
using Diff_subset_conv Un_Diff_Int disj s_sub(1) by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
567  | 
    then show "A \<inter> S = {}"
 | 
| 77234 | 568  | 
by (metis Int_Diff_Un Int_Diff_disjoint R cl closedin_closed_Int dual_order.refl inf_commute s_sub(2))  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
569  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
570  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
571  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
572  | 
lemma connected_closedin_eq:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
573  | 
"connected S \<longleftrightarrow>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
574  | 
\<not>(\<exists>E1 E2.  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
575  | 
closedin (top_of_set S) E1 \<and>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
576  | 
closedin (top_of_set S) E2 \<and>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
577  | 
                 E1 \<union> E2 = S \<and> E1 \<inter> E2 = {} \<and>
 | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
578  | 
                 E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 72608 | 579  | 
unfolding connected_closedin  | 
580  | 
by (metis Un_subset_iff closedin_imp_subset subset_antisym)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
581  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
582  | 
text \<open>These "transitivity" results are handy too\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
583  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
584  | 
lemma openin_trans[trans]:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
585  | 
"openin (top_of_set T) S \<Longrightarrow> openin (top_of_set U) T \<Longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
586  | 
openin (top_of_set U) S"  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
587  | 
by (metis openin_Int_open openin_open)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
588  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
589  | 
lemma openin_open_trans: "openin (top_of_set T) S \<Longrightarrow> open T \<Longrightarrow> open S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
590  | 
by (auto simp: openin_open intro: openin_trans)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
591  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
592  | 
lemma closedin_trans[trans]:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
593  | 
"closedin (top_of_set T) S \<Longrightarrow> closedin (top_of_set U) T \<Longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
594  | 
closedin (top_of_set U) S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
595  | 
by (auto simp: closedin_closed closed_Inter Int_assoc)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
596  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
597  | 
lemma closedin_closed_trans: "closedin (top_of_set T) S \<Longrightarrow> closed T \<Longrightarrow> closed S"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
598  | 
by (auto simp: closedin_closed intro: closedin_trans)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
599  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
600  | 
lemma openin_subtopology_Int_subset:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
601  | 
"\<lbrakk>openin (top_of_set u) (u \<inter> S); v \<subseteq> u\<rbrakk> \<Longrightarrow> openin (top_of_set v) (v \<inter> S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
602  | 
by (auto simp: openin_subtopology)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
603  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
604  | 
lemma openin_open_eq: "open s \<Longrightarrow> (openin (top_of_set s) t \<longleftrightarrow> open t \<and> t \<subseteq> s)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
605  | 
using open_subset openin_open_trans openin_subset by fastforce  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
606  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
607  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
608  | 
subsection\<open>Derived set (set of limit points)\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
609  | 
|
| 
80914
 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 
wenzelm 
parents: 
78336 
diff
changeset
 | 
610  | 
definition derived_set_of :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a set" (infixl \<open>derived'_set'_of\<close> 80)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
611  | 
where "X derived_set_of S \<equiv>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
612  | 
         {x \<in> topspace X.
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
613  | 
(\<forall>T. x \<in> T \<and> openin X T \<longrightarrow> (\<exists>y\<noteq>x. y \<in> S \<and> y \<in> T))}"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
614  | 
|
| 69874 | 615  | 
lemma derived_set_of_restrict [simp]:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
616  | 
"X derived_set_of (topspace X \<inter> S) = X derived_set_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
617  | 
by (simp add: derived_set_of_def) (metis openin_subset subset_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
618  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
619  | 
lemma in_derived_set_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
620  | 
"x \<in> X derived_set_of S \<longleftrightarrow> x \<in> topspace X \<and> (\<forall>T. x \<in> T \<and> openin X T \<longrightarrow> (\<exists>y\<noteq>x. y \<in> S \<and> y \<in> T))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
621  | 
by (simp add: derived_set_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
622  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
623  | 
lemma derived_set_of_subset_topspace:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
624  | 
"X derived_set_of S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
625  | 
by (auto simp add: derived_set_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
626  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
627  | 
lemma derived_set_of_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
628  | 
"(subtopology X U) derived_set_of S = U \<inter> (X derived_set_of (U \<inter> S))"  | 
| 71172 | 629  | 
by (simp add: derived_set_of_def openin_subtopology) blast  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
630  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
631  | 
lemma derived_set_of_subset_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
632  | 
"(subtopology X S) derived_set_of T \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
633  | 
by (simp add: derived_set_of_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
634  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
635  | 
lemma derived_set_of_empty [simp]: "X derived_set_of {} = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
636  | 
by (auto simp: derived_set_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
637  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
638  | 
lemma derived_set_of_mono:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
639  | 
"S \<subseteq> T \<Longrightarrow> X derived_set_of S \<subseteq> X derived_set_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
640  | 
unfolding derived_set_of_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
641  | 
|
| 69874 | 642  | 
lemma derived_set_of_Un:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
643  | 
"X derived_set_of (S \<union> T) = X derived_set_of S \<union> X derived_set_of T" (is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
644  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
645  | 
show "?lhs \<subseteq> ?rhs"  | 
| 72608 | 646  | 
by (clarsimp simp: in_derived_set_of) (metis IntE IntI openin_Int)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
647  | 
show "?rhs \<subseteq> ?lhs"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
648  | 
by (simp add: derived_set_of_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
649  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
650  | 
|
| 69874 | 651  | 
lemma derived_set_of_Union:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
652  | 
"finite \<F> \<Longrightarrow> X derived_set_of (\<Union>\<F>) = (\<Union>S \<in> \<F>. X derived_set_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
653  | 
proof (induction \<F> rule: finite_induct)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
654  | 
case (insert S \<F>)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
655  | 
then show ?case  | 
| 69874 | 656  | 
by (simp add: derived_set_of_Un)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
657  | 
qed auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
658  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
659  | 
lemma derived_set_of_topspace:  | 
| 72608 | 660  | 
  "X derived_set_of (topspace X) = {x \<in> topspace X. \<not> openin X {x}}" (is "?lhs = ?rhs")
 | 
661  | 
proof  | 
|
662  | 
show "?lhs \<subseteq> ?rhs"  | 
|
663  | 
by (auto simp: in_derived_set_of)  | 
|
664  | 
show "?rhs \<subseteq> ?lhs"  | 
|
665  | 
by (clarsimp simp: in_derived_set_of) (metis openin_closedin_eq openin_subopen singletonD subset_eq)  | 
|
666  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
667  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
668  | 
lemma discrete_topology_unique_derived_set:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
669  | 
     "discrete_topology U = X \<longleftrightarrow> topspace X = U \<and> X derived_set_of U = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
670  | 
by (auto simp: discrete_topology_unique derived_set_of_topspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
671  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
672  | 
lemma subtopology_eq_discrete_topology_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
673  | 
   "subtopology X U = discrete_topology U \<longleftrightarrow> U \<subseteq> topspace X \<and> U \<inter> X derived_set_of U = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
674  | 
using discrete_topology_unique_derived_set [of U "subtopology X U"]  | 
| 71172 | 675  | 
by (auto simp: eq_commute derived_set_of_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
676  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
677  | 
lemma subtopology_eq_discrete_topology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
678  | 
   "S \<subseteq> topspace X \<and> S \<inter> X derived_set_of S = {}
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
679  | 
\<Longrightarrow> subtopology X S = discrete_topology S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
680  | 
by (simp add: subtopology_eq_discrete_topology_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
681  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
682  | 
lemma subtopology_eq_discrete_topology_gen:  | 
| 77234 | 683  | 
  assumes "S \<inter> X derived_set_of S = {}"
 | 
684  | 
shows "subtopology X S = discrete_topology(topspace X \<inter> S)"  | 
|
685  | 
proof -  | 
|
686  | 
have "subtopology X S = subtopology X (topspace X \<inter> S)"  | 
|
687  | 
by (simp add: subtopology_restrict)  | 
|
688  | 
then show ?thesis  | 
|
689  | 
using assms by (simp add: inf.assoc subtopology_eq_discrete_topology_eq)  | 
|
690  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
691  | 
|
| 72608 | 692  | 
lemma subtopology_discrete_topology [simp]:  | 
693  | 
"subtopology (discrete_topology U) S = discrete_topology(U \<inter> S)"  | 
|
| 69712 | 694  | 
proof -  | 
695  | 
have "(\<lambda>T. \<exists>Sa. T = Sa \<inter> S \<and> Sa \<subseteq> U) = (\<lambda>Sa. Sa \<subseteq> U \<and> Sa \<subseteq> S)"  | 
|
696  | 
by force  | 
|
697  | 
then show ?thesis  | 
|
698  | 
by (simp add: subtopology_def) (simp add: discrete_topology_def)  | 
|
699  | 
qed  | 
|
| 77234 | 700  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
701  | 
lemma openin_Int_derived_set_of_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
702  | 
"openin X S \<Longrightarrow> S \<inter> X derived_set_of T \<subseteq> X derived_set_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
703  | 
by (auto simp: derived_set_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
704  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
705  | 
lemma openin_Int_derived_set_of_eq:  | 
| 72608 | 706  | 
assumes "openin X S"  | 
707  | 
shows "S \<inter> X derived_set_of T = S \<inter> X derived_set_of (S \<inter> T)" (is "?lhs = ?rhs")  | 
|
708  | 
proof  | 
|
709  | 
show "?lhs \<subseteq> ?rhs"  | 
|
710  | 
by (simp add: assms openin_Int_derived_set_of_subset)  | 
|
711  | 
show "?rhs \<subseteq> ?lhs"  | 
|
712  | 
by (metis derived_set_of_mono inf_commute inf_le1 inf_mono order_refl)  | 
|
713  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
714  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
715  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
716  | 
subsection\<open> Closure with respect to a topological space\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
717  | 
|
| 
80914
 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 
wenzelm 
parents: 
78336 
diff
changeset
 | 
718  | 
definition closure_of :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a set" (infixr \<open>closure'_of\<close> 80)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
719  | 
  where "X closure_of S \<equiv> {x \<in> topspace X. \<forall>T. x \<in> T \<and> openin X T \<longrightarrow> (\<exists>y \<in> S. y \<in> T)}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
720  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
721  | 
lemma closure_of_restrict: "X closure_of S = X closure_of (topspace X \<inter> S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
722  | 
unfolding closure_of_def  | 
| 72608 | 723  | 
using openin_subset by blast  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
724  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
725  | 
lemma in_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
726  | 
"x \<in> X closure_of S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
727  | 
x \<in> topspace X \<and> (\<forall>T. x \<in> T \<and> openin X T \<longrightarrow> (\<exists>y. y \<in> S \<and> y \<in> T))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
728  | 
by (auto simp: closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
729  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
730  | 
lemma closure_of: "X closure_of S = topspace X \<inter> (S \<union> X derived_set_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
731  | 
by (fastforce simp: in_closure_of in_derived_set_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
732  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
733  | 
lemma closure_of_alt: "X closure_of S = topspace X \<inter> S \<union> X derived_set_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
734  | 
using derived_set_of_subset_topspace [of X S]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
735  | 
unfolding closure_of_def in_derived_set_of  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
736  | 
by safe (auto simp: in_derived_set_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
737  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
738  | 
lemma derived_set_of_subset_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
739  | 
"X derived_set_of S \<subseteq> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
740  | 
by (fastforce simp: closure_of_def in_derived_set_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
741  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
742  | 
lemma closure_of_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
743  | 
"(subtopology X U) closure_of S = U \<inter> (X closure_of (U \<inter> S))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
744  | 
unfolding closure_of_def topspace_subtopology openin_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
745  | 
by safe (metis (full_types) IntI Int_iff inf.commute)+  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
746  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
747  | 
lemma closure_of_empty [simp]: "X closure_of {} = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
748  | 
by (simp add: closure_of_alt)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
749  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
750  | 
lemma closure_of_topspace [simp]: "X closure_of topspace X = topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
751  | 
by (simp add: closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
752  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
753  | 
lemma closure_of_UNIV [simp]: "X closure_of UNIV = topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
754  | 
by (simp add: closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
755  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
756  | 
lemma closure_of_subset_topspace: "X closure_of S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
757  | 
by (simp add: closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
758  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
759  | 
lemma closure_of_subset_subtopology: "(subtopology X S) closure_of T \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
760  | 
by (simp add: closure_of_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
761  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
762  | 
lemma closure_of_mono: "S \<subseteq> T \<Longrightarrow> X closure_of S \<subseteq> X closure_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
763  | 
by (fastforce simp add: closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
764  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
765  | 
lemma closure_of_subtopology_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
766  | 
"(subtopology X U) closure_of S \<subseteq> (X closure_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
767  | 
unfolding closure_of_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
768  | 
by clarsimp (meson closure_of_mono contra_subsetD inf.cobounded2)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
769  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
770  | 
lemma closure_of_subtopology_mono:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
771  | 
"T \<subseteq> U \<Longrightarrow> (subtopology X T) closure_of S \<subseteq> (subtopology X U) closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
772  | 
unfolding closure_of_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
773  | 
by auto (meson closure_of_mono inf_mono subset_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
774  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
775  | 
lemma closure_of_Un [simp]: "X closure_of (S \<union> T) = X closure_of S \<union> X closure_of T"  | 
| 69874 | 776  | 
by (simp add: Un_assoc Un_left_commute closure_of_alt derived_set_of_Un inf_sup_distrib1)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
777  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
778  | 
lemma closure_of_Union:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
779  | 
"finite \<F> \<Longrightarrow> X closure_of (\<Union>\<F>) = (\<Union>S \<in> \<F>. X closure_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
780  | 
by (induction \<F> rule: finite_induct) auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
781  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
782  | 
lemma closure_of_subset: "S \<subseteq> topspace X \<Longrightarrow> S \<subseteq> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
783  | 
by (auto simp: closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
784  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
785  | 
lemma closure_of_subset_Int: "topspace X \<inter> S \<subseteq> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
786  | 
by (auto simp: closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
787  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
788  | 
lemma closure_of_subset_eq: "S \<subseteq> topspace X \<and> X closure_of S \<subseteq> S \<longleftrightarrow> closedin X S"  | 
| 72608 | 789  | 
proof -  | 
790  | 
have "openin X (topspace X - S)"  | 
|
791  | 
    if "\<And>x. \<lbrakk>x \<in> topspace X; \<forall>T. x \<in> T \<and> openin X T \<longrightarrow> S \<inter> T \<noteq> {}\<rbrakk> \<Longrightarrow> x \<in> S"
 | 
|
792  | 
apply (subst openin_subopen)  | 
|
793  | 
by (metis Diff_iff Diff_mono Diff_triv inf.commute openin_subset order_refl that)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
794  | 
then show ?thesis  | 
| 72608 | 795  | 
by (auto simp: closedin_def closure_of_def disjoint_iff_not_equal)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
796  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
797  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
798  | 
lemma closure_of_eq: "X closure_of S = S \<longleftrightarrow> closedin X S"  | 
| 77234 | 799  | 
by (metis closure_of_subset closure_of_subset_eq closure_of_subset_topspace subset_antisym)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
800  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
801  | 
lemma closedin_contains_derived_set:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
802  | 
"closedin X S \<longleftrightarrow> X derived_set_of S \<subseteq> S \<and> S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
803  | 
proof (intro iffI conjI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
804  | 
show "closedin X S \<Longrightarrow> X derived_set_of S \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
805  | 
using closure_of_eq derived_set_of_subset_closure_of by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
806  | 
show "closedin X S \<Longrightarrow> S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
807  | 
using closedin_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
808  | 
show "X derived_set_of S \<subseteq> S \<and> S \<subseteq> topspace X \<Longrightarrow> closedin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
809  | 
by (metis closure_of closure_of_eq inf.absorb_iff2 sup.orderE)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
810  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
811  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
812  | 
lemma derived_set_subset_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
813  | 
"X derived_set_of S \<subseteq> S \<longleftrightarrow> closedin X (topspace X \<inter> S)"  | 
| 77234 | 814  | 
by (simp add: closedin_contains_derived_set derived_set_of_subset_topspace)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
815  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
816  | 
lemma derived_set_subset: "S \<subseteq> topspace X \<Longrightarrow> (X derived_set_of S \<subseteq> S \<longleftrightarrow> closedin X S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
817  | 
by (simp add: closedin_contains_derived_set)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
818  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
819  | 
lemma closedin_derived_set:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
820  | 
"closedin (subtopology X T) S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
821  | 
S \<subseteq> topspace X \<and> S \<subseteq> T \<and> (\<forall>x. x \<in> X derived_set_of S \<and> x \<in> T \<longrightarrow> x \<in> S)"  | 
| 71172 | 822  | 
by (auto simp: closedin_contains_derived_set derived_set_of_subtopology Int_absorb1)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
823  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
824  | 
lemma closedin_Int_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
825  | 
"closedin (subtopology X S) T \<longleftrightarrow> S \<inter> X closure_of T = T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
826  | 
by (metis Int_left_absorb closure_of_eq closure_of_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
827  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
828  | 
lemma closure_of_closedin: "closedin X S \<Longrightarrow> X closure_of S = S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
829  | 
by (simp add: closure_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
830  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
831  | 
lemma closure_of_eq_diff: "X closure_of S = topspace X - \<Union>{T. openin X T \<and> disjnt S T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
832  | 
by (auto simp: closure_of_def disjnt_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
833  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
834  | 
lemma closedin_closure_of [simp]: "closedin X (X closure_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
835  | 
unfolding closure_of_eq_diff by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
836  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
837  | 
lemma closure_of_closure_of [simp]: "X closure_of (X closure_of S) = X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
838  | 
by (simp add: closure_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
839  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
840  | 
lemma closure_of_hull:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
841  | 
assumes "S \<subseteq> topspace X" shows "X closure_of S = (closedin X) hull S"  | 
| 77234 | 842  | 
by (metis assms closedin_closure_of closure_of_eq closure_of_mono closure_of_subset hull_unique)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
843  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
844  | 
lemma closure_of_minimal:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
845  | 
"\<lbrakk>S \<subseteq> T; closedin X T\<rbrakk> \<Longrightarrow> (X closure_of S) \<subseteq> T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
846  | 
by (metis closure_of_eq closure_of_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
847  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
848  | 
lemma closure_of_minimal_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
849  | 
"\<lbrakk>S \<subseteq> topspace X; closedin X T\<rbrakk> \<Longrightarrow> (X closure_of S) \<subseteq> T \<longleftrightarrow> S \<subseteq> T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
850  | 
by (meson closure_of_minimal closure_of_subset subset_trans)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
851  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
852  | 
lemma closure_of_unique:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
853  | 
"\<lbrakk>S \<subseteq> T; closedin X T;  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
854  | 
\<And>T'. \<lbrakk>S \<subseteq> T'; closedin X T'\<rbrakk> \<Longrightarrow> T \<subseteq> T'\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
855  | 
\<Longrightarrow> X closure_of S = T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
856  | 
by (meson closedin_closure_of closedin_subset closure_of_minimal closure_of_subset eq_iff order.trans)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
857  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
858  | 
lemma closure_of_eq_empty_gen: "X closure_of S = {} \<longleftrightarrow> disjnt (topspace X) S"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
859  | 
unfolding disjnt_def closure_of_restrict [where S=S]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
860  | 
using closure_of by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
861  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
862  | 
lemma closure_of_eq_empty: "S \<subseteq> topspace X \<Longrightarrow> X closure_of S = {} \<longleftrightarrow> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
863  | 
using closure_of_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
864  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
865  | 
lemma openin_Int_closure_of_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
866  | 
assumes "openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
867  | 
shows "S \<inter> X closure_of T \<subseteq> X closure_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
868  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
869  | 
have "S \<inter> X derived_set_of T = S \<inter> X derived_set_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
870  | 
by (meson assms openin_Int_derived_set_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
871  | 
moreover have "S \<inter> (S \<inter> T) = S \<inter> T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
872  | 
by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
873  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
874  | 
by (metis closure_of_alt inf.cobounded2 inf_left_commute inf_sup_distrib1)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
875  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
876  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
877  | 
lemma closure_of_openin_Int_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
878  | 
assumes "openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
879  | 
shows "X closure_of (S \<inter> X closure_of T) = X closure_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
880  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
881  | 
show "X closure_of (S \<inter> X closure_of T) \<subseteq> X closure_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
882  | 
by (simp add: assms closure_of_minimal openin_Int_closure_of_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
883  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
884  | 
show "X closure_of (S \<inter> T) \<subseteq> X closure_of (S \<inter> X closure_of T)"  | 
| 77234 | 885  | 
by (metis Int_subset_iff assms closure_of_alt closure_of_mono inf_mono openin_subset subset_refl sup.coboundedI1)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
886  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
887  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
888  | 
lemma openin_Int_closure_of_eq:  | 
| 72608 | 889  | 
assumes "openin X S" shows "S \<inter> X closure_of T = S \<inter> X closure_of (S \<inter> T)" (is "?lhs = ?rhs")  | 
890  | 
proof  | 
|
891  | 
show "?lhs \<subseteq> ?rhs"  | 
|
892  | 
by (simp add: assms openin_Int_closure_of_subset)  | 
|
893  | 
show "?rhs \<subseteq> ?lhs"  | 
|
894  | 
by (metis closure_of_mono inf_commute inf_le1 inf_mono order_refl)  | 
|
895  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
896  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
897  | 
lemma openin_Int_closure_of_eq_empty:  | 
| 72608 | 898  | 
  assumes "openin X S" shows "S \<inter> X closure_of T = {} \<longleftrightarrow> S \<inter> T = {}"  (is "?lhs = ?rhs")
 | 
899  | 
proof  | 
|
900  | 
show "?lhs \<Longrightarrow> ?rhs"  | 
|
901  | 
unfolding disjoint_iff  | 
|
902  | 
by (meson assms in_closure_of in_mono openin_subset)  | 
|
903  | 
show "?rhs \<Longrightarrow> ?lhs"  | 
|
904  | 
by (simp add: assms openin_Int_closure_of_eq)  | 
|
905  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
906  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
907  | 
lemma closure_of_openin_Int_superset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
908  | 
"openin X S \<and> S \<subseteq> X closure_of T  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
909  | 
\<Longrightarrow> X closure_of (S \<inter> T) = X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
910  | 
by (metis closure_of_openin_Int_closure_of inf.orderE)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
911  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
912  | 
lemma closure_of_openin_subtopology_Int_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
913  | 
assumes S: "openin (subtopology X U) S" and "T \<subseteq> U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
914  | 
shows "X closure_of (S \<inter> X closure_of T) = X closure_of (S \<inter> T)" (is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
915  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
916  | 
obtain S0 where S0: "openin X S0" "S = S0 \<inter> U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
917  | 
using assms by (auto simp: openin_subtopology)  | 
| 77234 | 918  | 
then show "?lhs \<subseteq> ?rhs"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
919  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
920  | 
have "S0 \<inter> X closure_of T = S0 \<inter> X closure_of (S0 \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
921  | 
by (meson S0(1) openin_Int_closure_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
922  | 
moreover have "S0 \<inter> T = S0 \<inter> U \<inter> T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
923  | 
using \<open>T \<subseteq> U\<close> by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
924  | 
ultimately have "S \<inter> X closure_of T \<subseteq> X closure_of (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
925  | 
using S0(2) by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
926  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
927  | 
by (meson closedin_closure_of closure_of_minimal)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
928  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
929  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
930  | 
show "?rhs \<subseteq> ?lhs"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
931  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
932  | 
have "T \<inter> S \<subseteq> T \<union> X derived_set_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
933  | 
by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
934  | 
then show ?thesis  | 
| 77234 | 935  | 
by (smt (verit, del_insts) Int_iff in_closure_of inf.orderE openin_subset subsetI)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
936  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
937  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
938  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
939  | 
lemma closure_of_subtopology_open:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
940  | 
"openin X U \<or> S \<subseteq> U \<Longrightarrow> (subtopology X U) closure_of S = U \<inter> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
941  | 
by (metis closure_of_subtopology inf_absorb2 openin_Int_closure_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
942  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
943  | 
lemma discrete_topology_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
944  | 
"(discrete_topology U) closure_of S = U \<inter> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
945  | 
by (metis closedin_discrete_topology closure_of_restrict closure_of_unique discrete_topology_unique inf_sup_ord(1) order_refl)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
946  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
947  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
948  | 
text\<open> Interior with respect to a topological space. \<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
949  | 
|
| 
80914
 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 
wenzelm 
parents: 
78336 
diff
changeset
 | 
950  | 
definition interior_of :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a set" (infixr \<open>interior'_of\<close> 80)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
951  | 
  where "X interior_of S \<equiv> {x. \<exists>T. openin X T \<and> x \<in> T \<and> T \<subseteq> S}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
952  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
953  | 
lemma interior_of_restrict:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
954  | 
"X interior_of S = X interior_of (topspace X \<inter> S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
955  | 
using openin_subset by (auto simp: interior_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
956  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
957  | 
lemma interior_of_eq: "(X interior_of S = S) \<longleftrightarrow> openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
958  | 
unfolding interior_of_def using openin_subopen by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
959  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
960  | 
lemma interior_of_openin: "openin X S \<Longrightarrow> X interior_of S = S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
961  | 
by (simp add: interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
962  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
963  | 
lemma interior_of_empty [simp]: "X interior_of {} = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
964  | 
by (simp add: interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
965  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
966  | 
lemma interior_of_topspace [simp]: "X interior_of (topspace X) = topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
967  | 
by (simp add: interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
968  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
969  | 
lemma openin_interior_of [simp]: "openin X (X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
970  | 
unfolding interior_of_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
971  | 
using openin_subopen by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
972  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
973  | 
lemma interior_of_interior_of [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
974  | 
"X interior_of X interior_of S = X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
975  | 
by (simp add: interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
976  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
977  | 
lemma interior_of_subset: "X interior_of S \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
978  | 
by (auto simp: interior_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
979  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
980  | 
lemma interior_of_subset_closure_of: "X interior_of S \<subseteq> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
981  | 
by (metis closure_of_subset_Int dual_order.trans interior_of_restrict interior_of_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
982  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
983  | 
lemma subset_interior_of_eq: "S \<subseteq> X interior_of S \<longleftrightarrow> openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
984  | 
by (metis interior_of_eq interior_of_subset subset_antisym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
985  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
986  | 
lemma interior_of_mono: "S \<subseteq> T \<Longrightarrow> X interior_of S \<subseteq> X interior_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
987  | 
by (auto simp: interior_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
988  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
989  | 
lemma interior_of_maximal: "\<lbrakk>T \<subseteq> S; openin X T\<rbrakk> \<Longrightarrow> T \<subseteq> X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
990  | 
by (auto simp: interior_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
991  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
992  | 
lemma interior_of_maximal_eq: "openin X T \<Longrightarrow> T \<subseteq> X interior_of S \<longleftrightarrow> T \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
993  | 
by (meson interior_of_maximal interior_of_subset order_trans)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
994  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
995  | 
lemma interior_of_unique:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
996  | 
"\<lbrakk>T \<subseteq> S; openin X T; \<And>T'. \<lbrakk>T' \<subseteq> S; openin X T'\<rbrakk> \<Longrightarrow> T' \<subseteq> T\<rbrakk> \<Longrightarrow> X interior_of S = T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
997  | 
by (simp add: interior_of_maximal_eq interior_of_subset subset_antisym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
998  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
999  | 
lemma interior_of_subset_topspace: "X interior_of S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1000  | 
by (simp add: openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1001  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1002  | 
lemma interior_of_subset_subtopology: "(subtopology X S) interior_of T \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1003  | 
by (meson openin_imp_subset openin_interior_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1004  | 
|
| 72608 | 1005  | 
lemma interior_of_Int: "X interior_of (S \<inter> T) = X interior_of S \<inter> X interior_of T" (is "?lhs = ?rhs")  | 
1006  | 
proof  | 
|
1007  | 
show "?lhs \<subseteq> ?rhs"  | 
|
1008  | 
by (simp add: interior_of_mono)  | 
|
1009  | 
show "?rhs \<subseteq> ?lhs"  | 
|
1010  | 
by (meson inf_mono interior_of_maximal interior_of_subset openin_Int openin_interior_of)  | 
|
1011  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1012  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1013  | 
lemma interior_of_Inter_subset: "X interior_of (\<Inter>\<F>) \<subseteq> (\<Inter>S \<in> \<F>. X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1014  | 
by (simp add: INT_greatest Inf_lower interior_of_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1015  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1016  | 
lemma union_interior_of_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1017  | 
"X interior_of S \<union> X interior_of T \<subseteq> X interior_of (S \<union> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1018  | 
by (simp add: interior_of_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1019  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1020  | 
lemma interior_of_eq_empty:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1021  | 
   "X interior_of S = {} \<longleftrightarrow> (\<forall>T. openin X T \<and> T \<subseteq> S \<longrightarrow> T = {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1022  | 
by (metis bot.extremum_uniqueI interior_of_maximal interior_of_subset openin_interior_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1023  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1024  | 
lemma interior_of_eq_empty_alt:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1025  | 
   "X interior_of S = {} \<longleftrightarrow> (\<forall>T. openin X T \<and> T \<noteq> {} \<longrightarrow> T - S \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1026  | 
by (auto simp: interior_of_eq_empty)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1027  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1028  | 
lemma interior_of_Union_openin_subsets:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1029  | 
   "\<Union>{T. openin X T \<and> T \<subseteq> S} = X interior_of S"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1030  | 
by (rule interior_of_unique [symmetric]) auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1031  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1032  | 
lemma interior_of_complement:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1033  | 
"X interior_of (topspace X - S) = topspace X - X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1034  | 
by (auto simp: interior_of_def closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1035  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1036  | 
lemma interior_of_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1037  | 
"X interior_of S = topspace X - X closure_of (topspace X - S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1038  | 
unfolding interior_of_complement [symmetric]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1039  | 
by (metis Diff_Diff_Int interior_of_restrict)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1040  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1041  | 
lemma closure_of_interior_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1042  | 
"X closure_of S = topspace X - X interior_of (topspace X - S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1043  | 
by (simp add: interior_of_complement Diff_Diff_Int closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1044  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1045  | 
lemma closure_of_complement: "X closure_of (topspace X - S) = topspace X - X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1046  | 
unfolding interior_of_def closure_of_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1047  | 
by (blast dest: openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1048  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1049  | 
lemma interior_of_eq_empty_complement:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1050  | 
  "X interior_of S = {} \<longleftrightarrow> X closure_of (topspace X - S) = topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1051  | 
using interior_of_subset_topspace [of X S] closure_of_complement by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1052  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1053  | 
lemma closure_of_eq_topspace:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1054  | 
   "X closure_of S = topspace X \<longleftrightarrow> X interior_of (topspace X - S) = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1055  | 
using closure_of_subset_topspace [of X S] interior_of_complement by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1056  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1057  | 
lemma interior_of_subtopology_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1058  | 
"U \<inter> X interior_of S \<subseteq> (subtopology X U) interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1059  | 
by (auto simp: interior_of_def openin_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1060  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1061  | 
lemma interior_of_subtopology_subsets:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1062  | 
"T \<subseteq> U \<Longrightarrow> T \<inter> (subtopology X U) interior_of S \<subseteq> (subtopology X T) interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1063  | 
by (metis inf.absorb_iff2 interior_of_subtopology_subset subtopology_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1064  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1065  | 
lemma interior_of_subtopology_mono:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1066  | 
"\<lbrakk>S \<subseteq> T; T \<subseteq> U\<rbrakk> \<Longrightarrow> (subtopology X U) interior_of S \<subseteq> (subtopology X T) interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1067  | 
by (metis dual_order.trans inf.orderE inf_commute interior_of_subset interior_of_subtopology_subsets)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1068  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1069  | 
lemma interior_of_subtopology_open:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1070  | 
assumes "openin X U"  | 
| 77234 | 1071  | 
shows "(subtopology X U) interior_of S = U \<inter> X interior_of S" (is "?lhs = ?rhs")  | 
1072  | 
proof  | 
|
1073  | 
show "?lhs \<subseteq> ?rhs"  | 
|
1074  | 
by (meson assms interior_of_maximal interior_of_subset le_infI openin_interior_of openin_open_subtopology)  | 
|
1075  | 
show "?rhs \<subseteq> ?lhs"  | 
|
1076  | 
by (simp add: interior_of_subtopology_subset)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1077  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1078  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1079  | 
lemma dense_intersects_open:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1080  | 
   "X closure_of S = topspace X \<longleftrightarrow> (\<forall>T. openin X T \<and> T \<noteq> {} \<longrightarrow> S \<inter> T \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1081  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1082  | 
have "X closure_of S = topspace X \<longleftrightarrow> (topspace X - X interior_of (topspace X - S) = topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1083  | 
by (simp add: closure_of_interior_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1084  | 
  also have "\<dots> \<longleftrightarrow> X interior_of (topspace X - S) = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1085  | 
by (simp add: closure_of_complement interior_of_eq_empty_complement)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1086  | 
  also have "\<dots> \<longleftrightarrow> (\<forall>T. openin X T \<and> T \<noteq> {} \<longrightarrow> S \<inter> T \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1087  | 
unfolding interior_of_eq_empty_alt  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1088  | 
using openin_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1089  | 
finally show ?thesis .  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1090  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1091  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1092  | 
lemma interior_of_closedin_union_empty_interior_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1093  | 
  assumes "closedin X S" and disj: "X interior_of T = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1094  | 
shows "X interior_of (S \<union> T) = X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1095  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1096  | 
have "X closure_of (topspace X - T) = topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1097  | 
by (metis Diff_Diff_Int disj closure_of_eq_topspace closure_of_restrict interior_of_closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1098  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1099  | 
unfolding interior_of_closure_of  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1100  | 
by (metis Diff_Un Diff_subset assms(1) closedin_def closure_of_openin_Int_superset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1101  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1102  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1103  | 
lemma interior_of_union_eq_empty:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1104  | 
"closedin X S  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1105  | 
        \<Longrightarrow> (X interior_of (S \<union> T) = {} \<longleftrightarrow>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1106  | 
             X interior_of S = {} \<and> X interior_of T = {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1107  | 
by (metis interior_of_closedin_union_empty_interior_of le_sup_iff subset_empty union_interior_of_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1108  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1109  | 
lemma discrete_topology_interior_of [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1110  | 
"(discrete_topology U) interior_of S = U \<inter> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1111  | 
by (simp add: interior_of_restrict [of _ S] interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1112  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1113  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1114  | 
subsection \<open>Frontier with respect to topological space \<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1115  | 
|
| 
80914
 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 
wenzelm 
parents: 
78336 
diff
changeset
 | 
1116  | 
definition frontier_of :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a set" (infixr \<open>frontier'_of\<close> 80)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1117  | 
where "X frontier_of S \<equiv> X closure_of S - X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1118  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1119  | 
lemma frontier_of_closures:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1120  | 
"X frontier_of S = X closure_of S \<inter> X closure_of (topspace X - S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1121  | 
by (metis Diff_Diff_Int closure_of_complement closure_of_subset_topspace double_diff frontier_of_def interior_of_subset_closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1122  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1123  | 
lemma interior_of_union_frontier_of [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1124  | 
"X interior_of S \<union> X frontier_of S = X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1125  | 
by (simp add: frontier_of_def interior_of_subset_closure_of subset_antisym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1126  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1127  | 
lemma frontier_of_restrict: "X frontier_of S = X frontier_of (topspace X \<inter> S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1128  | 
by (metis closure_of_restrict frontier_of_def interior_of_restrict)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1129  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1130  | 
lemma closedin_frontier_of: "closedin X (X frontier_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1131  | 
by (simp add: closedin_Int frontier_of_closures)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1132  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1133  | 
lemma frontier_of_subset_topspace: "X frontier_of S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1134  | 
by (simp add: closedin_frontier_of closedin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1135  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1136  | 
lemma frontier_of_subset_subtopology: "(subtopology X S) frontier_of T \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1137  | 
by (metis (no_types) closedin_derived_set closedin_frontier_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1138  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1139  | 
lemma frontier_of_subtopology_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1140  | 
"U \<inter> (subtopology X U) frontier_of S \<subseteq> (X frontier_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1141  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1142  | 
  have "U \<inter> X interior_of S - subtopology X U interior_of S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1143  | 
by (simp add: interior_of_subtopology_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1144  | 
moreover have "X closure_of S \<inter> subtopology X U closure_of S = subtopology X U closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1145  | 
by (meson closure_of_subtopology_subset inf.absorb_iff2)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1146  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1147  | 
unfolding frontier_of_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1148  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1149  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1150  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1151  | 
lemma frontier_of_subtopology_mono:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1152  | 
"\<lbrakk>S \<subseteq> T; T \<subseteq> U\<rbrakk> \<Longrightarrow> (subtopology X T) frontier_of S \<subseteq> (subtopology X U) frontier_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1153  | 
by (simp add: frontier_of_def Diff_mono closure_of_subtopology_mono interior_of_subtopology_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1154  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1155  | 
lemma clopenin_eq_frontier_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1156  | 
   "closedin X S \<and> openin X S \<longleftrightarrow> S \<subseteq> topspace X \<and> X frontier_of S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1157  | 
proof (cases "S \<subseteq> topspace X")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1158  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1159  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1160  | 
by (metis Diff_eq_empty_iff closure_of_eq closure_of_subset_eq frontier_of_def interior_of_eq interior_of_subset interior_of_union_frontier_of sup_bot_right)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1161  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1162  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1163  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1164  | 
by (simp add: frontier_of_closures openin_closedin_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1165  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1166  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1167  | 
lemma frontier_of_eq_empty:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1168  | 
     "S \<subseteq> topspace X \<Longrightarrow> (X frontier_of S = {} \<longleftrightarrow> closedin X S \<and> openin X S)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1169  | 
by (simp add: clopenin_eq_frontier_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1170  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1171  | 
lemma frontier_of_openin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1172  | 
"openin X S \<Longrightarrow> X frontier_of S = X closure_of S - S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1173  | 
by (metis (no_types) frontier_of_def interior_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1174  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1175  | 
lemma frontier_of_openin_straddle_Int:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1176  | 
  assumes "openin X U" "U \<inter> X frontier_of S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1177  | 
  shows "U \<inter> S \<noteq> {}" "U - S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1178  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1179  | 
  have "U \<inter> (X closure_of S \<inter> X closure_of (topspace X - S)) \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1180  | 
using assms by (simp add: frontier_of_closures)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1181  | 
  then show "U \<inter> S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1182  | 
using assms openin_Int_closure_of_eq_empty by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1183  | 
  show "U - S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1184  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1185  | 
    have "\<exists>A. X closure_of (A - S) \<inter> U \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1186  | 
      using \<open>U \<inter> (X closure_of S \<inter> X closure_of (topspace X - S)) \<noteq> {}\<close> by blast
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1187  | 
then have "\<not> U \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1188  | 
by (metis Diff_disjoint Diff_eq_empty_iff Int_Diff assms(1) inf_commute openin_Int_closure_of_eq_empty)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1189  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1190  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1191  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1192  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1193  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1194  | 
lemma frontier_of_subset_closedin: "closedin X S \<Longrightarrow> (X frontier_of S) \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1195  | 
using closure_of_eq frontier_of_def by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1196  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1197  | 
lemma frontier_of_empty [simp]: "X frontier_of {} = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1198  | 
by (simp add: frontier_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1199  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1200  | 
lemma frontier_of_topspace [simp]: "X frontier_of topspace X = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1201  | 
by (simp add: frontier_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1202  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1203  | 
lemma frontier_of_subset_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1204  | 
assumes "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1205  | 
shows "(X frontier_of S) \<subseteq> S \<longleftrightarrow> closedin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1206  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1207  | 
show "X frontier_of S \<subseteq> S \<Longrightarrow> closedin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1208  | 
by (metis assms closure_of_subset_eq interior_of_subset interior_of_union_frontier_of le_sup_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1209  | 
show "closedin X S \<Longrightarrow> X frontier_of S \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1210  | 
by (simp add: frontier_of_subset_closedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1211  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1212  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1213  | 
lemma frontier_of_complement: "X frontier_of (topspace X - S) = X frontier_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1214  | 
by (metis Diff_Diff_Int closure_of_restrict frontier_of_closures inf_commute)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1215  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1216  | 
lemma frontier_of_disjoint_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1217  | 
assumes "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1218  | 
  shows "((X frontier_of S) \<inter> S = {} \<longleftrightarrow> openin X S)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1219  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1220  | 
  assume "X frontier_of S \<inter> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1221  | 
then have "closedin X (topspace X - S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1222  | 
using assms closure_of_subset frontier_of_def interior_of_eq interior_of_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1223  | 
then show "openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1224  | 
using assms by (simp add: openin_closedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1225  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1226  | 
  show "openin X S \<Longrightarrow> X frontier_of S \<inter> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1227  | 
by (simp add: Diff_Diff_Int closedin_def frontier_of_openin inf.absorb_iff2 inf_commute)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1228  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1229  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1230  | 
lemma frontier_of_disjoint_eq_alt:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1231  | 
"S \<subseteq> (topspace X - X frontier_of S) \<longleftrightarrow> openin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1232  | 
proof (cases "S \<subseteq> topspace X")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1233  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1234  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1235  | 
using True frontier_of_disjoint_eq by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1236  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1237  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1238  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1239  | 
by (meson Diff_subset openin_subset subset_trans)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1240  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1241  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1242  | 
lemma frontier_of_Int:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1243  | 
"X frontier_of (S \<inter> T) =  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1244  | 
X closure_of (S \<inter> T) \<inter> (X frontier_of S \<union> X frontier_of T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1245  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1246  | 
have *: "U \<subseteq> S \<and> U \<subseteq> T \<Longrightarrow> U \<inter> (S \<inter> A \<union> T \<inter> B) = U \<inter> (A \<union> B)" for U S T A B :: "'a set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1247  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1248  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1249  | 
by (simp add: frontier_of_closures closure_of_mono Diff_Int * flip: closure_of_Un)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1250  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1251  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1252  | 
lemma frontier_of_Int_subset: "X frontier_of (S \<inter> T) \<subseteq> X frontier_of S \<union> X frontier_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1253  | 
by (simp add: frontier_of_Int)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1254  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1255  | 
lemma frontier_of_Int_closedin:  | 
| 72608 | 1256  | 
assumes "closedin X S" "closedin X T"  | 
1257  | 
shows "X frontier_of(S \<inter> T) = X frontier_of S \<inter> T \<union> S \<inter> X frontier_of T" (is "?lhs = ?rhs")  | 
|
1258  | 
proof  | 
|
1259  | 
show "?lhs \<subseteq> ?rhs"  | 
|
1260  | 
using assms by (force simp add: frontier_of_Int closedin_Int closure_of_closedin)  | 
|
1261  | 
show "?rhs \<subseteq> ?lhs"  | 
|
1262  | 
using assms frontier_of_subset_closedin  | 
|
1263  | 
by (auto simp add: frontier_of_Int closedin_Int closure_of_closedin)  | 
|
1264  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1265  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1266  | 
lemma frontier_of_Un_subset: "X frontier_of(S \<union> T) \<subseteq> X frontier_of S \<union> X frontier_of T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1267  | 
by (metis Diff_Un frontier_of_Int_subset frontier_of_complement)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1268  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1269  | 
lemma frontier_of_Union_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1270  | 
"finite \<F> \<Longrightarrow> X frontier_of (\<Union>\<F>) \<subseteq> (\<Union>T \<in> \<F>. X frontier_of T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1271  | 
proof (induction \<F> rule: finite_induct)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1272  | 
case (insert A \<F>)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1273  | 
then show ?case  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1274  | 
using frontier_of_Un_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1275  | 
qed simp  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1276  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1277  | 
lemma frontier_of_frontier_of_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1278  | 
"X frontier_of (X frontier_of S) \<subseteq> X frontier_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1279  | 
by (simp add: closedin_frontier_of frontier_of_subset_closedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1280  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1281  | 
lemma frontier_of_subtopology_open:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1282  | 
"openin X U \<Longrightarrow> (subtopology X U) frontier_of S = U \<inter> X frontier_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1283  | 
by (simp add: Diff_Int_distrib closure_of_subtopology_open frontier_of_def interior_of_subtopology_open)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1284  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1285  | 
lemma discrete_topology_frontier_of [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1286  | 
     "(discrete_topology U) frontier_of S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1287  | 
by (simp add: Diff_eq discrete_topology_closure_of frontier_of_closures)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1288  | 
|
| 
78038
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1289  | 
lemma openin_subset_topspace_eq:  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1290  | 
assumes "disjnt S (X frontier_of U)"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1291  | 
shows "openin (subtopology X U) S \<longleftrightarrow> openin X S \<and> S \<subseteq> U"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1292  | 
proof  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1293  | 
assume S: "openin (subtopology X U) S"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1294  | 
show "openin X S \<and> S \<subseteq> U"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1295  | 
proof  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1296  | 
show "S \<subseteq> U"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1297  | 
using S openin_imp_subset by blast  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1298  | 
have "disjnt S (X frontier_of (topspace X \<inter> U))"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1299  | 
by (metis assms frontier_of_restrict)  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1300  | 
moreover  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1301  | 
have "openin (subtopology X (topspace X \<inter> U)) S"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1302  | 
by (simp add: S subtopology_restrict)  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1303  | 
moreover  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1304  | 
have "openin X S"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1305  | 
if dis: "disjnt S (X frontier_of U)" and ope: "openin (subtopology X U) S" and "U \<subseteq> topspace X"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1306  | 
for S U  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1307  | 
proof -  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1308  | 
obtain T where T: "openin X T" "S = T \<inter> U"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1309  | 
using ope by (auto simp: openin_subtopology)  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1310  | 
have "T \<inter> U = T \<inter> X interior_of U"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1311  | 
using that T interior_of_subset in_closure_of by (fastforce simp: disjnt_iff frontier_of_def)  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1312  | 
then show ?thesis  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1313  | 
using \<open>S = T \<inter> U\<close> \<open>openin X T\<close> by auto  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1314  | 
qed  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1315  | 
ultimately show "openin X S"  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1316  | 
by blast  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1317  | 
qed  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1318  | 
qed (metis inf.absorb_iff1 openin_subtopology_Int)  | 
| 
 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 
paulson <lp15@cam.ac.uk> 
parents: 
78037 
diff
changeset
 | 
1319  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1320  | 
|
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1321  | 
subsection\<open>Locally finite collections\<close>  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1322  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1323  | 
definition locally_finite_in  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1324  | 
where  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1325  | 
"locally_finite_in X \<A> \<longleftrightarrow>  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1326  | 
(\<Union>\<A> \<subseteq> topspace X) \<and>  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1327  | 
        (\<forall>x \<in> topspace X. \<exists>V. openin X V \<and> x \<in> V \<and> finite {U \<in> \<A>. U \<inter> V \<noteq> {}})"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1328  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1329  | 
lemma finite_imp_locally_finite_in:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1330  | 
"\<lbrakk>finite \<A>; \<Union>\<A> \<subseteq> topspace X\<rbrakk> \<Longrightarrow> locally_finite_in X \<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1331  | 
by (auto simp: locally_finite_in_def)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1332  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1333  | 
lemma locally_finite_in_subset:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1334  | 
assumes "locally_finite_in X \<A>" "\<B> \<subseteq> \<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1335  | 
shows "locally_finite_in X \<B>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1336  | 
proof -  | 
| 72608 | 1337  | 
  have "finite (\<A> \<inter> {U. U \<inter> V \<noteq> {}}) \<Longrightarrow> finite (\<B> \<inter> {U. U \<inter> V \<noteq> {}})" for V
 | 
1338  | 
by (meson \<open>\<B> \<subseteq> \<A>\<close> finite_subset inf_le1 inf_le2 le_inf_iff subset_trans)  | 
|
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1339  | 
then show ?thesis  | 
| 72608 | 1340  | 
using assms unfolding locally_finite_in_def Int_def by fastforce  | 
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1341  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1342  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1343  | 
lemma locally_finite_in_refinement:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1344  | 
assumes \<A>: "locally_finite_in X \<A>" and f: "\<And>S. S \<in> \<A> \<Longrightarrow> f S \<subseteq> S"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1345  | 
shows "locally_finite_in X (f ` \<A>)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1346  | 
proof -  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1347  | 
show ?thesis  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1348  | 
unfolding locally_finite_in_def  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1349  | 
proof safe  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1350  | 
fix x  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1351  | 
assume "x \<in> topspace X"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1352  | 
    then obtain V where "openin X V" "x \<in> V" "finite {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1353  | 
using \<A> unfolding locally_finite_in_def by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1354  | 
    moreover have "{U \<in> \<A>. f U \<inter> V \<noteq> {}} \<subseteq> {U \<in> \<A>. U \<inter> V \<noteq> {}}" for V
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1355  | 
using f by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1356  | 
    ultimately have "finite {U \<in> \<A>. f U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1357  | 
using finite_subset by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1358  | 
    moreover have "f ` {U \<in> \<A>. f U \<inter> V \<noteq> {}} = {U \<in> f ` \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1359  | 
by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1360  | 
    ultimately have "finite {U \<in> f ` \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1361  | 
by (metis (no_types, lifting) finite_imageI)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1362  | 
    then show "\<exists>V. openin X V \<and> x \<in> V \<and> finite {U \<in> f ` \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1363  | 
using \<open>openin X V\<close> \<open>x \<in> V\<close> by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1364  | 
next  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1365  | 
show "\<And>x xa. \<lbrakk>xa \<in> \<A>; x \<in> f xa\<rbrakk> \<Longrightarrow> x \<in> topspace X"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1366  | 
by (meson Sup_upper \<A> f locally_finite_in_def subset_iff)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1367  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1368  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1369  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1370  | 
lemma locally_finite_in_subtopology:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1371  | 
assumes \<A>: "locally_finite_in X \<A>" "\<Union>\<A> \<subseteq> S"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1372  | 
shows "locally_finite_in (subtopology X S) \<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1373  | 
unfolding locally_finite_in_def  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1374  | 
proof safe  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1375  | 
fix x  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1376  | 
assume x: "x \<in> topspace (subtopology X S)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1377  | 
  then obtain V where "openin X V" "x \<in> V" and fin: "finite {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1378  | 
using \<A> unfolding locally_finite_in_def topspace_subtopology by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1379  | 
  show "\<exists>V. openin (subtopology X S) V \<and> x \<in> V \<and> finite {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1380  | 
proof (intro exI conjI)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1381  | 
show "openin (subtopology X S) (S \<inter> V)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1382  | 
by (simp add: \<open>openin X V\<close> openin_subtopology_Int2)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1383  | 
    have "{U \<in> \<A>. U \<inter> (S \<inter> V) \<noteq> {}} \<subseteq> {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1384  | 
by auto  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1385  | 
    with fin show "finite {U \<in> \<A>. U \<inter> (S \<inter> V) \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1386  | 
using finite_subset by auto  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1387  | 
show "x \<in> S \<inter> V"  | 
| 71172 | 1388  | 
using x \<open>x \<in> V\<close> by (simp)  | 
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1389  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1390  | 
next  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1391  | 
show "\<And>x A. \<lbrakk>x \<in> A; A \<in> \<A>\<rbrakk> \<Longrightarrow> x \<in> topspace (subtopology X S)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1392  | 
using assms unfolding locally_finite_in_def topspace_subtopology by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1393  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1394  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1395  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1396  | 
lemma closedin_locally_finite_Union:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1397  | 
assumes clo: "\<And>S. S \<in> \<A> \<Longrightarrow> closedin X S" and \<A>: "locally_finite_in X \<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1398  | 
shows "closedin X (\<Union>\<A>)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1399  | 
using \<A> unfolding locally_finite_in_def closedin_def  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1400  | 
proof clarify  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1401  | 
show "openin X (topspace X - \<Union>\<A>)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1402  | 
proof (subst openin_subopen, clarify)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1403  | 
fix x  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1404  | 
assume "x \<in> topspace X" and "x \<notin> \<Union>\<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1405  | 
    then obtain V where "openin X V" "x \<in> V" and fin: "finite {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1406  | 
using \<A> unfolding locally_finite_in_def by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1407  | 
    let ?T = "V - \<Union>{S \<in> \<A>. S \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1408  | 
show "\<exists>T. openin X T \<and> x \<in> T \<and> T \<subseteq> topspace X - \<Union>\<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1409  | 
proof (intro exI conjI)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1410  | 
show "openin X ?T"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1411  | 
by (metis (no_types, lifting) fin \<open>openin X V\<close> clo closedin_Union mem_Collect_eq openin_diff)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1412  | 
show "x \<in> ?T"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1413  | 
using \<open>x \<notin> \<Union>\<A>\<close> \<open>x \<in> V\<close> by auto  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1414  | 
show "?T \<subseteq> topspace X - \<Union>\<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1415  | 
using \<open>openin X V\<close> openin_subset by auto  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1416  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1417  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1418  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1419  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1420  | 
lemma locally_finite_in_closure:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1421  | 
assumes \<A>: "locally_finite_in X \<A>"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1422  | 
shows "locally_finite_in X ((\<lambda>S. X closure_of S) ` \<A>)"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1423  | 
using \<A> unfolding locally_finite_in_def  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1424  | 
proof (intro conjI; clarsimp)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1425  | 
fix x A  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1426  | 
assume "x \<in> X closure_of A"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1427  | 
then show "x \<in> topspace X"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1428  | 
by (meson in_closure_of)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1429  | 
next  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1430  | 
fix x  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1431  | 
assume "x \<in> topspace X" and "\<Union>\<A> \<subseteq> topspace X"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1432  | 
  then obtain V where V: "openin X V" "x \<in> V" and fin: "finite {U \<in> \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1433  | 
using \<A> unfolding locally_finite_in_def by blast  | 
| 77234 | 1434  | 
  have eq: "{y \<in> f ` \<A>. Q y} = f ` {x. x \<in> \<A> \<and> Q(f x)}" for f and Q :: "'a set \<Rightarrow> bool"
 | 
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1435  | 
by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1436  | 
  have eq2: "{A \<in> \<A>. X closure_of A \<inter> V \<noteq> {}} = {A \<in> \<A>. A \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1437  | 
using openin_Int_closure_of_eq_empty V by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1438  | 
  have "finite {U \<in> (closure_of) X ` \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1439  | 
by (simp add: eq eq2 fin)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1440  | 
  with V show "\<exists>V. openin X V \<and> x \<in> V \<and> finite {U \<in> (closure_of) X ` \<A>. U \<inter> V \<noteq> {}}"
 | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1441  | 
by blast  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1442  | 
qed  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1443  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1444  | 
lemma closedin_Union_locally_finite_closure:  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1445  | 
"locally_finite_in X \<A> \<Longrightarrow> closedin X (\<Union>((\<lambda>S. X closure_of S) ` \<A>))"  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1446  | 
by (metis (mono_tags) closedin_closure_of closedin_locally_finite_Union imageE locally_finite_in_closure)  | 
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1447  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1448  | 
lemma closure_of_Union_subset: "\<Union>((\<lambda>S. X closure_of S) ` \<A>) \<subseteq> X closure_of (\<Union>\<A>)"  | 
| 77934 | 1449  | 
by (simp add: SUP_le_iff Sup_upper closure_of_mono)  | 
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1450  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1451  | 
lemma closure_of_locally_finite_Union:  | 
| 72608 | 1452  | 
assumes "locally_finite_in X \<A>"  | 
1453  | 
shows "X closure_of (\<Union>\<A>) = \<Union>((\<lambda>S. X closure_of S) ` \<A>)"  | 
|
1454  | 
proof (rule closure_of_unique)  | 
|
1455  | 
show "\<Union> \<A> \<subseteq> \<Union> ((closure_of) X ` \<A>)"  | 
|
1456  | 
using assms by (simp add: SUP_upper2 Sup_le_iff closure_of_subset locally_finite_in_def)  | 
|
1457  | 
show "closedin X (\<Union> ((closure_of) X ` \<A>))"  | 
|
1458  | 
using assms by (simp add: closedin_Union_locally_finite_closure)  | 
|
1459  | 
show "\<And>T'. \<lbrakk>\<Union> \<A> \<subseteq> T'; closedin X T'\<rbrakk> \<Longrightarrow> \<Union> ((closure_of) X ` \<A>) \<subseteq> T'"  | 
|
1460  | 
by (simp add: Sup_le_iff closure_of_minimal)  | 
|
1461  | 
qed  | 
|
| 
69918
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1462  | 
|
| 
 
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
 
paulson <lp15@cam.ac.uk> 
parents: 
69874 
diff
changeset
 | 
1463  | 
|
| 70136 | 1464  | 
subsection\<^marker>\<open>tag important\<close> \<open>Continuous maps\<close>  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1465  | 
|
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1466  | 
text \<open>We will need to deal with continuous maps in terms of topologies and not in terms  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1467  | 
of type classes, as defined below.\<close>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1468  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1469  | 
definition continuous_map where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1470  | 
"continuous_map X Y f \<equiv>  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1471  | 
f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1472  | 
     (\<forall>U. openin Y U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1473  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1474  | 
lemma continuous_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1475  | 
"continuous_map X Y f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1476  | 
        f ` (topspace X) \<subseteq> topspace Y \<and> (\<forall>U. openin Y U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1477  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1478  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1479  | 
lemma continuous_map_image_subset_topspace:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1480  | 
"continuous_map X Y f \<Longrightarrow> f ` (topspace X) \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1481  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1482  | 
|
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1483  | 
lemma continuous_map_funspace:  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1484  | 
"continuous_map X Y f \<Longrightarrow> f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1485  | 
by (auto simp: continuous_map_def)  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1486  | 
|
| 78336 | 1487  | 
lemma continuous_map_on_empty [simp]: "continuous_map trivial_topology Y f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1488  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1489  | 
|
| 78336 | 1490  | 
lemma continuous_map_on_empty2 [simp]: "continuous_map X trivial_topology f \<longleftrightarrow> X = trivial_topology"  | 
1491  | 
using continuous_map_image_subset_topspace by fastforce  | 
|
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1492  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1493  | 
lemma continuous_map_closedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1494  | 
"continuous_map X Y f \<longleftrightarrow>  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1495  | 
f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1496  | 
         (\<forall>C. closedin Y C \<longrightarrow> closedin X {x \<in> topspace X. f x \<in> C})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1497  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1498  | 
  have "(\<forall>U. openin Y U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U}) =
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1499  | 
        (\<forall>C. closedin Y C \<longrightarrow> closedin X {x \<in> topspace X. f x \<in> C})"
 | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1500  | 
if "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1501  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1502  | 
    have eq: "{x \<in> topspace X. f x \<in> topspace Y \<and> f x \<notin> C} = (topspace X - {x \<in> topspace X. f x \<in> C})" for C
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1503  | 
using that by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1504  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1505  | 
proof (intro iffI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1506  | 
fix C  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1507  | 
      assume "\<forall>U. openin Y U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U}" and "closedin Y C"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1508  | 
      then show "closedin X {x \<in> topspace X. f x \<in> C}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1509  | 
by (auto simp add: closedin_def eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1510  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1511  | 
fix U  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1512  | 
      assume "\<forall>C. closedin Y C \<longrightarrow> closedin X {x \<in> topspace X. f x \<in> C}" and "openin Y U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1513  | 
      then show "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1514  | 
by (auto simp add: openin_closedin_eq eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1515  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1516  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1517  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1518  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1519  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1520  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1521  | 
lemma openin_continuous_map_preimage:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1522  | 
   "\<lbrakk>continuous_map X Y f; openin Y U\<rbrakk> \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1523  | 
by (simp add: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1524  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1525  | 
lemma closedin_continuous_map_preimage:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1526  | 
   "\<lbrakk>continuous_map X Y f; closedin Y C\<rbrakk> \<Longrightarrow> closedin X {x \<in> topspace X. f x \<in> C}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1527  | 
by (simp add: continuous_map_closedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1528  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1529  | 
lemma openin_continuous_map_preimage_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1530  | 
assumes "continuous_map X Y f" "openin X U" "openin Y V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1531  | 
  shows "openin X {x \<in> U. f x \<in> V}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1532  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1533  | 
  have eq: "{x \<in> U. f x \<in> V} = U \<inter> {x \<in> topspace X. f x \<in> V}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1534  | 
using assms(2) openin_closedin_eq by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1535  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1536  | 
unfolding eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1537  | 
using assms openin_continuous_map_preimage by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1538  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1539  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1540  | 
lemma closedin_continuous_map_preimage_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1541  | 
assumes "continuous_map X Y f" "closedin X U" "closedin Y V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1542  | 
  shows "closedin X {x \<in> U. f x \<in> V}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1543  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1544  | 
  have eq: "{x \<in> U. f x \<in> V} = U \<inter> {x \<in> topspace X. f x \<in> V}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1545  | 
using assms(2) closedin_def by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1546  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1547  | 
unfolding eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1548  | 
using assms closedin_continuous_map_preimage by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1549  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1550  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1551  | 
lemma continuous_map_image_closure_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1552  | 
assumes "continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1553  | 
shows "f ` (X closure_of S) \<subseteq> Y closure_of f ` S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1554  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1555  | 
have *: "f ` (topspace X) \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1556  | 
by (meson assms continuous_map)  | 
| 77234 | 1557  | 
  have "X closure_of T \<subseteq> {x \<in> X closure_of T. f x \<in> Y closure_of (f ` T)}"
 | 
1558  | 
if "T \<subseteq> topspace X" for T  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1559  | 
proof (rule closure_of_minimal)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1560  | 
    show "T \<subseteq> {x \<in> X closure_of T. f x \<in> Y closure_of f ` T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1561  | 
using closure_of_subset * that by (fastforce simp: in_closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1562  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1563  | 
    show "closedin X {x \<in> X closure_of T. f x \<in> Y closure_of f ` T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1564  | 
using assms closedin_continuous_map_preimage_gen by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1565  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1566  | 
then show ?thesis  | 
| 77234 | 1567  | 
by (smt (verit, ccfv_threshold) assms continuous_map image_eqI image_subset_iff in_closure_of mem_Collect_eq)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1568  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1569  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1570  | 
lemma continuous_map_subset_aux1: "continuous_map X Y f \<Longrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1571  | 
(\<forall>S. f ` (X closure_of S) \<subseteq> Y closure_of f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1572  | 
using continuous_map_image_closure_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1573  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1574  | 
lemma continuous_map_subset_aux2:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1575  | 
assumes "\<forall>S. S \<subseteq> topspace X \<longrightarrow> f ` (X closure_of S) \<subseteq> Y closure_of f ` S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1576  | 
shows "continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1577  | 
unfolding continuous_map_closedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1578  | 
proof (intro conjI ballI allI impI)  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1579  | 
show "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1580  | 
using assms closure_of_subset_topspace by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1581  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1582  | 
fix C  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1583  | 
assume "closedin Y C"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1584  | 
  then show "closedin X {x \<in> topspace X. f x \<in> C}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1585  | 
proof (clarsimp simp flip: closure_of_subset_eq, intro conjI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1586  | 
fix x  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1587  | 
    assume x: "x \<in> X closure_of {x \<in> topspace X. f x \<in> C}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1588  | 
and "C \<subseteq> topspace Y" and "Y closure_of C \<subseteq> C"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1589  | 
show "x \<in> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1590  | 
by (meson x in_closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1591  | 
    have "{a \<in> topspace X. f a \<in> C} \<subseteq> topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1592  | 
by simp  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1593  | 
    moreover have "Y closure_of f ` {a \<in> topspace X. f a \<in> C} \<subseteq> C"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1594  | 
by (simp add: \<open>closedin Y C\<close> closure_of_minimal image_subset_iff)  | 
| 77234 | 1595  | 
ultimately show "f x \<in> C"  | 
1596  | 
using x assms by blast  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1597  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1598  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1599  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1600  | 
lemma continuous_map_eq_image_closure_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1601  | 
"continuous_map X Y f \<longleftrightarrow> (\<forall>S. f ` (X closure_of S) \<subseteq> Y closure_of f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1602  | 
using continuous_map_subset_aux1 continuous_map_subset_aux2 by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1603  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1604  | 
lemma continuous_map_eq_image_closure_subset_alt:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1605  | 
"continuous_map X Y f \<longleftrightarrow> (\<forall>S. S \<subseteq> topspace X \<longrightarrow> f ` (X closure_of S) \<subseteq> Y closure_of f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1606  | 
using continuous_map_subset_aux1 continuous_map_subset_aux2 by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1607  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1608  | 
lemma continuous_map_eq_image_closure_subset_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1609  | 
"continuous_map X Y f \<longleftrightarrow>  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1610  | 
f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1611  | 
(\<forall>S. f ` (X closure_of S) \<subseteq> Y closure_of f ` S)"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1612  | 
by (meson Pi_iff continuous_map continuous_map_eq_image_closure_subset image_subset_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1613  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1614  | 
lemma continuous_map_closure_preimage_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1615  | 
"continuous_map X Y f  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1616  | 
        \<Longrightarrow> X closure_of {x \<in> topspace X. f x \<in> T}
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1617  | 
            \<subseteq> {x \<in> topspace X. f x \<in> Y closure_of T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1618  | 
unfolding continuous_map_closedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1619  | 
by (rule closure_of_minimal) (use in_closure_of in \<open>fastforce+\<close>)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1620  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1621  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1622  | 
lemma continuous_map_frontier_frontier_preimage_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1623  | 
assumes "continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1624  | 
  shows "X frontier_of {x \<in> topspace X. f x \<in> T} \<subseteq> {x \<in> topspace X. f x \<in> Y frontier_of T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1625  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1626  | 
  have eq: "topspace X - {x \<in> topspace X. f x \<in> T} = {x \<in> topspace X. f x \<in> topspace Y - T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1627  | 
using assms unfolding continuous_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1628  | 
  have "X closure_of {x \<in> topspace X. f x \<in> T} \<subseteq> {x \<in> topspace X. f x \<in> Y closure_of T}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1629  | 
by (simp add: assms continuous_map_closure_preimage_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1630  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1631  | 
  have "X closure_of (topspace X - {x \<in> topspace X. f x \<in> T}) \<subseteq> {x \<in> topspace X. f x \<in> Y closure_of (topspace Y - T)}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1632  | 
using continuous_map_closure_preimage_subset [OF assms] eq by presburger  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1633  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1634  | 
by (auto simp: frontier_of_closures)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1635  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1636  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1637  | 
lemma topology_finer_continuous_id:  | 
| 72608 | 1638  | 
assumes "topspace X = topspace Y"  | 
1639  | 
shows "(\<forall>S. openin X S \<longrightarrow> openin Y S) \<longleftrightarrow> continuous_map Y X id" (is "?lhs = ?rhs")  | 
|
1640  | 
proof  | 
|
1641  | 
show "?lhs \<Longrightarrow> ?rhs"  | 
|
1642  | 
unfolding continuous_map_def  | 
|
1643  | 
using assms openin_subopen openin_subset by fastforce  | 
|
1644  | 
show "?rhs \<Longrightarrow> ?lhs"  | 
|
1645  | 
unfolding continuous_map_def  | 
|
1646  | 
using assms openin_subopen topspace_def by fastforce  | 
|
1647  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1648  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1649  | 
lemma continuous_map_const [simp]:  | 
| 78336 | 1650  | 
"continuous_map X Y (\<lambda>x. C) \<longleftrightarrow> X = trivial_topology \<or> C \<in> topspace Y"  | 
1651  | 
proof (cases "X = trivial_topology")  | 
|
1652  | 
case nontriv: False  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1653  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1654  | 
proof (cases "C \<in> topspace Y")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1655  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1656  | 
with openin_subopen show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1657  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1658  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1659  | 
case False  | 
| 78336 | 1660  | 
with nontriv show ?thesis  | 
1661  | 
using continuous_map_image_subset_topspace discrete_topology_unique image_subset_iff by fastforce  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1662  | 
qed  | 
| 78336 | 1663  | 
qed auto  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1664  | 
|
| 
69986
 
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
 
paulson <lp15@cam.ac.uk> 
parents: 
69945 
diff
changeset
 | 
1665  | 
declare continuous_map_const [THEN iffD2, continuous_intros]  | 
| 
 
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
 
paulson <lp15@cam.ac.uk> 
parents: 
69945 
diff
changeset
 | 
1666  | 
|
| 
69994
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
1667  | 
lemma continuous_map_compose [continuous_intros]:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1668  | 
assumes f: "continuous_map X X' f" and g: "continuous_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1669  | 
shows "continuous_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1670  | 
unfolding continuous_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1671  | 
proof (intro conjI ballI allI impI)  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1672  | 
show "g \<circ> f \<in> topspace X \<rightarrow> topspace X''"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1673  | 
using assms unfolding continuous_map_def by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1674  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1675  | 
fix U  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1676  | 
assume "openin X'' U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1677  | 
  have eq: "{x \<in> topspace X. (g \<circ> f) x \<in> U} = {x \<in> topspace X. f x \<in> {y. y \<in> topspace X' \<and> g y \<in> U}}"
 | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1678  | 
using continuous_map_image_subset_topspace f by force  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1679  | 
  show "openin X {x \<in> topspace X. (g \<circ> f) x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1680  | 
unfolding eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1681  | 
using assms unfolding continuous_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1682  | 
using \<open>openin X'' U\<close> by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1683  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1684  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1685  | 
lemma continuous_map_eq:  | 
| 77234 | 1686  | 
assumes "continuous_map X X' f" and "\<And>x. x \<in> topspace X \<Longrightarrow> f x = g x"  | 
1687  | 
shows "continuous_map X X' g"  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1688  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1689  | 
  have eq: "{x \<in> topspace X. f x \<in> U} = {x \<in> topspace X. g x \<in> U}" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1690  | 
using assms by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1691  | 
show ?thesis  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
1692  | 
using assms by (force simp add: continuous_map_def eq)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1693  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1694  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1695  | 
lemma restrict_continuous_map [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1696  | 
"topspace X \<subseteq> S \<Longrightarrow> continuous_map X X' (restrict f S) \<longleftrightarrow> continuous_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1697  | 
by (auto simp: elim!: continuous_map_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1698  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1699  | 
lemma continuous_map_in_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1700  | 
"continuous_map X (subtopology X' S) f \<longleftrightarrow> continuous_map X X' f \<and> f ` (topspace X) \<subseteq> S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1701  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1702  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1703  | 
assume L: ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1704  | 
show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1705  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1706  | 
have "\<And>A. f ` (X closure_of A) \<subseteq> subtopology X' S closure_of f ` A"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1707  | 
by (meson L continuous_map_image_closure_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1708  | 
then show ?thesis  | 
| 77234 | 1709  | 
by (metis (no_types) closure_of_subset_subtopology closure_of_subtopology_subset closure_of_topspace continuous_map_eq_image_closure_subset order.trans)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1710  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1711  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1712  | 
assume R: ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1713  | 
  then have eq: "{x \<in> topspace X. f x \<in> U} = {x \<in> topspace X. f x \<in> U \<and> f x \<in> S}" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1714  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1715  | 
show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1716  | 
using R  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1717  | 
unfolding continuous_map  | 
| 71172 | 1718  | 
by (auto simp: openin_subtopology eq)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1719  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1720  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1721  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1722  | 
lemma continuous_map_from_subtopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1723  | 
"continuous_map X Y f \<Longrightarrow> continuous_map (subtopology X S) Y f"  | 
| 71172 | 1724  | 
by (auto simp: continuous_map openin_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1725  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1726  | 
lemma continuous_map_into_fulltopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1727  | 
"continuous_map X (subtopology Y T) f \<Longrightarrow> continuous_map X Y f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1728  | 
by (auto simp: continuous_map_in_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1729  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1730  | 
lemma continuous_map_into_subtopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1731  | 
"\<lbrakk>continuous_map X Y f; f \<in> topspace X \<rightarrow> T\<rbrakk> \<Longrightarrow> continuous_map X (subtopology Y T) f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1732  | 
by (auto simp: continuous_map_in_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1733  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1734  | 
lemma continuous_map_from_subtopology_mono:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1735  | 
"\<lbrakk>continuous_map (subtopology X T) Y f; S \<subseteq> T\<rbrakk>  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1736  | 
\<Longrightarrow> continuous_map (subtopology X S) Y f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1737  | 
by (metis inf.absorb_iff2 continuous_map_from_subtopology subtopology_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1738  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1739  | 
lemma continuous_map_from_discrete_topology [simp]:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1740  | 
"continuous_map (discrete_topology U) X f \<longleftrightarrow> f \<in> U \<rightarrow> topspace X"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1741  | 
by (auto simp: continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1742  | 
|
| 
70065
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
1743  | 
lemma continuous_map_iff_continuous [simp]: "continuous_map (top_of_set S) euclidean g = continuous_on S g"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
1744  | 
by (fastforce simp add: continuous_map openin_subtopology continuous_on_open_invariant)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
1745  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
1746  | 
lemma continuous_map_iff_continuous2 [simp]: "continuous_map euclidean euclidean g = continuous_on UNIV g"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
1747  | 
by (metis continuous_map_iff_continuous subtopology_UNIV)  | 
| 69874 | 1748  | 
|
1749  | 
lemma continuous_map_openin_preimage_eq:  | 
|
1750  | 
"continuous_map X Y f \<longleftrightarrow>  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1751  | 
f \<in> (topspace X) \<rightarrow> topspace Y \<and> (\<forall>U. openin Y U \<longrightarrow> openin X (topspace X \<inter> f -` U))"  | 
| 69874 | 1752  | 
by (auto simp: continuous_map_def vimage_def Int_def)  | 
1753  | 
||
1754  | 
lemma continuous_map_closedin_preimage_eq:  | 
|
1755  | 
"continuous_map X Y f \<longleftrightarrow>  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1756  | 
f \<in> (topspace X) \<rightarrow> topspace Y \<and> (\<forall>U. closedin Y U \<longrightarrow> closedin X (topspace X \<inter> f -` U))"  | 
| 69874 | 1757  | 
by (auto simp: continuous_map_closedin vimage_def Int_def)  | 
1758  | 
||
1759  | 
lemma continuous_map_square_root: "continuous_map euclideanreal euclideanreal sqrt"  | 
|
1760  | 
by (simp add: continuous_at_imp_continuous_on isCont_real_sqrt)  | 
|
1761  | 
||
1762  | 
lemma continuous_map_sqrt [continuous_intros]:  | 
|
1763  | 
"continuous_map X euclideanreal f \<Longrightarrow> continuous_map X euclideanreal (\<lambda>x. sqrt(f x))"  | 
|
1764  | 
by (meson continuous_map_compose continuous_map_eq continuous_map_square_root o_apply)  | 
|
1765  | 
||
| 
69994
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
1766  | 
lemma continuous_map_id [simp, continuous_intros]: "continuous_map X X id"  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1767  | 
unfolding continuous_map_def using openin_subopen topspace_def by fastforce  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1768  | 
|
| 
69994
 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 
paulson <lp15@cam.ac.uk> 
parents: 
69986 
diff
changeset
 | 
1769  | 
declare continuous_map_id [unfolded id_def, simp, continuous_intros]  | 
| 
69710
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1770  | 
|
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1771  | 
lemma continuous_map_id_subt [simp]: "continuous_map (subtopology X S) X id"  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1772  | 
by (simp add: continuous_map_from_subtopology)  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1773  | 
|
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1774  | 
declare continuous_map_id_subt [unfolded id_def, simp]  | 
| 
 
61372780515b
some renamings and a bit of new material
 
paulson <lp15@cam.ac.uk> 
parents: 
69661 
diff
changeset
 | 
1775  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1776  | 
|
| 70136 | 1777  | 
lemma\<^marker>\<open>tag important\<close> continuous_map_alt:  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1778  | 
"continuous_map T1 T2 f  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1779  | 
= ((\<forall>U. openin T2 U \<longrightarrow> openin T1 (f -` U \<inter> topspace T1)) \<and> f \<in> topspace T1 \<rightarrow> topspace T2)"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1780  | 
by (auto simp: continuous_map_def vimage_def image_def Collect_conj_eq inf_commute)  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1781  | 
|
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1782  | 
lemma continuous_map_open [intro]:  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1783  | 
"continuous_map T1 T2 f \<Longrightarrow> openin T2 U \<Longrightarrow> openin T1 (f-`U \<inter> topspace(T1))"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1784  | 
unfolding continuous_map_alt by auto  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1785  | 
|
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1786  | 
lemma continuous_map_preimage_topspace [intro]:  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1787  | 
assumes "continuous_map T1 T2 f"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1788  | 
shows "f-`(topspace T2) \<inter> topspace T1 = topspace T1"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1789  | 
using assms unfolding continuous_map_def by auto  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1790  | 
|
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1791  | 
|
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
1792  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1793  | 
subsection\<open>Open and closed maps (not a priori assumed continuous)\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1794  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1795  | 
definition open_map :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1796  | 
where "open_map X1 X2 f \<equiv> \<forall>U. openin X1 U \<longrightarrow> openin X2 (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1797  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1798  | 
definition closed_map :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1799  | 
where "closed_map X1 X2 f \<equiv> \<forall>U. closedin X1 U \<longrightarrow> closedin X2 (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1800  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1801  | 
lemma open_map_imp_subset_topspace:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1802  | 
"open_map X1 X2 f \<Longrightarrow> f \<in> (topspace X1) \<rightarrow> topspace X2"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1803  | 
unfolding open_map_def using openin_subset by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1804  | 
|
| 78336 | 1805  | 
lemma open_map_on_empty [simp]: "open_map trivial_topology Y f"  | 
1806  | 
by (simp add: open_map_def)  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1807  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1808  | 
lemma closed_map_on_empty:  | 
| 78336 | 1809  | 
"closed_map trivial_topology Y f"  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1810  | 
by (simp add: closed_map_def closedin_topspace_empty)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1811  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1812  | 
lemma closed_map_const:  | 
| 78336 | 1813  | 
   "closed_map X Y (\<lambda>x. c) \<longleftrightarrow> X = trivial_topology \<or> closedin Y {c}"
 | 
1814  | 
by (metis closed_map_def closed_map_on_empty closedin_topspace discrete_topology_unique equals0D image_constant_conv)  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
1815  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1816  | 
lemma open_map_imp_subset:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1817  | 
"\<lbrakk>open_map X1 X2 f; S \<subseteq> topspace X1\<rbrakk> \<Longrightarrow> f \<in> S \<rightarrow> topspace X2"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1818  | 
using open_map_imp_subset_topspace by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1819  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1820  | 
lemma topology_finer_open_id:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1821  | 
"(\<forall>S. openin X S \<longrightarrow> openin X' S) \<longleftrightarrow> open_map X X' id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1822  | 
unfolding open_map_def by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1823  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1824  | 
lemma open_map_id: "open_map X X id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1825  | 
unfolding open_map_def by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1826  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1827  | 
lemma open_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1828  | 
"\<lbrakk>open_map X X' f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> open_map X X' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1829  | 
unfolding open_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1830  | 
by (metis image_cong openin_subset subset_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1831  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1832  | 
lemma open_map_inclusion_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1833  | 
"open_map (subtopology X S) X id \<longleftrightarrow> openin X (topspace X \<inter> S)"  | 
| 77234 | 1834  | 
by (metis openin_topspace openin_trans_full subtopology_restrict topology_finer_open_id topspace_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1835  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1836  | 
lemma open_map_inclusion:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1837  | 
"openin X S \<Longrightarrow> open_map (subtopology X S) X id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1838  | 
by (simp add: open_map_inclusion_eq openin_Int)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1839  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1840  | 
lemma open_map_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1841  | 
"\<lbrakk>open_map X X' f; open_map X' X'' g\<rbrakk> \<Longrightarrow> open_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1842  | 
by (metis (no_types, lifting) image_comp open_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1843  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1844  | 
lemma closed_map_imp_subset_topspace:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1845  | 
"closed_map X1 X2 f \<Longrightarrow> f \<in> (topspace X1) \<rightarrow> topspace X2"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1846  | 
by (simp add: closed_map_def closedin_def image_subset_iff_funcset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1847  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1848  | 
lemma closed_map_imp_subset:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1849  | 
"\<lbrakk>closed_map X1 X2 f; S \<subseteq> topspace X1\<rbrakk> \<Longrightarrow> f \<in> S \<rightarrow> topspace X2"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1850  | 
using closed_map_imp_subset_topspace by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1851  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1852  | 
lemma topology_finer_closed_id:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1853  | 
"(\<forall>S. closedin X S \<longrightarrow> closedin X' S) \<longleftrightarrow> closed_map X X' id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1854  | 
by (simp add: closed_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1855  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1856  | 
lemma closed_map_id: "closed_map X X id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1857  | 
by (simp add: closed_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1858  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1859  | 
lemma closed_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1860  | 
"\<lbrakk>closed_map X X' f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> closed_map X X' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1861  | 
unfolding closed_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1862  | 
by (metis image_cong closedin_subset subset_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1863  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1864  | 
lemma closed_map_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1865  | 
"\<lbrakk>closed_map X X' f; closed_map X' X'' g\<rbrakk> \<Longrightarrow> closed_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1866  | 
by (metis (no_types, lifting) closed_map_def image_comp)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1867  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1868  | 
lemma closed_map_inclusion_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1869  | 
"closed_map (subtopology X S) X id \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1870  | 
closedin X (topspace X \<inter> S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1871  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1872  | 
have *: "closedin X (T \<inter> S)" if "closedin X (S \<inter> topspace X)" "closedin X T" for T  | 
| 77234 | 1873  | 
by (smt (verit, best) closedin_Int closure_of_subset_eq inf_sup_aci le_iff_inf that)  | 
1874  | 
then show ?thesis  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1875  | 
by (fastforce simp add: closed_map_def Int_commute closedin_subtopology_alt intro: *)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1876  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1877  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1878  | 
lemma closed_map_inclusion: "closedin X S \<Longrightarrow> closed_map (subtopology X S) X id"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1879  | 
by (simp add: closed_map_inclusion_eq closedin_Int)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1880  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1881  | 
lemma open_map_into_subtopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1882  | 
"\<lbrakk>open_map X X' f; f \<in> topspace X \<rightarrow> S\<rbrakk> \<Longrightarrow> open_map X (subtopology X' S) f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1883  | 
unfolding open_map_def openin_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1884  | 
using openin_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1885  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1886  | 
lemma closed_map_into_subtopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1887  | 
"\<lbrakk>closed_map X X' f; f \<in> topspace X \<rightarrow> S\<rbrakk> \<Longrightarrow> closed_map X (subtopology X' S) f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1888  | 
unfolding closed_map_def closedin_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1889  | 
using closedin_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1890  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1891  | 
lemma open_map_into_discrete_topology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1892  | 
"open_map X (discrete_topology U) f \<longleftrightarrow> f \<in> (topspace X) \<rightarrow> U"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1893  | 
unfolding open_map_def openin_discrete_topology using openin_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1894  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1895  | 
lemma closed_map_into_discrete_topology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1896  | 
"closed_map X (discrete_topology U) f \<longleftrightarrow> f \<in> (topspace X) \<rightarrow> U"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1897  | 
unfolding closed_map_def closedin_discrete_topology using closedin_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1898  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1899  | 
lemma bijective_open_imp_closed_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1900  | 
"\<lbrakk>open_map X X' f; f ` (topspace X) = topspace X'; inj_on f (topspace X)\<rbrakk> \<Longrightarrow> closed_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1901  | 
unfolding open_map_def closed_map_def closedin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1902  | 
by auto (metis Diff_subset inj_on_image_set_diff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1903  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1904  | 
lemma bijective_closed_imp_open_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1905  | 
"\<lbrakk>closed_map X X' f; f ` (topspace X) = topspace X'; inj_on f (topspace X)\<rbrakk> \<Longrightarrow> open_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1906  | 
unfolding closed_map_def open_map_def openin_closedin_eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1907  | 
by auto (metis Diff_subset inj_on_image_set_diff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1908  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1909  | 
lemma open_map_from_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1910  | 
"\<lbrakk>open_map X X' f; openin X U\<rbrakk> \<Longrightarrow> open_map (subtopology X U) X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1911  | 
unfolding open_map_def openin_subtopology_alt by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1912  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1913  | 
lemma closed_map_from_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1914  | 
"\<lbrakk>closed_map X X' f; closedin X U\<rbrakk> \<Longrightarrow> closed_map (subtopology X U) X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1915  | 
unfolding closed_map_def closedin_subtopology_alt by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1916  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1917  | 
lemma open_map_restriction:  | 
| 72608 | 1918  | 
  assumes f: "open_map X X' f" and U: "{x \<in> topspace X. f x \<in> V} = U"
 | 
1919  | 
shows "open_map (subtopology X U) (subtopology X' V) f"  | 
|
1920  | 
unfolding open_map_def  | 
|
1921  | 
proof clarsimp  | 
|
1922  | 
fix W  | 
|
1923  | 
assume "openin (subtopology X U) W"  | 
|
1924  | 
then obtain T where "openin X T" "W = T \<inter> U"  | 
|
1925  | 
by (meson openin_subtopology)  | 
|
1926  | 
with f U have "f ` W = (f ` T) \<inter> V"  | 
|
1927  | 
unfolding open_map_def openin_closedin_eq by auto  | 
|
1928  | 
then show "openin (subtopology X' V) (f ` W)"  | 
|
1929  | 
by (metis \<open>openin X T\<close> f open_map_def openin_subtopology_Int)  | 
|
1930  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1931  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1932  | 
lemma closed_map_restriction:  | 
| 72608 | 1933  | 
  assumes f: "closed_map X X' f" and U: "{x \<in> topspace X. f x \<in> V} = U"
 | 
1934  | 
shows "closed_map (subtopology X U) (subtopology X' V) f"  | 
|
1935  | 
unfolding closed_map_def  | 
|
1936  | 
proof clarsimp  | 
|
1937  | 
fix W  | 
|
1938  | 
assume "closedin (subtopology X U) W"  | 
|
1939  | 
then obtain T where "closedin X T" "W = T \<inter> U"  | 
|
1940  | 
by (meson closedin_subtopology)  | 
|
1941  | 
with f U have "f ` W = (f ` T) \<inter> V"  | 
|
1942  | 
unfolding closed_map_def closedin_def by auto  | 
|
1943  | 
then show "closedin (subtopology X' V) (f ` W)"  | 
|
1944  | 
by (metis \<open>closedin X T\<close> closed_map_def closedin_subtopology f)  | 
|
1945  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
1946  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1947  | 
lemma closed_map_closure_of_image:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1948  | 
"closed_map X Y f \<longleftrightarrow>  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1949  | 
f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1950  | 
(\<forall>S. S \<subseteq> topspace X \<longrightarrow> Y closure_of (f ` S) \<subseteq> f ` (X closure_of S))" (is "?lhs=?rhs")  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1951  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1952  | 
assume ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1953  | 
then show ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1954  | 
by (simp add: closed_map_def closed_map_imp_subset_topspace closure_of_minimal closure_of_subset image_mono)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1955  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1956  | 
assume ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1957  | 
then show ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1958  | 
by (metis closed_map_def closed_map_into_discrete_topology closure_of_eq  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1959  | 
closure_of_subset_eq topspace_discrete_topology)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1960  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1961  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1962  | 
lemma open_map_interior_of_image_subset:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1963  | 
"open_map X Y f \<longleftrightarrow> (\<forall>S. image f (X interior_of S) \<subseteq> Y interior_of (f ` S))"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1964  | 
by (metis image_mono interior_of_eq interior_of_maximal interior_of_subset open_map_def openin_interior_of subset_antisym)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1965  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1966  | 
lemma open_map_interior_of_image_subset_alt:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1967  | 
"open_map X Y f \<longleftrightarrow> (\<forall>S\<subseteq>topspace X. f ` (X interior_of S) \<subseteq> Y interior_of f ` S)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1968  | 
by (metis interior_of_eq open_map_def open_map_interior_of_image_subset openin_subset subset_interior_of_eq)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1969  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1970  | 
lemma open_map_interior_of_image_subset_gen:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1971  | 
"open_map X Y f \<longleftrightarrow>  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1972  | 
(f \<in> topspace X \<rightarrow> topspace Y \<and> (\<forall>S. f ` (X interior_of S) \<subseteq> Y interior_of f ` S))"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1973  | 
by (metis open_map_imp_subset_topspace open_map_interior_of_image_subset)  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1974  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1975  | 
lemma open_map_preimage_neighbourhood:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1976  | 
"open_map X Y f \<longleftrightarrow>  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1977  | 
(f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1978  | 
(\<forall>U T. closedin X U \<and> T \<subseteq> topspace Y \<and>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1979  | 
            {x \<in> topspace X. f x \<in> T} \<subseteq> U \<longrightarrow>
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1980  | 
            (\<exists>V. closedin Y V \<and> T \<subseteq> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U)))" (is "?lhs=?rhs")
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1981  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1982  | 
assume L: ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1983  | 
show ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1984  | 
proof (intro conjI strip)  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
1985  | 
show "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1986  | 
by (simp add: \<open>open_map X Y f\<close> open_map_imp_subset_topspace)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1987  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1988  | 
fix U T  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1989  | 
    assume UT: "closedin X U \<and> T \<subseteq> topspace Y \<and> {x \<in> topspace X. f x \<in> T} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1990  | 
have "closedin Y (topspace Y - f ` (topspace X - U))"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1991  | 
by (meson UT L open_map_def openin_closedin_eq openin_diff openin_topspace)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1992  | 
with UT  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1993  | 
    show "\<exists>V. closedin Y V \<and> T \<subseteq> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1994  | 
using image_iff by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1995  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1996  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1997  | 
assume R: ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1998  | 
show ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
1999  | 
unfolding open_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2000  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2001  | 
fix U assume "openin X U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2002  | 
    have "{x \<in> topspace X. f x \<in> topspace Y - f ` U} \<subseteq> topspace X - U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2003  | 
by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2004  | 
then obtain V where V: "closedin Y V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2005  | 
      and sub: "topspace Y - f ` U \<subseteq> V" "{x \<in> topspace X. f x \<in> V} \<subseteq> topspace X - U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2006  | 
using R \<open>openin X U\<close> by (meson Diff_subset openin_closedin_eq)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2007  | 
then have "f ` U \<subseteq> topspace Y - V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2008  | 
using R \<open>openin X U\<close> openin_subset by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2009  | 
with sub have "f ` U = topspace Y - V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2010  | 
by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2011  | 
then show "openin Y (f ` U)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2012  | 
using V(1) by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2013  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2014  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2015  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2016  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2017  | 
lemma closed_map_preimage_neighbourhood:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2018  | 
"closed_map X Y f \<longleftrightarrow>  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2019  | 
f \<in> topspace X \<rightarrow> topspace Y \<and>  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2020  | 
(\<forall>U T. openin X U \<and> T \<subseteq> topspace Y \<and>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2021  | 
              {x \<in> topspace X. f x \<in> T} \<subseteq> U
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2022  | 
\<longrightarrow> (\<exists>V. openin Y V \<and> T \<subseteq> V \<and>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2023  | 
                      {x \<in> topspace X. f x \<in> V} \<subseteq> U))" (is "?lhs=?rhs")
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2024  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2025  | 
assume L: ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2026  | 
show ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2027  | 
proof (intro conjI strip)  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2028  | 
show "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2029  | 
by (simp add: L closed_map_imp_subset_topspace)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2030  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2031  | 
fix U T  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2032  | 
    assume UT: "openin X U \<and> T \<subseteq> topspace Y \<and> {x \<in> topspace X. f x \<in> T} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2033  | 
then have "openin Y (topspace Y - f ` (topspace X - U))"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2034  | 
by (meson L closed_map_def closedin_def closedin_diff closedin_topspace)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2035  | 
    then show "\<exists>V. openin Y V \<and> T \<subseteq> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2036  | 
using UT image_iff by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2037  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2038  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2039  | 
assume R: ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2040  | 
show ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2041  | 
unfolding closed_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2042  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2043  | 
fix U assume "closedin X U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2044  | 
    have "{x \<in> topspace X. f x \<in> topspace Y - f ` U} \<subseteq> topspace X - U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2045  | 
by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2046  | 
then obtain V where V: "openin Y V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2047  | 
      and sub: "topspace Y - f ` U \<subseteq> V" "{x \<in> topspace X. f x \<in> V} \<subseteq> topspace X - U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2048  | 
using R Diff_subset \<open>closedin X U\<close> unfolding closedin_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2049  | 
by (smt (verit, ccfv_threshold) Collect_mem_eq Collect_mono_iff)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2050  | 
then have "f ` U \<subseteq> topspace Y - V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2051  | 
using R \<open>closedin X U\<close> closedin_subset by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2052  | 
with sub have "f ` U = topspace Y - V"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2053  | 
by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2054  | 
with V show "closedin Y (f ` U)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2055  | 
by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2056  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2057  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2058  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2059  | 
lemma closed_map_fibre_neighbourhood:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2060  | 
"closed_map X Y f \<longleftrightarrow>  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2061  | 
f \<in> (topspace X) \<rightarrow> topspace Y \<and>  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2062  | 
     (\<forall>U y. openin X U \<and> y \<in> topspace Y \<and> {x \<in> topspace X. f x = y} \<subseteq> U
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2063  | 
     \<longrightarrow> (\<exists>V. openin Y V \<and> y \<in> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U))"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2064  | 
unfolding closed_map_preimage_neighbourhood  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2065  | 
proof (intro conj_cong refl all_cong1)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2066  | 
fix U  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2067  | 
assume "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2068  | 
  show "(\<forall>T. openin X U \<and> T \<subseteq> topspace Y \<and> {x \<in> topspace X. f x \<in> T} \<subseteq> U 
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2069  | 
         \<longrightarrow> (\<exists>V. openin Y V \<and> T \<subseteq> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U))
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2070  | 
      = (\<forall>y. openin X U \<and> y \<in> topspace Y \<and> {x \<in> topspace X. f x = y} \<subseteq> U 
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2071  | 
         \<longrightarrow> (\<exists>V. openin Y V \<and> y \<in> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U))" 
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2072  | 
(is "(\<forall>T. ?P T) \<longleftrightarrow> (\<forall>y. ?Q y)")  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2073  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2074  | 
assume L [rule_format]: "\<forall>T. ?P T"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2075  | 
show "\<forall>y. ?Q y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2076  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2077  | 
fix y show "?Q y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2078  | 
        using L [of "{y}"] by blast
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2079  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2080  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2081  | 
assume R: "\<forall>y. ?Q y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2082  | 
show "\<forall>T. ?P T"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2083  | 
proof (cases "openin X U")  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2084  | 
case True  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2085  | 
note [[unify_search_bound=3]]  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2086  | 
      obtain V where V: "\<And>y. \<lbrakk>y \<in> topspace Y; {x \<in> topspace X. f x = y} \<subseteq> U\<rbrakk> \<Longrightarrow>
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2087  | 
                       openin Y (V y) \<and> y \<in> V y \<and> {x \<in> topspace X. f x \<in> V y} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2088  | 
using R by (simp add: True) meson  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2089  | 
show ?thesis  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2090  | 
proof clarify  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2091  | 
fix T  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2092  | 
        assume "openin X U" and "T \<subseteq> topspace Y" and "{x \<in> topspace X. f x \<in> T} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2093  | 
        with V show "\<exists>V. openin Y V \<and> T \<subseteq> V \<and> {x \<in> topspace X. f x \<in> V} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2094  | 
by (rule_tac x="\<Union>y\<in>T. V y" in exI) fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2095  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2096  | 
qed auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2097  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2098  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2099  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2100  | 
lemma open_map_in_subtopology:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2101  | 
"openin Y S  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2102  | 
\<Longrightarrow> open_map X (subtopology Y S) f \<longleftrightarrow> open_map X Y f \<and> f \<in> topspace X \<rightarrow> S"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2103  | 
by (metis image_subset_iff_funcset open_map_def open_map_into_subtopology openin_imp_subset openin_topspace openin_trans_full)  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2104  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2105  | 
lemma open_map_from_open_subtopology:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2106  | 
"\<lbrakk>openin Y S; open_map X (subtopology Y S) f\<rbrakk> \<Longrightarrow> open_map X Y f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2107  | 
using open_map_in_subtopology by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2108  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2109  | 
lemma closed_map_in_subtopology:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2110  | 
"closedin Y S  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2111  | 
\<Longrightarrow> closed_map X (subtopology Y S) f \<longleftrightarrow> (closed_map X Y f \<and> f \<in> topspace X \<rightarrow> S)"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2112  | 
by (metis closed_map_def closed_map_imp_subset_topspace closed_map_into_subtopology  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2113  | 
closedin_closed_subtopology closedin_subset topspace_subtopology_subset)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2114  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2115  | 
lemma closed_map_from_closed_subtopology:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2116  | 
"\<lbrakk>closedin Y S; closed_map X (subtopology Y S) f\<rbrakk> \<Longrightarrow> closed_map X Y f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2117  | 
using closed_map_in_subtopology by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2118  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2119  | 
lemma closed_map_from_composition_left:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2120  | 
assumes cmf: "closed_map X Z (g \<circ> f)" and contf: "continuous_map X Y f" and fim: "f ` topspace X = topspace Y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2121  | 
shows "closed_map Y Z g"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2122  | 
unfolding closed_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2123  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2124  | 
fix U assume "closedin Y U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2125  | 
  then have "closedin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2126  | 
using contf closedin_continuous_map_preimage by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2127  | 
  then have "closedin Z ((g \<circ> f) ` {x \<in> topspace X. f x \<in> U})"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2128  | 
using cmf closed_map_def by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2129  | 
moreover  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2130  | 
have "\<And>y. y \<in> U \<Longrightarrow> \<exists>x \<in> topspace X. f x \<in> U \<and> g y = g (f x)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2131  | 
by (smt (verit, ccfv_SIG) \<open>closedin Y U\<close> closedin_subset fim image_iff subsetD)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2132  | 
  then have "(g \<circ> f) ` {x \<in> topspace X. f x \<in> U} = g`U" by auto
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2133  | 
ultimately show "closedin Z (g ` U)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2134  | 
by metis  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2135  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2136  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2137  | 
text \<open>identical proof as the above\<close>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2138  | 
lemma open_map_from_composition_left:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2139  | 
assumes cmf: "open_map X Z (g \<circ> f)" and contf: "continuous_map X Y f" and fim: "f ` topspace X = topspace Y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2140  | 
shows "open_map Y Z g"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2141  | 
unfolding open_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2142  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2143  | 
fix U assume "openin Y U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2144  | 
  then have "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2145  | 
using contf openin_continuous_map_preimage by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2146  | 
  then have "openin Z ((g \<circ> f) ` {x \<in> topspace X. f x \<in> U})"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2147  | 
using cmf open_map_def by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2148  | 
moreover  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2149  | 
have "\<And>y. y \<in> U \<Longrightarrow> \<exists>x \<in> topspace X. f x \<in> U \<and> g y = g (f x)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2150  | 
by (smt (verit, ccfv_SIG) \<open>openin Y U\<close> openin_subset fim image_iff subsetD)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2151  | 
  then have "(g \<circ> f) ` {x \<in> topspace X. f x \<in> U} = g`U" by auto
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2152  | 
ultimately show "openin Z (g ` U)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2153  | 
by metis  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2154  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2155  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2156  | 
lemma closed_map_from_composition_right:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2157  | 
assumes cmf: "closed_map X Z (g \<circ> f)" "f \<in> topspace X \<rightarrow> topspace Y" "continuous_map Y Z g" "inj_on g (topspace Y)"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2158  | 
shows "closed_map X Y f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2159  | 
unfolding closed_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2160  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2161  | 
fix C assume "closedin X C"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2162  | 
have "\<And>y c. \<lbrakk>y \<in> topspace Y; g y = g (f c); c \<in> C\<rbrakk> \<Longrightarrow> y \<in> f ` C"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2163  | 
using \<open>closedin X C\<close> assms closedin_subset inj_onD by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2164  | 
then  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2165  | 
  have "f ` C = {x \<in> topspace Y. g x \<in> (g \<circ> f) ` C}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2166  | 
using \<open>closedin X C\<close> assms(2) closedin_subset by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2167  | 
moreover have "closedin Z ((g \<circ> f) ` C)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2168  | 
using \<open>closedin X C\<close> cmf closed_map_def by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2169  | 
ultimately show "closedin Y (f ` C)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2170  | 
using assms(3) closedin_continuous_map_preimage by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2171  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2172  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2173  | 
text \<open>identical proof as the above\<close>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2174  | 
lemma open_map_from_composition_right:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2175  | 
assumes "open_map X Z (g \<circ> f)" "f \<in> topspace X \<rightarrow> topspace Y" "continuous_map Y Z g" "inj_on g (topspace Y)"  | 
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2176  | 
shows "open_map X Y f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2177  | 
unfolding open_map_def  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2178  | 
proof (intro strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2179  | 
fix C assume "openin X C"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2180  | 
have "\<And>y c. \<lbrakk>y \<in> topspace Y; g y = g (f c); c \<in> C\<rbrakk> \<Longrightarrow> y \<in> f ` C"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2181  | 
using \<open>openin X C\<close> assms openin_subset inj_onD by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2182  | 
then  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2183  | 
  have "f ` C = {x \<in> topspace Y. g x \<in> (g \<circ> f) ` C}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2184  | 
using \<open>openin X C\<close> assms(2) openin_subset by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2185  | 
moreover have "openin Z ((g \<circ> f) ` C)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2186  | 
using \<open>openin X C\<close> assms(1) open_map_def by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2187  | 
ultimately show "openin Y (f ` C)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2188  | 
using assms(3) openin_continuous_map_preimage by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2189  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2190  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2191  | 
subsection\<open>Quotient maps\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2192  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2193  | 
definition quotient_map where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2194  | 
"quotient_map X X' f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2195  | 
f ` (topspace X) = topspace X' \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2196  | 
        (\<forall>U. U \<subseteq> topspace X' \<longrightarrow> (openin X {x. x \<in> topspace X \<and> f x \<in> U} \<longleftrightarrow> openin X' U))"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2197  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2198  | 
lemma quotient_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2199  | 
assumes "quotient_map X X' f" "\<And>x. x \<in> topspace X \<Longrightarrow> f x = g x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2200  | 
shows "quotient_map X X' g"  | 
| 77234 | 2201  | 
by (smt (verit) Collect_cong assms image_cong quotient_map_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2202  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2203  | 
lemma quotient_map_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2204  | 
assumes f: "quotient_map X X' f" and g: "quotient_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2205  | 
shows "quotient_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2206  | 
unfolding quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2207  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2208  | 
show "(g \<circ> f) ` topspace X = topspace X''"  | 
| 69661 | 2209  | 
using assms by (simp only: image_comp [symmetric]) (simp add: quotient_map_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2210  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2211  | 
fix U''  | 
| 77234 | 2212  | 
assume U'': "U'' \<subseteq> topspace X''"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2213  | 
  define U' where "U' \<equiv> {y \<in> topspace X'. g y \<in> U''}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2214  | 
have "U' \<subseteq> topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2215  | 
by (auto simp add: U'_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2216  | 
  then have U': "openin X {x \<in> topspace X. f x \<in> U'} = openin X' U'"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2217  | 
using assms unfolding quotient_map_def by simp  | 
| 77234 | 2218  | 
  have "{x \<in> topspace X. f x \<in> topspace X' \<and> g (f x) \<in> U''} = {x \<in> topspace X. (g \<circ> f) x \<in> U''}"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2219  | 
using f quotient_map_def by fastforce  | 
| 77234 | 2220  | 
  then show "openin X {x \<in> topspace X. (g \<circ> f) x \<in> U''} = openin X'' U''"
 | 
2221  | 
by (smt (verit, best) Collect_cong U' U'_def U'' g mem_Collect_eq quotient_map_def)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2222  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2223  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2224  | 
lemma quotient_map_from_composition:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2225  | 
assumes f: "continuous_map X X' f" and g: "continuous_map X' X'' g" and gf: "quotient_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2226  | 
shows "quotient_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2227  | 
unfolding quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2228  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2229  | 
show "g ` topspace X' = topspace X''"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2230  | 
using assms unfolding continuous_map_def quotient_map_def by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2231  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2232  | 
fix U'' :: "'c set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2233  | 
assume U'': "U'' \<subseteq> topspace X''"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2234  | 
  have eq: "{x \<in> topspace X. g (f x) \<in> U''} = {x \<in> topspace X. f x \<in> {y. y \<in> topspace X' \<and> g y \<in> U''}}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2235  | 
using continuous_map_def f by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2236  | 
  show "openin X' {x \<in> topspace X'. g x \<in> U''} = openin X'' U''"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2237  | 
using assms unfolding continuous_map_def quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2238  | 
by (metis (mono_tags, lifting) Collect_cong U'' comp_apply eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2239  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2240  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2241  | 
lemma quotient_imp_continuous_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2242  | 
"quotient_map X X' f \<Longrightarrow> continuous_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2243  | 
by (simp add: continuous_map openin_subset quotient_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2244  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2245  | 
lemma quotient_imp_surjective_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2246  | 
"quotient_map X X' f \<Longrightarrow> f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2247  | 
by (simp add: quotient_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2248  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2249  | 
lemma quotient_map_closedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2250  | 
"quotient_map X X' f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2251  | 
f ` (topspace X) = topspace X' \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2252  | 
        (\<forall>U. U \<subseteq> topspace X' \<longrightarrow> (closedin X {x. x \<in> topspace X \<and> f x \<in> U} \<longleftrightarrow> closedin X' U))"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2253  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2254  | 
  have eq: "(topspace X - {x \<in> topspace X. f x \<in> U'}) = {x \<in> topspace X. f x \<in> topspace X' \<and> f x \<notin> U'}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2255  | 
if "f ` topspace X = topspace X'" "U' \<subseteq> topspace X'" for U'  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2256  | 
using that by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2257  | 
  have "(\<forall>U\<subseteq>topspace X'. openin X {x \<in> topspace X. f x \<in> U} = openin X' U) =
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2258  | 
          (\<forall>U\<subseteq>topspace X'. closedin X {x \<in> topspace X. f x \<in> U} = closedin X' U)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2259  | 
if "f ` topspace X = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2260  | 
proof (rule iffI; intro allI impI subsetI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2261  | 
fix U'  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2262  | 
    assume *[rule_format]: "\<forall>U\<subseteq>topspace X'. openin X {x \<in> topspace X. f x \<in> U} = openin X' U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2263  | 
and U': "U' \<subseteq> topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2264  | 
    show "closedin X {x \<in> topspace X. f x \<in> U'} = closedin X' U'"
 | 
| 69286 | 2265  | 
using U' by (auto simp add: closedin_def simp flip: * [of "topspace X' - U'"] eq [OF that])  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2266  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2267  | 
fix U' :: "'b set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2268  | 
    assume *[rule_format]: "\<forall>U\<subseteq>topspace X'. closedin X {x \<in> topspace X. f x \<in> U} = closedin X' U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2269  | 
and U': "U' \<subseteq> topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2270  | 
    show "openin X {x \<in> topspace X. f x \<in> U'} = openin X' U'"
 | 
| 69286 | 2271  | 
using U' by (auto simp add: openin_closedin_eq simp flip: * [of "topspace X' - U'"] eq [OF that])  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2272  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2273  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2274  | 
unfolding quotient_map_def by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2275  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2276  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2277  | 
lemma continuous_open_imp_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2278  | 
assumes "continuous_map X X' f" and om: "open_map X X' f" and feq: "f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2279  | 
shows "quotient_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2280  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2281  | 
  { fix U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2282  | 
    assume U: "U \<subseteq> topspace X'" and "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2283  | 
    then have ope: "openin X' (f ` {x \<in> topspace X. f x \<in> U})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2284  | 
using om unfolding open_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2285  | 
then have "openin X' U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2286  | 
using U feq by (subst openin_subopen) force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2287  | 
}  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2288  | 
  moreover have "openin X {x \<in> topspace X. f x \<in> U}" if "U \<subseteq> topspace X'" and "openin X' U" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2289  | 
using that assms unfolding continuous_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2290  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2291  | 
unfolding quotient_map_def using assms by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2292  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2293  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2294  | 
lemma continuous_closed_imp_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2295  | 
assumes "continuous_map X X' f" and om: "closed_map X X' f" and feq: "f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2296  | 
shows "quotient_map X X' f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2297  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2298  | 
  have "f ` {x \<in> topspace X. f x \<in> U} = U" if "U \<subseteq> topspace X'" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2299  | 
using that feq by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2300  | 
with assms show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2301  | 
unfolding quotient_map_closedin closed_map_def continuous_map_closedin by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2302  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2303  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2304  | 
lemma continuous_open_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2305  | 
"\<lbrakk>continuous_map X X' f; open_map X X' f\<rbrakk> \<Longrightarrow> quotient_map X X' f \<longleftrightarrow> f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2306  | 
by (meson continuous_open_imp_quotient_map quotient_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2307  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2308  | 
lemma continuous_closed_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2309  | 
"\<lbrakk>continuous_map X X' f; closed_map X X' f\<rbrakk> \<Longrightarrow> quotient_map X X' f \<longleftrightarrow> f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2310  | 
by (meson continuous_closed_imp_quotient_map quotient_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2311  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2312  | 
lemma injective_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2313  | 
assumes "inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2314  | 
shows "quotient_map X X' f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2315  | 
continuous_map X X' f \<and> open_map X X' f \<and> closed_map X X' f \<and> f ` (topspace X) = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2316  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2317  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2318  | 
assume L: ?lhs  | 
| 77234 | 2319  | 
have om: "open_map X X' f"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2320  | 
proof (clarsimp simp add: open_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2321  | 
fix U  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2322  | 
assume "openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2323  | 
then have "U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2324  | 
by (simp add: openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2325  | 
    moreover have "{x \<in> topspace X. f x \<in> f ` U} = U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2326  | 
using \<open>U \<subseteq> topspace X\<close> assms inj_onD by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2327  | 
ultimately show "openin X' (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2328  | 
using L unfolding quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2329  | 
by (metis (no_types, lifting) Collect_cong \<open>openin X U\<close> image_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2330  | 
qed  | 
| 77234 | 2331  | 
then have "closed_map X X' f"  | 
2332  | 
by (simp add: L assms bijective_open_imp_closed_map quotient_imp_surjective_map)  | 
|
2333  | 
then show ?rhs  | 
|
2334  | 
using L om by (simp add: quotient_imp_continuous_map quotient_imp_surjective_map)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2335  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2336  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2337  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2338  | 
by (simp add: continuous_closed_imp_quotient_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2339  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2340  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2341  | 
lemma continuous_compose_quotient_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2342  | 
assumes f: "quotient_map X X' f" and g: "continuous_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2343  | 
shows "continuous_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2344  | 
unfolding quotient_map_def continuous_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2345  | 
proof (intro conjI ballI allI impI)  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2346  | 
show "g \<in> topspace X' \<rightarrow> topspace X''"  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2347  | 
using assms unfolding quotient_map_def Pi_iff  | 
| 
73932
 
fd21b4a93043
added opaque_combs and renamed hide_lams to opaque_lifting
 
desharna 
parents: 
72608 
diff
changeset
 | 
2348  | 
by (metis (no_types, opaque_lifting) continuous_map_image_subset_topspace image_comp image_subset_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2349  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2350  | 
fix U'' :: "'c set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2351  | 
assume U'': "openin X'' U''"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2352  | 
have "f ` topspace X = topspace X'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2353  | 
by (simp add: f quotient_imp_surjective_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2354  | 
  then have eq: "{x \<in> topspace X. f x \<in> topspace X' \<and> g (f x) \<in> U} = {x \<in> topspace X. g (f x) \<in> U}" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2355  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2356  | 
  have "openin X {x \<in> topspace X. f x \<in> topspace X' \<and> g (f x) \<in> U''}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2357  | 
unfolding eq using U'' g openin_continuous_map_preimage by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2358  | 
  then have *: "openin X {x \<in> topspace X. f x \<in> {x \<in> topspace X'. g x \<in> U''}}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2359  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2360  | 
  show "openin X' {x \<in> topspace X'. g x \<in> U''}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2361  | 
using f unfolding quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2362  | 
by (metis (no_types) Collect_subset *)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2363  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2364  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2365  | 
lemma continuous_compose_quotient_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2366  | 
"quotient_map X X' f \<Longrightarrow> continuous_map X X'' (g \<circ> f) \<longleftrightarrow> continuous_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2367  | 
using continuous_compose_quotient_map continuous_map_compose quotient_imp_continuous_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2368  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2369  | 
lemma quotient_map_compose_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2370  | 
"quotient_map X X' f \<Longrightarrow> quotient_map X X'' (g \<circ> f) \<longleftrightarrow> quotient_map X' X'' g"  | 
| 72608 | 2371  | 
by (meson continuous_compose_quotient_map_eq quotient_imp_continuous_map quotient_map_compose quotient_map_from_composition)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2372  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2373  | 
lemma quotient_map_restriction:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2374  | 
  assumes quo: "quotient_map X Y f" and U: "{x \<in> topspace X. f x \<in> V} = U" and disj: "openin Y V \<or> closedin Y V"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2375  | 
shows "quotient_map (subtopology X U) (subtopology Y V) f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2376  | 
using disj  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2377  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2378  | 
assume V: "openin Y V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2379  | 
with U have sub: "U \<subseteq> topspace X" "V \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2380  | 
by (auto simp: openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2381  | 
have fim: "f ` topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2382  | 
     and Y: "\<And>U. U \<subseteq> topspace Y \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U} = openin Y U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2383  | 
using quo unfolding quotient_map_def by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2384  | 
have "openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2385  | 
using U V Y sub(2) by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2386  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2387  | 
unfolding quotient_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2388  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2389  | 
show "f ` topspace (subtopology X U) = topspace (subtopology Y V)"  | 
| 71172 | 2390  | 
using sub U fim by (auto)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2391  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2392  | 
fix Y' :: "'b set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2393  | 
assume "Y' \<subseteq> topspace (subtopology Y V)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2394  | 
then have "Y' \<subseteq> topspace Y" "Y' \<subseteq> V"  | 
| 71172 | 2395  | 
by (simp_all)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2396  | 
    then have eq: "{x \<in> topspace X. x \<in> U \<and> f x \<in> Y'} = {x \<in> topspace X. f x \<in> Y'}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2397  | 
using U by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2398  | 
    then show "openin (subtopology X U) {x \<in> topspace (subtopology X U). f x \<in> Y'} = openin (subtopology Y V) Y'"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2399  | 
using U V Y \<open>openin X U\<close> \<open>Y' \<subseteq> topspace Y\<close> \<open>Y' \<subseteq> V\<close>  | 
| 71172 | 2400  | 
by (simp add: openin_open_subtopology eq) (auto simp: openin_closedin_eq)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2401  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2402  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2403  | 
assume V: "closedin Y V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2404  | 
with U have sub: "U \<subseteq> topspace X" "V \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2405  | 
by (auto simp: closedin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2406  | 
have fim: "f ` topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2407  | 
     and Y: "\<And>U. U \<subseteq> topspace Y \<Longrightarrow> closedin X {x \<in> topspace X. f x \<in> U} = closedin Y U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2408  | 
using quo unfolding quotient_map_closedin by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2409  | 
have "closedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2410  | 
using U V Y sub(2) by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2411  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2412  | 
unfolding quotient_map_closedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2413  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2414  | 
show "f ` topspace (subtopology X U) = topspace (subtopology Y V)"  | 
| 71172 | 2415  | 
using sub U fim by (auto)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2416  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2417  | 
fix Y' :: "'b set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2418  | 
assume "Y' \<subseteq> topspace (subtopology Y V)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2419  | 
then have "Y' \<subseteq> topspace Y" "Y' \<subseteq> V"  | 
| 71172 | 2420  | 
by (simp_all)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2421  | 
    then have eq: "{x \<in> topspace X. x \<in> U \<and> f x \<in> Y'} = {x \<in> topspace X. f x \<in> Y'}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2422  | 
using U by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2423  | 
    then show "closedin (subtopology X U) {x \<in> topspace (subtopology X U). f x \<in> Y'} = closedin (subtopology Y V) Y'"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2424  | 
using U V Y \<open>closedin X U\<close> \<open>Y' \<subseteq> topspace Y\<close> \<open>Y' \<subseteq> V\<close>  | 
| 71172 | 2425  | 
by (simp add: closedin_closed_subtopology eq) (auto simp: closedin_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2426  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2427  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2428  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2429  | 
lemma quotient_map_saturated_open:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2430  | 
"quotient_map X Y f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2431  | 
continuous_map X Y f \<and> f ` (topspace X) = topspace Y \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2432  | 
        (\<forall>U. openin X U \<and> {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U \<longrightarrow> openin Y (f ` U))"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2433  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2434  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2435  | 
assume L: ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2436  | 
then have fim: "f ` topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2437  | 
    and Y: "\<And>U. U \<subseteq> topspace Y \<Longrightarrow> openin Y U = openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2438  | 
unfolding quotient_map_def by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2439  | 
show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2440  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2441  | 
show "continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2442  | 
by (simp add: L quotient_imp_continuous_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2443  | 
show "f ` topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2444  | 
by (simp add: fim)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2445  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2446  | 
fix U :: "'a set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2447  | 
    assume U: "openin X U \<and> {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2448  | 
    then have sub:  "f ` U \<subseteq> topspace Y" and eq: "{x \<in> topspace X. f x \<in> f ` U} = U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2449  | 
using fim openin_subset by fastforce+  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2450  | 
show "openin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2451  | 
by (simp add: sub Y eq U)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2452  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2453  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2454  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2455  | 
  then have YX: "\<And>U. openin Y U \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2456  | 
and fim: "f ` topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2457  | 
       and XY: "\<And>U. \<lbrakk>openin X U; {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U\<rbrakk> \<Longrightarrow> openin Y (f ` U)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2458  | 
by (auto simp: quotient_map_def continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2459  | 
show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2460  | 
proof (simp add: quotient_map_def fim, intro allI impI iffI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2461  | 
fix U :: "'b set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2462  | 
    assume "U \<subseteq> topspace Y" and X: "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2463  | 
    have feq: "f ` {x \<in> topspace X. f x \<in> U} = U"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2464  | 
using \<open>U \<subseteq> topspace Y\<close> fim by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2465  | 
show "openin Y U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2466  | 
using XY [OF X] by (simp add: feq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2467  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2468  | 
fix U :: "'b set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2469  | 
assume "U \<subseteq> topspace Y" and Y: "openin Y U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2470  | 
    show "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2471  | 
by (metis YX [OF Y])  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2472  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2473  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2474  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2475  | 
lemma quotient_map_saturated_closed:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2476  | 
"quotient_map X Y f \<longleftrightarrow>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2477  | 
continuous_map X Y f \<and> f ` (topspace X) = topspace Y \<and>  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2478  | 
        (\<forall>U. closedin X U \<and> {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U \<longrightarrow> closedin Y (f ` U))"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2479  | 
(is "?lhs = ?rhs")  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2480  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2481  | 
assume L: ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2482  | 
then obtain fim: "f ` topspace X = topspace Y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2483  | 
    and Y: "\<And>U. U \<subseteq> topspace Y \<Longrightarrow> closedin Y U = closedin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2484  | 
by (simp add: quotient_map_closedin)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2485  | 
show ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2486  | 
proof (intro conjI allI impI)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2487  | 
show "continuous_map X Y f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2488  | 
by (simp add: L quotient_imp_continuous_map)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2489  | 
show "f ` topspace X = topspace Y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2490  | 
by (simp add: fim)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2491  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2492  | 
fix U :: "'a set"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2493  | 
    assume U: "closedin X U \<and> {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2494  | 
    then have sub:  "f ` U \<subseteq> topspace Y" and eq: "{x \<in> topspace X. f x \<in> f ` U} = U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2495  | 
using fim closedin_subset by fastforce+  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2496  | 
show "closedin Y (f ` U)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2497  | 
by (simp add: sub Y eq U)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2498  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2499  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2500  | 
assume ?rhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2501  | 
  then obtain YX: "\<And>U. closedin Y U \<Longrightarrow> closedin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2502  | 
and fim: "f ` topspace X = topspace Y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2503  | 
    and XY: "\<And>U. \<lbrakk>closedin X U; {x \<in> topspace X. f x \<in> f ` U} \<subseteq> U\<rbrakk> \<Longrightarrow> closedin Y (f ` U)"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2504  | 
by (simp add: continuous_map_closedin)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2505  | 
show ?lhs  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2506  | 
proof (simp add: quotient_map_closedin fim, intro allI impI iffI)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2507  | 
fix U :: "'b set"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2508  | 
    assume "U \<subseteq> topspace Y" and X: "closedin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2509  | 
    have feq: "f ` {x \<in> topspace X. f x \<in> U} = U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2510  | 
using \<open>U \<subseteq> topspace Y\<close> fim by auto  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2511  | 
show "closedin Y U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2512  | 
using XY [OF X] by (simp add: feq)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2513  | 
next  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2514  | 
fix U :: "'b set"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2515  | 
assume "U \<subseteq> topspace Y" and Y: "closedin Y U"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2516  | 
    show "closedin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2517  | 
by (metis YX [OF Y])  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2518  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2519  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2520  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2521  | 
lemma quotient_map_onto_image:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2522  | 
  assumes "f ` topspace X \<subseteq> topspace Y" and U: "\<And>U. U \<subseteq> topspace Y \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U} = openin Y U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2523  | 
shows "quotient_map X (subtopology Y (f ` topspace X)) f"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2524  | 
unfolding quotient_map_def topspace_subtopology  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2525  | 
proof (intro conjI strip)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2526  | 
fix U  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2527  | 
assume "U \<subseteq> topspace Y \<inter> f ` topspace X"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2528  | 
  with U have "openin X {x \<in> topspace X. f x \<in> U} \<Longrightarrow> \<exists>x. openin Y x \<and> U = f ` topspace X \<inter> x"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2529  | 
by fastforce  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2530  | 
  moreover have "\<exists>x. openin Y x \<and> U = f ` topspace X \<inter> x \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2531  | 
by (metis (mono_tags, lifting) Collect_cong IntE IntI U image_eqI openin_subset)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2532  | 
  ultimately show "openin X {x \<in> topspace X. f x \<in> U} = openin (subtopology Y (f ` topspace X)) U"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2533  | 
by (force simp: openin_subtopology_alt image_iff)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2534  | 
qed (use assms in auto)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2535  | 
|
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2536  | 
lemma quotient_map_lift_exists:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2537  | 
assumes f: "quotient_map X Y f" and h: "continuous_map X Z h"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2538  | 
and "\<And>x y. \<lbrakk>x \<in> topspace X; y \<in> topspace X; f x = f y\<rbrakk> \<Longrightarrow> h x = h y"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2539  | 
obtains g where "continuous_map Y Z g" "g ` topspace Y = h ` topspace X"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2540  | 
"\<And>x. x \<in> topspace X \<Longrightarrow> g(f x) = h x"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2541  | 
proof -  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2542  | 
obtain g where g: "\<And>x. x \<in> topspace X \<Longrightarrow> h x = g(f x)"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2543  | 
using function_factors_left_gen[of "\<lambda>x. x \<in> topspace X" f h] assms by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2544  | 
show ?thesis  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2545  | 
proof  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2546  | 
show "g ` topspace Y = h ` topspace X"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2547  | 
using f g by (force dest!: quotient_imp_surjective_map)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2548  | 
show "continuous_map Y Z g"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2549  | 
by (smt (verit) f g h continuous_compose_quotient_map_eq continuous_map_eq o_def)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2550  | 
qed (simp add: g)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2551  | 
qed  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2552  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2553  | 
subsection\<open> Separated Sets\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2554  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2555  | 
definition separatedin :: "'a topology \<Rightarrow> 'a set \<Rightarrow> 'a set \<Rightarrow> bool"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2556  | 
where "separatedin X S T \<equiv>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2557  | 
S \<subseteq> topspace X \<and> T \<subseteq> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2558  | 
           S \<inter> X closure_of T = {} \<and> T \<inter> X closure_of S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2559  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2560  | 
lemma separatedin_empty [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2561  | 
     "separatedin X S {} \<longleftrightarrow> S \<subseteq> topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2562  | 
     "separatedin X {} S \<longleftrightarrow> S \<subseteq> topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2563  | 
by (simp_all add: separatedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2564  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2565  | 
lemma separatedin_refl [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2566  | 
     "separatedin X S S \<longleftrightarrow> S = {}"
 | 
| 77234 | 2567  | 
by (metis closure_of_subset empty_subsetI inf.orderE separatedin_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2568  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2569  | 
lemma separatedin_sym:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2570  | 
"separatedin X S T \<longleftrightarrow> separatedin X T S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2571  | 
by (auto simp: separatedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2572  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2573  | 
lemma separatedin_imp_disjoint:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2574  | 
"separatedin X S T \<Longrightarrow> disjnt S T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2575  | 
by (meson closure_of_subset disjnt_def disjnt_subset2 separatedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2576  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2577  | 
lemma separatedin_mono:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2578  | 
"\<lbrakk>separatedin X S T; S' \<subseteq> S; T' \<subseteq> T\<rbrakk> \<Longrightarrow> separatedin X S' T'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2579  | 
unfolding separatedin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2580  | 
using closure_of_mono by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2581  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2582  | 
lemma separatedin_open_sets:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2583  | 
"\<lbrakk>openin X S; openin X T\<rbrakk> \<Longrightarrow> separatedin X S T \<longleftrightarrow> disjnt S T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2584  | 
unfolding disjnt_def separatedin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2585  | 
by (auto simp: openin_Int_closure_of_eq_empty openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2586  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2587  | 
lemma separatedin_closed_sets:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2588  | 
"\<lbrakk>closedin X S; closedin X T\<rbrakk> \<Longrightarrow> separatedin X S T \<longleftrightarrow> disjnt S T"  | 
| 
71840
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
2589  | 
unfolding closure_of_eq disjnt_def separatedin_def  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
2590  | 
by (metis closedin_def closure_of_eq inf_commute)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2591  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2592  | 
lemma separatedin_subtopology:  | 
| 77234 | 2593  | 
"separatedin (subtopology X U) S T \<longleftrightarrow> S \<subseteq> U \<and> T \<subseteq> U \<and> separatedin X S T"  | 
| 72608 | 2594  | 
by (auto simp: separatedin_def closure_of_subtopology Int_ac disjoint_iff elim!: inf.orderE)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2595  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2596  | 
lemma separatedin_discrete_topology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2597  | 
"separatedin (discrete_topology U) S T \<longleftrightarrow> S \<subseteq> U \<and> T \<subseteq> U \<and> disjnt S T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2598  | 
by (metis openin_discrete_topology separatedin_def separatedin_open_sets topspace_discrete_topology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2599  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2600  | 
lemma separated_eq_distinguishable:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2601  | 
   "separatedin X {x} {y} \<longleftrightarrow>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2602  | 
x \<in> topspace X \<and> y \<in> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2603  | 
(\<exists>U. openin X U \<and> x \<in> U \<and> (y \<notin> U)) \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2604  | 
(\<exists>v. openin X v \<and> y \<in> v \<and> (x \<notin> v))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2605  | 
by (force simp: separatedin_def closure_of_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2606  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2607  | 
lemma separatedin_Un [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2608  | 
"separatedin X S (T \<union> U) \<longleftrightarrow> separatedin X S T \<and> separatedin X S U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2609  | 
"separatedin X (S \<union> T) U \<longleftrightarrow> separatedin X S U \<and> separatedin X T U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2610  | 
by (auto simp: separatedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2611  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2612  | 
lemma separatedin_Union:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2613  | 
"finite \<F> \<Longrightarrow> separatedin X S (\<Union>\<F>) \<longleftrightarrow> S \<subseteq> topspace X \<and> (\<forall>T \<in> \<F>. separatedin X S T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2614  | 
"finite \<F> \<Longrightarrow> separatedin X (\<Union>\<F>) S \<longleftrightarrow> (\<forall>T \<in> \<F>. separatedin X S T) \<and> S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2615  | 
by (auto simp: separatedin_def closure_of_Union)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2616  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2617  | 
lemma separatedin_openin_diff:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2618  | 
"\<lbrakk>openin X S; openin X T\<rbrakk> \<Longrightarrow> separatedin X (S - T) (T - S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2619  | 
unfolding separatedin_def  | 
| 72608 | 2620  | 
by (metis Diff_Int_distrib2 Diff_disjoint Diff_empty Diff_mono empty_Diff empty_subsetI openin_Int_closure_of_eq_empty openin_subset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2621  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2622  | 
lemma separatedin_closedin_diff:  | 
| 72608 | 2623  | 
assumes "closedin X S" "closedin X T"  | 
2624  | 
shows "separatedin X (S - T) (T - S)"  | 
|
2625  | 
proof -  | 
|
2626  | 
have "S - T \<subseteq> topspace X" "T - S \<subseteq> topspace X"  | 
|
2627  | 
using assms closedin_subset by auto  | 
|
2628  | 
with assms show ?thesis  | 
|
2629  | 
by (simp add: separatedin_def Diff_Int_distrib2 closure_of_minimal inf_absorb2)  | 
|
2630  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2631  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2632  | 
lemma separation_closedin_Un_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2633  | 
"separatedin X S T \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2634  | 
S \<subseteq> topspace X \<and> T \<subseteq> topspace X \<and> disjnt S T \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2635  | 
closedin (subtopology X (S \<union> T)) S \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2636  | 
closedin (subtopology X (S \<union> T)) T"  | 
| 72608 | 2637  | 
by (auto simp add: separatedin_def closedin_Int_closure_of disjnt_iff dest: closure_of_subset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2638  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2639  | 
lemma separation_openin_Un_gen:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2640  | 
"separatedin X S T \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2641  | 
S \<subseteq> topspace X \<and> T \<subseteq> topspace X \<and> disjnt S T \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2642  | 
openin (subtopology X (S \<union> T)) S \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2643  | 
openin (subtopology X (S \<union> T)) T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2644  | 
unfolding openin_closedin_eq topspace_subtopology separation_closedin_Un_gen disjnt_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2645  | 
by (auto simp: Diff_triv Int_commute Un_Diff inf_absorb1 topspace_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2646  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2647  | 
lemma separatedin_full:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2648  | 
"S \<union> T = topspace X  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2649  | 
\<Longrightarrow> separatedin X S T \<longleftrightarrow> disjnt S T \<and> closedin X S \<and> openin X S \<and> closedin X T \<and> openin X T"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2650  | 
by (metis separatedin_open_sets separation_closedin_Un_gen separation_openin_Un_gen subtopology_topspace)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
2651  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2652  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2653  | 
subsection\<open>Homeomorphisms\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2654  | 
text\<open>(1-way and 2-way versions may be useful in places)\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2655  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2656  | 
definition homeomorphic_map :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2657  | 
where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2658  | 
"homeomorphic_map X Y f \<equiv> quotient_map X Y f \<and> inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2659  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2660  | 
definition homeomorphic_maps :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> ('b \<Rightarrow> 'a) \<Rightarrow> bool"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2661  | 
where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2662  | 
"homeomorphic_maps X Y f g \<equiv>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2663  | 
continuous_map X Y f \<and> continuous_map Y X g \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2664  | 
(\<forall>x \<in> topspace X. g(f x) = x) \<and> (\<forall>y \<in> topspace Y. f(g y) = y)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2665  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2666  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2667  | 
lemma homeomorphic_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2668  | 
"\<lbrakk>homeomorphic_map X Y f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> homeomorphic_map X Y g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2669  | 
by (meson homeomorphic_map_def inj_on_cong quotient_map_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2670  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2671  | 
lemma homeomorphic_maps_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2672  | 
"\<lbrakk>homeomorphic_maps X Y f g;  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2673  | 
\<And>x. x \<in> topspace X \<Longrightarrow> f x = f' x; \<And>y. y \<in> topspace Y \<Longrightarrow> g y = g' y\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2674  | 
\<Longrightarrow> homeomorphic_maps X Y f' g'"  | 
| 72608 | 2675  | 
unfolding homeomorphic_maps_def  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2676  | 
by (metis continuous_map_eq continuous_map_image_subset_topspace image_subset_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2677  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2678  | 
lemma homeomorphic_maps_sym:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2679  | 
"homeomorphic_maps X Y f g \<longleftrightarrow> homeomorphic_maps Y X g f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2680  | 
by (auto simp: homeomorphic_maps_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2681  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2682  | 
lemma homeomorphic_maps_id:  | 
| 72608 | 2683  | 
"homeomorphic_maps X Y id id \<longleftrightarrow> Y = X" (is "?lhs = ?rhs")  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2684  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2685  | 
assume L: ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2686  | 
then have "topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2687  | 
by (auto simp: homeomorphic_maps_def continuous_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2688  | 
with L show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2689  | 
unfolding homeomorphic_maps_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2690  | 
by (metis topology_finer_continuous_id topology_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2691  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2692  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2693  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2694  | 
unfolding homeomorphic_maps_def by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2695  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2696  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2697  | 
lemma homeomorphic_map_id [simp]: "homeomorphic_map X Y id \<longleftrightarrow> Y = X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2698  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2699  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2700  | 
assume L: ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2701  | 
then have eq: "topspace X = topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2702  | 
by (auto simp: homeomorphic_map_def continuous_map_def quotient_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2703  | 
then have "\<And>S. openin X S \<longrightarrow> openin Y S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2704  | 
by (meson L homeomorphic_map_def injective_quotient_map topology_finer_open_id)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2705  | 
then show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2706  | 
using L unfolding homeomorphic_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2707  | 
by (metis eq quotient_imp_continuous_map topology_eq topology_finer_continuous_id)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2708  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2709  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2710  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2711  | 
unfolding homeomorphic_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2712  | 
by (simp add: closed_map_id continuous_closed_imp_quotient_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2713  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2714  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2715  | 
lemma homeomorphic_map_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2716  | 
assumes "homeomorphic_map X Y f" "homeomorphic_map Y X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2717  | 
shows "homeomorphic_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2718  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2719  | 
have "inj_on g (f ` topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2720  | 
by (metis (no_types) assms homeomorphic_map_def quotient_imp_surjective_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2721  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2722  | 
using assms by (meson comp_inj_on homeomorphic_map_def quotient_map_compose_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2723  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2724  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2725  | 
lemma homeomorphic_maps_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2726  | 
"homeomorphic_maps X Y f h \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2727  | 
homeomorphic_maps Y X'' g k  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2728  | 
\<Longrightarrow> homeomorphic_maps X X'' (g \<circ> f) (h \<circ> k)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2729  | 
unfolding homeomorphic_maps_def  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2730  | 
by (auto simp: continuous_map_compose; simp add: continuous_map_def Pi_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2731  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2732  | 
lemma homeomorphic_eq_everything_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2733  | 
"homeomorphic_map X Y f \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2734  | 
continuous_map X Y f \<and> open_map X Y f \<and> closed_map X Y f \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2735  | 
f ` (topspace X) = topspace Y \<and> inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2736  | 
unfolding homeomorphic_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2737  | 
by (force simp: injective_quotient_map intro: injective_quotient_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2738  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2739  | 
lemma homeomorphic_imp_continuous_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2740  | 
"homeomorphic_map X Y f \<Longrightarrow> continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2741  | 
by (simp add: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2742  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2743  | 
lemma homeomorphic_imp_open_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2744  | 
"homeomorphic_map X Y f \<Longrightarrow> open_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2745  | 
by (simp add: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2746  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2747  | 
lemma homeomorphic_imp_closed_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2748  | 
"homeomorphic_map X Y f \<Longrightarrow> closed_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2749  | 
by (simp add: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2750  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2751  | 
lemma homeomorphic_imp_surjective_map:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2752  | 
"homeomorphic_map X Y f \<Longrightarrow> f ` topspace X = topspace Y"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2753  | 
using homeomorphic_eq_everything_map by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2754  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2755  | 
lemma homeomorphic_imp_injective_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2756  | 
"homeomorphic_map X Y f \<Longrightarrow> inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2757  | 
by (simp add: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2758  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2759  | 
lemma bijective_open_imp_homeomorphic_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2760  | 
"\<lbrakk>continuous_map X Y f; open_map X Y f; f ` (topspace X) = topspace Y; inj_on f (topspace X)\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2761  | 
\<Longrightarrow> homeomorphic_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2762  | 
by (simp add: homeomorphic_map_def continuous_open_imp_quotient_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2763  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2764  | 
lemma bijective_closed_imp_homeomorphic_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2765  | 
"\<lbrakk>continuous_map X Y f; closed_map X Y f; f ` (topspace X) = topspace Y; inj_on f (topspace X)\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2766  | 
\<Longrightarrow> homeomorphic_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2767  | 
by (simp add: continuous_closed_quotient_map homeomorphic_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2768  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2769  | 
lemma open_eq_continuous_inverse_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2770  | 
assumes X: "\<And>x. x \<in> topspace X \<Longrightarrow> f x \<in> topspace Y \<and> g(f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2771  | 
and Y: "\<And>y. y \<in> topspace Y \<Longrightarrow> g y \<in> topspace X \<and> f(g y) = y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2772  | 
shows "open_map X Y f \<longleftrightarrow> continuous_map Y X g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2773  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2774  | 
  have eq: "{x \<in> topspace Y. g x \<in> U} = f ` U" if "openin X U" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2775  | 
using openin_subset [OF that] by (force simp: X Y image_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2776  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2777  | 
by (auto simp: Y open_map_def continuous_map_def eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2778  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2779  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2780  | 
lemma closed_eq_continuous_inverse_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2781  | 
assumes X: "\<And>x. x \<in> topspace X \<Longrightarrow> f x \<in> topspace Y \<and> g(f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2782  | 
and Y: "\<And>y. y \<in> topspace Y \<Longrightarrow> g y \<in> topspace X \<and> f(g y) = y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2783  | 
shows "closed_map X Y f \<longleftrightarrow> continuous_map Y X g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2784  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2785  | 
  have eq: "{x \<in> topspace Y. g x \<in> U} = f ` U" if "closedin X U" for U
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2786  | 
using closedin_subset [OF that] by (force simp: X Y image_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2787  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2788  | 
by (auto simp: Y closed_map_def continuous_map_closedin eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2789  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2790  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2791  | 
lemma homeomorphic_maps_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2792  | 
"homeomorphic_maps X Y f g \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2793  | 
homeomorphic_map X Y f \<and> homeomorphic_map Y X g \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2794  | 
(\<forall>x \<in> topspace X. g(f x) = x) \<and> (\<forall>y \<in> topspace Y. f(g y) = y)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2795  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2796  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2797  | 
assume ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2798  | 
then have L: "continuous_map X Y f" "continuous_map Y X g" "\<forall>x\<in>topspace X. g (f x) = x" "\<forall>x'\<in>topspace Y. f (g x') = x'"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2799  | 
by (auto simp: homeomorphic_maps_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2800  | 
show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2801  | 
proof (intro conjI bijective_open_imp_homeomorphic_map L)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2802  | 
show "open_map X Y f"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2803  | 
using L using open_eq_continuous_inverse_map [of concl: X Y f g]  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2804  | 
by (simp add: continuous_map_def Pi_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2805  | 
show "open_map Y X g"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2806  | 
using L using open_eq_continuous_inverse_map [of concl: Y X g f]  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2807  | 
by (simp add: continuous_map_def Pi_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2808  | 
show "f ` topspace X = topspace Y" "g ` topspace Y = topspace X"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
2809  | 
using L by (force simp: continuous_map_closedin Pi_iff)+  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2810  | 
show "inj_on f (topspace X)" "inj_on g (topspace Y)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2811  | 
using L unfolding inj_on_def by metis+  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2812  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2813  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2814  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2815  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2816  | 
by (auto simp: homeomorphic_maps_def homeomorphic_imp_continuous_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2817  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2818  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2819  | 
lemma homeomorphic_maps_imp_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2820  | 
"homeomorphic_maps X Y f g \<Longrightarrow> homeomorphic_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2821  | 
using homeomorphic_maps_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2822  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2823  | 
lemma homeomorphic_map_maps:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2824  | 
"homeomorphic_map X Y f \<longleftrightarrow> (\<exists>g. homeomorphic_maps X Y f g)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2825  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2826  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2827  | 
assume ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2828  | 
then have L: "continuous_map X Y f" "open_map X Y f" "closed_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2829  | 
"f ` (topspace X) = topspace Y" "inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2830  | 
by (auto simp: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2831  | 
have X: "\<And>x. x \<in> topspace X \<Longrightarrow> f x \<in> topspace Y \<and> inv_into (topspace X) f (f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2832  | 
using L by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2833  | 
have Y: "\<And>y. y \<in> topspace Y \<Longrightarrow> inv_into (topspace X) f y \<in> topspace X \<and> f (inv_into (topspace X) f y) = y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2834  | 
by (simp add: L f_inv_into_f inv_into_into)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2835  | 
have "homeomorphic_maps X Y f (inv_into (topspace X) f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2836  | 
unfolding homeomorphic_maps_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2837  | 
proof (intro conjI L)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2838  | 
show "continuous_map Y X (inv_into (topspace X) f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2839  | 
by (simp add: L X Y flip: open_eq_continuous_inverse_map [where f=f])  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2840  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2841  | 
show "\<forall>x\<in>topspace X. inv_into (topspace X) f (f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2842  | 
"\<forall>y\<in>topspace Y. f (inv_into (topspace X) f y) = y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2843  | 
using X Y by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2844  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2845  | 
then show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2846  | 
by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2847  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2848  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2849  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2850  | 
using homeomorphic_maps_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2851  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2852  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2853  | 
lemma homeomorphic_maps_involution:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2854  | 
"\<lbrakk>continuous_map X X f; \<And>x. x \<in> topspace X \<Longrightarrow> f(f x) = x\<rbrakk> \<Longrightarrow> homeomorphic_maps X X f f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2855  | 
by (auto simp: homeomorphic_maps_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2856  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2857  | 
lemma homeomorphic_map_involution:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2858  | 
"\<lbrakk>continuous_map X X f; \<And>x. x \<in> topspace X \<Longrightarrow> f(f x) = x\<rbrakk> \<Longrightarrow> homeomorphic_map X X f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2859  | 
using homeomorphic_maps_involution homeomorphic_maps_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2860  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2861  | 
lemma homeomorphic_map_openness:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2862  | 
assumes hom: "homeomorphic_map X Y f" and U: "U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2863  | 
shows "openin Y (f ` U) \<longleftrightarrow> openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2864  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2865  | 
obtain g where "homeomorphic_maps X Y f g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2866  | 
using assms by (auto simp: homeomorphic_map_maps)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2867  | 
then have g: "homeomorphic_map Y X g" and gf: "\<And>x. x \<in> topspace X \<Longrightarrow> g(f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2868  | 
by (auto simp: homeomorphic_maps_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2869  | 
then have "openin X U \<Longrightarrow> openin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2870  | 
using hom homeomorphic_imp_open_map open_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2871  | 
show "openin Y (f ` U) = openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2872  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2873  | 
assume L: "openin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2874  | 
have "U = g ` (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2875  | 
using U gf by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2876  | 
then show "openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2877  | 
by (metis L homeomorphic_imp_open_map open_map_def g)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2878  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2879  | 
assume "openin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2880  | 
then show "openin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2881  | 
using hom homeomorphic_imp_open_map open_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2882  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2883  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2884  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2885  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2886  | 
lemma homeomorphic_map_closedness:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2887  | 
assumes hom: "homeomorphic_map X Y f" and U: "U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2888  | 
shows "closedin Y (f ` U) \<longleftrightarrow> closedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2889  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2890  | 
obtain g where "homeomorphic_maps X Y f g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2891  | 
using assms by (auto simp: homeomorphic_map_maps)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2892  | 
then have g: "homeomorphic_map Y X g" and gf: "\<And>x. x \<in> topspace X \<Longrightarrow> g(f x) = x"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2893  | 
by (auto simp: homeomorphic_maps_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2894  | 
then have "closedin X U \<Longrightarrow> closedin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2895  | 
using hom homeomorphic_imp_closed_map closed_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2896  | 
show "closedin Y (f ` U) = closedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2897  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2898  | 
assume L: "closedin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2899  | 
have "U = g ` (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2900  | 
using U gf by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2901  | 
then show "closedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2902  | 
by (metis L homeomorphic_imp_closed_map closed_map_def g)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2903  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2904  | 
assume "closedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2905  | 
then show "closedin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2906  | 
using hom homeomorphic_imp_closed_map closed_map_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2907  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2908  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2909  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2910  | 
lemma homeomorphic_map_openness_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2911  | 
"homeomorphic_map X Y f \<Longrightarrow> openin X U \<longleftrightarrow> U \<subseteq> topspace X \<and> openin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2912  | 
by (meson homeomorphic_map_openness openin_closedin_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2913  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2914  | 
lemma homeomorphic_map_closedness_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2915  | 
"homeomorphic_map X Y f \<Longrightarrow> closedin X U \<longleftrightarrow> U \<subseteq> topspace X \<and> closedin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2916  | 
by (meson closedin_subset homeomorphic_map_closedness)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2917  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2918  | 
lemma all_openin_homeomorphic_image:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2919  | 
assumes "homeomorphic_map X Y f"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2920  | 
shows "(\<forall>V. openin Y V \<longrightarrow> P V) \<longleftrightarrow> (\<forall>U. openin X U \<longrightarrow> P(f ` U))"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2921  | 
by (metis (no_types, lifting) assms homeomorphic_eq_everything_map homeomorphic_map_openness openin_subset subset_image_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2922  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2923  | 
lemma all_closedin_homeomorphic_image:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2924  | 
assumes "homeomorphic_map X Y f"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2925  | 
shows "(\<forall>V. closedin Y V \<longrightarrow> P V) \<longleftrightarrow> (\<forall>U. closedin X U \<longrightarrow> P(f ` U))"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
2926  | 
by (metis (no_types, lifting) assms closedin_subset homeomorphic_eq_everything_map homeomorphic_map_closedness subset_image_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2927  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2928  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2929  | 
lemma homeomorphic_map_derived_set_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2930  | 
assumes hom: "homeomorphic_map X Y f" and S: "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2931  | 
shows "Y derived_set_of (f ` S) = f ` (X derived_set_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2932  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2933  | 
have fim: "f ` (topspace X) = topspace Y" and inj: "inj_on f (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2934  | 
using hom by (auto simp: homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2935  | 
have iff: "(\<forall>T. x \<in> T \<and> openin X T \<longrightarrow> (\<exists>y. y \<noteq> x \<and> y \<in> S \<and> y \<in> T)) =  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2936  | 
(\<forall>T. T \<subseteq> topspace Y \<longrightarrow> f x \<in> T \<longrightarrow> openin Y T \<longrightarrow> (\<exists>y. y \<noteq> f x \<and> y \<in> f ` S \<and> y \<in> T))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2937  | 
if "x \<in> topspace X" for x  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2938  | 
proof -  | 
| 72608 | 2939  | 
have \<section>: "(x \<in> T \<and> openin X T) = (T \<subseteq> topspace X \<and> f x \<in> f ` T \<and> openin Y (f ` T))" for T  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2940  | 
by (meson hom homeomorphic_map_openness_eq inj inj_on_image_mem_iff that)  | 
| 72608 | 2941  | 
moreover have "(\<exists>y. y \<noteq> x \<and> y \<in> S \<and> y \<in> T) = (\<exists>y. y \<noteq> f x \<and> y \<in> f ` S \<and> y \<in> f ` T)" (is "?lhs = ?rhs")  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2942  | 
if "T \<subseteq> topspace X \<and> f x \<in> f ` T \<and> openin Y (f ` T)" for T  | 
| 77234 | 2943  | 
by (smt (verit, del_insts) S \<open>x \<in> topspace X\<close> image_iff inj inj_on_def subsetD that)  | 
| 72608 | 2944  | 
ultimately show ?thesis  | 
2945  | 
by (auto simp flip: fim simp: all_subset_image)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2946  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2947  | 
  have *: "\<lbrakk>T = f ` S; \<And>x. x \<in> S \<Longrightarrow> P x \<longleftrightarrow> Q(f x)\<rbrakk> \<Longrightarrow> {y. y \<in> T \<and> Q y} = f ` {x \<in> S. P x}" for T S P Q
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2948  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2949  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2950  | 
unfolding derived_set_of_def  | 
| 72608 | 2951  | 
by (rule *) (use fim iff openin_subset in force)+  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2952  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2953  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2954  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2955  | 
lemma homeomorphic_map_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2956  | 
assumes hom: "homeomorphic_map X Y f" and S: "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2957  | 
shows "Y closure_of (f ` S) = f ` (X closure_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2958  | 
unfolding closure_of  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2959  | 
using homeomorphic_imp_surjective_map [OF hom] S  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2960  | 
by (auto simp: in_derived_set_of homeomorphic_map_derived_set_of [OF assms])  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2961  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2962  | 
lemma homeomorphic_map_interior_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2963  | 
assumes hom: "homeomorphic_map X Y f" and S: "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2964  | 
shows "Y interior_of (f ` S) = f ` (X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2965  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2966  | 
  { fix y
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2967  | 
assume "y \<in> topspace Y" and "y \<notin> Y closure_of (topspace Y - f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2968  | 
then have "y \<in> f ` (topspace X - X closure_of (topspace X - S))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2969  | 
using homeomorphic_eq_everything_map [THEN iffD1, OF hom] homeomorphic_map_closure_of [OF hom]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2970  | 
by (metis DiffI Diff_subset S closure_of_subset_topspace inj_on_image_set_diff) }  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2971  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2972  | 
  { fix x
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2973  | 
assume "x \<in> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2974  | 
then have "f x \<in> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2975  | 
using hom homeomorphic_imp_surjective_map by blast }  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2976  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2977  | 
  { fix x
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2978  | 
assume "x \<in> topspace X" and "x \<notin> X closure_of (topspace X - S)" and "f x \<in> Y closure_of (topspace Y - f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2979  | 
then have "False"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2980  | 
using homeomorphic_map_closure_of [OF hom] hom  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2981  | 
unfolding homeomorphic_eq_everything_map  | 
| 
71857
 
d73955442df5
a few new lemmas about functions
 
paulson <lp15@cam.ac.uk> 
parents: 
71840 
diff
changeset
 | 
2982  | 
by (metis Diff_subset S closure_of_subset_topspace inj_on_image_mem_iff inj_on_image_set_diff)  | 
| 
 
d73955442df5
a few new lemmas about functions
 
paulson <lp15@cam.ac.uk> 
parents: 
71840 
diff
changeset
 | 
2983  | 
}  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2984  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2985  | 
by (auto simp: interior_of_closure_of)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2986  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2987  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2988  | 
lemma homeomorphic_map_frontier_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2989  | 
assumes hom: "homeomorphic_map X Y f" and S: "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2990  | 
shows "Y frontier_of (f ` S) = f ` (X frontier_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2991  | 
unfolding frontier_of_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2992  | 
proof (intro equalityI subsetI DiffI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2993  | 
fix y  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2994  | 
assume "y \<in> Y closure_of f ` S - Y interior_of f ` S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2995  | 
then show "y \<in> f ` (X closure_of S - X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2996  | 
using S hom homeomorphic_map_closure_of homeomorphic_map_interior_of by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2997  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2998  | 
fix y  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
2999  | 
assume "y \<in> f ` (X closure_of S - X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3000  | 
then show "y \<in> Y closure_of f ` S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3001  | 
using S hom homeomorphic_map_closure_of by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3002  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3003  | 
fix x  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3004  | 
assume "x \<in> f ` (X closure_of S - X interior_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3005  | 
then obtain y where y: "x = f y" "y \<in> X closure_of S" "y \<notin> X interior_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3006  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3007  | 
then show "x \<notin> Y interior_of f ` S"  | 
| 77234 | 3008  | 
using S hom homeomorphic_map_interior_of y(1)  | 
3009  | 
unfolding homeomorphic_map_def  | 
|
3010  | 
by (smt (verit, ccfv_SIG) in_closure_of inj_on_image_mem_iff interior_of_subset_topspace)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3011  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3012  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3013  | 
lemma homeomorphic_maps_subtopologies:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3014  | 
"\<lbrakk>homeomorphic_maps X Y f g; f ` (topspace X \<inter> S) = topspace Y \<inter> T\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3015  | 
\<Longrightarrow> homeomorphic_maps (subtopology X S) (subtopology Y T) f g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3016  | 
unfolding homeomorphic_maps_def  | 
| 71172 | 3017  | 
by (force simp: continuous_map_from_subtopology continuous_map_in_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3018  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3019  | 
lemma homeomorphic_maps_subtopologies_alt:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3020  | 
"\<lbrakk>homeomorphic_maps X Y f g; f ` (topspace X \<inter> S) \<subseteq> T; g ` (topspace Y \<inter> T) \<subseteq> S\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3021  | 
\<Longrightarrow> homeomorphic_maps (subtopology X S) (subtopology Y T) f g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3022  | 
unfolding homeomorphic_maps_def  | 
| 71172 | 3023  | 
by (force simp: continuous_map_from_subtopology continuous_map_in_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3024  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3025  | 
lemma homeomorphic_map_subtopologies:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3026  | 
"\<lbrakk>homeomorphic_map X Y f; f ` (topspace X \<inter> S) = topspace Y \<inter> T\<rbrakk>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3027  | 
\<Longrightarrow> homeomorphic_map (subtopology X S) (subtopology Y T) f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3028  | 
by (meson homeomorphic_map_maps homeomorphic_maps_subtopologies)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3029  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3030  | 
lemma homeomorphic_map_subtopologies_alt:  | 
| 72608 | 3031  | 
assumes hom: "homeomorphic_map X Y f"  | 
3032  | 
and S: "\<And>x. \<lbrakk>x \<in> topspace X; f x \<in> topspace Y\<rbrakk> \<Longrightarrow> f x \<in> T \<longleftrightarrow> x \<in> S"  | 
|
3033  | 
shows "homeomorphic_map (subtopology X S) (subtopology Y T) f"  | 
|
3034  | 
proof -  | 
|
3035  | 
have "homeomorphic_maps (subtopology X S) (subtopology Y T) f g"  | 
|
| 77234 | 3036  | 
if "homeomorphic_maps X Y f g" for g  | 
| 72608 | 3037  | 
proof (rule homeomorphic_maps_subtopologies [OF that])  | 
| 77234 | 3038  | 
have "f ` (topspace X \<inter> S) \<subseteq> topspace Y \<inter> T"  | 
3039  | 
using S hom homeomorphic_imp_surjective_map by fastforce  | 
|
3040  | 
then show "f ` (topspace X \<inter> S) = topspace Y \<inter> T"  | 
|
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
3041  | 
using that unfolding homeomorphic_maps_def continuous_map_def Pi_iff  | 
| 77234 | 3042  | 
by (smt (verit, del_insts) Int_iff S image_iff subsetI subset_antisym)  | 
| 72608 | 3043  | 
qed  | 
3044  | 
then show ?thesis  | 
|
3045  | 
using hom by (meson homeomorphic_map_maps)  | 
|
3046  | 
qed  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3047  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3048  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3049  | 
subsection\<open>Relation of homeomorphism between topological spaces\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3050  | 
|
| 
80914
 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 
wenzelm 
parents: 
78336 
diff
changeset
 | 
3051  | 
definition homeomorphic_space (infixr \<open>homeomorphic'_space\<close> 50)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3052  | 
where "X homeomorphic_space Y \<equiv> \<exists>f g. homeomorphic_maps X Y f g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3053  | 
|
| 
78200
 
264f2b69d09c
New and generalised analysis lemmas
 
paulson <lp15@cam.ac.uk> 
parents: 
78127 
diff
changeset
 | 
3054  | 
lemma homeomorphic_space_refl [iff]: "X homeomorphic_space X"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3055  | 
by (meson homeomorphic_maps_id homeomorphic_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3056  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3057  | 
lemma homeomorphic_space_sym:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3058  | 
"X homeomorphic_space Y \<longleftrightarrow> Y homeomorphic_space X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3059  | 
unfolding homeomorphic_space_def by (metis homeomorphic_maps_sym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3060  | 
|
| 
70086
 
72c52a897de2
First tranche of the Homology development: Simplices
 
paulson <lp15@cam.ac.uk> 
parents: 
70065 
diff
changeset
 | 
3061  | 
lemma homeomorphic_space_trans [trans]:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3062  | 
"\<lbrakk>X1 homeomorphic_space X2; X2 homeomorphic_space X3\<rbrakk> \<Longrightarrow> X1 homeomorphic_space X3"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3063  | 
unfolding homeomorphic_space_def by (metis homeomorphic_maps_compose)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3064  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3065  | 
lemma homeomorphic_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3066  | 
"X homeomorphic_space Y \<longleftrightarrow> (\<exists>f. homeomorphic_map X Y f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3067  | 
by (simp add: homeomorphic_map_maps homeomorphic_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3068  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3069  | 
lemma homeomorphic_maps_imp_homeomorphic_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3070  | 
"homeomorphic_maps X Y f g \<Longrightarrow> X homeomorphic_space Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3071  | 
unfolding homeomorphic_space_def by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3072  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3073  | 
lemma homeomorphic_map_imp_homeomorphic_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3074  | 
"homeomorphic_map X Y f \<Longrightarrow> X homeomorphic_space Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3075  | 
unfolding homeomorphic_map_maps  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3076  | 
using homeomorphic_space_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3077  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3078  | 
lemma homeomorphic_empty_space:  | 
| 78336 | 3079  | 
"X homeomorphic_space Y \<Longrightarrow> X = trivial_topology \<longleftrightarrow> Y = trivial_topology"  | 
3080  | 
by (meson continuous_map_on_empty2 homeomorphic_maps_def homeomorphic_space_def)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3081  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3082  | 
lemma homeomorphic_empty_space_eq:  | 
| 78336 | 3083  | 
assumes "X = trivial_topology"  | 
3084  | 
shows "X homeomorphic_space Y \<longleftrightarrow> Y = trivial_topology"  | 
|
3085  | 
using assms funcset_mem  | 
|
3086  | 
by (fastforce simp: homeomorphic_maps_def homeomorphic_space_def continuous_map_def)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3087  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3088  | 
lemma homeomorphic_space_unfold:  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3089  | 
assumes "X homeomorphic_space Y"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3090  | 
obtains f g where "homeomorphic_map X Y f" "homeomorphic_map Y X g"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3091  | 
and "\<And>x. x \<in> topspace X \<Longrightarrow> g(f x) = x" "\<And>y. y \<in> topspace Y \<Longrightarrow> f(g y) = y"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3092  | 
and "f \<in> topspace X \<rightarrow> topspace Y" "g \<in> topspace Y \<rightarrow> topspace X"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3093  | 
using assms unfolding homeomorphic_space_def homeomorphic_maps_map  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3094  | 
by (smt (verit, best) Pi_I homeomorphic_imp_surjective_map image_eqI)  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3095  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3096  | 
subsection\<open>Connected topological spaces\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3097  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3098  | 
definition connected_space :: "'a topology \<Rightarrow> bool" where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3099  | 
"connected_space X \<equiv>  | 
| 69508 | 3100  | 
\<not>(\<exists>E1 E2. openin X E1 \<and> openin X E2 \<and>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3101  | 
                  topspace X \<subseteq> E1 \<union> E2 \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3102  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3103  | 
definition connectedin :: "'a topology \<Rightarrow> 'a set \<Rightarrow> bool" where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3104  | 
"connectedin X S \<equiv> S \<subseteq> topspace X \<and> connected_space (subtopology X S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3105  | 
|
| 
69945
 
35ba13ac6e5c
New abstract topological material
 
paulson <lp15@cam.ac.uk> 
parents: 
69939 
diff
changeset
 | 
3106  | 
lemma connected_spaceD:  | 
| 
 
35ba13ac6e5c
New abstract topological material
 
paulson <lp15@cam.ac.uk> 
parents: 
69939 
diff
changeset
 | 
3107  | 
"\<lbrakk>connected_space X;  | 
| 
 
35ba13ac6e5c
New abstract topological material
 
paulson <lp15@cam.ac.uk> 
parents: 
69939 
diff
changeset
 | 
3108  | 
    openin X U; openin X V; topspace X \<subseteq> U \<union> V; U \<inter> V = {}; U \<noteq> {}; V \<noteq> {}\<rbrakk> \<Longrightarrow> False"
 | 
| 
 
35ba13ac6e5c
New abstract topological material
 
paulson <lp15@cam.ac.uk> 
parents: 
69939 
diff
changeset
 | 
3109  | 
by (auto simp: connected_space_def)  | 
| 
 
35ba13ac6e5c
New abstract topological material
 
paulson <lp15@cam.ac.uk> 
parents: 
69939 
diff
changeset
 | 
3110  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3111  | 
lemma connectedin_subset_topspace: "connectedin X S \<Longrightarrow> S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3112  | 
by (simp add: connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3113  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3114  | 
lemma connectedin_topspace:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3115  | 
"connectedin X (topspace X) \<longleftrightarrow> connected_space X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3116  | 
by (simp add: connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3117  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3118  | 
lemma connected_space_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3119  | 
"connectedin X S \<Longrightarrow> connected_space (subtopology X S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3120  | 
by (simp add: connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3121  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3122  | 
lemma connectedin_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3123  | 
"connectedin (subtopology X S) T \<longleftrightarrow> connectedin X T \<and> T \<subseteq> S"  | 
| 71172 | 3124  | 
by (force simp: connectedin_def subtopology_subtopology inf_absorb2)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3125  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3126  | 
lemma connected_space_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3127  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3128  | 
      (\<nexists>E1 E2. openin X E1 \<and> openin X E2 \<and> E1 \<union> E2 = topspace X \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3129  | 
unfolding connected_space_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3130  | 
by (metis openin_Un openin_subset subset_antisym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3131  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3132  | 
lemma connected_space_closedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3133  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3134  | 
(\<nexists>E1 E2. closedin X E1 \<and> closedin X E2 \<and> topspace X \<subseteq> E1 \<union> E2 \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3135  | 
               E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})" (is "?lhs = ?rhs")
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3136  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3137  | 
assume ?lhs  | 
| 77234 | 3138  | 
  then have "\<And>E1 E2. \<lbrakk>openin X E1; E1 \<inter> E2 = {}; topspace X \<subseteq> E1 \<union> E2; openin X E2\<rbrakk> \<Longrightarrow> E1 = {} \<or> E2 = {}"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3139  | 
by (simp add: connected_space_def)  | 
| 77234 | 3140  | 
then show ?rhs  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3141  | 
unfolding connected_space_def  | 
| 77234 | 3142  | 
by (metis disjnt_def separatedin_closed_sets separation_openin_Un_gen subtopology_superset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3143  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3144  | 
assume R: ?rhs  | 
| 77234 | 3145  | 
then show ?lhs  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3146  | 
unfolding connected_space_def  | 
| 77234 | 3147  | 
by (metis Diff_triv Int_commute separatedin_openin_diff separation_closedin_Un_gen subtopology_superset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3148  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3149  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3150  | 
lemma connected_space_closedin_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3151  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3152  | 
(\<nexists>E1 E2. closedin X E1 \<and> closedin X E2 \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3153  | 
                E1 \<union> E2 = topspace X \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 72608 | 3154  | 
by (metis closedin_Un closedin_def connected_space_closedin subset_antisym)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3155  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3156  | 
lemma connected_space_clopen_in:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3157  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3158  | 
        (\<forall>T. openin X T \<and> closedin X T \<longrightarrow> T = {} \<or> T = topspace X)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3159  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3160  | 
  have eq: "openin X E1 \<and> openin X E2 \<and> E1 \<union> E2 = topspace X \<and> E1 \<inter> E2 = {} \<and> P
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3161  | 
\<longleftrightarrow> E2 = topspace X - E1 \<and> openin X E1 \<and> openin X E2 \<and> P" for E1 E2 P  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3162  | 
using openin_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3163  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3164  | 
unfolding connected_space_eq eq closedin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3165  | 
by (auto simp: openin_closedin_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3166  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3167  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3168  | 
lemma connectedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3169  | 
"connectedin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3170  | 
S \<subseteq> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3171  | 
(\<nexists>E1 E2.  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3172  | 
openin X E1 \<and> openin X E2 \<and>  | 
| 72608 | 3173  | 
             S \<subseteq> E1 \<union> E2 \<and> E1 \<inter> E2 \<inter> S = {} \<and> E1 \<inter> S \<noteq> {} \<and> E2 \<inter> S \<noteq> {})"  (is "?lhs = ?rhs")
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3174  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3175  | 
have *: "(\<exists>E1:: 'a set. \<exists>E2:: 'a set. (\<exists>T1:: 'a set. P1 T1 \<and> E1 = f1 T1) \<and> (\<exists>T2:: 'a set. P2 T2 \<and> E2 = f2 T2) \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3176  | 
R E1 E2) \<longleftrightarrow> (\<exists>T1 T2. P1 T1 \<and> P2 T2 \<and> R(f1 T1) (f2 T2))" for P1 f1 P2 f2 R  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3177  | 
by auto  | 
| 72608 | 3178  | 
show ?thesis  | 
3179  | 
unfolding connectedin_def connected_space_def openin_subtopology topspace_subtopology *  | 
|
3180  | 
by (intro conj_cong arg_cong [where f=Not] ex_cong1; blast dest!: openin_subset)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3181  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3182  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3183  | 
lemma connectedinD:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3184  | 
     "\<lbrakk>connectedin X S; openin X E1; openin X E2; S \<subseteq> E1 \<union> E2; E1 \<inter> E2 \<inter> S = {}; E1 \<inter> S \<noteq> {}; E2 \<inter> S \<noteq> {}\<rbrakk> \<Longrightarrow> False"
 | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3185  | 
by (meson connectedin)  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3186  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3187  | 
lemma connectedin_iff_connected [simp]: "connectedin euclidean S \<longleftrightarrow> connected S"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3188  | 
by (simp add: connected_def connectedin)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3189  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3190  | 
lemma connectedin_closedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3191  | 
"connectedin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3192  | 
S \<subseteq> topspace X \<and>  | 
| 69508 | 3193  | 
\<not>(\<exists>E1 E2. closedin X E1 \<and> closedin X E2 \<and>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3194  | 
S \<subseteq> (E1 \<union> E2) \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3195  | 
                  (E1 \<inter> E2 \<inter> S = {}) \<and>
 | 
| 69508 | 3196  | 
                  \<not>(E1 \<inter> S = {}) \<and> \<not>(E2 \<inter> S = {}))"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3197  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3198  | 
have *: "(\<exists>E1:: 'a set. \<exists>E2:: 'a set. (\<exists>T1:: 'a set. P1 T1 \<and> E1 = f1 T1) \<and> (\<exists>T2:: 'a set. P2 T2 \<and> E2 = f2 T2) \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3199  | 
R E1 E2) \<longleftrightarrow> (\<exists>T1 T2. P1 T1 \<and> P2 T2 \<and> R(f1 T1) (f2 T2))" for P1 f1 P2 f2 R  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3200  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3201  | 
show ?thesis  | 
| 72608 | 3202  | 
unfolding connectedin_def connected_space_closedin closedin_subtopology topspace_subtopology *  | 
3203  | 
by (intro conj_cong arg_cong [where f=Not] ex_cong1; blast dest!: openin_subset)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3204  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3205  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3206  | 
lemma connectedin_empty [simp]: "connectedin X {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3207  | 
by (simp add: connectedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3208  | 
|
| 78336 | 3209  | 
lemma connected_space_trivial_topology [simp]: "connected_space trivial_topology"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3210  | 
using connectedin_topspace by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3211  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3212  | 
lemma connectedin_sing [simp]: "connectedin X {a} \<longleftrightarrow> a \<in> topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3213  | 
by (simp add: connectedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3214  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3215  | 
lemma connectedin_absolute [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3216  | 
"connectedin (subtopology X S) S \<longleftrightarrow> connectedin X S"  | 
| 72608 | 3217  | 
by (simp add: connectedin_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3218  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3219  | 
lemma connectedin_Union:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3220  | 
  assumes \<U>: "\<And>S. S \<in> \<U> \<Longrightarrow> connectedin X S" and ne: "\<Inter>\<U> \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3221  | 
shows "connectedin X (\<Union>\<U>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3222  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3223  | 
have "\<Union>\<U> \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3224  | 
using \<U> by (simp add: Union_least connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3225  | 
moreover have False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3226  | 
    if "openin X E1" "openin X E2" and cover: "\<Union>\<U> \<subseteq> E1 \<union> E2" and disj: "E1 \<inter> E2 \<inter> \<Union>\<U> = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3227  | 
       and overlap1: "E1 \<inter> \<Union>\<U> \<noteq> {}" and overlap2: "E2 \<inter> \<Union>\<U> \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3228  | 
for E1 E2  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3229  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3230  | 
    have disjS: "E1 \<inter> E2 \<inter> S = {}" if "S \<in> \<U>" for S
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3231  | 
using Diff_triv that disj by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3232  | 
have coverS: "S \<subseteq> E1 \<union> E2" if "S \<in> \<U>" for S  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3233  | 
using that cover by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3234  | 
    have "\<U> \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3235  | 
using overlap1 by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3236  | 
obtain a where a: "\<And>U. U \<in> \<U> \<Longrightarrow> a \<in> U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3237  | 
using ne by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3238  | 
    with \<open>\<U> \<noteq> {}\<close> have "a \<in> \<Union>\<U>"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3239  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3240  | 
then consider "a \<in> E1" | "a \<in> E2"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3241  | 
using \<open>\<Union>\<U> \<subseteq> E1 \<union> E2\<close> by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3242  | 
then show False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3243  | 
proof cases  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3244  | 
case 1  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3245  | 
then obtain b S where "b \<in> E2" "b \<in> S" "S \<in> \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3246  | 
using overlap2 by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3247  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3248  | 
using "1" \<open>openin X E1\<close> \<open>openin X E2\<close> disjS coverS a [OF \<open>S \<in> \<U>\<close>] \<U>[OF \<open>S \<in> \<U>\<close>]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3249  | 
unfolding connectedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3250  | 
by (meson disjoint_iff_not_equal)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3251  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3252  | 
case 2  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3253  | 
then obtain b S where "b \<in> E1" "b \<in> S" "S \<in> \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3254  | 
using overlap1 by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3255  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3256  | 
using "2" \<open>openin X E1\<close> \<open>openin X E2\<close> disjS coverS a [OF \<open>S \<in> \<U>\<close>] \<U>[OF \<open>S \<in> \<U>\<close>]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3257  | 
unfolding connectedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3258  | 
by (meson disjoint_iff_not_equal)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3259  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3260  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3261  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3262  | 
unfolding connectedin by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3263  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3264  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3265  | 
lemma connectedin_Un:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3266  | 
     "\<lbrakk>connectedin X S; connectedin X T; S \<inter> T \<noteq> {}\<rbrakk> \<Longrightarrow> connectedin X (S \<union> T)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3267  | 
  using connectedin_Union [of "{S,T}"] by auto
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3268  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3269  | 
lemma connected_space_subconnected:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3270  | 
"connected_space X \<longleftrightarrow> (\<forall>x \<in> topspace X. \<forall>y \<in> topspace X. \<exists>S. connectedin X S \<and> x \<in> S \<and> y \<in> S)" (is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3271  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3272  | 
assume ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3273  | 
then show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3274  | 
using connectedin_topspace by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3275  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3276  | 
assume R [rule_format]: ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3277  | 
  have False if "openin X U" "openin X V" and disj: "U \<inter> V = {}" and cover: "topspace X \<subseteq> U \<union> V"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3278  | 
    and "U \<noteq> {}" "V \<noteq> {}" for U V
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3279  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3280  | 
obtain u v where "u \<in> U" "v \<in> V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3281  | 
      using \<open>U \<noteq> {}\<close> \<open>V \<noteq> {}\<close> by auto
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3282  | 
then obtain T where "u \<in> T" "v \<in> T" and T: "connectedin X T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3283  | 
using R [of u v] that  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3284  | 
by (meson \<open>openin X U\<close> \<open>openin X V\<close> subsetD openin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3285  | 
then show False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3286  | 
using that unfolding connectedin  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3287  | 
by (metis IntI \<open>u \<in> U\<close> \<open>v \<in> V\<close> empty_iff inf_bot_left subset_trans)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3288  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3289  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3290  | 
by (auto simp: connected_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3291  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3292  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3293  | 
lemma connectedin_intermediate_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3294  | 
assumes "connectedin X S" "S \<subseteq> T" "T \<subseteq> X closure_of S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3295  | 
shows "connectedin X T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3296  | 
proof -  | 
| 72608 | 3297  | 
have S: "S \<subseteq> topspace X" and T: "T \<subseteq> topspace X"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3298  | 
using assms by (meson closure_of_subset_topspace dual_order.trans)+  | 
| 72608 | 3299  | 
  have \<section>: "\<And>E1 E2. \<lbrakk>openin X E1; openin X E2; E1 \<inter> S = {} \<or> E2 \<inter> S = {}\<rbrakk> \<Longrightarrow> E1 \<inter> T = {} \<or> E2 \<inter> T = {}"
 | 
3300  | 
using assms unfolding disjoint_iff by (meson in_closure_of subsetD)  | 
|
3301  | 
then show ?thesis  | 
|
3302  | 
using assms  | 
|
3303  | 
unfolding connectedin closure_of_subset_topspace S T  | 
|
3304  | 
by (metis Int_empty_right T dual_order.trans inf.orderE inf_left_commute)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3305  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3306  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3307  | 
lemma connectedin_closure_of:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3308  | 
"connectedin X S \<Longrightarrow> connectedin X (X closure_of S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3309  | 
by (meson closure_of_subset connectedin_def connectedin_intermediate_closure_of subset_refl)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3310  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3311  | 
lemma connectedin_separation:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3312  | 
"connectedin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3313  | 
S \<subseteq> topspace X \<and>  | 
| 77234 | 3314  | 
        (\<nexists>C1 C2. C1 \<union> C2 = S \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> C1 \<inter> X closure_of C2 = {} \<and> C2 \<inter> X closure_of C1 = {})" 
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3315  | 
unfolding connectedin_def connected_space_closedin_eq closedin_Int_closure_of topspace_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3316  | 
apply (intro conj_cong refl arg_cong [where f=Not])  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3317  | 
apply (intro ex_cong1 iffI, blast)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3318  | 
using closure_of_subset_Int by force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3319  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3320  | 
lemma connectedin_eq_not_separated:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3321  | 
"connectedin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3322  | 
S \<subseteq> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3323  | 
         (\<nexists>C1 C2. C1 \<union> C2 = S \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 72608 | 3324  | 
unfolding separatedin_def by (metis connectedin_separation sup.boundedE)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3325  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3326  | 
lemma connectedin_eq_not_separated_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3327  | 
"connectedin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3328  | 
      S \<subseteq> topspace X \<and> (\<nexists>C1 C2. S \<subseteq> C1 \<union> C2 \<and> S \<inter> C1 \<noteq> {} \<and> S \<inter> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3329  | 
proof -  | 
| 72608 | 3330  | 
  have "\<forall>C1 C2. S \<subseteq> C1 \<union> C2 \<longrightarrow> S \<inter> C1 = {} \<or> S \<inter> C2 = {} \<or> \<not> separatedin X C1 C2"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3331  | 
    if "\<And>C1 C2. C1 \<union> C2 = S \<longrightarrow> C1 = {} \<or> C2 = {} \<or> \<not> separatedin X C1 C2"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3332  | 
proof (intro allI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3333  | 
fix C1 C2  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3334  | 
    show "S \<subseteq> C1 \<union> C2 \<longrightarrow> S \<inter> C1 = {} \<or> S \<inter> C2 = {} \<or> \<not> separatedin X C1 C2"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3335  | 
using that [of "S \<inter> C1" "S \<inter> C2"]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3336  | 
by (auto simp: separatedin_mono)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3337  | 
qed  | 
| 72608 | 3338  | 
then show ?thesis  | 
3339  | 
by (metis Un_Int_eq(1) Un_Int_eq(2) connectedin_eq_not_separated order_refl)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3340  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3341  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3342  | 
lemma connected_space_eq_not_separated:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3343  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3344  | 
      (\<nexists>C1 C2. C1 \<union> C2 = topspace X \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3345  | 
by (simp add: connectedin_eq_not_separated flip: connectedin_topspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3346  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3347  | 
lemma connected_space_eq_not_separated_subset:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3348  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3349  | 
    (\<nexists>C1 C2. topspace X \<subseteq> C1 \<union> C2 \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 72608 | 3350  | 
by (metis connected_space_eq_not_separated le_sup_iff separatedin_def subset_antisym)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3351  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3352  | 
lemma connectedin_subset_separated_union:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3353  | 
"\<lbrakk>connectedin X C; separatedin X S T; C \<subseteq> S \<union> T\<rbrakk> \<Longrightarrow> C \<subseteq> S \<or> C \<subseteq> T"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3354  | 
unfolding connectedin_eq_not_separated_subset by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3355  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3356  | 
lemma connectedin_nonseparated_union:  | 
| 72608 | 3357  | 
assumes "connectedin X S" "connectedin X T" "\<not>separatedin X S T"  | 
3358  | 
shows "connectedin X (S \<union> T)"  | 
|
3359  | 
proof -  | 
|
3360  | 
have "\<And>C1 C2. \<lbrakk>T \<subseteq> C1 \<union> C2; S \<subseteq> C1 \<union> C2\<rbrakk> \<Longrightarrow>  | 
|
3361  | 
           S \<inter> C1 = {} \<and> T \<inter> C1 = {} \<or> S \<inter> C2 = {} \<and> T \<inter> C2 = {} \<or> \<not> separatedin X C1 C2"
 | 
|
3362  | 
using assms  | 
|
3363  | 
unfolding connectedin_eq_not_separated_subset  | 
|
3364  | 
by (metis (no_types, lifting) assms connectedin_subset_separated_union inf.orderE separatedin_empty(1) separatedin_mono separatedin_sym)  | 
|
3365  | 
then show ?thesis  | 
|
3366  | 
unfolding connectedin_eq_not_separated_subset  | 
|
| 77234 | 3367  | 
by (simp add: assms connectedin_subset_topspace Int_Un_distrib2)  | 
| 72608 | 3368  | 
qed  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3369  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3370  | 
lemma connected_space_closures:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3371  | 
"connected_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3372  | 
        (\<nexists>e1 e2. e1 \<union> e2 = topspace X \<and> X closure_of e1 \<inter> X closure_of e2 = {} \<and> e1 \<noteq> {} \<and> e2 \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3373  | 
(is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3374  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3375  | 
assume ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3376  | 
then show ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3377  | 
unfolding connected_space_closedin_eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3378  | 
by (metis Un_upper1 Un_upper2 closedin_closure_of closure_of_Un closure_of_eq_empty closure_of_topspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3379  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3380  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3381  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3382  | 
unfolding connected_space_closedin_eq  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3383  | 
by (metis closure_of_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3384  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3385  | 
|
| 77934 | 3386  | 
lemma connectedin_Int_frontier_of:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3387  | 
  assumes "connectedin X S" "S \<inter> T \<noteq> {}" "S - T \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3388  | 
  shows "S \<inter> X frontier_of T \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3389  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3390  | 
have "S \<subseteq> topspace X" and *:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3391  | 
    "\<And>E1 E2. openin X E1 \<longrightarrow> openin X E2 \<longrightarrow> E1 \<inter> E2 \<inter> S = {} \<longrightarrow> S \<subseteq> E1 \<union> E2 \<longrightarrow> E1 \<inter> S = {} \<or> E2 \<inter> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3392  | 
using \<open>connectedin X S\<close> by (auto simp: connectedin)  | 
| 72608 | 3393  | 
moreover  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3394  | 
  have "S - (topspace X \<inter> T) \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3395  | 
using assms(3) by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3396  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3397  | 
  have "S \<inter> topspace X \<inter> T \<noteq> {}"
 | 
| 77234 | 3398  | 
using assms connectedin by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3399  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3400  | 
  have False if "S \<inter> T \<noteq> {}" "S - T \<noteq> {}" "T \<subseteq> topspace X" "S \<inter> X frontier_of T = {}" for T
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3401  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3402  | 
    have null: "S \<inter> (X closure_of T - X interior_of T) = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3403  | 
using that unfolding frontier_of_def by blast  | 
| 72608 | 3404  | 
    have "X interior_of T \<inter> (topspace X - X closure_of T) \<inter> S = {}"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3405  | 
by (metis Diff_disjoint inf_bot_left interior_of_Int interior_of_complement interior_of_empty)  | 
| 72608 | 3406  | 
moreover have "S \<subseteq> X interior_of T \<union> (topspace X - X closure_of T)"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3407  | 
using that \<open>S \<subseteq> topspace X\<close> null by auto  | 
| 72608 | 3408  | 
    moreover have "S \<inter> X interior_of T \<noteq> {}"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3409  | 
using closure_of_subset that(1) that(3) null by fastforce  | 
| 72608 | 3410  | 
    ultimately have "S \<inter> X interior_of (topspace X - T) = {}"
 | 
3411  | 
by (metis "*" inf_commute interior_of_complement openin_interior_of)  | 
|
3412  | 
then have "topspace (subtopology X S) \<inter> X interior_of T = S"  | 
|
3413  | 
using \<open>S \<subseteq> topspace X\<close> interior_of_complement null by fastforce  | 
|
3414  | 
then show ?thesis  | 
|
3415  | 
using that by (metis Diff_eq_empty_iff inf_le2 interior_of_subset subset_trans)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3416  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3417  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3418  | 
by (metis Int_lower1 frontier_of_restrict inf_assoc)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3419  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3420  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3421  | 
lemma connectedin_continuous_map_image:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3422  | 
assumes f: "continuous_map X Y f" and "connectedin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3423  | 
shows "connectedin Y (f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3424  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3425  | 
have "S \<subseteq> topspace X" and *:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3426  | 
    "\<And>E1 E2. openin X E1 \<longrightarrow> openin X E2 \<longrightarrow> E1 \<inter> E2 \<inter> S = {} \<longrightarrow> S \<subseteq> E1 \<union> E2 \<longrightarrow> E1 \<inter> S = {} \<or> E2 \<inter> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3427  | 
using \<open>connectedin X S\<close> by (auto simp: connectedin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3428  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3429  | 
unfolding connectedin connected_space_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3430  | 
proof (intro conjI notI; clarify)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3431  | 
show "f x \<in> topspace Y" if "x \<in> S" for x  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3432  | 
using \<open>S \<subseteq> topspace X\<close> continuous_map_image_subset_topspace f that by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3433  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3434  | 
fix U V  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3435  | 
    let ?U = "{x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3436  | 
    let ?V = "{x \<in> topspace X. f x \<in> V}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3437  | 
    assume UV: "openin Y U" "openin Y V" "f ` S \<subseteq> U \<union> V" "U \<inter> V \<inter> f ` S = {}" "U \<inter> f ` S \<noteq> {}" "V \<inter> f ` S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3438  | 
    then have 1: "?U \<inter> ?V \<inter> S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3439  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3440  | 
have 2: "openin X ?U" "openin X ?V"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3441  | 
using \<open>openin Y U\<close> \<open>openin Y V\<close> continuous_map f by fastforce+  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3442  | 
show "False"  | 
| 72608 | 3443  | 
using * [of ?U ?V] UV \<open>S \<subseteq> topspace X\<close>  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3444  | 
by (auto simp: 1 2)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3445  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3446  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3447  | 
|
| 
78037
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
3448  | 
lemma connected_space_quotient_map_image:  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
3449  | 
"\<lbrakk>quotient_map X X' q; connected_space X\<rbrakk> \<Longrightarrow> connected_space X'"  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
3450  | 
by (metis connectedin_continuous_map_image connectedin_topspace quotient_imp_continuous_map quotient_imp_surjective_map)  | 
| 
 
37894dff0111
More material from the HOL Light metric space library
 
paulson <lp15@cam.ac.uk> 
parents: 
77943 
diff
changeset
 | 
3451  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3452  | 
lemma homeomorphic_connected_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3453  | 
"X homeomorphic_space Y \<Longrightarrow> connected_space X \<longleftrightarrow> connected_space Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3454  | 
unfolding homeomorphic_space_def homeomorphic_maps_def  | 
| 72608 | 3455  | 
by (metis connected_space_subconnected connectedin_continuous_map_image connectedin_topspace continuous_map_image_subset_topspace image_eqI image_subset_iff)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3456  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3457  | 
lemma homeomorphic_map_connectedness:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3458  | 
assumes f: "homeomorphic_map X Y f" and U: "U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3459  | 
shows "connectedin Y (f ` U) \<longleftrightarrow> connectedin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3460  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3461  | 
have 1: "f ` U \<subseteq> topspace Y \<longleftrightarrow> U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3462  | 
using U f homeomorphic_imp_surjective_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3463  | 
moreover have "connected_space (subtopology Y (f ` U)) \<longleftrightarrow> connected_space (subtopology X U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3464  | 
proof (rule homeomorphic_connected_space)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3465  | 
have "f ` U \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3466  | 
by (simp add: U 1)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3467  | 
then have "topspace Y \<inter> f ` U = f ` U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3468  | 
by (simp add: subset_antisym)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3469  | 
then show "subtopology Y (f ` U) homeomorphic_space subtopology X U"  | 
| 77234 | 3470  | 
by (metis U f homeomorphic_map_imp_homeomorphic_space homeomorphic_map_subtopologies homeomorphic_space_sym inf.absorb_iff2)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3471  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3472  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3473  | 
by (auto simp: connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3474  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3475  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3476  | 
lemma homeomorphic_map_connectedness_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3477  | 
"homeomorphic_map X Y f  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3478  | 
\<Longrightarrow> connectedin X U \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3479  | 
U \<subseteq> topspace X \<and> connectedin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3480  | 
using homeomorphic_map_connectedness connectedin_subset_topspace by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3481  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3482  | 
lemma connectedin_discrete_topology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3483  | 
   "connectedin (discrete_topology U) S \<longleftrightarrow> S \<subseteq> U \<and> (\<exists>a. S \<subseteq> {a})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3484  | 
proof (cases "S \<subseteq> U")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3485  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3486  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3487  | 
  proof (cases "S = {}")
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3488  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3489  | 
    moreover have "connectedin (discrete_topology U) S \<longleftrightarrow> (\<exists>a. S = {a})"
 | 
| 72608 | 3490  | 
proof  | 
3491  | 
      show "connectedin (discrete_topology U) S \<Longrightarrow> \<exists>a. S = {a}"
 | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3492  | 
using False connectedin_Int_frontier_of insert_Diff by fastforce  | 
| 72608 | 3493  | 
qed (use True in auto)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3494  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3495  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3496  | 
qed simp  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3497  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3498  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3499  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3500  | 
by (simp add: connectedin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3501  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3502  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3503  | 
lemma connected_space_discrete_topology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3504  | 
     "connected_space (discrete_topology U) \<longleftrightarrow> (\<exists>a. U \<subseteq> {a})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3505  | 
by (metis connectedin_discrete_topology connectedin_topspace order_refl topspace_discrete_topology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3506  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3507  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3508  | 
subsection\<open>Compact sets\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3509  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3510  | 
definition compactin where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3511  | 
"compactin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3512  | 
S \<subseteq> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3513  | 
(\<forall>\<U>. (\<forall>U \<in> \<U>. openin X U) \<and> S \<subseteq> \<Union>\<U>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3514  | 
\<longrightarrow> (\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> S \<subseteq> \<Union>\<F>))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3515  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3516  | 
definition compact_space where  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3517  | 
"compact_space X \<equiv> compactin X (topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3518  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3519  | 
lemma compact_space_alt:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3520  | 
"compact_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3521  | 
(\<forall>\<U>. (\<forall>U \<in> \<U>. openin X U) \<and> topspace X \<subseteq> \<Union>\<U>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3522  | 
\<longrightarrow> (\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> topspace X \<subseteq> \<Union>\<F>))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3523  | 
by (simp add: compact_space_def compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3524  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3525  | 
lemma compact_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3526  | 
"compact_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3527  | 
(\<forall>\<U>. (\<forall>U \<in> \<U>. openin X U) \<and> \<Union>\<U> = topspace X  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3528  | 
\<longrightarrow> (\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> \<Union>\<F> = topspace X))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3529  | 
unfolding compact_space_alt  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3530  | 
using openin_subset by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3531  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3532  | 
lemma compactinD:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3533  | 
"\<lbrakk>compactin X S; \<And>U. U \<in> \<U> \<Longrightarrow> openin X U; S \<subseteq> \<Union>\<U>\<rbrakk> \<Longrightarrow> \<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> S \<subseteq> \<Union>\<F>"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3534  | 
by (auto simp: compactin_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3535  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3536  | 
lemma compactin_euclidean_iff [simp]: "compactin euclidean S \<longleftrightarrow> compact S"  | 
| 69529 | 3537  | 
by (simp add: compact_eq_Heine_Borel compactin_def) meson  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3538  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3539  | 
lemma compactin_absolute [simp]:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3540  | 
"compactin (subtopology X S) S \<longleftrightarrow> compactin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3541  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3542  | 
  have eq: "(\<forall>U \<in> \<U>. \<exists>Y. openin X Y \<and> U = Y \<inter> S) \<longleftrightarrow> \<U> \<subseteq> (\<lambda>Y. Y \<inter> S) ` {y. openin X y}" for \<U>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3543  | 
by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3544  | 
show ?thesis  | 
| 71172 | 3545  | 
by (auto simp: compactin_def openin_subtopology eq imp_conjL all_subset_image ex_finite_subset_image)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3546  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3547  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3548  | 
lemma compactin_subspace: "compactin X S \<longleftrightarrow> S \<subseteq> topspace X \<and> compact_space (subtopology X S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3549  | 
unfolding compact_space_def topspace_subtopology  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3550  | 
by (metis compactin_absolute compactin_def inf.absorb2)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3551  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3552  | 
lemma compact_space_subtopology: "compactin X S \<Longrightarrow> compact_space (subtopology X S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3553  | 
by (simp add: compactin_subspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3554  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3555  | 
lemma compactin_subtopology: "compactin (subtopology X S) T \<longleftrightarrow> compactin X T \<and> T \<subseteq> S"  | 
| 72608 | 3556  | 
by (metis compactin_subspace inf.absorb_iff2 le_inf_iff subtopology_subtopology topspace_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3557  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3558  | 
lemma compactin_subset_topspace: "compactin X S \<Longrightarrow> S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3559  | 
by (simp add: compactin_subspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3560  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3561  | 
lemma compactin_contractive:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3562  | 
"\<lbrakk>compactin X' S; topspace X' = topspace X;  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3563  | 
\<And>U. openin X U \<Longrightarrow> openin X' U\<rbrakk> \<Longrightarrow> compactin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3564  | 
by (simp add: compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3565  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3566  | 
lemma finite_imp_compactin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3567  | 
"\<lbrakk>S \<subseteq> topspace X; finite S\<rbrakk> \<Longrightarrow> compactin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3568  | 
by (metis compactin_subspace compact_space finite_UnionD inf.absorb_iff2 order_refl topspace_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3569  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3570  | 
lemma compactin_empty [iff]: "compactin X {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3571  | 
by (simp add: finite_imp_compactin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3572  | 
|
| 78336 | 3573  | 
lemma compact_space_trivial_topology [simp]: "compact_space trivial_topology"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3574  | 
by (simp add: compact_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3575  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3576  | 
lemma finite_imp_compactin_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3577  | 
"finite S \<Longrightarrow> (compactin X S \<longleftrightarrow> S \<subseteq> topspace X)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3578  | 
using compactin_subset_topspace finite_imp_compactin by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3579  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3580  | 
lemma compactin_sing [simp]: "compactin X {a} \<longleftrightarrow> a \<in> topspace X"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3581  | 
by (simp add: finite_imp_compactin_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3582  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3583  | 
lemma closed_compactin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3584  | 
assumes XK: "compactin X K" and "C \<subseteq> K" and XC: "closedin X C"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3585  | 
shows "compactin X C"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3586  | 
unfolding compactin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3587  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3588  | 
show "C \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3589  | 
by (simp add: XC closedin_subset)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3590  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3591  | 
fix \<U> :: "'a set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3592  | 
assume \<U>: "Ball \<U> (openin X) \<and> C \<subseteq> \<Union>\<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3593  | 
have "(\<forall>U\<in>insert (topspace X - C) \<U>. openin X U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3594  | 
using XC \<U> by blast  | 
| 69745 | 3595  | 
moreover have "K \<subseteq> \<Union>(insert (topspace X - C) \<U>)"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3596  | 
using \<U> XK compactin_subset_topspace by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3597  | 
ultimately obtain \<F> where "finite \<F>" "\<F> \<subseteq> insert (topspace X - C) \<U>" "K \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3598  | 
using assms unfolding compactin_def by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3599  | 
moreover have "openin X (topspace X - C)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3600  | 
using XC by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3601  | 
ultimately show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> C \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3602  | 
using \<open>C \<subseteq> K\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3603  | 
    by (rule_tac x="\<F> - {topspace X - C}" in exI) auto
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3604  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3605  | 
|
| 
78127
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3606  | 
lemma closed_compactin_Inter:  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3607  | 
"\<lbrakk>compactin X K; K \<in> \<K>; \<And>K. K \<in> \<K> \<Longrightarrow> closedin X K\<rbrakk> \<Longrightarrow> compactin X (\<Inter>\<K>)"  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3608  | 
by (metis Inf_lower closed_compactin closedin_Inter empty_iff)  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3609  | 
|
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3610  | 
lemma closedin_subtopology_Int_subset:  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3611  | 
"\<lbrakk>closedin (subtopology X U) (U \<inter> S); V \<subseteq> U\<rbrakk> \<Longrightarrow> closedin (subtopology X V) (V \<inter> S)"  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3612  | 
by (smt (verit, ccfv_SIG) closedin_subtopology inf.left_commute inf.orderE inf_commute)  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3613  | 
|
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3614  | 
lemma closedin_subtopology_Int_closedin:  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3615  | 
"\<lbrakk>closedin (subtopology X U) S; closedin X T\<rbrakk> \<Longrightarrow> closedin (subtopology X U) (S \<inter> T)"  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3616  | 
by (smt (verit, best) closedin_Int closedin_subtopology inf_assoc inf_commute)  | 
| 
 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78093 
diff
changeset
 | 
3617  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3618  | 
lemma closedin_compact_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3619  | 
"\<lbrakk>compact_space X; closedin X S\<rbrakk> \<Longrightarrow> compactin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3620  | 
by (simp add: closed_compactin closedin_subset compact_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3621  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3622  | 
lemma compact_Int_closedin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3623  | 
assumes "compactin X S" "closedin X T" shows "compactin X (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3624  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3625  | 
have "compactin (subtopology X S) (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3626  | 
by (metis assms closedin_compact_space closedin_subtopology compactin_subspace inf_commute)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3627  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3628  | 
by (simp add: compactin_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3629  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3630  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3631  | 
lemma closed_Int_compactin: "\<lbrakk>closedin X S; compactin X T\<rbrakk> \<Longrightarrow> compactin X (S \<inter> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3632  | 
by (metis compact_Int_closedin inf_commute)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3633  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3634  | 
lemma compactin_Un:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3635  | 
assumes S: "compactin X S" and T: "compactin X T" shows "compactin X (S \<union> T)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3636  | 
unfolding compactin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3637  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3638  | 
show "S \<union> T \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3639  | 
using assms by (auto simp: compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3640  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3641  | 
fix \<U> :: "'a set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3642  | 
assume \<U>: "Ball \<U> (openin X) \<and> S \<union> T \<subseteq> \<Union>\<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3643  | 
with S obtain \<F> where \<V>: "finite \<F>" "\<F> \<subseteq> \<U>" "S \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3644  | 
unfolding compactin_def by (meson sup.bounded_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3645  | 
obtain \<W> where "finite \<W>" "\<W> \<subseteq> \<U>" "T \<subseteq> \<Union>\<W>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3646  | 
using \<U> T  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3647  | 
unfolding compactin_def by (meson sup.bounded_iff)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3648  | 
with \<V> show "\<exists>\<V>. finite \<V> \<and> \<V> \<subseteq> \<U> \<and> S \<union> T \<subseteq> \<Union>\<V>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3649  | 
by (rule_tac x="\<F> \<union> \<W>" in exI) auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3650  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3651  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3652  | 
lemma compactin_Union:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3653  | 
"\<lbrakk>finite \<F>; \<And>S. S \<in> \<F> \<Longrightarrow> compactin X S\<rbrakk> \<Longrightarrow> compactin X (\<Union>\<F>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3654  | 
by (induction rule: finite_induct) (simp_all add: compactin_Un)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3655  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3656  | 
lemma compactin_subtopology_imp_compact:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3657  | 
assumes "compactin (subtopology X S) K" shows "compactin X K"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3658  | 
using assms  | 
| 71172 | 3659  | 
proof (clarsimp simp add: compactin_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3660  | 
fix \<U>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3661  | 
define \<V> where "\<V> \<equiv> (\<lambda>U. U \<inter> S) ` \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3662  | 
assume "K \<subseteq> topspace X" and "K \<subseteq> S" and "\<forall>x\<in>\<U>. openin X x" and "K \<subseteq> \<Union>\<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3663  | 
then have "\<forall>V \<in> \<V>. openin (subtopology X S) V" "K \<subseteq> \<Union>\<V>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3664  | 
unfolding \<V>_def by (auto simp: openin_subtopology)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3665  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3666  | 
assume "\<forall>\<U>. (\<forall>x\<in>\<U>. openin (subtopology X S) x) \<and> K \<subseteq> \<Union>\<U> \<longrightarrow> (\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> K \<subseteq> \<Union>\<F>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3667  | 
ultimately obtain \<F> where "finite \<F>" "\<F> \<subseteq> \<V>" "K \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3668  | 
by meson  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3669  | 
then have \<F>: "\<exists>U. U \<in> \<U> \<and> V = U \<inter> S" if "V \<in> \<F>" for V  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3670  | 
unfolding \<V>_def using that by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3671  | 
let ?\<F> = "(\<lambda>F. @U. U \<in> \<U> \<and> F = U \<inter> S) ` \<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3672  | 
show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> K \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3673  | 
proof (intro exI conjI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3674  | 
show "finite ?\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3675  | 
using \<open>finite \<F>\<close> by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3676  | 
show "?\<F> \<subseteq> \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3677  | 
using someI_ex [OF \<F>] by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3678  | 
show "K \<subseteq> \<Union>?\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3679  | 
proof clarsimp  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3680  | 
fix x  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3681  | 
assume "x \<in> K"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3682  | 
then show "\<exists>V \<in> \<F>. x \<in> (SOME U. U \<in> \<U> \<and> V = U \<inter> S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3683  | 
using \<open>K \<subseteq> \<Union>\<F>\<close> someI_ex [OF \<F>]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3684  | 
by (metis (no_types, lifting) IntD1 Union_iff subsetCE)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3685  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3686  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3687  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3688  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3689  | 
lemma compact_imp_compactin_subtopology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3690  | 
assumes "compactin X K" "K \<subseteq> S" shows "compactin (subtopology X S) K"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3691  | 
using assms  | 
| 71172 | 3692  | 
proof (clarsimp simp add: compactin_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3693  | 
fix \<U> :: "'a set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3694  | 
  define \<V> where "\<V> \<equiv> {V. openin X V \<and> (\<exists>U \<in> \<U>. U = V \<inter> S)}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3695  | 
assume "K \<subseteq> S" and "K \<subseteq> topspace X" and "\<forall>U\<in>\<U>. openin (subtopology X S) U" and "K \<subseteq> \<Union>\<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3696  | 
then have "\<forall>V \<in> \<V>. openin X V" "K \<subseteq> \<Union>\<V>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3697  | 
unfolding \<V>_def by (fastforce simp: subset_eq openin_subtopology)+  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3698  | 
moreover  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3699  | 
assume "\<forall>\<U>. (\<forall>U\<in>\<U>. openin X U) \<and> K \<subseteq> \<Union>\<U> \<longrightarrow> (\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> K \<subseteq> \<Union>\<F>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3700  | 
ultimately obtain \<F> where "finite \<F>" "\<F> \<subseteq> \<V>" "K \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3701  | 
by meson  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3702  | 
let ?\<F> = "(\<lambda>F. F \<inter> S) ` \<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3703  | 
show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> K \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3704  | 
proof (intro exI conjI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3705  | 
show "finite ?\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3706  | 
using \<open>finite \<F>\<close> by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3707  | 
show "?\<F> \<subseteq> \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3708  | 
using \<V>_def \<open>\<F> \<subseteq> \<V>\<close> by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3709  | 
show "K \<subseteq> \<Union>?\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3710  | 
using \<open>K \<subseteq> \<Union>\<F>\<close> assms(2) by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3711  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3712  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3713  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3714  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3715  | 
proposition compact_space_fip:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3716  | 
"compact_space X \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3717  | 
    (\<forall>\<U>. (\<forall>C\<in>\<U>. closedin X C) \<and> (\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> \<Inter>\<F> \<noteq> {}) \<longrightarrow> \<Inter>\<U> \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3718  | 
(is "_ = ?rhs")  | 
| 78336 | 3719  | 
proof (cases "X = trivial_topology")  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3720  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3721  | 
then show ?thesis  | 
| 78336 | 3722  | 
by (metis Pow_iff closedin_topspace_empty compact_space_trivial_topology finite.emptyI finite_Pow_iff finite_subset subsetI)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3723  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3724  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3725  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3726  | 
proof safe  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3727  | 
fix \<U> :: "'a set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3728  | 
    assume * [rule_format]: "\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> \<Inter>\<F> \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3729  | 
define \<V> where "\<V> \<equiv> (\<lambda>S. topspace X - S) ` \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3730  | 
    assume clo: "\<forall>C\<in>\<U>. closedin X C" and [simp]: "\<Inter>\<U> = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3731  | 
then have "\<forall>V \<in> \<V>. openin X V" "topspace X \<subseteq> \<Union>\<V>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3732  | 
by (auto simp: \<V>_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3733  | 
moreover assume [unfolded compact_space_alt, rule_format, of \<V>]: "compact_space X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3734  | 
ultimately obtain \<F> where \<F>: "finite \<F>" "\<F> \<subseteq> \<U>" "topspace X \<subseteq> topspace X - \<Inter>\<F>"  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3735  | 
by (auto simp: ex_finite_subset_image \<V>_def)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3736  | 
    moreover have "\<F> \<noteq> {}"
 | 
| 78336 | 3737  | 
using \<F> False by force  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3738  | 
ultimately show "False"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3739  | 
using * [of \<F>]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3740  | 
by auto (metis Diff_iff Inter_iff clo closedin_def subsetD)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3741  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3742  | 
assume R [rule_format]: ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3743  | 
show "compact_space X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3744  | 
unfolding compact_space_alt  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3745  | 
proof clarify  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3746  | 
fix \<U> :: "'a set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3747  | 
define \<V> where "\<V> \<equiv> (\<lambda>S. topspace X - S) ` \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3748  | 
assume "\<forall>C\<in>\<U>. openin X C" and "topspace X \<subseteq> \<Union>\<U>"  | 
| 78336 | 3749  | 
      with False have *: "\<forall>V \<in> \<V>. closedin X V" "\<U> \<noteq> {}"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3750  | 
by (auto simp: \<V>_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3751  | 
show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> topspace X \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3752  | 
proof (rule ccontr; simp)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3753  | 
assume "\<forall>\<F>\<subseteq>\<U>. finite \<F> \<longrightarrow> \<not> topspace X \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3754  | 
        then have "\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<V> \<longrightarrow> \<Inter>\<F> \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3755  | 
by (simp add: \<V>_def all_finite_subset_image)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3756  | 
with \<open>topspace X \<subseteq> \<Union>\<U>\<close> show False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3757  | 
using R [of \<V>] * by (simp add: \<V>_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3758  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3759  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3760  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3761  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3762  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3763  | 
corollary compactin_fip:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3764  | 
"compactin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3765  | 
S \<subseteq> topspace X \<and>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3766  | 
    (\<forall>\<U>. (\<forall>C\<in>\<U>. closedin X C) \<and> (\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> S \<inter> \<Inter>\<F> \<noteq> {}) \<longrightarrow> S \<inter> \<Inter>\<U> \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3767  | 
proof (cases "S = {}")
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3768  | 
case False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3769  | 
show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3770  | 
proof (cases "S \<subseteq> topspace X")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3771  | 
case True  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3772  | 
then have "compactin X S \<longleftrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3773  | 
          (\<forall>\<U>. \<U> \<subseteq> (\<lambda>T. S \<inter> T) ` {T. closedin X T} \<longrightarrow>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3774  | 
           (\<forall>\<F>. finite \<F> \<longrightarrow> \<F> \<subseteq> \<U> \<longrightarrow> \<Inter>\<F> \<noteq> {}) \<longrightarrow> \<Inter>\<U> \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3775  | 
by (simp add: compact_space_fip compactin_subspace closedin_subtopology image_def subset_eq Int_commute imp_conjL)  | 
| 69313 | 3776  | 
    also have "\<dots> = (\<forall>\<U>\<subseteq>Collect (closedin X). (\<forall>\<F>. finite \<F> \<longrightarrow> \<F> \<subseteq> (\<inter>) S ` \<U> \<longrightarrow> \<Inter>\<F> \<noteq> {}) \<longrightarrow> \<Inter> ((\<inter>) S ` \<U>) \<noteq> {})"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3777  | 
by (simp add: all_subset_image)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3778  | 
    also have "\<dots> = (\<forall>\<U>. (\<forall>C\<in>\<U>. closedin X C) \<and> (\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> S \<inter> \<Inter>\<F> \<noteq> {}) \<longrightarrow> S \<inter> \<Inter>\<U> \<noteq> {})"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3779  | 
proof -  | 
| 69313 | 3780  | 
      have eq: "((\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> \<Inter> ((\<inter>) S ` \<F>) \<noteq> {}) \<longrightarrow> \<Inter> ((\<inter>) S ` \<U>) \<noteq> {}) \<longleftrightarrow>
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3781  | 
                ((\<forall>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<longrightarrow> S \<inter> \<Inter>\<F> \<noteq> {}) \<longrightarrow> S \<inter> \<Inter>\<U> \<noteq> {})"  for \<U>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3782  | 
        by simp (use \<open>S \<noteq> {}\<close> in blast)
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3783  | 
show ?thesis  | 
| 72608 | 3784  | 
unfolding imp_conjL [symmetric] all_finite_subset_image eq by blast  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3785  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3786  | 
finally show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3787  | 
using True by simp  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3788  | 
qed (simp add: compactin_subspace)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3789  | 
qed force  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3790  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3791  | 
corollary compact_space_imp_nest:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3792  | 
fixes C :: "nat \<Rightarrow> 'a set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3793  | 
assumes "compact_space X" and clo: "\<And>n. closedin X (C n)"  | 
| 77934 | 3794  | 
    and ne: "\<And>n. C n \<noteq> {}" and dec: "decseq C"
 | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3795  | 
  shows "(\<Inter>n. C n) \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3796  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3797  | 
let ?\<U> = "range (\<lambda>n. \<Inter>m \<le> n. C m)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3798  | 
have "closedin X A" if "A \<in> ?\<U>" for A  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3799  | 
using that clo by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3800  | 
  moreover have "(\<Inter>n\<in>K. \<Inter>m \<le> n. C m) \<noteq> {}" if "finite K" for K
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3801  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3802  | 
obtain n where "\<And>k. k \<in> K \<Longrightarrow> k \<le> n"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3803  | 
using Max.coboundedI \<open>finite K\<close> by blast  | 
| 77934 | 3804  | 
with dec have "C n \<subseteq> (\<Inter>n\<in>K. \<Inter>m \<le> n. C m)"  | 
3805  | 
unfolding decseq_def by blast  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3806  | 
with ne [of n] show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3807  | 
by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3808  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3809  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3810  | 
using \<open>compact_space X\<close> [unfolded compact_space_fip, rule_format, of ?\<U>]  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3811  | 
by (simp add: all_finite_subset_image INT_extend_simps UN_atMost_UNIV del: INT_simps)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3812  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3813  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3814  | 
lemma compactin_discrete_topology:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3815  | 
"compactin (discrete_topology X) S \<longleftrightarrow> S \<subseteq> X \<and> finite S" (is "?lhs = ?rhs")  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3816  | 
proof (intro iffI conjI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3817  | 
assume L: ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3818  | 
then show "S \<subseteq> X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3819  | 
by (auto simp: compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3820  | 
have *: "\<And>\<U>. Ball \<U> (openin (discrete_topology X)) \<and> S \<subseteq> \<Union>\<U> \<Longrightarrow>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3821  | 
(\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> S \<subseteq> \<Union>\<F>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3822  | 
using L by (auto simp: compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3823  | 
show "finite S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3824  | 
    using * [of "(\<lambda>x. {x}) ` X"] \<open>S \<subseteq> X\<close>
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3825  | 
by clarsimp (metis UN_singleton finite_subset_image infinite_super)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3826  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3827  | 
assume ?rhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3828  | 
then show ?lhs  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3829  | 
by (simp add: finite_imp_compactin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3830  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3831  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3832  | 
lemma compact_space_discrete_topology: "compact_space(discrete_topology X) \<longleftrightarrow> finite X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3833  | 
by (simp add: compactin_discrete_topology compact_space_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3834  | 
|
| 69529 | 3835  | 
lemma compact_space_imp_Bolzano_Weierstrass:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3836  | 
assumes "compact_space X" "infinite S" "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3837  | 
  shows "X derived_set_of S \<noteq> {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3838  | 
proof  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3839  | 
  assume X: "X derived_set_of S = {}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3840  | 
then have "closedin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3841  | 
by (simp add: closedin_contains_derived_set assms)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3842  | 
then have "compactin X S"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3843  | 
by (rule closedin_compact_space [OF \<open>compact_space X\<close>])  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3844  | 
with X show False  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3845  | 
by (metis \<open>infinite S\<close> compactin_subspace compact_space_discrete_topology inf_bot_right subtopology_eq_discrete_topology_eq)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3846  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3847  | 
|
| 69529 | 3848  | 
lemma compactin_imp_Bolzano_Weierstrass:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3849  | 
   "\<lbrakk>compactin X S; infinite T \<and> T \<subseteq> S\<rbrakk> \<Longrightarrow> S \<inter> X derived_set_of T \<noteq> {}"
 | 
| 69529 | 3850  | 
using compact_space_imp_Bolzano_Weierstrass [of "subtopology X S"]  | 
| 71172 | 3851  | 
by (simp add: compactin_subspace derived_set_of_subtopology inf_absorb2)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3852  | 
|
| 69529 | 3853  | 
lemma compact_closure_of_imp_Bolzano_Weierstrass:  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3854  | 
   "\<lbrakk>compactin X (X closure_of S); infinite T; T \<subseteq> S; T \<subseteq> topspace X\<rbrakk> \<Longrightarrow> X derived_set_of T \<noteq> {}"
 | 
| 69529 | 3855  | 
using closure_of_mono closure_of_subset compactin_imp_Bolzano_Weierstrass by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3856  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3857  | 
lemma discrete_compactin_eq_finite:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3858  | 
   "S \<inter> X derived_set_of S = {} \<Longrightarrow> compactin X S \<longleftrightarrow> S \<subseteq> topspace X \<and> finite S"
 | 
| 72608 | 3859  | 
by (meson compactin_imp_Bolzano_Weierstrass finite_imp_compactin_eq order_refl)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3860  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3861  | 
lemma discrete_compact_space_eq_finite:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3862  | 
   "X derived_set_of (topspace X) = {} \<Longrightarrow> (compact_space X \<longleftrightarrow> finite(topspace X))"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3863  | 
by (metis compact_space_discrete_topology discrete_topology_unique_derived_set)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3864  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3865  | 
lemma image_compactin:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3866  | 
assumes cpt: "compactin X S" and cont: "continuous_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3867  | 
shows "compactin Y (f ` S)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3868  | 
unfolding compactin_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3869  | 
proof (intro conjI allI impI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3870  | 
show "f ` S \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3871  | 
using compactin_subset_topspace cont continuous_map_image_subset_topspace cpt by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3872  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3873  | 
fix \<U> :: "'b set set"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3874  | 
assume \<U>: "Ball \<U> (openin Y) \<and> f ` S \<subseteq> \<Union>\<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3875  | 
  define \<V> where "\<V> \<equiv> (\<lambda>U. {x \<in> topspace X. f x \<in> U}) ` \<U>"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3876  | 
have "S \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3877  | 
and *: "\<And>\<U>. \<lbrakk>\<forall>U\<in>\<U>. openin X U; S \<subseteq> \<Union>\<U>\<rbrakk> \<Longrightarrow> \<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> S \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3878  | 
using cpt by (auto simp: compactin_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3879  | 
obtain \<F> where \<F>: "finite \<F>" "\<F> \<subseteq> \<V>" "S \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3880  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3881  | 
have 1: "\<forall>U\<in>\<V>. openin X U"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
3882  | 
unfolding \<V>_def using \<U> cont[unfolded continuous_map] by blast  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3883  | 
have 2: "S \<subseteq> \<Union>\<V>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3884  | 
unfolding \<V>_def using compactin_subset_topspace cpt \<U> by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3885  | 
show thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3886  | 
using * [OF 1 2] that by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3887  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3888  | 
  have "\<forall>v \<in> \<V>. \<exists>U. U \<in> \<U> \<and> v = {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3889  | 
using \<V>_def by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3890  | 
  then obtain U where U: "\<forall>v \<in> \<V>. U v \<in> \<U> \<and> v = {x \<in> topspace X. f x \<in> U v}"
 | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3891  | 
by metis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3892  | 
show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> f ` S \<subseteq> \<Union>\<F>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3893  | 
proof (intro conjI exI)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3894  | 
show "finite (U ` \<F>)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3895  | 
by (simp add: \<open>finite \<F>\<close>)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3896  | 
next  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3897  | 
show "U ` \<F> \<subseteq> \<U>"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3898  | 
using \<open>\<F> \<subseteq> \<V>\<close> U by auto  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3899  | 
next  | 
| 69325 | 3900  | 
show "f ` S \<subseteq> \<Union> (U ` \<F>)"  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3901  | 
using \<F>(2-3) U UnionE subset_eq U by fastforce  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3902  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3903  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3904  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3905  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3906  | 
lemma homeomorphic_compact_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3907  | 
assumes "X homeomorphic_space Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3908  | 
shows "compact_space X \<longleftrightarrow> compact_space Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3909  | 
using homeomorphic_space_sym  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3910  | 
by (metis assms compact_space_def homeomorphic_eq_everything_map homeomorphic_space image_compactin)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3911  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3912  | 
lemma homeomorphic_map_compactness:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3913  | 
assumes hom: "homeomorphic_map X Y f" and U: "U \<subseteq> topspace X"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3914  | 
shows "compactin Y (f ` U) \<longleftrightarrow> compactin X U"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3915  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3916  | 
have "f ` U \<subseteq> topspace Y"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3917  | 
using hom U homeomorphic_imp_surjective_map by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3918  | 
moreover have "homeomorphic_map (subtopology X U) (subtopology Y (f ` U)) f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3919  | 
using U hom homeomorphic_imp_surjective_map by (blast intro: homeomorphic_map_subtopologies)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3920  | 
then have "compact_space (subtopology Y (f ` U)) = compact_space (subtopology X U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3921  | 
using homeomorphic_compact_space homeomorphic_map_imp_homeomorphic_space by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3922  | 
ultimately show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3923  | 
by (simp add: compactin_subspace U)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3924  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3925  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3926  | 
lemma homeomorphic_map_compactness_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3927  | 
"homeomorphic_map X Y f  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3928  | 
\<Longrightarrow> compactin X U \<longleftrightarrow> U \<subseteq> topspace X \<and> compactin Y (f ` U)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3929  | 
by (meson compactin_subset_topspace homeomorphic_map_compactness)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3930  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3931  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3932  | 
subsection\<open>Embedding maps\<close>  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3933  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3934  | 
definition embedding_map  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3935  | 
where "embedding_map X Y f \<equiv> homeomorphic_map X (subtopology Y (f ` (topspace X))) f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3936  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3937  | 
lemma embedding_map_eq:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3938  | 
"\<lbrakk>embedding_map X Y f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> embedding_map X Y g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3939  | 
unfolding embedding_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3940  | 
by (metis homeomorphic_map_eq image_cong)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3941  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3942  | 
lemma embedding_map_compose:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3943  | 
assumes "embedding_map X X' f" "embedding_map X' X'' g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3944  | 
shows "embedding_map X X'' (g \<circ> f)"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3945  | 
proof -  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3946  | 
have hm: "homeomorphic_map X (subtopology X' (f ` topspace X)) f" "homeomorphic_map X' (subtopology X'' (g ` topspace X')) g"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3947  | 
using assms by (auto simp: embedding_map_def)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3948  | 
then obtain C where "g ` topspace X' \<inter> C = (g \<circ> f) ` topspace X"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3949  | 
using continuous_map_image_subset_topspace homeomorphic_imp_continuous_map by fastforce  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3950  | 
then have "homeomorphic_map (subtopology X' (f ` topspace X)) (subtopology X'' ((g \<circ> f) ` topspace X)) g"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3951  | 
by (metis hm homeomorphic_eq_everything_map homeomorphic_map_subtopologies image_comp subtopology_subtopology topspace_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3952  | 
then show ?thesis  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3953  | 
unfolding embedding_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3954  | 
using hm(1) homeomorphic_map_compose by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3955  | 
qed  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3956  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3957  | 
lemma surjective_embedding_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3958  | 
"embedding_map X Y f \<and> f ` (topspace X) = topspace Y \<longleftrightarrow> homeomorphic_map X Y f"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3959  | 
by (force simp: embedding_map_def homeomorphic_eq_everything_map)  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3960  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3961  | 
lemma embedding_map_in_subtopology:  | 
| 72608 | 3962  | 
"embedding_map X (subtopology Y S) f \<longleftrightarrow> embedding_map X Y f \<and> f ` (topspace X) \<subseteq> S" (is "?lhs = ?rhs")  | 
3963  | 
proof  | 
|
3964  | 
show "?lhs \<Longrightarrow> ?rhs"  | 
|
3965  | 
unfolding embedding_map_def  | 
|
3966  | 
by (metis continuous_map_in_subtopology homeomorphic_imp_continuous_map inf_absorb2 subtopology_subtopology)  | 
|
3967  | 
qed (simp add: embedding_map_def inf.absorb_iff2 subtopology_subtopology)  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3968  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3969  | 
lemma injective_open_imp_embedding_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3970  | 
"\<lbrakk>continuous_map X Y f; open_map X Y f; inj_on f (topspace X)\<rbrakk> \<Longrightarrow> embedding_map X Y f"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3971  | 
unfolding embedding_map_def homeomorphic_map_def  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3972  | 
by (simp add: image_subset_iff_funcset continuous_map_in_subtopology continuous_open_quotient_map eq_iff  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3973  | 
open_map_imp_subset open_map_into_subtopology)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3974  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3975  | 
lemma injective_closed_imp_embedding_map:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3976  | 
"\<lbrakk>continuous_map X Y f; closed_map X Y f; inj_on f (topspace X)\<rbrakk> \<Longrightarrow> embedding_map X Y f"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3977  | 
unfolding embedding_map_def homeomorphic_map_def  | 
| 72608 | 3978  | 
by (simp add: closed_map_imp_subset closed_map_into_subtopology continuous_closed_quotient_map  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
3979  | 
continuous_map_in_subtopology dual_order.eq_iff image_subset_iff_funcset)  | 
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3980  | 
|
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3981  | 
lemma embedding_map_imp_homeomorphic_space:  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3982  | 
"embedding_map X Y f \<Longrightarrow> X homeomorphic_space (subtopology Y (f ` (topspace X)))"  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3983  | 
unfolding embedding_map_def  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3984  | 
using homeomorphic_space by blast  | 
| 
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
3985  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3986  | 
lemma embedding_imp_closed_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3987  | 
"\<lbrakk>embedding_map X Y f; closedin Y (f ` topspace X)\<rbrakk> \<Longrightarrow> closed_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3988  | 
unfolding closed_map_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3989  | 
by (auto simp: closedin_closed_subtopology embedding_map_def homeomorphic_map_closedness_eq)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
3990  | 
|
| 
77935
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3991  | 
lemma embedding_imp_closed_map_eq:  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3992  | 
"embedding_map X Y f \<Longrightarrow> (closed_map X Y f \<longleftrightarrow> closedin Y (f ` topspace X))"  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3993  | 
using closed_map_def embedding_imp_closed_map by blast  | 
| 
 
7f240b0dabd9
More new theorems, and a necessary correction
 
paulson <lp15@cam.ac.uk> 
parents: 
77934 
diff
changeset
 | 
3994  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3995  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3996  | 
subsection\<open>Retraction and section maps\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3997  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3998  | 
definition retraction_maps :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> ('b \<Rightarrow> 'a) \<Rightarrow> bool"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
3999  | 
where "retraction_maps X Y f g \<equiv>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4000  | 
continuous_map X Y f \<and> continuous_map Y X g \<and> (\<forall>x \<in> topspace Y. f(g x) = x)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4001  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4002  | 
definition section_map :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4003  | 
where "section_map X Y f \<equiv> \<exists>g. retraction_maps Y X g f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4004  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4005  | 
definition retraction_map :: "'a topology \<Rightarrow> 'b topology \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4006  | 
where "retraction_map X Y f \<equiv> \<exists>g. retraction_maps X Y f g"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4007  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4008  | 
lemma retraction_maps_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4009  | 
"\<lbrakk>retraction_maps X Y f g; \<And>x. x \<in> topspace X \<Longrightarrow> f x = f' x; \<And>x. x \<in> topspace Y \<Longrightarrow> g x = g' x\<rbrakk>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4010  | 
\<Longrightarrow> retraction_maps X Y f' g'"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4011  | 
unfolding retraction_maps_def  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4012  | 
by (metis continuous_map_eq continuous_map_image_subset_topspace image_subset_iff)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4013  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4014  | 
lemma section_map_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4015  | 
"\<lbrakk>section_map X Y f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> section_map X Y g"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4016  | 
unfolding section_map_def using retraction_maps_eq by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4017  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4018  | 
lemma retraction_map_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4019  | 
"\<lbrakk>retraction_map X Y f; \<And>x. x \<in> topspace X \<Longrightarrow> f x = g x\<rbrakk> \<Longrightarrow> retraction_map X Y g"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4020  | 
unfolding retraction_map_def using retraction_maps_eq by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4021  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4022  | 
lemma homeomorphic_imp_retraction_maps:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4023  | 
"homeomorphic_maps X Y f g \<Longrightarrow> retraction_maps X Y f g"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4024  | 
by (simp add: homeomorphic_maps_def retraction_maps_def)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4025  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4026  | 
lemma section_and_retraction_eq_homeomorphic_map:  | 
| 72608 | 4027  | 
"section_map X Y f \<and> retraction_map X Y f \<longleftrightarrow> homeomorphic_map X Y f" (is "?lhs = ?rhs")  | 
4028  | 
proof  | 
|
4029  | 
assume ?lhs  | 
|
| 77234 | 4030  | 
then obtain g where "homeomorphic_maps X Y f g"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4031  | 
unfolding homeomorphic_maps_def retraction_map_def section_map_def  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4032  | 
by (smt (verit) Pi_iff continuous_map_def retraction_maps_def)  | 
| 72608 | 4033  | 
then show ?rhs  | 
4034  | 
using homeomorphic_map_maps by blast  | 
|
4035  | 
next  | 
|
4036  | 
assume ?rhs  | 
|
4037  | 
then show ?lhs  | 
|
4038  | 
unfolding retraction_map_def section_map_def  | 
|
4039  | 
by (meson homeomorphic_imp_retraction_maps homeomorphic_map_maps homeomorphic_maps_sym)  | 
|
4040  | 
qed  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4041  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4042  | 
lemma section_imp_embedding_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4043  | 
"section_map X Y f \<Longrightarrow> embedding_map X Y f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4044  | 
unfolding section_map_def embedding_map_def homeomorphic_map_maps retraction_maps_def homeomorphic_maps_def  | 
| 71172 | 4045  | 
by (force simp: continuous_map_in_subtopology continuous_map_from_subtopology)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4046  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4047  | 
lemma retraction_imp_quotient_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4048  | 
assumes "retraction_map X Y f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4049  | 
shows "quotient_map X Y f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4050  | 
unfolding quotient_map_def  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4051  | 
proof (intro conjI subsetI allI impI)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4052  | 
show "f ` topspace X = topspace Y"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4053  | 
using assms by (force simp: retraction_map_def retraction_maps_def continuous_map_def Pi_iff)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4054  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4055  | 
fix U  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4056  | 
assume U: "U \<subseteq> topspace Y"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4057  | 
have "openin Y U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4058  | 
if "\<forall>x\<in>topspace Y. g x \<in> topspace X" "\<forall>x\<in>topspace Y. f (g x) = x"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4059  | 
       "openin Y {x \<in> topspace Y. g x \<in> {x \<in> topspace X. f x \<in> U}}" for g
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4060  | 
using openin_subopen U that by fastforce  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4061  | 
  then show "openin X {x \<in> topspace X. f x \<in> U} = openin Y U"
 | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4062  | 
using assms by (auto simp: retraction_map_def retraction_maps_def continuous_map_def Pi_iff)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4063  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4064  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4065  | 
lemma retraction_maps_compose:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4066  | 
"\<lbrakk>retraction_maps X Y f f'; retraction_maps Y Z g g'\<rbrakk> \<Longrightarrow> retraction_maps X Z (g \<circ> f) (f' \<circ> g')"  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4067  | 
unfolding retraction_maps_def  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4068  | 
by (smt (verit, ccfv_threshold) comp_apply continuous_map_compose continuous_map_image_subset_topspace image_subset_iff)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4069  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4070  | 
lemma retraction_map_compose:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4071  | 
"\<lbrakk>retraction_map X Y f; retraction_map Y Z g\<rbrakk> \<Longrightarrow> retraction_map X Z (g \<circ> f)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4072  | 
by (meson retraction_map_def retraction_maps_compose)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4073  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4074  | 
lemma section_map_compose:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4075  | 
"\<lbrakk>section_map X Y f; section_map Y Z g\<rbrakk> \<Longrightarrow> section_map X Z (g \<circ> f)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4076  | 
by (meson retraction_maps_compose section_map_def)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4077  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4078  | 
lemma surjective_section_eq_homeomorphic_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4079  | 
"section_map X Y f \<and> f ` (topspace X) = topspace Y \<longleftrightarrow> homeomorphic_map X Y f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4080  | 
by (meson section_and_retraction_eq_homeomorphic_map section_imp_embedding_map surjective_embedding_map)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4081  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4082  | 
lemma surjective_retraction_or_section_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4083  | 
"f ` (topspace X) = topspace Y \<Longrightarrow> retraction_map X Y f \<or> section_map X Y f \<longleftrightarrow> retraction_map X Y f"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4084  | 
using section_and_retraction_eq_homeomorphic_map surjective_section_eq_homeomorphic_map by fastforce  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4085  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4086  | 
lemma retraction_imp_surjective_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4087  | 
"retraction_map X Y f \<Longrightarrow> f ` (topspace X) = topspace Y"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4088  | 
by (simp add: retraction_imp_quotient_map quotient_imp_surjective_map)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4089  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4090  | 
lemma section_imp_injective_map:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4091  | 
"\<lbrakk>section_map X Y f; x \<in> topspace X; y \<in> topspace X\<rbrakk> \<Longrightarrow> f x = f y \<longleftrightarrow> x = y"  | 
| 
73932
 
fd21b4a93043
added opaque_combs and renamed hide_lams to opaque_lifting
 
desharna 
parents: 
72608 
diff
changeset
 | 
4092  | 
by (metis (mono_tags, opaque_lifting) retraction_maps_def section_map_def)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4093  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4094  | 
lemma retraction_maps_to_retract_maps:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4095  | 
"retraction_maps X Y r s  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4096  | 
\<Longrightarrow> retraction_maps X (subtopology X (s ` (topspace Y))) (s \<circ> r) id"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4097  | 
unfolding retraction_maps_def  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4098  | 
by (auto simp: continuous_map_compose continuous_map_into_subtopology continuous_map_from_subtopology)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4099  | 
subsection \<open>Continuity\<close>  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4100  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4101  | 
lemma continuous_on_open:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4102  | 
"continuous_on S f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4103  | 
(\<forall>T. openin (top_of_set (f ` S)) T \<longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4104  | 
openin (top_of_set S) (S \<inter> f -` T))"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4105  | 
unfolding continuous_on_open_invariant openin_open Int_def vimage_def Int_commute  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4106  | 
by (simp add: imp_ex imageI conj_commute eq_commute cong: conj_cong)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4107  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4108  | 
lemma continuous_on_closed:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4109  | 
"continuous_on S f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4110  | 
(\<forall>T. closedin (top_of_set (f ` S)) T \<longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4111  | 
closedin (top_of_set S) (S \<inter> f -` T))"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4112  | 
unfolding continuous_on_closed_invariant closedin_closed Int_def vimage_def Int_commute  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4113  | 
by (simp add: imp_ex imageI conj_commute eq_commute cong: conj_cong)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4114  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4115  | 
lemma continuous_on_imp_closedin:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4116  | 
assumes "continuous_on S f" "closedin (top_of_set (f ` S)) T"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4117  | 
shows "closedin (top_of_set S) (S \<inter> f -` T)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4118  | 
using assms continuous_on_closed by blast  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4119  | 
|
| 
69986
 
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
 
paulson <lp15@cam.ac.uk> 
parents: 
69945 
diff
changeset
 | 
4120  | 
lemma continuous_map_subtopology_eu [simp]:  | 
| 
70065
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
4121  | 
"continuous_map (top_of_set S) (subtopology euclidean T) h \<longleftrightarrow> continuous_on S h \<and> h ` S \<subseteq> T"  | 
| 72608 | 4122  | 
by (simp add: continuous_map_in_subtopology)  | 
| 
69986
 
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
 
paulson <lp15@cam.ac.uk> 
parents: 
69945 
diff
changeset
 | 
4123  | 
|
| 
70065
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
4124  | 
lemma continuous_map_euclidean_top_of_set:  | 
| 
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
4125  | 
assumes eq: "f -` S = UNIV" and cont: "continuous_on UNIV f"  | 
| 
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
4126  | 
shows "continuous_map euclidean (top_of_set S) f"  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4127  | 
by (simp add: cont continuous_map_in_subtopology eq image_subset_iff_subset_vimage)  | 
| 
70065
 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 
paulson <lp15@cam.ac.uk> 
parents: 
70044 
diff
changeset
 | 
4128  | 
|
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4129  | 
|
| 70136 | 4130  | 
subsection\<^marker>\<open>tag unimportant\<close> \<open>Half-global and completely global cases\<close>  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4131  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4132  | 
lemma continuous_openin_preimage_gen:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4133  | 
assumes "continuous_on S f" "open T"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4134  | 
shows "openin (top_of_set S) (S \<inter> f -` T)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4135  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4136  | 
have *: "(S \<inter> f -` T) = (S \<inter> f -` (T \<inter> f ` S))"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4137  | 
by auto  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4138  | 
have "openin (top_of_set (f ` S)) (T \<inter> f ` S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4139  | 
using openin_open_Int[of T "f ` S", OF assms(2)] unfolding openin_open by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4140  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4141  | 
using assms(1)[unfolded continuous_on_open, THEN spec[where x="T \<inter> f ` S"]]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4142  | 
using * by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4143  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4144  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4145  | 
lemma continuous_closedin_preimage:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4146  | 
assumes "continuous_on S f" and "closed T"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4147  | 
shows "closedin (top_of_set S) (S \<inter> f -` T)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4148  | 
proof -  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4149  | 
have *: "(S \<inter> f -` T) = (S \<inter> f -` (T \<inter> f ` S))"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4150  | 
by auto  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4151  | 
have "closedin (top_of_set (f ` S)) (T \<inter> f ` S)"  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4152  | 
using closedin_closed_Int[of T "f ` S", OF assms(2)]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4153  | 
by (simp add: Int_commute)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4154  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4155  | 
using assms(1)[unfolded continuous_on_closed, THEN spec[where x="T \<inter> f ` S"]]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4156  | 
using * by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4157  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4158  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4159  | 
lemma continuous_openin_preimage_eq:  | 
| 72608 | 4160  | 
"continuous_on S f \<longleftrightarrow> (\<forall>T. open T \<longrightarrow> openin (top_of_set S) (S \<inter> f -` T))"  | 
4161  | 
by (metis Int_commute continuous_on_open_invariant open_openin openin_subtopology)  | 
|
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4162  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4163  | 
lemma continuous_closedin_preimage_eq:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4164  | 
"continuous_on S f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4165  | 
(\<forall>T. closed T \<longrightarrow> closedin (top_of_set S) (S \<inter> f -` T))"  | 
| 72608 | 4166  | 
by (metis Int_commute closedin_closed continuous_on_closed_invariant)  | 
| 
69544
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4167  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4168  | 
lemma continuous_open_preimage:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4169  | 
assumes contf: "continuous_on S f" and "open S" "open T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4170  | 
shows "open (S \<inter> f -` T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4171  | 
proof-  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4172  | 
obtain U where "open U" "(S \<inter> f -` T) = S \<inter> U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4173  | 
using continuous_openin_preimage_gen[OF contf \<open>open T\<close>]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4174  | 
unfolding openin_open by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4175  | 
then show ?thesis  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4176  | 
using open_Int[of S U, OF \<open>open S\<close>] by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4177  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4178  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4179  | 
lemma continuous_closed_preimage:  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4180  | 
assumes contf: "continuous_on S f" and "closed S" "closed T"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4181  | 
shows "closed (S \<inter> f -` T)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4182  | 
proof-  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4183  | 
obtain U where "closed U" "(S \<inter> f -` T) = S \<inter> U"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4184  | 
using continuous_closedin_preimage[OF contf \<open>closed T\<close>]  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4185  | 
unfolding closedin_closed by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4186  | 
then show ?thesis using closed_Int[of S U, OF \<open>closed S\<close>] by auto  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4187  | 
qed  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4188  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4189  | 
lemma continuous_open_vimage: "open S \<Longrightarrow> (\<And>x. continuous (at x) f) \<Longrightarrow> open (f -` S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4190  | 
by (metis continuous_on_eq_continuous_within open_vimage)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4191  | 
|
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4192  | 
lemma continuous_closed_vimage: "closed S \<Longrightarrow> (\<And>x. continuous (at x) f) \<Longrightarrow> closed (f -` S)"  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4193  | 
by (simp add: closed_vimage continuous_on_eq_continuous_within)  | 
| 
 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 
immler 
parents: 
69529 
diff
changeset
 | 
4194  | 
|
| 69622 | 4195  | 
lemma Times_in_interior_subtopology:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4196  | 
assumes "(x, y) \<in> U" "openin (top_of_set (S \<times> T)) U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4197  | 
obtains V W where "openin (top_of_set S) V" "x \<in> V"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4198  | 
"openin (top_of_set T) W" "y \<in> W" "(V \<times> W) \<subseteq> U"  | 
| 69622 | 4199  | 
proof -  | 
4200  | 
from assms obtain E where "open E" "U = S \<times> T \<inter> E" "(x, y) \<in> E" "x \<in> S" "y \<in> T"  | 
|
4201  | 
by (auto simp: openin_open)  | 
|
4202  | 
from open_prod_elim[OF \<open>open E\<close> \<open>(x, y) \<in> E\<close>]  | 
|
4203  | 
obtain E1 E2 where "open E1" "open E2" "(x, y) \<in> E1 \<times> E2" "E1 \<times> E2 \<subseteq> E"  | 
|
4204  | 
by blast  | 
|
4205  | 
show ?thesis  | 
|
4206  | 
proof  | 
|
| 77234 | 4207  | 
show "openin (top_of_set S) (E1 \<inter> S)" "openin (top_of_set T) (E2 \<inter> T)"  | 
4208  | 
using \<open>open E1\<close> \<open>open E2\<close> by (auto simp: openin_open)  | 
|
| 69622 | 4209  | 
show "x \<in> E1 \<inter> S" "y \<in> E2 \<inter> T"  | 
4210  | 
using \<open>(x, y) \<in> E1 \<times> E2\<close> \<open>x \<in> S\<close> \<open>y \<in> T\<close> by auto  | 
|
4211  | 
show "(E1 \<inter> S) \<times> (E2 \<inter> T) \<subseteq> U"  | 
|
| 77234 | 4212  | 
using \<open>E1 \<times> E2 \<subseteq> E\<close> \<open>U = _\<close> by auto  | 
| 69622 | 4213  | 
qed  | 
4214  | 
qed  | 
|
4215  | 
||
4216  | 
lemma closedin_Times:  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4217  | 
"closedin (top_of_set S) S' \<Longrightarrow> closedin (top_of_set T) T' \<Longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4218  | 
closedin (top_of_set (S \<times> T)) (S' \<times> T')"  | 
| 69622 | 4219  | 
unfolding closedin_closed using closed_Times by blast  | 
4220  | 
||
4221  | 
lemma openin_Times:  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4222  | 
"openin (top_of_set S) S' \<Longrightarrow> openin (top_of_set T) T' \<Longrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4223  | 
openin (top_of_set (S \<times> T)) (S' \<times> T')"  | 
| 69622 | 4224  | 
unfolding openin_open using open_Times by blast  | 
4225  | 
||
4226  | 
lemma openin_Times_eq:  | 
|
4227  | 
fixes S :: "'a::topological_space set" and T :: "'b::topological_space set"  | 
|
4228  | 
shows  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4229  | 
"openin (top_of_set (S \<times> T)) (S' \<times> T') \<longleftrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4230  | 
      S' = {} \<or> T' = {} \<or> openin (top_of_set S) S' \<and> openin (top_of_set T) T'"
 | 
| 69622 | 4231  | 
(is "?lhs = ?rhs")  | 
4232  | 
proof (cases "S' = {} \<or> T' = {}")
 | 
|
4233  | 
case True  | 
|
4234  | 
then show ?thesis by auto  | 
|
4235  | 
next  | 
|
4236  | 
case False  | 
|
4237  | 
then obtain x y where "x \<in> S'" "y \<in> T'"  | 
|
4238  | 
by blast  | 
|
4239  | 
show ?thesis  | 
|
4240  | 
proof  | 
|
4241  | 
assume ?lhs  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4242  | 
have "openin (top_of_set S) S'"  | 
| 72608 | 4243  | 
proof (subst openin_subopen, clarify)  | 
4244  | 
show "\<exists>U. openin (top_of_set S) U \<and> x \<in> U \<and> U \<subseteq> S'" if "x \<in> S'" for x  | 
|
4245  | 
using that \<open>y \<in> T'\<close> Times_in_interior_subtopology [OF _ \<open>?lhs\<close>, of x y]  | 
|
4246  | 
by simp (metis mem_Sigma_iff subsetD subsetI)  | 
|
4247  | 
qed  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4248  | 
moreover have "openin (top_of_set T) T'"  | 
| 72608 | 4249  | 
proof (subst openin_subopen, clarify)  | 
4250  | 
show "\<exists>U. openin (top_of_set T) U \<and> y \<in> U \<and> U \<subseteq> T'" if "y \<in> T'" for y  | 
|
4251  | 
using that \<open>x \<in> S'\<close> Times_in_interior_subtopology [OF _ \<open>?lhs\<close>, of x y]  | 
|
4252  | 
by simp (metis mem_Sigma_iff subsetD subsetI)  | 
|
4253  | 
qed  | 
|
| 69622 | 4254  | 
ultimately show ?rhs  | 
4255  | 
by simp  | 
|
4256  | 
next  | 
|
4257  | 
assume ?rhs  | 
|
4258  | 
with False show ?lhs  | 
|
4259  | 
by (simp add: openin_Times)  | 
|
4260  | 
qed  | 
|
4261  | 
qed  | 
|
4262  | 
||
4263  | 
lemma Lim_transform_within_openin:  | 
|
4264  | 
assumes f: "(f \<longlongrightarrow> l) (at a within T)"  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4265  | 
and "openin (top_of_set T) S" "a \<in> S"  | 
| 69622 | 4266  | 
and eq: "\<And>x. \<lbrakk>x \<in> S; x \<noteq> a\<rbrakk> \<Longrightarrow> f x = g x"  | 
4267  | 
shows "(g \<longlongrightarrow> l) (at a within T)"  | 
|
4268  | 
proof -  | 
|
4269  | 
have "\<forall>\<^sub>F x in at a within T. x \<in> T \<and> x \<noteq> a"  | 
|
4270  | 
by (simp add: eventually_at_filter)  | 
|
4271  | 
moreover  | 
|
4272  | 
from \<open>openin _ _\<close> obtain U where "open U" "S = T \<inter> U"  | 
|
4273  | 
by (auto simp: openin_open)  | 
|
4274  | 
then have "a \<in> U" using \<open>a \<in> S\<close> by auto  | 
|
4275  | 
from topological_tendstoD[OF tendsto_ident_at \<open>open U\<close> \<open>a \<in> U\<close>]  | 
|
4276  | 
have "\<forall>\<^sub>F x in at a within T. x \<in> U" by auto  | 
|
4277  | 
ultimately  | 
|
4278  | 
have "\<forall>\<^sub>F x in at a within T. f x = g x"  | 
|
4279  | 
by eventually_elim (auto simp: \<open>S = _\<close> eq)  | 
|
| 
70532
 
fcf3b891ccb1
new material; rotated premises of Lim_transform_eventually
 
paulson <lp15@cam.ac.uk> 
parents: 
70235 
diff
changeset
 | 
4280  | 
with f show ?thesis  | 
| 69622 | 4281  | 
by (rule Lim_transform_eventually)  | 
4282  | 
qed  | 
|
4283  | 
||
4284  | 
lemma continuous_on_open_gen:  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4285  | 
assumes "f \<in> S \<rightarrow> T"  | 
| 69622 | 4286  | 
shows "continuous_on S f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4287  | 
(\<forall>U. openin (top_of_set T) U  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4288  | 
\<longrightarrow> openin (top_of_set S) (S \<inter> f -` U))"  | 
| 69622 | 4289  | 
(is "?lhs = ?rhs")  | 
4290  | 
proof  | 
|
4291  | 
assume ?lhs  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4292  | 
with assms show ?rhs  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4293  | 
apply (simp add: Pi_iff continuous_openin_preimage_eq openin_open)  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4294  | 
by (metis inf.orderE inf_assoc subsetI vimageI vimage_Int)  | 
| 69622 | 4295  | 
next  | 
4296  | 
assume R [rule_format]: ?rhs  | 
|
4297  | 
show ?lhs  | 
|
4298  | 
proof (clarsimp simp add: continuous_openin_preimage_eq)  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4299  | 
show "\<And>T. open T \<Longrightarrow> openin (top_of_set S) (S \<inter> f -` T)"  | 
| 
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4300  | 
by (metis (no_types) R assms image_subset_iff_funcset image_subset_iff_subset_vimage inf.orderE inf_assoc openin_open_Int vimage_Int)  | 
| 69622 | 4301  | 
qed  | 
4302  | 
qed  | 
|
4303  | 
||
4304  | 
lemma continuous_openin_preimage:  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4305  | 
"\<lbrakk>continuous_on S f; f \<in> S \<rightarrow> T; openin (top_of_set T) U\<rbrakk>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4306  | 
\<Longrightarrow> openin (top_of_set S) (S \<inter> f -` U)"  | 
| 69622 | 4307  | 
by (simp add: continuous_on_open_gen)  | 
4308  | 
||
4309  | 
lemma continuous_on_closed_gen:  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4310  | 
assumes "f \<in> S \<rightarrow> T"  | 
| 69622 | 4311  | 
shows "continuous_on S f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4312  | 
(\<forall>U. closedin (top_of_set T) U  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4313  | 
\<longrightarrow> closedin (top_of_set S) (S \<inter> f -` U))"  | 
| 69622 | 4314  | 
proof -  | 
4315  | 
have *: "U \<subseteq> T \<Longrightarrow> S \<inter> f -` (T - U) = S - (S \<inter> f -` U)" for U  | 
|
4316  | 
using assms by blast  | 
|
| 77234 | 4317  | 
then show ?thesis  | 
| 69622 | 4318  | 
unfolding continuous_on_open_gen [OF assms]  | 
| 77234 | 4319  | 
by (metis closedin_def inf.cobounded1 openin_closedin_eq topspace_euclidean_subtopology)  | 
| 69622 | 4320  | 
qed  | 
4321  | 
||
4322  | 
lemma continuous_closedin_preimage_gen:  | 
|
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4323  | 
assumes "continuous_on S f" "f \<in> S \<rightarrow> T" "closedin (top_of_set T) U"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4324  | 
shows "closedin (top_of_set S) (S \<inter> f -` U)"  | 
| 69622 | 4325  | 
using assms continuous_on_closed_gen by blast  | 
4326  | 
||
4327  | 
lemma continuous_transform_within_openin:  | 
|
4328  | 
assumes "continuous (at a within T) f"  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4329  | 
and "openin (top_of_set T) S" "a \<in> S"  | 
| 69622 | 4330  | 
and eq: "\<And>x. x \<in> S \<Longrightarrow> f x = g x"  | 
4331  | 
shows "continuous (at a within T) g"  | 
|
4332  | 
using assms by (simp add: Lim_transform_within_openin continuous_within)  | 
|
4333  | 
||
4334  | 
||
| 70136 | 4335  | 
subsection\<^marker>\<open>tag important\<close> \<open>The topology generated by some (open) subsets\<close>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4336  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4337  | 
text \<open>In the definition below of a generated topology, the \<open>Empty\<close> case is not necessary,  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4338  | 
as it follows from \<open>UN\<close> taking for \<open>K\<close> the empty set. However, it is convenient to have,  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4339  | 
and is never a problem in proofs, so I prefer to write it down explicitly.  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4340  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4341  | 
We do not require \<open>UNIV\<close> to be an open set, as this will not be the case in applications. (We are  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4342  | 
thinking of a topology on a subset of \<open>UNIV\<close>, the remaining part of \<open>UNIV\<close> being irrelevant.)\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4343  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4344  | 
inductive generate_topology_on for S where  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4345  | 
  Empty: "generate_topology_on S {}"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4346  | 
| Int: "generate_topology_on S a \<Longrightarrow> generate_topology_on S b \<Longrightarrow> generate_topology_on S (a \<inter> b)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4347  | 
| UN: "(\<And>k. k \<in> K \<Longrightarrow> generate_topology_on S k) \<Longrightarrow> generate_topology_on S (\<Union>K)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4348  | 
| Basis: "s \<in> S \<Longrightarrow> generate_topology_on S s"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4349  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4350  | 
lemma istopology_generate_topology_on:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4351  | 
"istopology (generate_topology_on S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4352  | 
unfolding istopology_def by (auto intro: generate_topology_on.intros)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4353  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4354  | 
text \<open>The basic property of the topology generated by a set \<open>S\<close> is that it is the  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4355  | 
smallest topology containing all the elements of \<open>S\<close>:\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4356  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4357  | 
lemma generate_topology_on_coarsest:  | 
| 72608 | 4358  | 
assumes T: "istopology T" "\<And>s. s \<in> S \<Longrightarrow> T s"  | 
4359  | 
and gen: "generate_topology_on S s0"  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4360  | 
shows "T s0"  | 
| 72608 | 4361  | 
using gen  | 
4362  | 
by (induct rule: generate_topology_on.induct) (use T in \<open>auto simp: istopology_def\<close>)  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4363  | 
|
| 70136 | 4364  | 
abbreviation\<^marker>\<open>tag unimportant\<close> topology_generated_by::"('a set set) \<Rightarrow> ('a topology)"
 | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4365  | 
where "topology_generated_by S \<equiv> topology (generate_topology_on S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4366  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4367  | 
lemma openin_topology_generated_by_iff:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4368  | 
"openin (topology_generated_by S) s \<longleftrightarrow> generate_topology_on S s"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4369  | 
using topology_inverse'[OF istopology_generate_topology_on[of S]] by simp  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4370  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4371  | 
lemma openin_topology_generated_by:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4372  | 
"openin (topology_generated_by S) s \<Longrightarrow> generate_topology_on S s"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4373  | 
using openin_topology_generated_by_iff by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4374  | 
|
| 
70044
 
da5857dbcbb9
More group theory. Sum and product indexed by the non-neutral part of a set
 
paulson <lp15@cam.ac.uk> 
parents: 
69994 
diff
changeset
 | 
4375  | 
lemma topology_generated_by_topspace [simp]:  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4376  | 
"topspace (topology_generated_by S) = (\<Union>S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4377  | 
proof  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4378  | 
  {
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4379  | 
fix s assume "openin (topology_generated_by S) s"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4380  | 
then have "generate_topology_on S s" by (rule openin_topology_generated_by)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4381  | 
then have "s \<subseteq> (\<Union>S)" by (induct, auto)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4382  | 
}  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4383  | 
then show "topspace (topology_generated_by S) \<subseteq> (\<Union>S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4384  | 
unfolding topspace_def by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4385  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4386  | 
have "generate_topology_on S (\<Union>S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4387  | 
using generate_topology_on.UN[OF generate_topology_on.Basis, of S S] by simp  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4388  | 
then show "(\<Union>S) \<subseteq> topspace (topology_generated_by S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4389  | 
unfolding topspace_def using openin_topology_generated_by_iff by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4390  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4391  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4392  | 
lemma topology_generated_by_Basis:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4393  | 
"s \<in> S \<Longrightarrow> openin (topology_generated_by S) s"  | 
| 77234 | 4394  | 
by (simp add: Basis openin_topology_generated_by_iff)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4395  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4396  | 
lemma generate_topology_on_Inter:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4397  | 
  "\<lbrakk>finite \<F>; \<And>K. K \<in> \<F> \<Longrightarrow> generate_topology_on \<S> K; \<F> \<noteq> {}\<rbrakk> \<Longrightarrow> generate_topology_on \<S> (\<Inter>\<F>)"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4398  | 
by (induction \<F> rule: finite_induct; force intro: generate_topology_on.intros)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4399  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4400  | 
subsection\<open>Topology bases and sub-bases\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4401  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4402  | 
lemma istopology_base_alt:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4403  | 
"istopology (arbitrary union_of P) \<longleftrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4404  | 
(\<forall>S T. (arbitrary union_of P) S \<and> (arbitrary union_of P) T  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4405  | 
\<longrightarrow> (arbitrary union_of P) (S \<inter> T))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4406  | 
by (simp add: istopology_def) (blast intro: arbitrary_union_of_Union)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4407  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4408  | 
lemma istopology_base_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4409  | 
"istopology (arbitrary union_of P) \<longleftrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4410  | 
(\<forall>S T. P S \<and> P T \<longrightarrow> (arbitrary union_of P) (S \<inter> T))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4411  | 
by (simp add: istopology_base_alt arbitrary_union_of_Int_eq)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4412  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4413  | 
lemma istopology_base:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4414  | 
"(\<And>S T. \<lbrakk>P S; P T\<rbrakk> \<Longrightarrow> P(S \<inter> T)) \<Longrightarrow> istopology (arbitrary union_of P)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4415  | 
by (simp add: arbitrary_def istopology_base_eq union_of_inc)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4416  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4417  | 
lemma openin_topology_base_unique:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4418  | 
"openin X = arbitrary union_of P \<longleftrightarrow>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4419  | 
(\<forall>V. P V \<longrightarrow> openin X V) \<and> (\<forall>U x. openin X U \<and> x \<in> U \<longrightarrow> (\<exists>V. P V \<and> x \<in> V \<and> V \<subseteq> U))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4420  | 
(is "?lhs = ?rhs")  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4421  | 
proof  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4422  | 
assume ?lhs  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4423  | 
then show ?rhs  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4424  | 
by (auto simp: union_of_def arbitrary_def)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4425  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4426  | 
assume R: ?rhs  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4427  | 
then have *: "\<exists>\<U>\<subseteq>Collect P. \<Union>\<U> = S" if "openin X S" for S  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4428  | 
    using that by (rule_tac x="{V. P V \<and> V \<subseteq> S}" in exI) fastforce
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4429  | 
from R show ?lhs  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4430  | 
by (fastforce simp add: union_of_def arbitrary_def intro: *)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4431  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4432  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4433  | 
lemma topology_base_unique:  | 
| 
71840
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4434  | 
assumes "\<And>S. P S \<Longrightarrow> openin X S"  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4435  | 
"\<And>U x. \<lbrakk>openin X U; x \<in> U\<rbrakk> \<Longrightarrow> \<exists>B. P B \<and> x \<in> B \<and> B \<subseteq> U"  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4436  | 
shows "topology (arbitrary union_of P) = X"  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4437  | 
proof -  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4438  | 
have "X = topology (openin X)"  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4439  | 
by (simp add: openin_inverse)  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4440  | 
also from assms have "openin X = arbitrary union_of P"  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4441  | 
by (subst openin_topology_base_unique) auto  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4442  | 
finally show ?thesis ..  | 
| 
 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 
Manuel Eberl <eberlm@in.tum.de> 
parents: 
71633 
diff
changeset
 | 
4443  | 
qed  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4444  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4445  | 
lemma topology_bases_eq_aux:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4446  | 
"\<lbrakk>(arbitrary union_of P) S;  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4447  | 
\<And>U x. \<lbrakk>P U; x \<in> U\<rbrakk> \<Longrightarrow> \<exists>V. Q V \<and> x \<in> V \<and> V \<subseteq> U\<rbrakk>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4448  | 
\<Longrightarrow> (arbitrary union_of Q) S"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4449  | 
by (metis arbitrary_union_of_alt arbitrary_union_of_idempot)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4450  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4451  | 
lemma topology_bases_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4452  | 
"\<lbrakk>\<And>U x. \<lbrakk>P U; x \<in> U\<rbrakk> \<Longrightarrow> \<exists>V. Q V \<and> x \<in> V \<and> V \<subseteq> U;  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4453  | 
\<And>V x. \<lbrakk>Q V; x \<in> V\<rbrakk> \<Longrightarrow> \<exists>U. P U \<and> x \<in> U \<and> U \<subseteq> V\<rbrakk>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4454  | 
\<Longrightarrow> topology (arbitrary union_of P) =  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4455  | 
topology (arbitrary union_of Q)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4456  | 
by (fastforce intro: arg_cong [where f=topology] elim: topology_bases_eq_aux)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4457  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4458  | 
lemma istopology_subbase:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4459  | 
"istopology (arbitrary union_of (finite intersection_of P relative_to S))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4460  | 
by (simp add: finite_intersection_of_Int istopology_base relative_to_Int)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4461  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4462  | 
lemma openin_subbase:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4463  | 
"openin (topology (arbitrary union_of (finite intersection_of B relative_to U))) S  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4464  | 
\<longleftrightarrow> (arbitrary union_of (finite intersection_of B relative_to U)) S"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4465  | 
by (simp add: istopology_subbase topology_inverse')  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4466  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4467  | 
lemma topspace_subbase [simp]:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4468  | 
"topspace(topology (arbitrary union_of (finite intersection_of B relative_to U))) = U" (is "?lhs = _")  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4469  | 
proof  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4470  | 
show "?lhs \<subseteq> U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4471  | 
by (metis arbitrary_union_of_relative_to openin_subbase openin_topspace relative_to_imp_subset)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4472  | 
show "U \<subseteq> ?lhs"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4473  | 
by (metis arbitrary_union_of_inc finite_intersection_of_empty inf.orderE istopology_subbase  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4474  | 
openin_subset relative_to_inc subset_UNIV topology_inverse')  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4475  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4476  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4477  | 
lemma minimal_topology_subbase:  | 
| 72608 | 4478  | 
assumes X: "\<And>S. P S \<Longrightarrow> openin X S" and "openin X U"  | 
4479  | 
and S: "openin(topology(arbitrary union_of (finite intersection_of P relative_to U))) S"  | 
|
4480  | 
shows "openin X S"  | 
|
4481  | 
proof -  | 
|
4482  | 
have "(arbitrary union_of (finite intersection_of P relative_to U)) S"  | 
|
4483  | 
using S openin_subbase by blast  | 
|
4484  | 
with X \<open>openin X U\<close> show ?thesis  | 
|
4485  | 
by (force simp add: union_of_def intersection_of_def relative_to_def intro: openin_Int_Inter)  | 
|
4486  | 
qed  | 
|
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4487  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4488  | 
lemma istopology_subbase_UNIV:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4489  | 
"istopology (arbitrary union_of (finite intersection_of P))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4490  | 
by (simp add: istopology_base finite_intersection_of_Int)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4491  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4492  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4493  | 
lemma generate_topology_on_eq:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4494  | 
"generate_topology_on S = arbitrary union_of finite' intersection_of (\<lambda>x. x \<in> S)" (is "?lhs = ?rhs")  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4495  | 
proof (intro ext iffI)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4496  | 
fix A  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4497  | 
assume "?lhs A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4498  | 
then show "?rhs A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4499  | 
proof induction  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4500  | 
case (Int a b)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4501  | 
then show ?case  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4502  | 
by (metis (mono_tags, lifting) istopology_base_alt finite'_intersection_of_Int istopology_base)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4503  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4504  | 
case (UN K)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4505  | 
then show ?case  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4506  | 
by (simp add: arbitrary_union_of_Union)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4507  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4508  | 
case (Basis s)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4509  | 
then show ?case  | 
| 
78250
 
400aecdfd71f
Another tranche of HOL Light material on metric and topological spaces
 
paulson <lp15@cam.ac.uk> 
parents: 
78248 
diff
changeset
 | 
4510  | 
by (simp add: Sup_upper arbitrary_union_of_inc finite'_intersection_of_inc relative_to_subset_inc)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4511  | 
qed auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4512  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4513  | 
fix A  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4514  | 
assume "?rhs A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4515  | 
then obtain \<U> where \<U>: "\<And>T. T \<in> \<U> \<Longrightarrow> \<exists>\<F>. finite' \<F> \<and> \<F> \<subseteq> S \<and> \<Inter>\<F> = T" and eq: "A = \<Union>\<U>"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4516  | 
unfolding union_of_def intersection_of_def by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4517  | 
show "?lhs A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4518  | 
unfolding eq  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4519  | 
proof (rule generate_topology_on.UN)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4520  | 
fix T  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4521  | 
assume "T \<in> \<U>"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4522  | 
with \<U> obtain \<F> where "finite' \<F>" "\<F> \<subseteq> S" "\<Inter>\<F> = T"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4523  | 
by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4524  | 
have "generate_topology_on S (\<Inter>\<F>)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4525  | 
proof (rule generate_topology_on_Inter)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4526  | 
      show "finite \<F>" "\<F> \<noteq> {}"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4527  | 
by (auto simp: \<open>finite' \<F>\<close>)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4528  | 
show "\<And>K. K \<in> \<F> \<Longrightarrow> generate_topology_on S K"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4529  | 
by (metis \<open>\<F> \<subseteq> S\<close> generate_topology_on.simps subset_iff)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4530  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4531  | 
then show "generate_topology_on S T"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4532  | 
using \<open>\<Inter>\<F> = T\<close> by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4533  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4534  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4535  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4536  | 
lemma continuous_on_generated_topo_iff:  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4537  | 
"continuous_map T1 (topology_generated_by S) f \<longleftrightarrow>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4538  | 
((\<forall>U. U \<in> S \<longrightarrow> openin T1 (f-`U \<inter> topspace(T1))) \<and> (f`(topspace T1) \<subseteq> (\<Union> S)))"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4539  | 
unfolding continuous_map_alt topology_generated_by_topspace  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4540  | 
proof (auto simp add: topology_generated_by_Basis)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4541  | 
assume H: "\<forall>U. U \<in> S \<longrightarrow> openin T1 (f -` U \<inter> topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4542  | 
fix U assume "openin (topology_generated_by S) U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4543  | 
then have "generate_topology_on S U" by (rule openin_topology_generated_by)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4544  | 
then show "openin T1 (f -` U \<inter> topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4545  | 
proof (induct)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4546  | 
fix a b  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4547  | 
assume H: "openin T1 (f -` a \<inter> topspace T1)" "openin T1 (f -` b \<inter> topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4548  | 
have "f -` (a \<inter> b) \<inter> topspace T1 = (f-`a \<inter> topspace T1) \<inter> (f-`b \<inter> topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4549  | 
by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4550  | 
then show "openin T1 (f -` (a \<inter> b) \<inter> topspace T1)" using H by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4551  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4552  | 
fix K  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4553  | 
assume H: "openin T1 (f -` k \<inter> topspace T1)" if "k\<in> K" for k  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4554  | 
    define L where "L = {f -` k \<inter> topspace T1|k. k \<in> K}"
 | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4555  | 
have *: "openin T1 l" if "l \<in>L" for l using that H unfolding L_def by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4556  | 
have "openin T1 (\<Union>L)" using openin_Union[OF *] by simp  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4557  | 
moreover have "(\<Union>L) = (f -` \<Union>K \<inter> topspace T1)" unfolding L_def by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4558  | 
ultimately show "openin T1 (f -` \<Union>K \<inter> topspace T1)" by simp  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4559  | 
qed (auto simp add: H)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4560  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4561  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4562  | 
lemma continuous_on_generated_topo:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4563  | 
assumes "\<And>U. U \<in>S \<Longrightarrow> openin T1 (f-`U \<inter> topspace(T1))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4564  | 
"f`(topspace T1) \<subseteq> (\<Union> S)"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4565  | 
shows "continuous_map T1 (topology_generated_by S) f"  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4566  | 
using assms continuous_on_generated_topo_iff by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4567  | 
|
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4568  | 
|
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4569  | 
subsection\<open>Continuity via bases/subbases, hence upper and lower semicontinuity\<close>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4570  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4571  | 
lemma continuous_map_into_topology_base:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4572  | 
assumes P: "openin Y = arbitrary union_of P"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4573  | 
and f: "\<And>x. x \<in> topspace X \<Longrightarrow> f x \<in> topspace Y"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4574  | 
    and ope: "\<And>U. P U \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4575  | 
shows "continuous_map X Y f"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4576  | 
proof -  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4577  | 
  have *: "\<And>\<U>. (\<And>t. t \<in> \<U> \<Longrightarrow> P t) \<Longrightarrow> openin X {x \<in> topspace X. \<exists>U\<in>\<U>. f x \<in> U}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4578  | 
by (smt (verit) Ball_Collect ope mem_Collect_eq openin_subopen)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4579  | 
show ?thesis  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4580  | 
using P by (auto simp: continuous_map_def arbitrary_def union_of_def intro!: f *)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4581  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4582  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4583  | 
lemma continuous_map_into_topology_base_eq:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4584  | 
assumes P: "openin Y = arbitrary union_of P"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4585  | 
shows  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4586  | 
"continuous_map X Y f \<longleftrightarrow>  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4587  | 
    f \<in> topspace X \<rightarrow> topspace Y \<and> (\<forall>U. P U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U})"
 | 
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4588  | 
(is "?lhs=?rhs")  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4589  | 
proof  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4590  | 
assume L: ?lhs  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4591  | 
then have "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4592  | 
by (simp add: continuous_map_funspace)  | 
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4593  | 
  moreover have "\<And>U. P U \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4594  | 
using L assms continuous_map openin_topology_base_unique by fastforce  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4595  | 
ultimately show ?rhs by auto  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4596  | 
qed (simp add: assms Pi_iff continuous_map_into_topology_base)  | 
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4597  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4598  | 
lemma continuous_map_into_topology_subbase:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4599  | 
fixes U P  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4600  | 
defines "Y \<equiv> topology(arbitrary union_of (finite intersection_of P relative_to U))"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4601  | 
assumes f: "\<And>x. x \<in> topspace X \<Longrightarrow> f x \<in> topspace Y"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4602  | 
    and ope: "\<And>U. P U \<Longrightarrow> openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4603  | 
shows "continuous_map X Y f"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4604  | 
proof (intro continuous_map_into_topology_base)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4605  | 
show "openin Y = arbitrary union_of (finite intersection_of P relative_to U)"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4606  | 
unfolding Y_def using istopology_subbase topology_inverse' by blast  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4607  | 
  show "openin X {x \<in> topspace X. f x \<in> V}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4608  | 
if \<section>: "(finite intersection_of P relative_to U) V" for V  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4609  | 
proof -  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4610  | 
    define finv where "finv \<equiv> \<lambda>V. {x \<in> topspace X. f x \<in> V}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4611  | 
obtain \<U> where \<U>: "finite \<U>" "\<And>V. V \<in> \<U> \<Longrightarrow> P V"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4612  | 
                      "{x \<in> topspace X. f x \<in> V} = (\<Inter>V \<in> insert U \<U>. finv V)"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4613  | 
using \<section> by (fastforce simp: finv_def intersection_of_def relative_to_def)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4614  | 
show ?thesis  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4615  | 
unfolding \<U>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4616  | 
proof (intro openin_Inter ope)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4617  | 
have U: "U = topspace Y"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4618  | 
unfolding Y_def using topspace_subbase by fastforce  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4619  | 
fix V  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4620  | 
assume V: "V \<in> finv ` insert U \<U>"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4621  | 
      with U f have "openin X {x \<in> topspace X. f x \<in> U}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4622  | 
by (auto simp: openin_subopen [of X "Collect _"])  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4623  | 
then show "openin X V"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4624  | 
using V \<U>(2) ope by (fastforce simp: finv_def)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4625  | 
qed (use \<open>finite \<U>\<close> in auto)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4626  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4627  | 
qed (use f in auto)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4628  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4629  | 
lemma continuous_map_into_topology_subbase_eq:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4630  | 
assumes "Y = topology(arbitrary union_of (finite intersection_of P relative_to U))"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4631  | 
shows  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4632  | 
"continuous_map X Y f \<longleftrightarrow>  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4633  | 
    f \<in> topspace X \<rightarrow> topspace Y \<and> (\<forall>U. P U \<longrightarrow> openin X {x \<in> topspace X. f x \<in> U})"
 | 
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4634  | 
(is "?lhs=?rhs")  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4635  | 
proof  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4636  | 
assume L: ?lhs  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4637  | 
show ?rhs  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4638  | 
proof (intro conjI strip)  | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
4639  | 
show "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
77943
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4640  | 
using L continuous_map_def by fastforce  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4641  | 
fix V  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4642  | 
assume "P V"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4643  | 
have "U = topspace Y"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4644  | 
unfolding assms using topspace_subbase by fastforce  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4645  | 
    then have eq: "{x \<in> topspace X. f x \<in> V} = {x \<in> topspace X. f x \<in> U \<inter> V}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4646  | 
using L by (auto simp: continuous_map)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4647  | 
have "openin Y (U \<inter> V)"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4648  | 
unfolding assms openin_subbase  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4649  | 
by (meson \<open>P V\<close> arbitrary_union_of_inc finite_intersection_of_inc relative_to_inc)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4650  | 
    show "openin X {x \<in> topspace X. f x \<in> V}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4651  | 
using L \<open>openin Y (U \<inter> V)\<close> continuous_map eq by fastforce  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4652  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4653  | 
next  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4654  | 
show "?rhs \<Longrightarrow> ?lhs"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4655  | 
unfolding assms  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4656  | 
by (intro continuous_map_into_topology_subbase) auto  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4657  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4658  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4659  | 
lemma subbase_subtopology_euclidean:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4660  | 
fixes U :: "'a::order_topology set"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4661  | 
shows  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4662  | 
"topology  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4663  | 
(arbitrary union_of  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4664  | 
(finite intersection_of (\<lambda>x. x \<in> range greaterThan \<union> range lessThan) relative_to U))  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4665  | 
= subtopology euclidean U"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4666  | 
proof -  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4667  | 
have "\<exists>V. (finite intersection_of (\<lambda>x. x \<in> range greaterThan \<or> x \<in> range lessThan)) V \<and> x \<in> V \<and> V \<subseteq> W"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4668  | 
if "open W" "x \<in> W" for W and x::'a  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4669  | 
using \<open>open W\<close> [unfolded open_generated_order] \<open>x \<in> W\<close>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4670  | 
proof (induct rule: generate_topology.induct)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4671  | 
case UNIV  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4672  | 
then show ?case  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4673  | 
using finite_intersection_of_empty by blast  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4674  | 
next  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4675  | 
case (Int a b)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4676  | 
then show ?case  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4677  | 
by (meson Int_iff finite_intersection_of_Int inf_mono)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4678  | 
next  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4679  | 
case (UN K)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4680  | 
then show ?case  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4681  | 
by (meson Union_iff subset_iff)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4682  | 
next  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4683  | 
case (Basis s)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4684  | 
then show ?case  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4685  | 
by (metis (no_types, lifting) Un_iff finite_intersection_of_inc order_refl)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4686  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4687  | 
moreover  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4688  | 
have "\<And>V::'a set. (finite intersection_of (\<lambda>x. x \<in> range greaterThan \<or> x \<in> range lessThan)) V \<Longrightarrow> open V"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4689  | 
by (force simp: intersection_of_def subset_iff)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4690  | 
ultimately have *: "openin (euclidean::'a topology) =  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4691  | 
(arbitrary union_of (finite intersection_of (\<lambda>x. x \<in> range greaterThan \<or> x \<in> range lessThan)))"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4692  | 
by (smt (verit, best) openin_topology_base_unique open_openin)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4693  | 
show ?thesis  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4694  | 
unfolding subtopology_def arbitrary_union_of_relative_to [symmetric]  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4695  | 
apply (simp add: relative_to_def flip: *)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4696  | 
by (metis Int_commute)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4697  | 
qed  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4698  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4699  | 
lemma continuous_map_upper_lower_semicontinuous_lt_gen:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4700  | 
fixes U :: "'a::order_topology set"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4701  | 
shows "continuous_map X (subtopology euclidean U) f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4702  | 
(\<forall>x \<in> topspace X. f x \<in> U) \<and>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4703  | 
         (\<forall>a. openin X {x \<in> topspace X. f x > a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4704  | 
         (\<forall>a. openin X {x \<in> topspace X. f x < a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4705  | 
by (auto simp: continuous_map_into_topology_subbase_eq [OF subbase_subtopology_euclidean [symmetric, of U]]  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4706  | 
greaterThan_def lessThan_def image_iff simp flip: all_simps)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4707  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4708  | 
lemma continuous_map_upper_lower_semicontinuous_lt:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4709  | 
fixes f :: "'a \<Rightarrow> 'b::order_topology"  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4710  | 
shows "continuous_map X euclidean f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4711  | 
         (\<forall>a. openin X {x \<in> topspace X. f x > a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4712  | 
         (\<forall>a. openin X {x \<in> topspace X. f x < a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4713  | 
using continuous_map_upper_lower_semicontinuous_lt_gen [where U=UNIV]  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4714  | 
by auto  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4715  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4716  | 
lemma Int_Collect_imp_eq: "A \<inter> {x. x\<in>A \<longrightarrow> P x} = {x\<in>A. P x}"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4717  | 
by blast  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4718  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4719  | 
lemma continuous_map_upper_lower_semicontinuous_le_gen:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4720  | 
shows  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4721  | 
"continuous_map X (subtopology euclideanreal U) f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4722  | 
(\<forall>x \<in> topspace X. f x \<in> U) \<and>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4723  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<ge> a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4724  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<le> a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4725  | 
unfolding continuous_map_upper_lower_semicontinuous_lt_gen  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4726  | 
by (auto simp: closedin_def Diff_eq Compl_eq not_le Int_Collect_imp_eq)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4727  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4728  | 
lemma continuous_map_upper_lower_semicontinuous_le:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4729  | 
"continuous_map X euclideanreal f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4730  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<ge> a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4731  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<le> a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4732  | 
using continuous_map_upper_lower_semicontinuous_le_gen [where U=UNIV]  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4733  | 
by auto  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4734  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4735  | 
lemma continuous_map_upper_lower_semicontinuous_lte_gen:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4736  | 
"continuous_map X (subtopology euclideanreal U) f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4737  | 
(\<forall>x \<in> topspace X. f x \<in> U) \<and>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4738  | 
         (\<forall>a. openin X {x \<in> topspace X. f x < a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4739  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<le> a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4740  | 
unfolding continuous_map_upper_lower_semicontinuous_lt_gen  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4741  | 
by (auto simp: closedin_def Diff_eq Compl_eq not_le Int_Collect_imp_eq)  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4742  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4743  | 
lemma continuous_map_upper_lower_semicontinuous_lte:  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4744  | 
"continuous_map X euclideanreal f \<longleftrightarrow>  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4745  | 
         (\<forall>a. openin X {x \<in> topspace X. f x < a}) \<and>
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4746  | 
         (\<forall>a. closedin X {x \<in> topspace X. f x \<le> a})"
 | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4747  | 
using continuous_map_upper_lower_semicontinuous_lte_gen [where U=UNIV]  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4748  | 
by auto  | 
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4749  | 
|
| 
 
ffdad62bc235
Importation of additional lemmas from metric.ml
 
paulson <lp15@cam.ac.uk> 
parents: 
77939 
diff
changeset
 | 
4750  | 
|
| 70136 | 4751  | 
subsection\<^marker>\<open>tag important\<close> \<open>Pullback topology\<close>  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4752  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4753  | 
text \<open>Pulling back a topology by map gives again a topology. \<open>subtopology\<close> is  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4754  | 
a special case of this notion, pulling back by the identity. We introduce the general notion as  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4755  | 
we will need it to define the strong operator topology on the space of continuous linear operators,  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4756  | 
by pulling back the product topology on the space of all functions.\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4757  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4758  | 
text \<open>\<open>pullback_topology A f T\<close> is the pullback of the topology \<open>T\<close> by the map \<open>f\<close> on  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4759  | 
the set \<open>A\<close>.\<close>  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4760  | 
|
| 70136 | 4761  | 
definition\<^marker>\<open>tag important\<close> pullback_topology::"('a set) \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> ('b topology) \<Rightarrow> ('a topology)"
 | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4762  | 
where "pullback_topology A f T = topology (\<lambda>S. \<exists>U. openin T U \<and> S = f-`U \<inter> A)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4763  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4764  | 
lemma istopology_pullback_topology:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4765  | 
"istopology (\<lambda>S. \<exists>U. openin T U \<and> S = f-`U \<inter> A)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4766  | 
unfolding istopology_def proof (auto)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4767  | 
fix K assume "\<forall>S\<in>K. \<exists>U. openin T U \<and> S = f -` U \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4768  | 
then have "\<exists>U. \<forall>S\<in>K. openin T (U S) \<and> S = f-`(U S) \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4769  | 
by (rule bchoice)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4770  | 
then obtain U where U: "\<forall>S\<in>K. openin T (U S) \<and> S = f-`(U S) \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4771  | 
by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4772  | 
define V where "V = (\<Union>S\<in>K. U S)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4773  | 
have "openin T V" "\<Union>K = f -` V \<inter> A" unfolding V_def using U by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4774  | 
then show "\<exists>V. openin T V \<and> \<Union>K = f -` V \<inter> A" by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4775  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4776  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4777  | 
lemma openin_pullback_topology:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4778  | 
"openin (pullback_topology A f T) S \<longleftrightarrow> (\<exists>U. openin T U \<and> S = f-`U \<inter> A)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4779  | 
unfolding pullback_topology_def topology_inverse'[OF istopology_pullback_topology] by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4780  | 
|
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4781  | 
lemma topspace_pullback_topology:  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4782  | 
"topspace (pullback_topology A f T) = f-`(topspace T) \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4783  | 
by (auto simp add: topspace_def openin_pullback_topology)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4784  | 
|
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4785  | 
proposition continuous_map_pullback [intro]:  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4786  | 
assumes "continuous_map T1 T2 g"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4787  | 
shows "continuous_map (pullback_topology A f T1) T2 (g o f)"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4788  | 
unfolding continuous_map_alt  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4789  | 
proof (auto)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4790  | 
fix U::"'b set" assume "openin T2 U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4791  | 
then have "openin T1 (g-`U \<inter> topspace T1)"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4792  | 
using assms unfolding continuous_map_alt by auto  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4793  | 
have "(g o f)-`U \<inter> topspace (pullback_topology A f T1) = (g o f)-`U \<inter> A \<inter> f-`(topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4794  | 
unfolding topspace_pullback_topology by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4795  | 
also have "... = f-`(g-`U \<inter> topspace T1) \<inter> A "  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4796  | 
by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4797  | 
also have "openin (pullback_topology A f T1) (...)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4798  | 
unfolding openin_pullback_topology using \<open>openin T1 (g-`U \<inter> topspace T1)\<close> by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4799  | 
finally show "openin (pullback_topology A f T1) ((g \<circ> f) -` U \<inter> topspace (pullback_topology A f T1))"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4800  | 
by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4801  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4802  | 
fix x assume "x \<in> topspace (pullback_topology A f T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4803  | 
then have "f x \<in> topspace T1"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4804  | 
unfolding topspace_pullback_topology by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4805  | 
then show "g (f x) \<in> topspace T2"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4806  | 
using assms unfolding continuous_map_def by auto  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4807  | 
qed  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4808  | 
|
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4809  | 
proposition continuous_map_pullback' [intro]:  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4810  | 
assumes "continuous_map T1 T2 (f o g)" "topspace T1 \<subseteq> g-`A"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4811  | 
shows "continuous_map T1 (pullback_topology A f T2) g"  | 
| 
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4812  | 
unfolding continuous_map_alt  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4813  | 
proof (auto)  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4814  | 
fix U assume "openin (pullback_topology A f T2) U"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4815  | 
then have "\<exists>V. openin T2 V \<and> U = f-`V \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4816  | 
unfolding openin_pullback_topology by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4817  | 
then obtain V where "openin T2 V" "U = f-`V \<inter> A"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4818  | 
by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4819  | 
then have "g -` U \<inter> topspace T1 = g-`(f-`V \<inter> A) \<inter> topspace T1"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4820  | 
by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4821  | 
also have "... = (f o g)-`V \<inter> (g-`A \<inter> topspace T1)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4822  | 
by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4823  | 
also have "... = (f o g)-`V \<inter> topspace T1"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4824  | 
using assms(2) by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4825  | 
also have "openin T1 (...)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4826  | 
using assms(1) \<open>openin T2 V\<close> by auto  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4827  | 
finally show "openin T1 (g -` U \<inter> topspace T1)" by simp  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4828  | 
next  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4829  | 
fix x assume "x \<in> topspace T1"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4830  | 
have "(f o g) x \<in> topspace T2"  | 
| 
69939
 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 
paulson <lp15@cam.ac.uk> 
parents: 
69922 
diff
changeset
 | 
4831  | 
using assms(1) \<open>x \<in> topspace T1\<close> unfolding continuous_map_def by auto  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4832  | 
then have "g x \<in> f-`(topspace T2)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4833  | 
unfolding comp_def by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4834  | 
moreover have "g x \<in> A" using assms(2) \<open>x \<in> topspace T1\<close> by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4835  | 
ultimately show "g x \<in> topspace (pullback_topology A f T2)"  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4836  | 
unfolding topspace_pullback_topology by blast  | 
| 
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
4837  | 
qed  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4838  | 
subsection\<open>Proper maps (not a priori assumed continuous) \<close>  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4839  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4840  | 
definition proper_map  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4841  | 
where  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4842  | 
"proper_map X Y f \<equiv>  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4843  | 
        closed_map X Y f \<and> (\<forall>y \<in> topspace Y. compactin X {x \<in> topspace X. f x = y})"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4844  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4845  | 
lemma proper_imp_closed_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4846  | 
"proper_map X Y f \<Longrightarrow> closed_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4847  | 
by (simp add: proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4848  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4849  | 
lemma proper_map_imp_subset_topspace:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4850  | 
"proper_map X Y f \<Longrightarrow> f \<in> (topspace X) \<rightarrow> topspace Y"  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4851  | 
by (simp add: closed_map_imp_subset_topspace proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4852  | 
|
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4853  | 
lemma proper_map_restriction:  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4854  | 
  assumes "proper_map X Y f" "{x \<in> topspace X. f x \<in> V} = U"
 | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4855  | 
shows "proper_map (subtopology X U) (subtopology Y V) f"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4856  | 
proof -  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4857  | 
  have [simp]: "{x \<in> topspace X. f x \<in> V \<and> f x = y} = {x \<in> topspace X. f x = y}" 
 | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4858  | 
if "y \<in> V" for y  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4859  | 
using that by auto  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4860  | 
show ?thesis  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4861  | 
using assms unfolding proper_map_def using closed_map_restriction  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4862  | 
by (force simp: compactin_subtopology)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4863  | 
qed  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
4864  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4865  | 
lemma closed_injective_imp_proper_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4866  | 
assumes f: "closed_map X Y f" and inj: "inj_on f (topspace X)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4867  | 
shows "proper_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4868  | 
unfolding proper_map_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4869  | 
proof (clarsimp simp: f)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4870  | 
  show "compactin X {x \<in> topspace X. f x = y}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4871  | 
if "y \<in> topspace Y" for y  | 
| 77234 | 4872  | 
using inj_on_eq_iff [OF inj] that  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4873  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4874  | 
    have "{x \<in> topspace X. f x = y} = {} \<or> (\<exists>a \<in> topspace X. {x \<in> topspace X. f x = y} = {a})"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4875  | 
using inj_on_eq_iff [OF inj] by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4876  | 
then show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4877  | 
using that by (metis (no_types, lifting) compactin_empty compactin_sing)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4878  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4879  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4880  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4881  | 
lemma injective_imp_proper_eq_closed_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4882  | 
"inj_on f (topspace X) \<Longrightarrow> (proper_map X Y f \<longleftrightarrow> closed_map X Y f)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4883  | 
using closed_injective_imp_proper_map proper_imp_closed_map by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4884  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4885  | 
lemma homeomorphic_imp_proper_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4886  | 
"homeomorphic_map X Y f \<Longrightarrow> proper_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4887  | 
by (simp add: closed_injective_imp_proper_map homeomorphic_eq_everything_map)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4888  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4889  | 
lemma compactin_proper_map_preimage:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4890  | 
assumes f: "proper_map X Y f" and "compactin Y K"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4891  | 
  shows "compactin X {x. x \<in> topspace X \<and> f x \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4892  | 
proof -  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
4893  | 
have "f \<in> (topspace X) \<rightarrow> topspace Y"  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4894  | 
by (simp add: f proper_map_imp_subset_topspace)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4895  | 
  have *: "\<And>y. y \<in> topspace Y \<Longrightarrow> compactin X {x \<in> topspace X. f x = y}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4896  | 
using f by (auto simp: proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4897  | 
show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4898  | 
unfolding compactin_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4899  | 
proof clarsimp  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4900  | 
    show "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> \<U> \<and> {x \<in> topspace X. f x \<in> K} \<subseteq> \<Union>\<F>"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4901  | 
      if \<U>: "\<forall>U\<in>\<U>. openin X U" and sub: "{x \<in> topspace X. f x \<in> K} \<subseteq> \<Union>\<U>"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4902  | 
for \<U>  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4903  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4904  | 
      have "\<forall>y \<in> K. \<exists>\<V>. finite \<V> \<and> \<V> \<subseteq> \<U>  \<and> {x \<in> topspace X. f x = y} \<subseteq> \<Union>\<V>"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4905  | 
proof  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4906  | 
fix y  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4907  | 
assume "y \<in> K"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4908  | 
        then have "compactin X {x \<in> topspace X. f x = y}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4909  | 
by (metis "*" \<open>compactin Y K\<close> compactin_subspace subsetD)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4910  | 
        with \<open>y \<in> K\<close> show "\<exists>\<V>. finite \<V> \<and> \<V> \<subseteq> \<U>  \<and> {x \<in> topspace X. f x = y} \<subseteq> \<Union>\<V>"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4911  | 
unfolding compactin_def using \<U> sub by fastforce  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4912  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4913  | 
      then obtain \<V> where \<V>: "\<And>y. y \<in> K \<Longrightarrow> finite (\<V> y) \<and> \<V> y \<subseteq> \<U>  \<and> {x \<in> topspace X. f x = y} \<subseteq> \<Union>(\<V> y)"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4914  | 
by (metis (full_types))  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4915  | 
define F where "F \<equiv> \<lambda>y. topspace Y - f ` (topspace X - \<Union>(\<V> y))"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4916  | 
have "\<exists>\<F>. finite \<F> \<and> \<F> \<subseteq> F ` K \<and> K \<subseteq> \<Union>\<F>"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4917  | 
proof (rule compactinD [OF \<open>compactin Y K\<close>])  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4918  | 
have "\<And>x. x \<in> K \<Longrightarrow> closedin Y (f ` (topspace X - \<Union>(\<V> x)))"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4919  | 
using f unfolding proper_map_def closed_map_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4920  | 
by (meson \<U> \<V> openin_Union openin_closedin_eq subsetD)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4921  | 
then show "openin Y U" if "U \<in> F ` K" for U  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4922  | 
using that by (auto simp: F_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4923  | 
show "K \<subseteq> \<Union>(F ` K)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4924  | 
using \<V> \<open>compactin Y K\<close> unfolding F_def compactin_def by fastforce  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4925  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4926  | 
then obtain J where "finite J" "J \<subseteq> K" and J: "K \<subseteq> \<Union>(F ` J)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4927  | 
by (auto simp: ex_finite_subset_image)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4928  | 
show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4929  | 
unfolding F_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4930  | 
proof (intro exI conjI)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4931  | 
show "finite (\<Union>(\<V> ` J))"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4932  | 
using \<V> \<open>J \<subseteq> K\<close> \<open>finite J\<close> by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4933  | 
show "\<Union>(\<V> ` J) \<subseteq> \<U>"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4934  | 
using \<V> \<open>J \<subseteq> K\<close> by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4935  | 
        show "{x \<in> topspace X. f x \<in> K} \<subseteq> \<Union>(\<Union>(\<V> ` J))"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4936  | 
using J \<open>J \<subseteq> K\<close> unfolding F_def by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4937  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4938  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4939  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4940  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4941  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4942  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4943  | 
lemma compact_space_proper_map_preimage:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4944  | 
assumes f: "proper_map X Y f" and fim: "f ` (topspace X) = topspace Y" and "compact_space Y"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4945  | 
shows "compact_space X"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4946  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4947  | 
  have eq: "topspace X = {x \<in> topspace X. f x \<in> topspace Y}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4948  | 
using fim by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4949  | 
moreover have "compactin Y (topspace Y)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4950  | 
using \<open>compact_space Y\<close> compact_space_def by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4951  | 
ultimately show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4952  | 
unfolding compact_space_def  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4953  | 
using eq f compactin_proper_map_preimage by fastforce  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4954  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4955  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4956  | 
lemma proper_map_alt:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4957  | 
"proper_map X Y f \<longleftrightarrow>  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4958  | 
    closed_map X Y f \<and> (\<forall>K. compactin Y K \<longrightarrow> compactin X {x. x \<in> topspace X \<and> f x \<in> K})"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4959  | 
proof (intro iffI conjI allI impI)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4960  | 
  show "compactin X {x \<in> topspace X. f x \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4961  | 
if "proper_map X Y f" and "compactin Y K" for K  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4962  | 
using that by (simp add: compactin_proper_map_preimage)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4963  | 
show "proper_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4964  | 
    if f: "closed_map X Y f \<and> (\<forall>K. compactin Y K \<longrightarrow> compactin X {x \<in> topspace X. f x \<in> K})"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4965  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4966  | 
    have "compactin X {x \<in> topspace X. f x = y}" if "y \<in> topspace Y" for y
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4967  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4968  | 
      have "compactin X {x \<in> topspace X. f x \<in> {y}}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4969  | 
using f compactin_sing that by fastforce  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4970  | 
then show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4971  | 
by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4972  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4973  | 
with f show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4974  | 
by (auto simp: proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4975  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4976  | 
qed (simp add: proper_imp_closed_map)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4977  | 
|
| 78336 | 4978  | 
lemma proper_map_on_empty [simp]: "proper_map trivial_topology Y f"  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4979  | 
by (auto simp: proper_map_def closed_map_on_empty)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4980  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4981  | 
lemma proper_map_id [simp]:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4982  | 
"proper_map X X id"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4983  | 
proof (clarsimp simp: proper_map_alt closed_map_id)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4984  | 
fix K  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4985  | 
assume K: "compactin X K"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4986  | 
  then have "{a \<in> topspace X. a \<in> K} = K"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4987  | 
by (simp add: compactin_subspace subset_antisym subset_iff)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4988  | 
  then show "compactin X {a \<in> topspace X. a \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4989  | 
using K by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4990  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4991  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4992  | 
lemma proper_map_compose:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4993  | 
assumes "proper_map X Y f" "proper_map Y Z g"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4994  | 
shows "proper_map X Z (g \<circ> f)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4995  | 
proof -  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4996  | 
  have "closed_map X Y f" and f: "\<And>K. compactin Y K \<Longrightarrow> compactin X {x \<in> topspace X. f x \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4997  | 
    and "closed_map Y Z g" and g: "\<And>K. compactin Z K \<Longrightarrow> compactin Y {x \<in> topspace Y. g x \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4998  | 
using assms by (auto simp: proper_map_alt)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
4999  | 
show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5000  | 
unfolding proper_map_alt  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5001  | 
proof (intro conjI allI impI)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5002  | 
show "closed_map X Z (g \<circ> f)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5003  | 
using \<open>closed_map X Y f\<close> \<open>closed_map Y Z g\<close> closed_map_compose by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5004  | 
    have "{x \<in> topspace X. g (f x) \<in> K} = {x \<in> topspace X. f x \<in> {b \<in> topspace Y. g b \<in> K}}" for K
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5005  | 
using \<open>closed_map X Y f\<close> closed_map_imp_subset_topspace by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5006  | 
    then show "compactin X {x \<in> topspace X. (g \<circ> f) x \<in> K}"
 | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5007  | 
if "compactin Z K" for K  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5008  | 
using f [OF g [OF that]] by auto  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5009  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5010  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5011  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5012  | 
lemma proper_map_const:  | 
| 78336 | 5013  | 
   "proper_map X Y (\<lambda>x. c) \<longleftrightarrow> compact_space X \<and> (X = trivial_topology \<or> closedin Y {c})"
 | 
5014  | 
proof (cases "X = trivial_topology")  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5015  | 
case True  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5016  | 
then show ?thesis  | 
| 78336 | 5017  | 
by simp  | 
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5018  | 
next  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5019  | 
case False  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5020  | 
  have *: "compactin X {x \<in> topspace X. c = y}" if "compact_space X" for y
 | 
| 77234 | 5021  | 
using that unfolding compact_space_def  | 
5022  | 
by (metis (mono_tags, lifting) compactin_empty empty_subsetI mem_Collect_eq subsetI subset_antisym)  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5023  | 
then show ?thesis  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5024  | 
using closed_compactin closedin_subset  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5025  | 
by (force simp: False proper_map_def closed_map_const compact_space_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5026  | 
qed  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5027  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5028  | 
lemma proper_map_inclusion:  | 
| 77234 | 5029  | 
"S \<subseteq> topspace X \<Longrightarrow> proper_map (subtopology X S) X id \<longleftrightarrow> closedin X S \<and> (\<forall>k. compactin X k \<longrightarrow> compactin X (S \<inter> k))"  | 
5030  | 
by (metis closed_Int_compactin closed_map_inclusion_eq inf.absorb_iff2 inj_on_id injective_imp_proper_eq_closed_map)  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5031  | 
|
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5032  | 
lemma proper_map_into_subtopology:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
5033  | 
"\<lbrakk>proper_map X Y f; f \<in> topspace X \<rightarrow> C\<rbrakk> \<Longrightarrow> proper_map X (subtopology Y C) f"  | 
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5034  | 
by (simp add: closed_map_into_subtopology compactin_subtopology proper_map_alt)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5035  | 
|
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5036  | 
lemma proper_map_from_composition_left:  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5037  | 
assumes gf: "proper_map X Z (g \<circ> f)" and contf: "continuous_map X Y f" and fim: "f ` topspace X = topspace Y"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5038  | 
shows "proper_map Y Z g"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5039  | 
unfolding proper_map_def  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5040  | 
proof (intro strip conjI)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5041  | 
show "closed_map Y Z g"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5042  | 
by (meson closed_map_from_composition_left gf contf fim proper_imp_closed_map)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5043  | 
fix z assume "z \<in> topspace Z"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5044  | 
  have eq: "{y \<in> topspace Y. g y = z} = f ` {x \<in> topspace X. (g \<circ> f) x = z}"
 | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5045  | 
using fim by force  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5046  | 
  show "compactin Y {x \<in> topspace Y. g x = z}"
 | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5047  | 
unfolding eq  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5048  | 
proof (rule image_compactin [OF _ contf])  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5049  | 
    show "compactin X {x \<in> topspace X. (g \<circ> f) x = z}"
 | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5050  | 
using \<open>z \<in> topspace Z\<close> gf proper_map_def by fastforce  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5051  | 
qed  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5052  | 
qed  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5053  | 
|
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5054  | 
lemma proper_map_from_composition_right_inj:  | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
5055  | 
assumes gf: "proper_map X Z (g \<circ> f)" and fim: "f \<in> topspace X \<rightarrow> topspace Y"  | 
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5056  | 
and contf: "continuous_map Y Z g" and inj: "inj_on g (topspace Y)"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5057  | 
shows "proper_map X Y f"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5058  | 
unfolding proper_map_def  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5059  | 
proof (intro strip conjI)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5060  | 
show "closed_map X Y f"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5061  | 
by (meson closed_map_from_composition_right assms proper_imp_closed_map)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5062  | 
fix y  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5063  | 
assume "y \<in> topspace Y"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5064  | 
  with fim inj have eq: "{x \<in> topspace X. f x = y} = {x \<in> topspace X. (g \<circ> f) x = g y}"
 | 
| 
78248
 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 
paulson <lp15@cam.ac.uk> 
parents: 
78200 
diff
changeset
 | 
5065  | 
by (auto simp: Pi_iff inj_onD)  | 
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5066  | 
  show "compactin X {x \<in> topspace X. f x = y}"
 | 
| 
78320
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
5067  | 
using contf gf \<open>y \<in> topspace Y\<close>  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
5068  | 
unfolding eq continuous_map_def proper_map_def  | 
| 
 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 
paulson <lp15@cam.ac.uk> 
parents: 
78250 
diff
changeset
 | 
5069  | 
by blast  | 
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5070  | 
qed  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5071  | 
|
| 
70178
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5072  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5073  | 
subsection\<open>Perfect maps (proper, continuous and surjective)\<close>  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5074  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5075  | 
definition perfect_map  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5076  | 
where "perfect_map X Y f \<equiv> continuous_map X Y f \<and> proper_map X Y f \<and> f ` (topspace X) = topspace Y"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5077  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5078  | 
lemma homeomorphic_imp_perfect_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5079  | 
"homeomorphic_map X Y f \<Longrightarrow> perfect_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5080  | 
by (simp add: homeomorphic_eq_everything_map homeomorphic_imp_proper_map perfect_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5081  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5082  | 
lemma perfect_imp_quotient_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5083  | 
"perfect_map X Y f \<Longrightarrow> quotient_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5084  | 
by (simp add: continuous_closed_imp_quotient_map perfect_map_def proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5085  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5086  | 
lemma homeomorphic_eq_injective_perfect_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5087  | 
"homeomorphic_map X Y f \<longleftrightarrow> perfect_map X Y f \<and> inj_on f (topspace X)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5088  | 
using homeomorphic_imp_perfect_map homeomorphic_map_def perfect_imp_quotient_map by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5089  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5090  | 
lemma perfect_injective_eq_homeomorphic_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5091  | 
"perfect_map X Y f \<and> inj_on f (topspace X) \<longleftrightarrow> homeomorphic_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5092  | 
by (simp add: homeomorphic_eq_injective_perfect_map)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5093  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5094  | 
lemma perfect_map_id [simp]: "perfect_map X X id"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5095  | 
by (simp add: homeomorphic_imp_perfect_map)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5096  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5097  | 
lemma perfect_map_compose:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5098  | 
"\<lbrakk>perfect_map X Y f; perfect_map Y Z g\<rbrakk> \<Longrightarrow> perfect_map X Z (g \<circ> f)"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5099  | 
by (meson continuous_map_compose perfect_imp_quotient_map perfect_map_def proper_map_compose quotient_map_compose_eq quotient_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5100  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5101  | 
lemma perfect_imp_continuous_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5102  | 
"perfect_map X Y f \<Longrightarrow> continuous_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5103  | 
using perfect_map_def by blast  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5104  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5105  | 
lemma perfect_imp_closed_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5106  | 
"perfect_map X Y f \<Longrightarrow> closed_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5107  | 
by (simp add: perfect_map_def proper_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5108  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5109  | 
lemma perfect_imp_proper_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5110  | 
"perfect_map X Y f \<Longrightarrow> proper_map X Y f"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5111  | 
by (simp add: perfect_map_def)  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5112  | 
|
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5113  | 
lemma perfect_imp_surjective_map:  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5114  | 
"perfect_map X Y f \<Longrightarrow> f ` (topspace X) = topspace Y"  | 
| 
 
4900351361b0
Lindelöf spaces and supporting material
 
paulson <lp15@cam.ac.uk> 
parents: 
70136 
diff
changeset
 | 
5115  | 
by (simp add: perfect_map_def)  | 
| 
69922
 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 
paulson <lp15@cam.ac.uk> 
parents: 
69918 
diff
changeset
 | 
5116  | 
|
| 
78093
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5117  | 
lemma perfect_map_from_composition_left:  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5118  | 
assumes "perfect_map X Z (g \<circ> f)" and "continuous_map X Y f"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5119  | 
and "continuous_map Y Z g" and "f ` topspace X = topspace Y"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5120  | 
shows "perfect_map Y Z g"  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5121  | 
using assms unfolding perfect_map_def  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5122  | 
by (metis image_comp proper_map_from_composition_left)  | 
| 
 
cec875dcc59e
Finally, the abstract metric space development
 
paulson <lp15@cam.ac.uk> 
parents: 
78038 
diff
changeset
 | 
5123  | 
|
| 
69144
 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 
paulson <lp15@cam.ac.uk> 
parents:  
diff
changeset
 | 
5124  | 
end  |