| author | desharna | 
| Fri, 28 Mar 2025 16:37:58 +0100 | |
| changeset 82372 | 2db8a047b52c | 
| parent 82323 | b022c013b04b | 
| child 82501 | 26f9f484f266 | 
| permissions | -rw-r--r-- | 
| 77939 
98879407d33c
Two new theories containing material ported from HOL Light about abstract topology
 paulson <lp15@cam.ac.uk> parents: 
77935diff
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: 
69529diff
changeset | 6 | imports | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 7 | Complex_Main | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 8 | "HOL-Library.Set_Idioms" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 18 | morphisms "openin" "topology" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 19 | unfolding istopology_def by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 20 | |
| 75449 
51e05af57455
Added a couple of obvious simprules
 paulson <lp15@cam.ac.uk> parents: 
73932diff
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: 
69529diff
changeset | 22 | using openin[of U] by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 23 | |
| 75449 
51e05af57455
Added a couple of obvious simprules
 paulson <lp15@cam.ac.uk> parents: 
73932diff
changeset | 24 | lemma istopology_open[iff]: "istopology open" | 
| 69710 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 25 | by (auto simp: istopology_def) | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 26 | |
| 75449 
51e05af57455
Added a couple of obvious simprules
 paulson <lp15@cam.ac.uk> parents: 
73932diff
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: 
69529diff
changeset | 28 | using topology_inverse[unfolded mem_Collect_eq] . | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 29 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
73932diff
changeset | 31 | by (metis istopology_openin topology_inverse') | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 32 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 34 | proof | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 35 | assume "T1 = T2" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 37 | next | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 41 | then show "T1 = T2" unfolding openin_inverse . | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 42 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 43 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 44 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 47 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 49 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 50 | proposition openin_clauses: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 51 | fixes U :: "'a topology" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 52 | shows | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 53 |     "openin U {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 59 | unfolding topspace_def by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 60 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 61 | lemma openin_empty[simp]: "openin U {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 62 | by (rule openin_clauses) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 63 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 65 | by (rule openin_clauses) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 66 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 68 | using openin_clauses by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 69 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 72 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 74 | by (force simp: openin_Union topspace_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 75 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 77 | (is "?lhs \<longleftrightarrow> ?rhs") | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 78 | proof | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 79 | assume ?lhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 80 | then show ?rhs by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 81 | next | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 82 | assume H: ?rhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 86 | finally show "openin U S" . | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 87 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 88 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 89 | lemma openin_INT [intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 90 | assumes "finite I" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 94 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 95 | lemma openin_INT2 [intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 96 |   assumes "finite I" "I \<noteq> {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 99 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 102 | then show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 104 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 105 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 106 | lemma openin_Inter [intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 109 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 110 | lemma openin_Int_Inter: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 113 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 114 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 115 | subsubsection \<open>Closed sets\<close> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 119 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 121 | by (metis closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 122 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 123 | lemma closedin_empty[simp]: "closedin U {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 124 | by (simp add: closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 125 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 127 | by (simp add: closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 128 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 130 | by (auto simp: Diff_Un closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 131 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 133 | by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 134 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 135 | lemma closedin_Union: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 137 | shows "closedin U (\<Union>S)" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 138 | using assms by induction auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 139 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 140 | lemma closedin_Inter[intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 141 |   assumes Ke: "K \<noteq> {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 143 | shows "closedin U (\<Inter>K)" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 145 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 146 | lemma closedin_INT[intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 150 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 153 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 156 | |
| 69994 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 paulson <lp15@cam.ac.uk> parents: 
69986diff
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: 
69986diff
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: 
69986diff
changeset | 160 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 162 | by (simp add: openin_closedin_eq) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 163 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 164 | lemma openin_diff[intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 165 | assumes oS: "openin U S" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 166 | and cT: "closedin U T" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 169 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 170 | lemma closedin_diff[intro]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 171 | assumes oS: "closedin U S" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 172 | and cT: "openin U T" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 188 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 189 | subsection\<open>The discrete topology\<close> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 190 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 192 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 194 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 195 | have "istopology (\<lambda>S. S \<subseteq> U)" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 196 | by (auto simp: istopology_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 197 | then show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 199 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 200 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 203 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 205 | by (simp add: closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 206 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 207 | lemma discrete_topology_unique: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 209 | proof | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 210 | assume R: ?rhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 215 | qed auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 216 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 217 | lemma discrete_topology_unique_alt: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 219 | using openin_subset | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 220 | by (auto simp: discrete_topology_unique) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 221 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 222 | lemma subtopology_eq_discrete_topology_empty: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 223 |    "X = discrete_topology {} \<longleftrightarrow> topspace X = {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 225 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 226 | lemma subtopology_eq_discrete_topology_sing: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 234 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 235 | subsection \<open>Subspace topology\<close> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 239 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 241 | (is "istopology ?L") | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 242 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 243 |   have "?L {}" by blast
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 244 |   {
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 245 | fix A B | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 248 | by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 250 | using Sa Sb by blast+ | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 252 | } | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 253 | moreover | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 254 |   {
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 255 | fix K | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 256 | assume K: "K \<subseteq> Collect ?L" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 258 | by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 259 | from K[unfolded th0 subset_image_iff] | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 261 | by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 262 | have "\<Union>K = (\<Union>Sk) \<inter> V" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 263 | using Sk by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 264 | moreover have "openin U (\<Union>Sk)" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 265 | using Sk by (auto simp: subset_eq) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 266 | ultimately have "?L (\<Union>K)" by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 267 | } | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 268 | ultimately show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 270 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 271 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 274 | by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 275 | |
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 276 | lemma subset_openin_subtopology: | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
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: 
78038diff
changeset | 278 | by (metis inf.orderE openin_subtopology) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 279 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 280 | lemma openin_subtopology_Int: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 282 | using openin_subtopology by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 283 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 284 | lemma openin_subtopology_Int2: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 286 | using openin_subtopology by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 287 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 288 | lemma openin_subtopology_diff_closed: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 290 | unfolding closedin_def openin_subtopology | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 292 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 297 | by (auto simp: topspace_def openin_subtopology) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 298 | |
| 69710 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 299 | lemma topspace_subtopology_subset: | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
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: 
69661diff
changeset | 302 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 304 | unfolding closedin_def topspace_subtopology | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 305 | by (auto simp: openin_subtopology) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 306 | |
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 307 | lemma closedin_subtopology_Int_closed: | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
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: 
78038diff
changeset | 309 | using closedin_subtopology inf_commute by blast | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 310 | |
| 78037 
37894dff0111
More material from the HOL Light metric space library
 paulson <lp15@cam.ac.uk> parents: 
77943diff
changeset | 311 | lemma closedin_subset_topspace: | 
| 
37894dff0111
More material from the HOL Light metric space library
 paulson <lp15@cam.ac.uk> parents: 
77943diff
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: 
77943diff
changeset | 313 | using closedin_subtopology by fastforce | 
| 
37894dff0111
More material from the HOL Light metric space library
 paulson <lp15@cam.ac.uk> parents: 
77943diff
changeset | 314 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 315 | lemma closedin_relative_to: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
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: 
77934diff
changeset | 317 | by (force simp: relative_to_def closedin_subtopology) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 318 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 320 | unfolding openin_subtopology | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 326 | lemma subtopology_subtopology: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 328 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 330 | by (metis inf_assoc) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 332 | by (simp add: subtopology_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 335 | finally show ?thesis . | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 336 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 337 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 338 | lemma openin_subtopology_alt: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 341 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 342 | lemma closedin_subtopology_alt: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 345 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 346 | lemma subtopology_superset: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 347 | assumes UV: "topspace U \<subseteq> V" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 348 | shows "subtopology U V = U" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 355 | } | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 356 | then show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 357 | unfolding topology_eq openin_subtopology by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 358 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 359 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 361 | by (simp add: subtopology_superset) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 362 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 364 | by (simp add: subtopology_superset) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69661diff
changeset | 369 | lemma subtopology_restrict: | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
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: 
69661diff
changeset | 371 | by (metis subtopology_subtopology subtopology_topspace) | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 372 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 376 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 380 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 386 | by (simp add: closedin_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
70136diff
changeset | 390 | by (simp add: openin_closedin_eq) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 391 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 395 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 399 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 400 | lemma openin_open_subtopology: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 403 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 404 | lemma closedin_closed_subtopology: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 407 | |
| 77943 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 408 | lemma closedin_trans_full: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
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: 
77939diff
changeset | 410 | using closedin_closed_subtopology by blast | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 411 | |
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 412 | lemma openin_subtopology_Un: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 415 | by (simp add: openin_subtopology) blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 416 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 417 | lemma closedin_subtopology_Un: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 420 | by (simp add: closedin_subtopology) blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69529diff
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: 
69661diff
changeset | 430 | where "euclidean \<equiv> topology open" | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 431 | |
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
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: 
69661diff
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: 
69529diff
changeset | 434 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 437 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 438 | declare open_openin [symmetric, simp] | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 439 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 440 | lemma topspace_euclidean [simp]: "topspace euclidean = UNIV" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 441 | by (force simp: topspace_def) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 442 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 445 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 448 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 449 | declare closed_closedin [symmetric, simp] | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 450 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 452 | by (metis openin_topspace topspace_euclidean_subtopology) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 459 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 460 | abbreviation euclideanreal :: "real topology" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 461 | where "euclideanreal \<equiv> topology open" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 462 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 464 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 466 | by (auto simp: openin_subtopology) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 467 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 468 | lemma openin_Int_open: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 472 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 474 | by (auto simp: openin_open) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 475 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69918diff
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: 
69529diff
changeset | 478 | by (metis Int_absorb1 openin_open_Int) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 479 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 481 | by (auto simp: openin_open) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 482 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 484 | by (simp add: closedin_subtopology Int_ac) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 485 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 487 | by (metis closedin_closed) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 488 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
changeset | 490 | by (auto simp: closedin_closed) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 491 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 492 | lemma closedin_closed_subset: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 496 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 497 | lemma finite_imp_closedin: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 501 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 502 | lemma closedin_singleton [simp]: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 506 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 507 | lemma openin_euclidean_subtopology_iff: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 511 | (is "?lhs \<longleftrightarrow> ?rhs") | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 512 | proof | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 513 | assume ?lhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 514 | then show ?rhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 515 | unfolding openin_open open_dist by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 516 | next | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 519 | unfolding T_def | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 520 | apply clarsimp | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 524 | unfolding T_def | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 525 | by auto (metis dist_self) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 526 | from 1 2 show ?lhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 527 | unfolding openin_open open_dist by fast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 528 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 529 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 530 | lemma connected_openin: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 531 | "connected S \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
71633diff
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: 
69529diff
changeset | 536 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 537 | lemma connected_openin_eq: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 538 | "connected S \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 545 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 546 | lemma connected_closedin: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 547 | "connected S \<longleftrightarrow> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 548 | (\<nexists>E1 E2. | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 552 | (is "?lhs = ?rhs") | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 553 | proof | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 554 | assume ?lhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 555 | then show ?rhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 557 | next | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 558 | assume R: ?rhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 559 | then show ?lhs | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 561 | fix A B | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 563 |       and disj: "A \<inter> B \<inter> S = {}"
 | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 564 | and cl: "closed A" "closed B" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 565 | have "S - A = B \<inter> S" | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 569 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 570 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 571 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 572 | lemma connected_closedin_eq: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 573 | "connected S \<longleftrightarrow> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 574 | \<not>(\<exists>E1 E2. | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
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: 
69529diff
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: 
69529diff
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: 
69529diff
changeset | 581 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 583 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 584 | lemma openin_trans[trans]: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
changeset | 586 | openin (top_of_set U) S" | 
| 69710 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
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: 
69529diff
changeset | 588 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 591 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 592 | lemma closedin_trans[trans]: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69918diff
changeset | 594 | closedin (top_of_set U) S" | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69529diff
changeset | 596 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
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: 
69529diff
changeset | 599 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
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: 
69918diff
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: 
69529diff
changeset | 602 | by (auto simp: openin_subtopology) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 603 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
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: 
69529diff
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: 
69529diff
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: 
78336diff
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: 
78336diff
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: 
78336diff
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: 
78336diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1292 | proof | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1295 | proof | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1300 | moreover | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1303 | moreover | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1307 | proof - | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
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: 
78037diff
changeset | 1314 | qed | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
changeset | 1316 | by blast | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
changeset | 1317 | qed | 
| 
2c1b01563163
New material from the HOL Light metric space library, mostly about quasi components
 paulson <lp15@cam.ac.uk> parents: 
78037diff
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: 
78037diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69874diff
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: 
69922diff
changeset | 1465 | |
| 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
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: 
69922diff
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: 
78250diff
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: 
78250diff
changeset | 1483 | lemma continuous_map_funspace: | 
| 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
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: 
78250diff
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: 
78250diff
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: 
78250diff
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: 
78250diff
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: 
78250diff
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 | |
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1570 | lemma continuous_map_subset_aux1: | 
| 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1571 | "continuous_map X Y f \<Longrightarrow> (\<forall>S. f \<in> (X closure_of S) \<rightarrow> Y closure_of f ` 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 | 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: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1575 | assumes "\<forall>S. S \<subseteq> topspace X \<longrightarrow> f \<in> (X closure_of S) \<rightarrow> Y closure_of f ` 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 | 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: 
78250diff
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: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1601 | "continuous_map X Y f \<longleftrightarrow> (\<forall>S. f \<in> (X closure_of S) \<rightarrow> Y closure_of f ` 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 | 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: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1605 | "continuous_map X Y f \<longleftrightarrow> (\<forall>S. S \<subseteq> topspace X \<longrightarrow> f \<in> (X closure_of S) \<rightarrow> Y closure_of f ` 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 | 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: 
78250diff
changeset | 1610 | f \<in> topspace X \<rightarrow> topspace Y \<and> | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1611 | (\<forall>S. f \<in> (X closure_of S) \<rightarrow> Y closure_of f ` S)" | 
| 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1612 | by (metis continuous_map_eq_image_closure_subset continuous_map_funspace) | 
| 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: 
69945diff
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: 
69945diff
changeset | 1666 | |
| 69994 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 paulson <lp15@cam.ac.uk> parents: 
69986diff
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: 
78250diff
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: 
78250diff
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: 
78250diff
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: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1700 | "continuous_map X (subtopology X' S) f \<longleftrightarrow> continuous_map X X' f \<and> f \<in> (topspace X) \<rightarrow> 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 | 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 - | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1706 | have "\<And>A. f \<in> (X closure_of A) \<rightarrow> subtopology X' S closure_of f ` A" | 
| 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1707 | by (metis L continuous_map_eq_image_closure_subset 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 | 1708 | then show ?thesis | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1709 | by (metis closure_of_subset_subtopology closure_of_subtopology_subset | 
| 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1710 | closure_of_topspace continuous_map_eq_image_closure_subset | 
| 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 1711 | image_subset_iff_funcset 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 | 1712 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1713 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1714 | 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 | 1715 |   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 | 1716 | 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 | 1717 | 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 | 1718 | 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 | 1719 | unfolding continuous_map | 
| 71172 | 1720 | 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 | 1721 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1722 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1723 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1724 | 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: 
78200diff
changeset | 1725 | "continuous_map X Y f \<Longrightarrow> continuous_map (subtopology X S) Y f" | 
| 71172 | 1726 | 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 | 1727 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1728 | 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: 
78200diff
changeset | 1729 | "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 | 1730 | 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 | 1731 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1732 | 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: 
78200diff
changeset | 1733 | "\<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 | 1734 | 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 | 1735 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1736 | 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: 
78200diff
changeset | 1737 | "\<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: 
78200diff
changeset | 1738 | \<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 | 1739 | 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 | 1740 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1741 | 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: 
78200diff
changeset | 1742 | "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 | 1743 | 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 | 1744 | |
| 70065 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 paulson <lp15@cam.ac.uk> parents: 
70044diff
changeset | 1745 | 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: 
69918diff
changeset | 1746 | 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: 
69918diff
changeset | 1747 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 1748 | 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: 
69918diff
changeset | 1749 | by (metis continuous_map_iff_continuous subtopology_UNIV) | 
| 69874 | 1750 | |
| 1751 | lemma continuous_map_openin_preimage_eq: | |
| 1752 | "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: 
78200diff
changeset | 1753 | f \<in> (topspace X) \<rightarrow> topspace Y \<and> (\<forall>U. openin Y U \<longrightarrow> openin X (topspace X \<inter> f -` U))" | 
| 69874 | 1754 | by (auto simp: continuous_map_def vimage_def Int_def) | 
| 1755 | ||
| 1756 | lemma continuous_map_closedin_preimage_eq: | |
| 1757 | "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: 
78200diff
changeset | 1758 | f \<in> (topspace X) \<rightarrow> topspace Y \<and> (\<forall>U. closedin Y U \<longrightarrow> closedin X (topspace X \<inter> f -` U))" | 
| 69874 | 1759 | by (auto simp: continuous_map_closedin vimage_def Int_def) | 
| 1760 | ||
| 1761 | lemma continuous_map_square_root: "continuous_map euclideanreal euclideanreal sqrt" | |
| 1762 | by (simp add: continuous_at_imp_continuous_on isCont_real_sqrt) | |
| 1763 | ||
| 1764 | lemma continuous_map_sqrt [continuous_intros]: | |
| 1765 | "continuous_map X euclideanreal f \<Longrightarrow> continuous_map X euclideanreal (\<lambda>x. sqrt(f x))" | |
| 1766 | by (meson continuous_map_compose continuous_map_eq continuous_map_square_root o_apply) | |
| 1767 | ||
| 69994 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 paulson <lp15@cam.ac.uk> parents: 
69986diff
changeset | 1768 | 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: 
69661diff
changeset | 1769 | 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: 
69661diff
changeset | 1770 | |
| 69994 
cf7150ab1075
more stuff from HOL Light: Euclidean spaces and n-spheres, Hausdorff spaces, etc.
 paulson <lp15@cam.ac.uk> parents: 
69986diff
changeset | 1771 | 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: 
69661diff
changeset | 1772 | |
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 1773 | 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: 
69661diff
changeset | 1774 | by (simp add: continuous_map_from_subtopology) | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 1775 | |
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 1776 | declare continuous_map_id_subt [unfolded id_def, simp] | 
| 
61372780515b
some renamings and a bit of new material
 paulson <lp15@cam.ac.uk> parents: 
69661diff
changeset | 1777 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1778 | |
| 70136 | 1779 | 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: 
69922diff
changeset | 1780 | "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: 
78200diff
changeset | 1781 | = ((\<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: 
69922diff
changeset | 1782 | 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: 
69922diff
changeset | 1783 | |
| 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 1784 | 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: 
69922diff
changeset | 1785 | "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: 
69922diff
changeset | 1786 | 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: 
69922diff
changeset | 1787 | |
| 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 1788 | 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: 
69922diff
changeset | 1789 | 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: 
69922diff
changeset | 1790 | 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: 
69922diff
changeset | 1791 | 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: 
69922diff
changeset | 1792 | |
| 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 1793 | |
| 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 1794 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1795 | 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 | 1796 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1797 | 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 | 1798 | 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 | 1799 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1800 | 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 | 1801 | 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 | 1802 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1803 | 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: 
78200diff
changeset | 1804 | "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: 
78200diff
changeset | 1805 | 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 | 1806 | |
| 78336 | 1807 | lemma open_map_on_empty [simp]: "open_map trivial_topology Y f" | 
| 1808 | by (simp add: open_map_def) | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 1809 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 1810 | lemma closed_map_on_empty: | 
| 78336 | 1811 | "closed_map trivial_topology Y f" | 
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 1812 | by (simp add: closed_map_def closedin_topspace_empty) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 1813 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 1814 | lemma closed_map_const: | 
| 78336 | 1815 |    "closed_map X Y (\<lambda>x. c) \<longleftrightarrow> X = trivial_topology \<or> closedin Y {c}"
 | 
| 1816 | 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: 
70136diff
changeset | 1817 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1818 | 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: 
78200diff
changeset | 1819 | "\<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: 
78200diff
changeset | 1820 | 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 | 1821 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1822 | 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 | 1823 | "(\<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 | 1824 | 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 | 1825 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1826 | 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 | 1827 | 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 | 1828 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1829 | 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 | 1830 | "\<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 | 1831 | 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 | 1832 | 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 | 1833 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1834 | 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 | 1835 | "open_map (subtopology X S) X id \<longleftrightarrow> openin X (topspace X \<inter> S)" | 
| 77234 | 1836 | 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 | 1837 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1838 | 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 | 1839 | "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 | 1840 | 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 | 1841 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1842 | 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 | 1843 | "\<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 | 1844 | 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 | 1845 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1846 | 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: 
78200diff
changeset | 1847 | "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: 
78200diff
changeset | 1848 | 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 | 1849 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1850 | 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: 
78200diff
changeset | 1851 | "\<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 | 1852 | 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 | 1853 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1854 | 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 | 1855 | "(\<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 | 1856 | 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 | 1857 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1858 | 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 | 1859 | 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 | 1860 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1861 | 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 | 1862 | "\<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 | 1863 | 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 | 1864 | 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 | 1865 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1866 | 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 | 1867 | "\<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 | 1868 | 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 | 1869 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1870 | 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 | 1871 | "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 | 1872 | 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 | 1873 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1874 | have *: "closedin X (T \<inter> S)" if "closedin X (S \<inter> topspace X)" "closedin X T" for T | 
| 77234 | 1875 | by (smt (verit, best) closedin_Int closure_of_subset_eq inf_sup_aci le_iff_inf that) | 
| 1876 | 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 | 1877 | 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 | 1878 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1879 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1880 | 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 | 1881 | 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 | 1882 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1883 | 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: 
78200diff
changeset | 1884 | "\<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 | 1885 | 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 | 1886 | 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 | 1887 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1888 | 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: 
78200diff
changeset | 1889 | "\<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 | 1890 | 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 | 1891 | 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 | 1892 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1893 | 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: 
78200diff
changeset | 1894 | "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 | 1895 | 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 | 1896 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1897 | 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: 
78200diff
changeset | 1898 | "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 | 1899 | 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 | 1900 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1901 | 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 | 1902 | "\<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 | 1903 | 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 | 1904 | 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 | 1905 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1906 | 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 | 1907 | "\<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 | 1908 | 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 | 1909 | 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 | 1910 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1911 | 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 | 1912 | "\<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 | 1913 | 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 | 1914 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1915 | 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 | 1916 | "\<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 | 1917 | 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 | 1918 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1919 | lemma open_map_restriction: | 
| 72608 | 1920 |   assumes f: "open_map X X' f" and U: "{x \<in> topspace X. f x \<in> V} = U"
 | 
| 1921 | shows "open_map (subtopology X U) (subtopology X' V) f" | |
| 1922 | unfolding open_map_def | |
| 1923 | proof clarsimp | |
| 1924 | fix W | |
| 1925 | assume "openin (subtopology X U) W" | |
| 1926 | then obtain T where "openin X T" "W = T \<inter> U" | |
| 1927 | by (meson openin_subtopology) | |
| 1928 | with f U have "f ` W = (f ` T) \<inter> V" | |
| 1929 | unfolding open_map_def openin_closedin_eq by auto | |
| 1930 | then show "openin (subtopology X' V) (f ` W)" | |
| 1931 | by (metis \<open>openin X T\<close> f open_map_def openin_subtopology_Int) | |
| 1932 | 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 | 1933 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 1934 | lemma closed_map_restriction: | 
| 72608 | 1935 |   assumes f: "closed_map X X' f" and U: "{x \<in> topspace X. f x \<in> V} = U"
 | 
| 1936 | shows "closed_map (subtopology X U) (subtopology X' V) f" | |
| 1937 | unfolding closed_map_def | |
| 1938 | proof clarsimp | |
| 1939 | fix W | |
| 1940 | assume "closedin (subtopology X U) W" | |
| 1941 | then obtain T where "closedin X T" "W = T \<inter> U" | |
| 1942 | by (meson closedin_subtopology) | |
| 1943 | with f U have "f ` W = (f ` T) \<inter> V" | |
| 1944 | unfolding closed_map_def closedin_def by auto | |
| 1945 | then show "closedin (subtopology X' V) (f ` W)" | |
| 1946 | by (metis \<open>closedin X T\<close> closed_map_def closedin_subtopology f) | |
| 1947 | 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 | 1948 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1949 | lemma closed_map_closure_of_image: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1950 | "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: 
78200diff
changeset | 1951 | 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: 
78200diff
changeset | 1952 | (\<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: 
77934diff
changeset | 1953 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1954 | assume ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1955 | then show ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1956 | 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: 
77934diff
changeset | 1957 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1958 | assume ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1959 | then show ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1960 | 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: 
77934diff
changeset | 1961 | closure_of_subset_eq topspace_discrete_topology) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1962 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1963 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1964 | lemma open_map_interior_of_image_subset: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1965 | "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: 
77934diff
changeset | 1966 | 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: 
77934diff
changeset | 1967 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1968 | lemma open_map_interior_of_image_subset_alt: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1969 | "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: 
77934diff
changeset | 1970 | 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: 
77934diff
changeset | 1971 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1972 | lemma open_map_interior_of_image_subset_gen: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1973 | "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: 
78200diff
changeset | 1974 | (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: 
78200diff
changeset | 1975 | 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: 
77934diff
changeset | 1976 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1977 | lemma open_map_preimage_neighbourhood: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1978 | "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: 
78200diff
changeset | 1979 | (f \<in> topspace X \<rightarrow> topspace Y \<and> | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1980 | (\<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: 
77934diff
changeset | 1981 |             {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: 
77934diff
changeset | 1982 |             (\<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: 
77934diff
changeset | 1983 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1984 | assume L: ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1985 | show ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1986 | proof (intro conjI strip) | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 1987 | show "f \<in> topspace X \<rightarrow> topspace Y" | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1988 | 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: 
77934diff
changeset | 1989 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1990 | fix U T | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1991 |     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: 
77934diff
changeset | 1992 | have "closedin Y (topspace Y - f ` (topspace X - U))" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1993 | 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: 
77934diff
changeset | 1994 | with UT | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1995 |     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: 
77934diff
changeset | 1996 | using image_iff by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1997 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1998 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 1999 | assume R: ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2000 | show ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2001 | unfolding open_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2002 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2003 | fix U assume "openin X U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2004 |     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: 
77934diff
changeset | 2005 | by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2006 | then obtain V where V: "closedin Y V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2007 |       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: 
77934diff
changeset | 2008 | 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: 
77934diff
changeset | 2009 | then have "f ` U \<subseteq> topspace Y - V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2010 | 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: 
77934diff
changeset | 2011 | with sub have "f ` U = topspace Y - V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2012 | by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2013 | then show "openin Y (f ` U)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2014 | using V(1) by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2015 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2016 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2017 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2018 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2019 | lemma closed_map_preimage_neighbourhood: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2020 | "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: 
78200diff
changeset | 2021 | f \<in> topspace X \<rightarrow> topspace Y \<and> | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2022 | (\<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: 
77934diff
changeset | 2023 |               {x \<in> topspace X. f x \<in> T} \<subseteq> U
 | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2024 | \<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: 
77934diff
changeset | 2025 |                       {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: 
77934diff
changeset | 2026 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2027 | assume L: ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2028 | show ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2029 | proof (intro conjI strip) | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 2030 | show "f \<in> topspace X \<rightarrow> topspace Y" | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2031 | by (simp add: L closed_map_imp_subset_topspace) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2032 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2033 | fix U T | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2034 |     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: 
77934diff
changeset | 2035 | then have "openin Y (topspace Y - f ` (topspace X - U))" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2036 | 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: 
77934diff
changeset | 2037 |     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: 
77934diff
changeset | 2038 | using UT image_iff by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2039 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2040 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2041 | assume R: ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2042 | show ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2043 | unfolding closed_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2044 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2045 | fix U assume "closedin X U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2046 |     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: 
77934diff
changeset | 2047 | by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2048 | then obtain V where V: "openin Y V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2049 |       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: 
77934diff
changeset | 2050 | 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: 
77934diff
changeset | 2051 | 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: 
77934diff
changeset | 2052 | then have "f ` U \<subseteq> topspace Y - V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2053 | 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: 
77934diff
changeset | 2054 | with sub have "f ` U = topspace Y - V" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2055 | by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2056 | with V show "closedin Y (f ` U)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2057 | by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2058 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2059 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2060 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2061 | lemma closed_map_fibre_neighbourhood: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2062 | "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: 
78200diff
changeset | 2063 | f \<in> (topspace X) \<rightarrow> topspace Y \<and> | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2064 |      (\<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: 
77934diff
changeset | 2065 |      \<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: 
77934diff
changeset | 2066 | unfolding closed_map_preimage_neighbourhood | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2067 | proof (intro conj_cong refl all_cong1) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2068 | fix U | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 2069 | assume "f \<in> topspace X \<rightarrow> topspace Y" | 
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2070 |   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: 
77934diff
changeset | 2071 |          \<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: 
77934diff
changeset | 2072 |       = (\<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: 
77934diff
changeset | 2073 |          \<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: 
77934diff
changeset | 2074 | (is "(\<forall>T. ?P T) \<longleftrightarrow> (\<forall>y. ?Q y)") | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2075 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2076 | assume L [rule_format]: "\<forall>T. ?P T" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2077 | show "\<forall>y. ?Q y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2078 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2079 | fix y show "?Q y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2080 |         using L [of "{y}"] by blast
 | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2081 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2082 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2083 | assume R: "\<forall>y. ?Q y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2084 | show "\<forall>T. ?P T" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2085 | proof (cases "openin X U") | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2086 | case True | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2087 | note [[unify_search_bound=3]] | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2088 |       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: 
77934diff
changeset | 2089 |                        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: 
77934diff
changeset | 2090 | using R by (simp add: True) meson | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2091 | show ?thesis | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2092 | proof clarify | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2093 | fix T | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2094 |         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: 
77934diff
changeset | 2095 |         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: 
77934diff
changeset | 2096 | 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: 
77934diff
changeset | 2097 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2098 | qed auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2099 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2100 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2101 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2102 | lemma open_map_in_subtopology: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2103 | "openin Y S | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 2104 | \<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: 
78200diff
changeset | 2105 | 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: 
77934diff
changeset | 2106 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2107 | lemma open_map_from_open_subtopology: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2108 | "\<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: 
77934diff
changeset | 2109 | using open_map_in_subtopology by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2110 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2111 | lemma closed_map_in_subtopology: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2112 | "closedin Y S | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 2113 | \<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: 
77934diff
changeset | 2114 | 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: 
77934diff
changeset | 2115 | closedin_closed_subtopology closedin_subset topspace_subtopology_subset) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2116 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2117 | lemma closed_map_from_closed_subtopology: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2118 | "\<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: 
77934diff
changeset | 2119 | using closed_map_in_subtopology by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2120 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2121 | lemma closed_map_from_composition_left: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2122 | 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: 
77934diff
changeset | 2123 | shows "closed_map Y Z g" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2124 | unfolding closed_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2125 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2126 | fix U assume "closedin Y U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2127 |   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: 
77934diff
changeset | 2128 | using contf closedin_continuous_map_preimage by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2129 |   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: 
77934diff
changeset | 2130 | using cmf closed_map_def by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2131 | moreover | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2132 | 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: 
77934diff
changeset | 2133 | 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: 
77934diff
changeset | 2134 |   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: 
77934diff
changeset | 2135 | ultimately show "closedin Z (g ` U)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2136 | by metis | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2137 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2138 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2139 | text \<open>identical proof as the above\<close> | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2140 | lemma open_map_from_composition_left: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2141 | 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: 
77934diff
changeset | 2142 | shows "open_map Y Z g" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2143 | unfolding open_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2144 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2145 | fix U assume "openin Y U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2146 |   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: 
77934diff
changeset | 2147 | using contf openin_continuous_map_preimage by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2148 |   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: 
77934diff
changeset | 2149 | using cmf open_map_def by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2150 | moreover | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2151 | 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: 
77934diff
changeset | 2152 | 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: 
77934diff
changeset | 2153 |   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: 
77934diff
changeset | 2154 | ultimately show "openin Z (g ` U)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2155 | by metis | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2156 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2157 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2158 | 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: 
78200diff
changeset | 2159 | 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: 
77934diff
changeset | 2160 | shows "closed_map X Y f" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2161 | unfolding closed_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2162 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2163 | fix C assume "closedin X C" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2164 | 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: 
77934diff
changeset | 2165 | 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: 
77934diff
changeset | 2166 | then | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2167 |   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: 
77934diff
changeset | 2168 | 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: 
77934diff
changeset | 2169 | moreover have "closedin Z ((g \<circ> f) ` C)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2170 | 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: 
77934diff
changeset | 2171 | ultimately show "closedin Y (f ` C)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2172 | using assms(3) closedin_continuous_map_preimage by fastforce | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2173 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2174 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2175 | text \<open>identical proof as the above\<close> | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2176 | 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: 
78200diff
changeset | 2177 | 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: 
77934diff
changeset | 2178 | shows "open_map X Y f" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2179 | unfolding open_map_def | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2180 | proof (intro strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2181 | fix C assume "openin X C" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2182 | 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: 
77934diff
changeset | 2183 | 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: 
77934diff
changeset | 2184 | then | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2185 |   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: 
77934diff
changeset | 2186 | 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: 
77934diff
changeset | 2187 | moreover have "openin Z ((g \<circ> f) ` C)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2188 | 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: 
77934diff
changeset | 2189 | ultimately show "openin Y (f ` C)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2190 | using assms(3) openin_continuous_map_preimage by fastforce | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2191 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2192 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2193 | 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 | 2194 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2195 | 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 | 2196 | "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 | 2197 | 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 | 2198 |         (\<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 | 2199 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2200 | 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 | 2201 | 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 | 2202 | shows "quotient_map X X' g" | 
| 77234 | 2203 | 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 | 2204 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2205 | 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 | 2206 | 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 | 2207 | 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 | 2208 | 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 | 2209 | 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 | 2210 | show "(g \<circ> f) ` topspace X = topspace X''" | 
| 69661 | 2211 | 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 | 2212 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2213 | fix U'' | 
| 77234 | 2214 | 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 | 2215 |   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 | 2216 | 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 | 2217 | 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 | 2218 |   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 | 2219 | using assms unfolding quotient_map_def by simp | 
| 77234 | 2220 |   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 | 2221 | using f quotient_map_def by fastforce | 
| 77234 | 2222 |   then show "openin X {x \<in> topspace X. (g \<circ> f) x \<in> U''} = openin X'' U''"
 | 
| 2223 | 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 | 2224 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2225 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2226 | 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 | 2227 | 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 | 2228 | 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 | 2229 | 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 | 2230 | 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 | 2231 | 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 | 2232 | 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 | 2233 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2234 | 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 | 2235 | 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 | 2236 |   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 | 2237 | 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 | 2238 |   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 | 2239 | 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 | 2240 | 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 | 2241 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2242 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2243 | 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 | 2244 | "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 | 2245 | 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 | 2246 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2247 | 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 | 2248 | "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 | 2249 | 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 | 2250 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2251 | 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 | 2252 | "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 | 2253 | 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 | 2254 |         (\<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 | 2255 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2256 |   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 | 2257 | 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 | 2258 | 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 | 2259 |   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 | 2260 |           (\<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 | 2261 | 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 | 2262 | 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 | 2263 | 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 | 2264 |     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 | 2265 | 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 | 2266 |     show "closedin X {x \<in> topspace X. f x \<in> U'} = closedin X' U'"
 | 
| 69286 | 2267 | 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 | 2268 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2269 | 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 | 2270 |     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 | 2271 | 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 | 2272 |     show "openin X {x \<in> topspace X. f x \<in> U'} = openin X' U'"
 | 
| 69286 | 2273 | 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 | 2274 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2275 | 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 | 2276 | 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 | 2277 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2278 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2279 | 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 | 2280 | 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 | 2281 | 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 | 2282 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2283 |   { 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 | 2284 |     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 | 2285 |     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 | 2286 | 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 | 2287 | 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 | 2288 | 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 | 2289 | } | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2290 |   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 | 2291 | 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 | 2292 | 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 | 2293 | 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 | 2294 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2295 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2296 | 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 | 2297 | 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 | 2298 | 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 | 2299 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2300 |   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 | 2301 | 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 | 2302 | 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 | 2303 | 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 | 2304 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2305 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2306 | 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 | 2307 | "\<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 | 2308 | 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 | 2309 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2310 | 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 | 2311 | "\<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 | 2312 | 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 | 2313 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2314 | 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 | 2315 | 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 | 2316 | 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 | 2317 | 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 | 2318 | (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 | 2319 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2320 | assume L: ?lhs | 
| 77234 | 2321 | 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 | 2322 | 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 | 2323 | 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 | 2324 | 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 | 2325 | 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 | 2326 | 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 | 2327 |     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 | 2328 | 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 | 2329 | 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 | 2330 | 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 | 2331 | 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 | 2332 | qed | 
| 77234 | 2333 | then have "closed_map X X' f" | 
| 2334 | by (simp add: L assms bijective_open_imp_closed_map quotient_imp_surjective_map) | |
| 2335 | then show ?rhs | |
| 2336 | 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 | 2337 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2338 | 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 | 2339 | 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 | 2340 | 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 | 2341 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2342 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2343 | 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 | 2344 | 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 | 2345 | 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 | 2346 | 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 | 2347 | proof (intro conjI ballI allI impI) | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 2348 | 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: 
78250diff
changeset | 2349 | using assms unfolding quotient_map_def Pi_iff | 
| 73932 
fd21b4a93043
added opaque_combs and renamed hide_lams to opaque_lifting
 desharna parents: 
72608diff
changeset | 2350 | 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 | 2351 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2352 | 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 | 2353 | 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 | 2354 | 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 | 2355 | 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 | 2356 |   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 | 2357 | 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 | 2358 |   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 | 2359 | 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 | 2360 |   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 | 2361 | 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 | 2362 |   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 | 2363 | 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 | 2364 | 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 | 2365 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2366 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2367 | 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 | 2368 | "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 | 2369 | 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 | 2370 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2371 | 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 | 2372 | "quotient_map X X' f \<Longrightarrow> quotient_map X X'' (g \<circ> f) \<longleftrightarrow> quotient_map X' X'' g" | 
| 72608 | 2373 | 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 | 2374 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2375 | 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 | 2376 |   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 | 2377 | 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 | 2378 | 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 | 2379 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2380 | 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 | 2381 | 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 | 2382 | 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 | 2383 | 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 | 2384 |      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 | 2385 | 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 | 2386 | 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 | 2387 | 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 | 2388 | 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 | 2389 | 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 | 2390 | 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 | 2391 | show "f ` topspace (subtopology X U) = topspace (subtopology Y V)" | 
| 71172 | 2392 | 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 | 2393 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2394 | 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 | 2395 | 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 | 2396 | then have "Y' \<subseteq> topspace Y" "Y' \<subseteq> V" | 
| 71172 | 2397 | 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 | 2398 |     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 | 2399 | 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 | 2400 |     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 | 2401 | using U V Y \<open>openin X U\<close> \<open>Y' \<subseteq> topspace Y\<close> \<open>Y' \<subseteq> V\<close> | 
| 71172 | 2402 | 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 | 2403 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2404 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2405 | 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 | 2406 | 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 | 2407 | 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 | 2408 | 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 | 2409 |      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 | 2410 | 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 | 2411 | 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 | 2412 | 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 | 2413 | 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 | 2414 | 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 | 2415 | 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 | 2416 | show "f ` topspace (subtopology X U) = topspace (subtopology Y V)" | 
| 71172 | 2417 | 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 | 2418 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2419 | 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 | 2420 | 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 | 2421 | then have "Y' \<subseteq> topspace Y" "Y' \<subseteq> V" | 
| 71172 | 2422 | 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 | 2423 |     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 | 2424 | 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 | 2425 |     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 | 2426 | using U V Y \<open>closedin X U\<close> \<open>Y' \<subseteq> topspace Y\<close> \<open>Y' \<subseteq> V\<close> | 
| 71172 | 2427 | 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 | 2428 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2429 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2430 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2431 | 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 | 2432 | "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 | 2433 | 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 | 2434 |         (\<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 | 2435 | (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 | 2436 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2437 | 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 | 2438 | 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 | 2439 |     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 | 2440 | 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 | 2441 | 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 | 2442 | 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 | 2443 | 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 | 2444 | 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 | 2445 | 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 | 2446 | 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 | 2447 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2448 | 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 | 2449 |     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 | 2450 |     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 | 2451 | 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 | 2452 | 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 | 2453 | 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 | 2454 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2455 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2456 | 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 | 2457 |   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 | 2458 | 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 | 2459 |        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 | 2460 | 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 | 2461 | 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 | 2462 | 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 | 2463 | 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 | 2464 |     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 | 2465 |     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 | 2466 | 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 | 2467 | 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 | 2468 | 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 | 2469 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2470 | 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 | 2471 | 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 | 2472 |     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 | 2473 | 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 | 2474 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2475 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2476 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2477 | lemma quotient_map_saturated_closed: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2478 | "quotient_map X Y f \<longleftrightarrow> | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2479 | 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: 
77934diff
changeset | 2480 |         (\<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: 
77934diff
changeset | 2481 | (is "?lhs = ?rhs") | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2482 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2483 | assume L: ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2484 | then obtain fim: "f ` topspace X = topspace Y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2485 |     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: 
77934diff
changeset | 2486 | by (simp add: quotient_map_closedin) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2487 | show ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2488 | proof (intro conjI allI impI) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2489 | show "continuous_map X Y f" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2490 | by (simp add: L quotient_imp_continuous_map) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2491 | show "f ` topspace X = topspace Y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2492 | by (simp add: fim) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2493 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2494 | fix U :: "'a set" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2495 |     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: 
77934diff
changeset | 2496 |     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: 
77934diff
changeset | 2497 | using fim closedin_subset by fastforce+ | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2498 | show "closedin Y (f ` U)" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2499 | by (simp add: sub Y eq U) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2500 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2501 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2502 | assume ?rhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2503 |   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: 
77934diff
changeset | 2504 | and fim: "f ` topspace X = topspace Y" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2505 |     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: 
77934diff
changeset | 2506 | by (simp add: continuous_map_closedin) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2507 | show ?lhs | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2508 | 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: 
77934diff
changeset | 2509 | fix U :: "'b set" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2510 |     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: 
77934diff
changeset | 2511 |     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: 
77934diff
changeset | 2512 | using \<open>U \<subseteq> topspace Y\<close> fim by auto | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2513 | show "closedin Y U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2514 | using XY [OF X] by (simp add: feq) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2515 | next | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2516 | fix U :: "'b set" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2517 | assume "U \<subseteq> topspace Y" and Y: "closedin Y U" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2518 |     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: 
77934diff
changeset | 2519 | by (metis YX [OF Y]) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2520 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2521 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2522 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2523 | lemma quotient_map_onto_image: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2524 |   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: 
77934diff
changeset | 2525 | shows "quotient_map X (subtopology Y (f ` topspace X)) f" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2526 | unfolding quotient_map_def topspace_subtopology | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2527 | proof (intro conjI strip) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2528 | fix U | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2529 | assume "U \<subseteq> topspace Y \<inter> f ` topspace X" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2530 |   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: 
77934diff
changeset | 2531 | by fastforce | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2532 |   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: 
77934diff
changeset | 2533 | 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: 
77934diff
changeset | 2534 |   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: 
77934diff
changeset | 2535 | by (force simp: openin_subtopology_alt image_iff) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2536 | qed (use assms in auto) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2537 | |
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2538 | lemma quotient_map_lift_exists: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2539 | 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: 
77934diff
changeset | 2540 | 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: 
77934diff
changeset | 2541 | 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: 
77934diff
changeset | 2542 | "\<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: 
77934diff
changeset | 2543 | proof - | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2544 | 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: 
77934diff
changeset | 2545 | 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: 
77934diff
changeset | 2546 | show ?thesis | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2547 | proof | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2548 | show "g ` topspace Y = h ` topspace X" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2549 | using f g by (force dest!: quotient_imp_surjective_map) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2550 | show "continuous_map Y Z g" | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2551 | 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: 
77934diff
changeset | 2552 | qed (simp add: g) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2553 | qed | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2554 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2555 | 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 | 2556 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2557 | 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 | 2558 | 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 | 2559 | 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 | 2560 |            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 | 2561 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2562 | 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 | 2563 |      "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 | 2564 |      "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 | 2565 | 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 | 2566 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2567 | 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 | 2568 |      "separatedin X S S \<longleftrightarrow> S = {}"
 | 
| 77234 | 2569 | 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 | 2570 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2571 | 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 | 2572 | "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 | 2573 | 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 | 2574 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2575 | 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 | 2576 | "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 | 2577 | 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 | 2578 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2579 | 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 | 2580 | "\<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 | 2581 | 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 | 2582 | 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 | 2583 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2584 | 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 | 2585 | "\<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 | 2586 | 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 | 2587 | 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 | 2588 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2589 | 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 | 2590 | "\<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: 
71633diff
changeset | 2591 | unfolding closure_of_eq disjnt_def separatedin_def | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 2592 | 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 | 2593 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2594 | lemma separatedin_subtopology: | 
| 77234 | 2595 | "separatedin (subtopology X U) S T \<longleftrightarrow> S \<subseteq> U \<and> T \<subseteq> U \<and> separatedin X S T" | 
| 72608 | 2596 | 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 | 2597 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2598 | 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 | 2599 | "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 | 2600 | 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 | 2601 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2602 | 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 | 2603 |    "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 | 2604 | 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 | 2605 | (\<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 | 2606 | (\<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 | 2607 | 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 | 2608 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2609 | 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 | 2610 | "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 | 2611 | "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 | 2612 | 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 | 2613 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2614 | 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 | 2615 | "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 | 2616 | "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 | 2617 | 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 | 2618 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2619 | 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 | 2620 | "\<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 | 2621 | unfolding separatedin_def | 
| 72608 | 2622 | 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 | 2623 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2624 | lemma separatedin_closedin_diff: | 
| 72608 | 2625 | assumes "closedin X S" "closedin X T" | 
| 2626 | shows "separatedin X (S - T) (T - S)" | |
| 2627 | proof - | |
| 2628 | have "S - T \<subseteq> topspace X" "T - S \<subseteq> topspace X" | |
| 2629 | using assms closedin_subset by auto | |
| 2630 | with assms show ?thesis | |
| 2631 | by (simp add: separatedin_def Diff_Int_distrib2 closure_of_minimal inf_absorb2) | |
| 2632 | 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 | 2633 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2634 | 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 | 2635 | "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 | 2636 | 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 | 2637 | 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 | 2638 | closedin (subtopology X (S \<union> T)) T" | 
| 72608 | 2639 | 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 | 2640 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2641 | 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 | 2642 | "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 | 2643 | 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 | 2644 | 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 | 2645 | 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 | 2646 | 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 | 2647 | 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 | 2648 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2649 | lemma separatedin_full: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2650 | "S \<union> T = topspace X | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 2651 | \<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: 
77934diff
changeset | 2652 | 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: 
77934diff
changeset | 2653 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2654 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2655 | 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 | 2656 | 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 | 2657 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2658 | 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 | 2659 | where | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2660 | "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 | 2661 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2662 | 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 | 2663 | where | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2664 | "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 | 2665 | 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 | 2666 | (\<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 | 2667 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2668 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2669 | 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 | 2670 | "\<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 | 2671 | 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 | 2672 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2673 | 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 | 2674 | "\<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 | 2675 | \<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 | 2676 | \<Longrightarrow> homeomorphic_maps X Y f' g'" | 
| 72608 | 2677 | unfolding homeomorphic_maps_def | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 2678 | 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 | 2679 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2680 | 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 | 2681 | "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 | 2682 | 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 | 2683 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2684 | lemma homeomorphic_maps_id: | 
| 72608 | 2685 | "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 | 2686 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2687 | 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 | 2688 | 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 | 2689 | 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 | 2690 | 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 | 2691 | 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 | 2692 | 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 | 2693 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2694 | 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 | 2695 | 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 | 2696 | 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 | 2697 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2698 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2699 | 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 | 2700 | (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 | 2701 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2702 | 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 | 2703 | 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 | 2704 | 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 | 2705 | 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 | 2706 | 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 | 2707 | 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 | 2708 | 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 | 2709 | 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 | 2710 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2711 | 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 | 2712 | 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 | 2713 | 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 | 2714 | 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 | 2715 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2716 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2717 | 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 | 2718 | 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 | 2719 | 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 | 2720 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2721 | 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 | 2722 | 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 | 2723 | 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 | 2724 | 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 | 2725 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2726 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2727 | 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 | 2728 | "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 | 2729 | 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 | 2730 | \<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 | 2731 | unfolding homeomorphic_maps_def | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 2732 | 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 | 2733 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2734 | 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 | 2735 | "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 | 2736 | 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 | 2737 | 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 | 2738 | 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 | 2739 | 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 | 2740 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2741 | 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 | 2742 | "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 | 2743 | 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 | 2744 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2745 | 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 | 2746 | "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 | 2747 | 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 | 2748 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2749 | 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 | 2750 | "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 | 2751 | 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 | 2752 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2753 | 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: 
78200diff
changeset | 2754 | "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: 
78200diff
changeset | 2755 | 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 | 2756 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2757 | 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 | 2758 | "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 | 2759 | 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 | 2760 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2761 | 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 | 2762 | "\<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 | 2763 | \<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 | 2764 | 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 | 2765 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2766 | 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 | 2767 | "\<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 | 2768 | \<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 | 2769 | 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 | 2770 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2771 | 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 | 2772 | 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 | 2773 | 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 | 2774 | 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 | 2775 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2776 |   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 | 2777 | 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 | 2778 | 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 | 2779 | 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 | 2780 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2781 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2782 | 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 | 2783 | 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 | 2784 | 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 | 2785 | 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 | 2786 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2787 |   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 | 2788 | 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 | 2789 | 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 | 2790 | 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 | 2791 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2792 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2793 | 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 | 2794 | "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 | 2795 | 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 | 2796 | (\<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 | 2797 | (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 | 2798 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2799 | 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 | 2800 | 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 | 2801 | 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 | 2802 | 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 | 2803 | 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 | 2804 | show "open_map X Y f" | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 2805 | 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: 
78250diff
changeset | 2806 | 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 | 2807 | show "open_map Y X g" | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 2808 | 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: 
78250diff
changeset | 2809 | 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 | 2810 | 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: 
78250diff
changeset | 2811 | 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 | 2812 | 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 | 2813 | 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 | 2814 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2815 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2816 | 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 | 2817 | 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 | 2818 | 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 | 2819 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2820 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2821 | 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 | 2822 | "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 | 2823 | 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 | 2824 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2825 | 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 | 2826 | "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 | 2827 | (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 | 2828 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2829 | 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 | 2830 | 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 | 2831 | "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 | 2832 | 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 | 2833 | 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 | 2834 | 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 | 2835 | 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 | 2836 | 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 | 2837 | 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 | 2838 | 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 | 2839 | 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 | 2840 | 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 | 2841 | 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 | 2842 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2843 | 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 | 2844 | "\<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 | 2845 | 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 | 2846 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2847 | 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 | 2848 | 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 | 2849 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2850 | 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 | 2851 | 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 | 2852 | 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 | 2853 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2854 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2855 | 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 | 2856 | "\<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 | 2857 | 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 | 2858 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2859 | 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 | 2860 | "\<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 | 2861 | 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 | 2862 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2863 | 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 | 2864 | 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 | 2865 | 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 | 2866 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2867 | 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 | 2868 | 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 | 2869 | 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 | 2870 | 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 | 2871 | 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 | 2872 | 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 | 2873 | 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 | 2874 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2875 | 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 | 2876 | 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 | 2877 | 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 | 2878 | 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 | 2879 | 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 | 2880 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2881 | 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 | 2882 | 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 | 2883 | 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 | 2884 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2885 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2886 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2887 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2888 | 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 | 2889 | 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 | 2890 | 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 | 2891 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2892 | 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 | 2893 | 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 | 2894 | 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 | 2895 | 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 | 2896 | 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 | 2897 | 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 | 2898 | 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 | 2899 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2900 | 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 | 2901 | 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 | 2902 | 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 | 2903 | 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 | 2904 | 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 | 2905 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2906 | 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 | 2907 | 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 | 2908 | 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 | 2909 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2910 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2911 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2912 | 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 | 2913 | "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 | 2914 | 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 | 2915 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2916 | 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 | 2917 | "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 | 2918 | 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 | 2919 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2920 | 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 | 2921 | 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: 
78200diff
changeset | 2922 | 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: 
78200diff
changeset | 2923 | 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 | 2924 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2925 | 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 | 2926 | 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: 
78200diff
changeset | 2927 | 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: 
78200diff
changeset | 2928 | 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 | 2929 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2930 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2931 | 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 | 2932 | 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 | 2933 | 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 | 2934 | proof - | 
| 
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 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 | 2936 | 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 | 2937 | 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 | 2938 | (\<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 | 2939 | 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 | 2940 | proof - | 
| 72608 | 2941 | 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 | 2942 | by (meson hom homeomorphic_map_openness_eq inj inj_on_image_mem_iff that) | 
| 72608 | 2943 | 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 | 2944 | if "T \<subseteq> topspace X \<and> f x \<in> f ` T \<and> openin Y (f ` T)" for T | 
| 77234 | 2945 | by (smt (verit, del_insts) S \<open>x \<in> topspace X\<close> image_iff inj inj_on_def subsetD that) | 
| 72608 | 2946 | ultimately show ?thesis | 
| 2947 | 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 | 2948 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2949 |   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 | 2950 | 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 | 2951 | 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 | 2952 | unfolding derived_set_of_def | 
| 72608 | 2953 | 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 | 2954 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2955 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2956 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2957 | 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 | 2958 | 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 | 2959 | 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 | 2960 | 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 | 2961 | 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 | 2962 | 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 | 2963 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2964 | 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 | 2965 | 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 | 2966 | 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 | 2967 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2968 |   { 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 | 2969 | 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 | 2970 | 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 | 2971 | 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 | 2972 | 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 | 2973 | moreover | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2974 |   { 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 | 2975 | 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 | 2976 | 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 | 2977 | 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 | 2978 | moreover | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2979 |   { 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 | 2980 | 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 | 2981 | 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 | 2982 | 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 | 2983 | unfolding homeomorphic_eq_everything_map | 
| 71857 
d73955442df5
a few new lemmas about functions
 paulson <lp15@cam.ac.uk> parents: 
71840diff
changeset | 2984 | 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: 
71840diff
changeset | 2985 | } | 
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2986 | 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 | 2987 | 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 | 2988 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2989 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 2990 | 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 | 2991 | 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 | 2992 | 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 | 2993 | 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 | 2994 | 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 | 2995 | 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 | 2996 | 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 | 2997 | 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 | 2998 | 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 | 2999 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3000 | 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 | 3001 | 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 | 3002 | 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 | 3003 | 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 | 3004 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3005 | 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 | 3006 | 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 | 3007 | 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 | 3008 | 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 | 3009 | then show "x \<notin> Y interior_of f ` S" | 
| 77234 | 3010 | using S hom homeomorphic_map_interior_of y(1) | 
| 3011 | unfolding homeomorphic_map_def | |
| 3012 | 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 | 3013 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3014 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3015 | 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 | 3016 | "\<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 | 3017 | \<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 | 3018 | unfolding homeomorphic_maps_def | 
| 71172 | 3019 | 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 | 3020 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3021 | 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 | 3022 | "\<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 | 3023 | \<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 | 3024 | unfolding homeomorphic_maps_def | 
| 71172 | 3025 | 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 | 3026 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3027 | 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 | 3028 | "\<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 | 3029 | \<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 | 3030 | 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 | 3031 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3032 | lemma homeomorphic_map_subtopologies_alt: | 
| 72608 | 3033 | assumes hom: "homeomorphic_map X Y f" | 
| 3034 | and S: "\<And>x. \<lbrakk>x \<in> topspace X; f x \<in> topspace Y\<rbrakk> \<Longrightarrow> f x \<in> T \<longleftrightarrow> x \<in> S" | |
| 3035 | shows "homeomorphic_map (subtopology X S) (subtopology Y T) f" | |
| 3036 | proof - | |
| 3037 | have "homeomorphic_maps (subtopology X S) (subtopology Y T) f g" | |
| 77234 | 3038 | if "homeomorphic_maps X Y f g" for g | 
| 72608 | 3039 | proof (rule homeomorphic_maps_subtopologies [OF that]) | 
| 77234 | 3040 | have "f ` (topspace X \<inter> S) \<subseteq> topspace Y \<inter> T" | 
| 3041 | using S hom homeomorphic_imp_surjective_map by fastforce | |
| 3042 | 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: 
78250diff
changeset | 3043 | using that unfolding homeomorphic_maps_def continuous_map_def Pi_iff | 
| 77234 | 3044 | by (smt (verit, del_insts) Int_iff S image_iff subsetI subset_antisym) | 
| 72608 | 3045 | qed | 
| 3046 | then show ?thesis | |
| 3047 | using hom by (meson homeomorphic_map_maps) | |
| 3048 | 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 | 3049 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3050 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3051 | 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 | 3052 | |
| 80914 
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
 wenzelm parents: 
78336diff
changeset | 3053 | 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 | 3054 | 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 | 3055 | |
| 78200 
264f2b69d09c
New and generalised analysis lemmas
 paulson <lp15@cam.ac.uk> parents: 
78127diff
changeset | 3056 | 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 | 3057 | 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 | 3058 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3059 | 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 | 3060 | "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 | 3061 | 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 | 3062 | |
| 70086 
72c52a897de2
First tranche of the Homology development: Simplices
 paulson <lp15@cam.ac.uk> parents: 
70065diff
changeset | 3063 | 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 | 3064 | "\<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 | 3065 | 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 | 3066 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3067 | 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 | 3068 | "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 | 3069 | 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 | 3070 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3071 | 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 | 3072 | "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 | 3073 | 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 | 3074 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3075 | 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 | 3076 | "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 | 3077 | 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 | 3078 | 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 | 3079 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3080 | lemma homeomorphic_empty_space: | 
| 78336 | 3081 | "X homeomorphic_space Y \<Longrightarrow> X = trivial_topology \<longleftrightarrow> Y = trivial_topology" | 
| 3082 | 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 | 3083 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3084 | lemma homeomorphic_empty_space_eq: | 
| 78336 | 3085 | assumes "X = trivial_topology" | 
| 3086 | shows "X homeomorphic_space Y \<longleftrightarrow> Y = trivial_topology" | |
| 3087 | using assms funcset_mem | |
| 3088 | 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 | 3089 | |
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 3090 | lemma homeomorphic_space_unfold: | 
| 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 3091 | assumes "X homeomorphic_space Y" | 
| 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 3092 | 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: 
78200diff
changeset | 3093 | 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: 
78200diff
changeset | 3094 | 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: 
78200diff
changeset | 3095 | 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: 
78200diff
changeset | 3096 | 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: 
78200diff
changeset | 3097 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3098 | 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 | 3099 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3100 | 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 | 3101 | "connected_space X \<equiv> | 
| 69508 | 3102 | \<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 | 3103 |                   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 | 3104 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3105 | 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 | 3106 | "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 | 3107 | |
| 69945 
35ba13ac6e5c
New abstract topological material
 paulson <lp15@cam.ac.uk> parents: 
69939diff
changeset | 3108 | lemma connected_spaceD: | 
| 
35ba13ac6e5c
New abstract topological material
 paulson <lp15@cam.ac.uk> parents: 
69939diff
changeset | 3109 | "\<lbrakk>connected_space X; | 
| 
35ba13ac6e5c
New abstract topological material
 paulson <lp15@cam.ac.uk> parents: 
69939diff
changeset | 3110 |     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: 
69939diff
changeset | 3111 | by (auto simp: connected_space_def) | 
| 
35ba13ac6e5c
New abstract topological material
 paulson <lp15@cam.ac.uk> parents: 
69939diff
changeset | 3112 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3113 | 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 | 3114 | 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 | 3115 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3116 | 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 | 3117 | "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 | 3118 | 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 | 3119 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3120 | 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 | 3121 | "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 | 3122 | 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 | 3123 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3124 | 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 | 3125 | "connectedin (subtopology X S) T \<longleftrightarrow> connectedin X T \<and> T \<subseteq> S" | 
| 71172 | 3126 | 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 | 3127 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3128 | 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 | 3129 | "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 | 3130 |       (\<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 | 3131 | 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 | 3132 | 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 | 3133 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3134 | 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 | 3135 | "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 | 3136 | (\<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 | 3137 |                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 | 3138 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3139 | assume ?lhs | 
| 77234 | 3140 |   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 | 3141 | by (simp add: connected_space_def) | 
| 77234 | 3142 | 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 | 3143 | unfolding connected_space_def | 
| 77234 | 3144 | 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 | 3145 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3146 | assume R: ?rhs | 
| 77234 | 3147 | 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 | 3148 | unfolding connected_space_def | 
| 77234 | 3149 | 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 | 3150 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3151 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3152 | 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 | 3153 | "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 | 3154 | (\<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 | 3155 |                 E1 \<union> E2 = topspace X \<and> E1 \<inter> E2 = {} \<and> E1 \<noteq> {} \<and> E2 \<noteq> {})"
 | 
| 72608 | 3156 | 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 | 3157 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3158 | 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 | 3159 | "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 | 3160 |         (\<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 | 3161 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3162 |   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 | 3163 | \<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 | 3164 | 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 | 3165 | 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 | 3166 | 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 | 3167 | 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 | 3168 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3169 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3170 | 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 | 3171 | "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 | 3172 | 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 | 3173 | (\<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 | 3174 | openin X E1 \<and> openin X E2 \<and> | 
| 72608 | 3175 |              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 | 3176 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3177 | 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 | 3178 | 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 | 3179 | by auto | 
| 72608 | 3180 | show ?thesis | 
| 3181 | unfolding connectedin_def connected_space_def openin_subtopology topspace_subtopology * | |
| 3182 | 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 | 3183 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3184 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3185 | lemma connectedinD: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3186 |      "\<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: 
77934diff
changeset | 3187 | by (meson connectedin) | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3188 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 3189 | 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: 
69918diff
changeset | 3190 | 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 | 3191 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3192 | 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 | 3193 | "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 | 3194 | S \<subseteq> topspace X \<and> | 
| 69508 | 3195 | \<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 | 3196 | 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 | 3197 |                   (E1 \<inter> E2 \<inter> S = {}) \<and>
 | 
| 69508 | 3198 |                   \<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 | 3199 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3200 | 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 | 3201 | 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 | 3202 | 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 | 3203 | show ?thesis | 
| 72608 | 3204 | unfolding connectedin_def connected_space_closedin closedin_subtopology topspace_subtopology * | 
| 3205 | 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 | 3206 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3207 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3208 | 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 | 3209 | 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 | 3210 | |
| 78336 | 3211 | 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 | 3212 | 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 | 3213 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3214 | 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 | 3215 | 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 | 3216 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3217 | 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 | 3218 | "connectedin (subtopology X S) S \<longleftrightarrow> connectedin X S" | 
| 72608 | 3219 | 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 | 3220 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3221 | 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 | 3222 |   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 | 3223 | 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 | 3224 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3225 | 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 | 3226 | 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 | 3227 | 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 | 3228 |     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 | 3229 |        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 | 3230 | 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 | 3231 | proof - | 
| 
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 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 | 3233 | 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 | 3234 | 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 | 3235 | 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 | 3236 |     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 | 3237 | 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 | 3238 | 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 | 3239 | 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 | 3240 |     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 | 3241 | 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 | 3242 | 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 | 3243 | 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 | 3244 | 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 | 3245 | 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 | 3246 | 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 | 3247 | 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 | 3248 | 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 | 3249 | 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 | 3250 | 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 | 3251 | 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 | 3252 | 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 | 3253 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3254 | 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 | 3255 | 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 | 3256 | 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 | 3257 | 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 | 3258 | 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 | 3259 | 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 | 3260 | 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 | 3261 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3262 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3263 | 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 | 3264 | 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 | 3265 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3266 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3267 | 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 | 3268 |      "\<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 | 3269 |   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 | 3270 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3271 | 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 | 3272 | "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 | 3273 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3274 | 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 | 3275 | 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 | 3276 | 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 | 3277 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3278 | 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 | 3279 |   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 | 3280 |     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 | 3281 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3282 | 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 | 3283 |       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 | 3284 | 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 | 3285 | 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 | 3286 | 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 | 3287 | 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 | 3288 | 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 | 3289 | 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 | 3290 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3291 | 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 | 3292 | 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 | 3293 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3294 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3295 | 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 | 3296 | 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 | 3297 | 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 | 3298 | proof - | 
| 72608 | 3299 | 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 | 3300 | using assms by (meson closure_of_subset_topspace dual_order.trans)+ | 
| 72608 | 3301 |   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 = {}"
 | 
| 3302 | using assms unfolding disjoint_iff by (meson in_closure_of subsetD) | |
| 3303 | then show ?thesis | |
| 3304 | using assms | |
| 3305 | unfolding connectedin closure_of_subset_topspace S T | |
| 3306 | 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 | 3307 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3308 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3309 | 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 | 3310 | "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 | 3311 | 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 | 3312 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3313 | 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 | 3314 | "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 | 3315 | S \<subseteq> topspace X \<and> | 
| 77234 | 3316 |         (\<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 | 3317 | 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 | 3318 | 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 | 3319 | 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 | 3320 | 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 | 3321 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3322 | 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 | 3323 | "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 | 3324 | 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 | 3325 |          (\<nexists>C1 C2. C1 \<union> C2 = S \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 72608 | 3326 | 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 | 3327 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3328 | 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 | 3329 | "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 | 3330 |       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 | 3331 | proof - | 
| 72608 | 3332 |   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 | 3333 |     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 | 3334 | 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 | 3335 | 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 | 3336 |     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 | 3337 | 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 | 3338 | 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 | 3339 | qed | 
| 72608 | 3340 | then show ?thesis | 
| 3341 | 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 | 3342 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3343 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3344 | 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 | 3345 | "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 | 3346 |       (\<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 | 3347 | 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 | 3348 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3349 | 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 | 3350 | "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 | 3351 |     (\<nexists>C1 C2. topspace X \<subseteq> C1 \<union> C2 \<and> C1 \<noteq> {} \<and> C2 \<noteq> {} \<and> separatedin X C1 C2)"
 | 
| 72608 | 3352 | 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 | 3353 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3354 | 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 | 3355 | "\<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 | 3356 | 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 | 3357 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3358 | lemma connectedin_nonseparated_union: | 
| 72608 | 3359 | assumes "connectedin X S" "connectedin X T" "\<not>separatedin X S T" | 
| 3360 | shows "connectedin X (S \<union> T)" | |
| 3361 | proof - | |
| 3362 | have "\<And>C1 C2. \<lbrakk>T \<subseteq> C1 \<union> C2; S \<subseteq> C1 \<union> C2\<rbrakk> \<Longrightarrow> | |
| 3363 |            S \<inter> C1 = {} \<and> T \<inter> C1 = {} \<or> S \<inter> C2 = {} \<and> T \<inter> C2 = {} \<or> \<not> separatedin X C1 C2"
 | |
| 3364 | using assms | |
| 3365 | unfolding connectedin_eq_not_separated_subset | |
| 3366 | by (metis (no_types, lifting) assms connectedin_subset_separated_union inf.orderE separatedin_empty(1) separatedin_mono separatedin_sym) | |
| 3367 | then show ?thesis | |
| 3368 | unfolding connectedin_eq_not_separated_subset | |
| 77234 | 3369 | by (simp add: assms connectedin_subset_topspace Int_Un_distrib2) | 
| 72608 | 3370 | 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 | 3371 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3372 | 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 | 3373 | "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 | 3374 |         (\<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 | 3375 | (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 | 3376 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3377 | 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 | 3378 | 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 | 3379 | 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 | 3380 | 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 | 3381 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3382 | 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 | 3383 | 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 | 3384 | 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 | 3385 | 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 | 3386 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3387 | |
| 77934 | 3388 | 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 | 3389 |   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 | 3390 |   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 | 3391 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3392 | 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 | 3393 |     "\<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 | 3394 | using \<open>connectedin X S\<close> by (auto simp: connectedin) | 
| 72608 | 3395 | 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 | 3396 |   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 | 3397 | 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 | 3398 | moreover | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3399 |   have "S \<inter> topspace X \<inter> T \<noteq> {}"
 | 
| 77234 | 3400 | 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 | 3401 | moreover | 
| 
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 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 | 3403 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3404 |     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 | 3405 | using that unfolding frontier_of_def by blast | 
| 72608 | 3406 |     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 | 3407 | by (metis Diff_disjoint inf_bot_left interior_of_Int interior_of_complement interior_of_empty) | 
| 72608 | 3408 | 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 | 3409 | using that \<open>S \<subseteq> topspace X\<close> null by auto | 
| 72608 | 3410 |     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 | 3411 | using closure_of_subset that(1) that(3) null by fastforce | 
| 72608 | 3412 |     ultimately have "S \<inter> X interior_of (topspace X - T) = {}"
 | 
| 3413 | by (metis "*" inf_commute interior_of_complement openin_interior_of) | |
| 3414 | then have "topspace (subtopology X S) \<inter> X interior_of T = S" | |
| 3415 | using \<open>S \<subseteq> topspace X\<close> interior_of_complement null by fastforce | |
| 3416 | then show ?thesis | |
| 3417 | 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 | 3418 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3419 | 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 | 3420 | 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 | 3421 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3422 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3423 | 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 | 3424 | 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 | 3425 | 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 | 3426 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3427 | 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 | 3428 |     "\<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 | 3429 | 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 | 3430 | 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 | 3431 | 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 | 3432 | 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 | 3433 | 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 | 3434 | 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 | 3435 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3436 | 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 | 3437 |     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 | 3438 |     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 | 3439 |     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 | 3440 |     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 | 3441 | 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 | 3442 | 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 | 3443 | 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 | 3444 | show "False" | 
| 72608 | 3445 | 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 | 3446 | 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 | 3447 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3448 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3449 | |
| 78037 
37894dff0111
More material from the HOL Light metric space library
 paulson <lp15@cam.ac.uk> parents: 
77943diff
changeset | 3450 | lemma connected_space_quotient_map_image: | 
| 
37894dff0111
More material from the HOL Light metric space library
 paulson <lp15@cam.ac.uk> parents: 
77943diff
changeset | 3451 | "\<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: 
77943diff
changeset | 3452 | 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: 
77943diff
changeset | 3453 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3454 | 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 | 3455 | "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 | 3456 | unfolding homeomorphic_space_def homeomorphic_maps_def | 
| 72608 | 3457 | 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 | 3458 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3459 | 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 | 3460 | 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 | 3461 | 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 | 3462 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3463 | 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 | 3464 | 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 | 3465 | 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 | 3466 | 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 | 3467 | 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 | 3468 | 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 | 3469 | 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 | 3470 | 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 | 3471 | then show "subtopology Y (f ` U) homeomorphic_space subtopology X U" | 
| 77234 | 3472 | 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 | 3473 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3474 | 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 | 3475 | 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 | 3476 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3477 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3478 | 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 | 3479 | "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 | 3480 | \<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 | 3481 | 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 | 3482 | 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 | 3483 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3484 | 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 | 3485 |    "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 | 3486 | 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 | 3487 | 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 | 3488 | 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 | 3489 |   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 | 3490 | 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 | 3491 |     moreover have "connectedin (discrete_topology U) S \<longleftrightarrow> (\<exists>a. S = {a})"
 | 
| 72608 | 3492 | proof | 
| 3493 |       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: 
77934diff
changeset | 3494 | using False connectedin_Int_frontier_of insert_Diff by fastforce | 
| 72608 | 3495 | 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 | 3496 | 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 | 3497 | 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 | 3498 | 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 | 3499 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3500 | 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 | 3501 | 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 | 3502 | 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 | 3503 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3504 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3505 | 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 | 3506 |      "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 | 3507 | 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 | 3508 | |
| 
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 | 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 | 3511 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3512 | 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 | 3513 | "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 | 3514 | 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 | 3515 | (\<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 | 3516 | \<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 | 3517 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3518 | 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 | 3519 | "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 | 3520 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3521 | 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 | 3522 | "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 | 3523 | (\<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 | 3524 | \<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 | 3525 | 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 | 3526 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3527 | 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 | 3528 | "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 | 3529 | (\<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 | 3530 | \<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 | 3531 | 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 | 3532 | 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 | 3533 | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3534 | lemma compactinD: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3535 | "\<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: 
70136diff
changeset | 3536 | by (auto simp: compactin_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3537 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 3538 | lemma compactin_euclidean_iff [simp]: "compactin euclidean S \<longleftrightarrow> compact S" | 
| 69529 | 3539 | 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 | 3540 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3541 | 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 | 3542 | "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 | 3543 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3544 |   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 | 3545 | 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 | 3546 | show ?thesis | 
| 71172 | 3547 | 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 | 3548 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3549 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3550 | 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 | 3551 | 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 | 3552 | 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 | 3553 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3554 | 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 | 3555 | 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 | 3556 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3557 | lemma compactin_subtopology: "compactin (subtopology X S) T \<longleftrightarrow> compactin X T \<and> T \<subseteq> S" | 
| 72608 | 3558 | 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 | 3559 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3560 | 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 | 3561 | 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 | 3562 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3563 | 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 | 3564 | "\<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 | 3565 | \<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 | 3566 | 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 | 3567 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3568 | 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 | 3569 | "\<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 | 3570 | 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 | 3571 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3572 | 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 | 3573 | 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 | 3574 | |
| 78336 | 3575 | 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 | 3576 | 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 | 3577 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3578 | 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 | 3579 | "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 | 3580 | 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 | 3581 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3582 | 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 | 3583 | 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 | 3584 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3585 | 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 | 3586 | 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 | 3587 | 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 | 3588 | 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 | 3589 | 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 | 3590 | 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 | 3591 | 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 | 3592 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3593 | 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 | 3594 | 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 | 3595 | 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 | 3596 | using XC \<U> by blast | 
| 69745 | 3597 | 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 | 3598 | 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 | 3599 | 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 | 3600 | 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 | 3601 | 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 | 3602 | 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 | 3603 | 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 | 3604 | 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 | 3605 |     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 | 3606 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3607 | |
| 78127 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3608 | lemma closed_compactin_Inter: | 
| 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3609 | "\<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: 
78093diff
changeset | 3610 | 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: 
78093diff
changeset | 3611 | |
| 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3612 | lemma closedin_subtopology_Int_subset: | 
| 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3613 | "\<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: 
78093diff
changeset | 3614 | 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: 
78093diff
changeset | 3615 | |
| 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3616 | lemma closedin_subtopology_Int_closedin: | 
| 
24b70433c2e8
New HOL Light material on metric spaces and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78093diff
changeset | 3617 | "\<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: 
78093diff
changeset | 3618 | 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: 
78093diff
changeset | 3619 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3620 | 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 | 3621 | "\<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 | 3622 | 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 | 3623 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3624 | 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 | 3625 | 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 | 3626 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3627 | 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 | 3628 | 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 | 3629 | 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 | 3630 | 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 | 3631 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3632 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3633 | 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 | 3634 | 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 | 3635 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3636 | 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 | 3637 | 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 | 3638 | 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 | 3639 | 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 | 3640 | 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 | 3641 | 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 | 3642 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3643 | 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 | 3644 | 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 | 3645 | 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 | 3646 | 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 | 3647 | 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 | 3648 | 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 | 3649 | 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 | 3650 | 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 | 3651 | 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 | 3652 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3653 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3654 | 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 | 3655 | "\<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 | 3656 | 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 | 3657 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3658 | 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 | 3659 | 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 | 3660 | using assms | 
| 71172 | 3661 | 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 | 3662 | 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 | 3663 | 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 | 3664 | 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 | 3665 | 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 | 3666 | 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 | 3667 | moreover | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3668 | 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 | 3669 | 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 | 3670 | 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 | 3671 | 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 | 3672 | 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 | 3673 | 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 | 3674 | 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 | 3675 | 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 | 3676 | 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 | 3677 | 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 | 3678 | 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 | 3679 | 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 | 3680 | 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 | 3681 | 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 | 3682 | 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 | 3683 | 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 | 3684 | 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 | 3685 | 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 | 3686 | 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 | 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 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3689 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3690 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3691 | 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 | 3692 | 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 | 3693 | using assms | 
| 71172 | 3694 | 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 | 3695 | 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 | 3696 |   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 | 3697 | 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 | 3698 | 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 | 3699 | 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 | 3700 | moreover | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3701 | 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 | 3702 | 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 | 3703 | 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 | 3704 | 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 | 3705 | 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 | 3706 | 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 | 3707 | 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 | 3708 | 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 | 3709 | 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 | 3710 | 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 | 3711 | 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 | 3712 | 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 | 3713 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3714 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3715 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3716 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3717 | 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 | 3718 | "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 | 3719 |     (\<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 | 3720 | (is "_ = ?rhs") | 
| 78336 | 3721 | 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 | 3722 | 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 | 3723 | then show ?thesis | 
| 78336 | 3724 | 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 | 3725 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3726 | 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 | 3727 | 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 | 3728 | 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 | 3729 | 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 | 3730 |     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 | 3731 | 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 | 3732 |     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 | 3733 | 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 | 3734 | 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 | 3735 | 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 | 3736 | 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: 
70136diff
changeset | 3737 | 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 | 3738 |     moreover have "\<F> \<noteq> {}"
 | 
| 78336 | 3739 | 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 | 3740 | 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 | 3741 | 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 | 3742 | 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 | 3743 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3744 | 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 | 3745 | 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 | 3746 | 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 | 3747 | 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 | 3748 | 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 | 3749 | 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 | 3750 | assume "\<forall>C\<in>\<U>. openin X C" and "topspace X \<subseteq> \<Union>\<U>" | 
| 78336 | 3751 |       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 | 3752 | 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 | 3753 | 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 | 3754 | 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 | 3755 | 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 | 3756 |         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 | 3757 | 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 | 3758 | 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 | 3759 | 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 | 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 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3763 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3764 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3765 | 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 | 3766 | "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 | 3767 | 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 | 3768 |     (\<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 | 3769 | 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 | 3770 | 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 | 3771 | 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 | 3772 | 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 | 3773 | 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 | 3774 | 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 | 3775 |           (\<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 | 3776 |            (\<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 | 3777 | by (simp add: compact_space_fip compactin_subspace closedin_subtopology image_def subset_eq Int_commute imp_conjL) | 
| 69313 | 3778 |     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 | 3779 | 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 | 3780 |     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 | 3781 | proof - | 
| 69313 | 3782 |       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 | 3783 |                 ((\<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 | 3784 |         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 | 3785 | show ?thesis | 
| 72608 | 3786 | 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 | 3787 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3788 | 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 | 3789 | 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 | 3790 | 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 | 3791 | 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 | 3792 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3793 | 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 | 3794 | 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 | 3795 | assumes "compact_space X" and clo: "\<And>n. closedin X (C n)" | 
| 77934 | 3796 |     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 | 3797 |   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 | 3798 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3799 | 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 | 3800 | 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 | 3801 | 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 | 3802 |   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 | 3803 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3804 | 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 | 3805 | using Max.coboundedI \<open>finite K\<close> by blast | 
| 77934 | 3806 | with dec have "C n \<subseteq> (\<Inter>n\<in>K. \<Inter>m \<le> n. C m)" | 
| 3807 | 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 | 3808 | 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 | 3809 | 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 | 3810 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3811 | 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 | 3812 | 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 | 3813 | 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 | 3814 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3815 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3816 | 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 | 3817 | "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 | 3818 | 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 | 3819 | 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 | 3820 | 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 | 3821 | 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 | 3822 | 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 | 3823 | (\<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 | 3824 | 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 | 3825 | 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 | 3826 |     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 | 3827 | 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 | 3828 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3829 | 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 | 3830 | 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 | 3831 | 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 | 3832 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3833 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3834 | 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 | 3835 | 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 | 3836 | |
| 69529 | 3837 | 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 | 3838 | 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 | 3839 |   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 | 3840 | proof | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3841 |   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 | 3842 | 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 | 3843 | 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 | 3844 | 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 | 3845 | 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 | 3846 | 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 | 3847 | 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 | 3848 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3849 | |
| 69529 | 3850 | 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 | 3851 |    "\<lbrakk>compactin X S; infinite T \<and> T \<subseteq> S\<rbrakk> \<Longrightarrow> S \<inter> X derived_set_of T \<noteq> {}"
 | 
| 69529 | 3852 | using compact_space_imp_Bolzano_Weierstrass [of "subtopology X S"] | 
| 71172 | 3853 | 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 | 3854 | |
| 69529 | 3855 | 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 | 3856 |    "\<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 | 3857 | 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 | 3858 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3859 | 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 | 3860 |    "S \<inter> X derived_set_of S = {} \<Longrightarrow> compactin X S \<longleftrightarrow> S \<subseteq> topspace X \<and> finite S"
 | 
| 72608 | 3861 | 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 | 3862 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3863 | 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 | 3864 |    "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 | 3865 | 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 | 3866 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3867 | 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 | 3868 | 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 | 3869 | 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 | 3870 | 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 | 3871 | 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 | 3872 | 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 | 3873 | 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 | 3874 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3875 | 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 | 3876 | 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 | 3877 |   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 | 3878 | 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 | 3879 | 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 | 3880 | 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 | 3881 | 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 | 3882 | proof - | 
| 
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 1: "\<forall>U\<in>\<V>. openin X U" | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 3884 | 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 | 3885 | 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 | 3886 | 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 | 3887 | 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 | 3888 | 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 | 3889 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3890 |   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 | 3891 | 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 | 3892 |   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 | 3893 | 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 | 3894 | 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 | 3895 | 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 | 3896 | 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 | 3897 | 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 | 3898 | next | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3899 | 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 | 3900 | 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 | 3901 | next | 
| 69325 | 3902 | 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 | 3903 | 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 | 3904 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3905 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3906 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3907 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3908 | 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 | 3909 | 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 | 3910 | 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 | 3911 | 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 | 3912 | 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 | 3913 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3914 | 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 | 3915 | 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 | 3916 | 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 | 3917 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3918 | 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 | 3919 | 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 | 3920 | 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 | 3921 | 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 | 3922 | 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 | 3923 | 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 | 3924 | 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 | 3925 | 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 | 3926 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3927 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3928 | 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 | 3929 | "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 | 3930 | \<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 | 3931 | 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 | 3932 | |
| 
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 | 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 | 3935 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3936 | 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 | 3937 | 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 | 3938 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3939 | 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 | 3940 | "\<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 | 3941 | 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 | 3942 | 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 | 3943 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3944 | 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 | 3945 | 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 | 3946 | 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 | 3947 | proof - | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3948 | 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 | 3949 | 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 | 3950 | 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: 
78200diff
changeset | 3951 | 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 | 3952 | 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: 
78200diff
changeset | 3953 | 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 | 3954 | 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 | 3955 | 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 | 3956 | 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 | 3957 | qed | 
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3958 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3959 | 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 | 3960 | "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 | 3961 | 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 | 3962 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3963 | lemma embedding_map_in_subtopology: | 
| 72608 | 3964 | "embedding_map X (subtopology Y S) f \<longleftrightarrow> embedding_map X Y f \<and> f ` (topspace X) \<subseteq> S" (is "?lhs = ?rhs") | 
| 3965 | proof | |
| 3966 | show "?lhs \<Longrightarrow> ?rhs" | |
| 3967 | unfolding embedding_map_def | |
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 3968 | by (metis Int_subset_iff homeomorphic_imp_surjective_map inf_le1 subtopology_restrict subtopology_subtopology topspace_subtopology) | 
| 72608 | 3969 | 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 | 3970 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3971 | 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 | 3972 | "\<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: 
78200diff
changeset | 3973 | 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: 
78200diff
changeset | 3974 | 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: 
78200diff
changeset | 3975 | 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 | 3976 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3977 | 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 | 3978 | "\<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: 
78200diff
changeset | 3979 | unfolding embedding_map_def homeomorphic_map_def | 
| 72608 | 3980 | 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: 
78200diff
changeset | 3981 | 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 | 3982 | |
| 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 3983 | 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 | 3984 | "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 | 3985 | 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 | 3986 | 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 | 3987 | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3988 | lemma embedding_imp_closed_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3989 | "\<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: 
70136diff
changeset | 3990 | unfolding closed_map_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 3991 | 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: 
70136diff
changeset | 3992 | |
| 77935 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3993 | lemma embedding_imp_closed_map_eq: | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3994 | "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: 
77934diff
changeset | 3995 | using closed_map_def embedding_imp_closed_map by blast | 
| 
7f240b0dabd9
More new theorems, and a necessary correction
 paulson <lp15@cam.ac.uk> parents: 
77934diff
changeset | 3996 | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 3997 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 3998 | subsection\<open>Retraction and section maps\<close> | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 3999 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4000 | 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: 
69918diff
changeset | 4001 | 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: 
69918diff
changeset | 4002 | 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: 
69918diff
changeset | 4003 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4004 | 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: 
69918diff
changeset | 4005 | 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: 
69918diff
changeset | 4006 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4007 | 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: 
69918diff
changeset | 4008 | 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: 
69918diff
changeset | 4009 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4010 | lemma retraction_maps_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4011 | "\<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: 
69918diff
changeset | 4012 | \<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: 
78250diff
changeset | 4013 | unfolding retraction_maps_def | 
| 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4014 | 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: 
69918diff
changeset | 4015 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4016 | lemma section_map_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4017 | "\<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: 
69918diff
changeset | 4018 | 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: 
69918diff
changeset | 4019 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4020 | lemma retraction_map_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4021 | "\<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: 
69918diff
changeset | 4022 | 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: 
69918diff
changeset | 4023 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4024 | lemma homeomorphic_imp_retraction_maps: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4025 | "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: 
69918diff
changeset | 4026 | 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: 
69918diff
changeset | 4027 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4028 | lemma section_and_retraction_eq_homeomorphic_map: | 
| 72608 | 4029 | "section_map X Y f \<and> retraction_map X Y f \<longleftrightarrow> homeomorphic_map X Y f" (is "?lhs = ?rhs") | 
| 4030 | proof | |
| 4031 | assume ?lhs | |
| 77234 | 4032 | 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: 
78250diff
changeset | 4033 | 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: 
78250diff
changeset | 4034 | by (smt (verit) Pi_iff continuous_map_def retraction_maps_def) | 
| 72608 | 4035 | then show ?rhs | 
| 4036 | using homeomorphic_map_maps by blast | |
| 4037 | next | |
| 4038 | assume ?rhs | |
| 4039 | then show ?lhs | |
| 4040 | unfolding retraction_map_def section_map_def | |
| 4041 | by (meson homeomorphic_imp_retraction_maps homeomorphic_map_maps homeomorphic_maps_sym) | |
| 4042 | qed | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4043 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4044 | lemma section_imp_embedding_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4045 | "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: 
69918diff
changeset | 4046 | unfolding section_map_def embedding_map_def homeomorphic_map_maps retraction_maps_def homeomorphic_maps_def | 
| 71172 | 4047 | 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: 
69918diff
changeset | 4048 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4049 | lemma retraction_imp_quotient_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4050 | assumes "retraction_map X Y f" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4051 | shows "quotient_map X Y f" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4052 | unfolding quotient_map_def | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4053 | proof (intro conjI subsetI allI impI) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4054 | show "f ` topspace X = topspace Y" | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4055 | 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: 
69918diff
changeset | 4056 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4057 | fix U | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4058 | assume U: "U \<subseteq> topspace Y" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4059 | have "openin Y U" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4060 | 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: 
69918diff
changeset | 4061 |        "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: 
69918diff
changeset | 4062 | using openin_subopen U that by fastforce | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4063 |   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: 
78250diff
changeset | 4064 | 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: 
69918diff
changeset | 4065 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4066 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4067 | lemma retraction_maps_compose: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4068 | "\<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: 
78250diff
changeset | 4069 | unfolding retraction_maps_def | 
| 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4070 | 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: 
69918diff
changeset | 4071 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4072 | lemma retraction_map_compose: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4073 | "\<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: 
69918diff
changeset | 4074 | 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: 
69918diff
changeset | 4075 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4076 | lemma section_map_compose: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4077 | "\<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: 
69918diff
changeset | 4078 | 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: 
69918diff
changeset | 4079 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4080 | lemma surjective_section_eq_homeomorphic_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4081 | "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: 
69918diff
changeset | 4082 | 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: 
69918diff
changeset | 4083 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4084 | lemma surjective_retraction_or_section_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4085 | "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: 
69918diff
changeset | 4086 | 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: 
69918diff
changeset | 4087 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4088 | lemma retraction_imp_surjective_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4089 | "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: 
69918diff
changeset | 4090 | 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: 
69918diff
changeset | 4091 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4092 | lemma section_imp_injective_map: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4093 | "\<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: 
72608diff
changeset | 4094 | 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: 
69918diff
changeset | 4095 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4096 | lemma retraction_maps_to_retract_maps: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4097 | "retraction_maps X Y r s | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4098 | \<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: 
69918diff
changeset | 4099 | unfolding retraction_maps_def | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4100 | 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: 
69529diff
changeset | 4101 | subsection \<open>Continuity\<close> | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4102 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4103 | lemma continuous_on_open: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4104 | "continuous_on S f \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4105 | (\<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: 
69918diff
changeset | 4106 | 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: 
69529diff
changeset | 4107 | 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: 
69529diff
changeset | 4108 | 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: 
69529diff
changeset | 4109 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4110 | lemma continuous_on_closed: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4111 | "continuous_on S f \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4112 | (\<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: 
69918diff
changeset | 4113 | 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: 
69529diff
changeset | 4114 | 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: 
69529diff
changeset | 4115 | 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: 
69529diff
changeset | 4116 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4117 | lemma continuous_on_imp_closedin: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4118 | 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: 
69918diff
changeset | 4119 | 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: 
69529diff
changeset | 4120 | using assms continuous_on_closed by blast | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4121 | |
| 69986 
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
 paulson <lp15@cam.ac.uk> parents: 
69945diff
changeset | 4122 | lemma continuous_map_subtopology_eu [simp]: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4123 | "continuous_map (top_of_set S) (subtopology euclidean T) h \<longleftrightarrow> continuous_on S h \<and> h \<in> S \<rightarrow> T" | 
| 72608 | 4124 | 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: 
69945diff
changeset | 4125 | |
| 70065 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 paulson <lp15@cam.ac.uk> parents: 
70044diff
changeset | 4126 | 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: 
70044diff
changeset | 4127 | 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: 
70044diff
changeset | 4128 | shows "continuous_map euclidean (top_of_set S) f" | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4129 | using cont continuous_map_iff_continuous2 continuous_map_into_subtopology eq by blast | 
| 70065 
cc89a395b5a3
Free_Abelian_Groups finally working; fixed some duplicates; cleaned up some proofs
 paulson <lp15@cam.ac.uk> parents: 
70044diff
changeset | 4130 | |
| 77943 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4131 | |
| 70136 | 4132 | 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: 
69529diff
changeset | 4133 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4134 | lemma continuous_openin_preimage_gen: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4135 | 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: 
69918diff
changeset | 4136 | 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: 
69529diff
changeset | 4137 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4138 | 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: 
69529diff
changeset | 4139 | by auto | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4140 | 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: 
69529diff
changeset | 4141 | 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: 
69529diff
changeset | 4142 | then show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4143 | 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: 
69529diff
changeset | 4144 | using * by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4145 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4146 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4147 | lemma continuous_closedin_preimage: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4148 | 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: 
69918diff
changeset | 4149 | 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: 
69529diff
changeset | 4150 | proof - | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4151 | 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: 
69529diff
changeset | 4152 | by auto | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4153 | 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: 
69529diff
changeset | 4154 | 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: 
69529diff
changeset | 4155 | by (simp add: Int_commute) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4156 | then show ?thesis | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4157 | 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: 
69529diff
changeset | 4158 | using * by auto | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4159 | qed | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4160 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4161 | lemma continuous_openin_preimage_eq: | 
| 72608 | 4162 | "continuous_on S f \<longleftrightarrow> (\<forall>T. open T \<longrightarrow> openin (top_of_set S) (S \<inter> f -` T))" | 
| 4163 | 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: 
69529diff
changeset | 4164 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4165 | lemma continuous_closedin_preimage_eq: | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4166 | "continuous_on S f \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4167 | (\<forall>T. closed T \<longrightarrow> closedin (top_of_set S) (S \<inter> f -` T))" | 
| 72608 | 4168 | 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: 
69529diff
changeset | 4169 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4170 | lemma continuous_open_preimage: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4171 | assumes "continuous_on S f" and "open S" "open T" | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4172 | shows "open (S \<inter> f -` T)" | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4173 | by (metis Int_commute assms continuous_on_open_vimage) | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4174 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4175 | lemma continuous_closed_preimage: | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4176 | assumes "continuous_on S f" and "closed S" "closed T" | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4177 | shows "closed (S \<inter> f -` T)" | 
| 82323 
b022c013b04b
Function space instead of image closure
 paulson <lp15@cam.ac.uk> parents: 
80914diff
changeset | 4178 | by (metis assms closed_vimage_Int inf_commute) | 
| 69544 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4179 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4180 | 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: 
69529diff
changeset | 4181 | by (metis continuous_on_eq_continuous_within open_vimage) | 
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4182 | |
| 
5aa5a8d6e5b5
split off theorems involving classes below metric_space and real_normed_vector
 immler parents: 
69529diff
changeset | 4183 | 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: 
69529diff
changeset | 4184 | 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: 
69529diff
changeset | 4185 | |
| 69622 | 4186 | lemma Times_in_interior_subtopology: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4187 | 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: 
69918diff
changeset | 4188 | 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: 
69918diff
changeset | 4189 | "openin (top_of_set T) W" "y \<in> W" "(V \<times> W) \<subseteq> U" | 
| 69622 | 4190 | proof - | 
| 4191 | from assms obtain E where "open E" "U = S \<times> T \<inter> E" "(x, y) \<in> E" "x \<in> S" "y \<in> T" | |
| 4192 | by (auto simp: openin_open) | |
| 4193 | from open_prod_elim[OF \<open>open E\<close> \<open>(x, y) \<in> E\<close>] | |
| 4194 | obtain E1 E2 where "open E1" "open E2" "(x, y) \<in> E1 \<times> E2" "E1 \<times> E2 \<subseteq> E" | |
| 4195 | by blast | |
| 4196 | show ?thesis | |
| 4197 | proof | |
| 77234 | 4198 | show "openin (top_of_set S) (E1 \<inter> S)" "openin (top_of_set T) (E2 \<inter> T)" | 
| 4199 | using \<open>open E1\<close> \<open>open E2\<close> by (auto simp: openin_open) | |
| 69622 | 4200 | show "x \<in> E1 \<inter> S" "y \<in> E2 \<inter> T" | 
| 4201 | using \<open>(x, y) \<in> E1 \<times> E2\<close> \<open>x \<in> S\<close> \<open>y \<in> T\<close> by auto | |
| 4202 | show "(E1 \<inter> S) \<times> (E2 \<inter> T) \<subseteq> U" | |
| 77234 | 4203 | using \<open>E1 \<times> E2 \<subseteq> E\<close> \<open>U = _\<close> by auto | 
| 69622 | 4204 | qed | 
| 4205 | qed | |
| 4206 | ||
| 4207 | lemma closedin_Times: | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4208 | "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: 
69918diff
changeset | 4209 | closedin (top_of_set (S \<times> T)) (S' \<times> T')" | 
| 69622 | 4210 | unfolding closedin_closed using closed_Times by blast | 
| 4211 | ||
| 4212 | lemma openin_Times: | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4213 | "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: 
69918diff
changeset | 4214 | openin (top_of_set (S \<times> T)) (S' \<times> T')" | 
| 69622 | 4215 | unfolding openin_open using open_Times by blast | 
| 4216 | ||
| 4217 | lemma openin_Times_eq: | |
| 4218 | fixes S :: "'a::topological_space set" and T :: "'b::topological_space set" | |
| 4219 | shows | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4220 | "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: 
69918diff
changeset | 4221 |       S' = {} \<or> T' = {} \<or> openin (top_of_set S) S' \<and> openin (top_of_set T) T'"
 | 
| 69622 | 4222 | (is "?lhs = ?rhs") | 
| 4223 | proof (cases "S' = {} \<or> T' = {}")
 | |
| 4224 | case True | |
| 4225 | then show ?thesis by auto | |
| 4226 | next | |
| 4227 | case False | |
| 4228 | then obtain x y where "x \<in> S'" "y \<in> T'" | |
| 4229 | by blast | |
| 4230 | show ?thesis | |
| 4231 | proof | |
| 4232 | assume ?lhs | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4233 | have "openin (top_of_set S) S'" | 
| 72608 | 4234 | proof (subst openin_subopen, clarify) | 
| 4235 | show "\<exists>U. openin (top_of_set S) U \<and> x \<in> U \<and> U \<subseteq> S'" if "x \<in> S'" for x | |
| 4236 | using that \<open>y \<in> T'\<close> Times_in_interior_subtopology [OF _ \<open>?lhs\<close>, of x y] | |
| 4237 | by simp (metis mem_Sigma_iff subsetD subsetI) | |
| 4238 | qed | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4239 | moreover have "openin (top_of_set T) T'" | 
| 72608 | 4240 | proof (subst openin_subopen, clarify) | 
| 4241 | show "\<exists>U. openin (top_of_set T) U \<and> y \<in> U \<and> U \<subseteq> T'" if "y \<in> T'" for y | |
| 4242 | using that \<open>x \<in> S'\<close> Times_in_interior_subtopology [OF _ \<open>?lhs\<close>, of x y] | |
| 4243 | by simp (metis mem_Sigma_iff subsetD subsetI) | |
| 4244 | qed | |
| 69622 | 4245 | ultimately show ?rhs | 
| 4246 | by simp | |
| 4247 | next | |
| 4248 | assume ?rhs | |
| 4249 | with False show ?lhs | |
| 4250 | by (simp add: openin_Times) | |
| 4251 | qed | |
| 4252 | qed | |
| 4253 | ||
| 4254 | lemma Lim_transform_within_openin: | |
| 4255 | 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: 
69918diff
changeset | 4256 | and "openin (top_of_set T) S" "a \<in> S" | 
| 69622 | 4257 | and eq: "\<And>x. \<lbrakk>x \<in> S; x \<noteq> a\<rbrakk> \<Longrightarrow> f x = g x" | 
| 4258 | shows "(g \<longlongrightarrow> l) (at a within T)" | |
| 4259 | proof - | |
| 4260 | have "\<forall>\<^sub>F x in at a within T. x \<in> T \<and> x \<noteq> a" | |
| 4261 | by (simp add: eventually_at_filter) | |
| 4262 | moreover | |
| 4263 | from \<open>openin _ _\<close> obtain U where "open U" "S = T \<inter> U" | |
| 4264 | by (auto simp: openin_open) | |
| 4265 | then have "a \<in> U" using \<open>a \<in> S\<close> by auto | |
| 4266 | from topological_tendstoD[OF tendsto_ident_at \<open>open U\<close> \<open>a \<in> U\<close>] | |
| 4267 | have "\<forall>\<^sub>F x in at a within T. x \<in> U" by auto | |
| 4268 | ultimately | |
| 4269 | have "\<forall>\<^sub>F x in at a within T. f x = g x" | |
| 4270 | 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: 
70235diff
changeset | 4271 | with f show ?thesis | 
| 69622 | 4272 | by (rule Lim_transform_eventually) | 
| 4273 | qed | |
| 4274 | ||
| 4275 | 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: 
78200diff
changeset | 4276 | assumes "f \<in> S \<rightarrow> T" | 
| 69622 | 4277 | shows "continuous_on S f \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4278 | (\<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: 
69918diff
changeset | 4279 | \<longrightarrow> openin (top_of_set S) (S \<inter> f -` U))" | 
| 69622 | 4280 | (is "?lhs = ?rhs") | 
| 4281 | proof | |
| 4282 | assume ?lhs | |
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 4283 | with assms show ?rhs | 
| 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 4284 | 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: 
78200diff
changeset | 4285 | by (metis inf.orderE inf_assoc subsetI vimageI vimage_Int) | 
| 69622 | 4286 | next | 
| 4287 | assume R [rule_format]: ?rhs | |
| 4288 | show ?lhs | |
| 4289 | 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: 
78200diff
changeset | 4290 | 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: 
78200diff
changeset | 4291 | 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 | 4292 | qed | 
| 4293 | qed | |
| 4294 | ||
| 4295 | lemma continuous_openin_preimage: | |
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 4296 | "\<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: 
69918diff
changeset | 4297 | \<Longrightarrow> openin (top_of_set S) (S \<inter> f -` U)" | 
| 69622 | 4298 | by (simp add: continuous_on_open_gen) | 
| 4299 | ||
| 4300 | 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: 
78200diff
changeset | 4301 | assumes "f \<in> S \<rightarrow> T" | 
| 69622 | 4302 | shows "continuous_on S f \<longleftrightarrow> | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4303 | (\<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: 
69918diff
changeset | 4304 | \<longrightarrow> closedin (top_of_set S) (S \<inter> f -` U))" | 
| 69622 | 4305 | proof - | 
| 4306 | have *: "U \<subseteq> T \<Longrightarrow> S \<inter> f -` (T - U) = S - (S \<inter> f -` U)" for U | |
| 4307 | using assms by blast | |
| 77234 | 4308 | then show ?thesis | 
| 69622 | 4309 | unfolding continuous_on_open_gen [OF assms] | 
| 77234 | 4310 | by (metis closedin_def inf.cobounded1 openin_closedin_eq topspace_euclidean_subtopology) | 
| 69622 | 4311 | qed | 
| 4312 | ||
| 4313 | 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: 
78200diff
changeset | 4314 | 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: 
69918diff
changeset | 4315 | shows "closedin (top_of_set S) (S \<inter> f -` U)" | 
| 69622 | 4316 | using assms continuous_on_closed_gen by blast | 
| 4317 | ||
| 4318 | lemma continuous_transform_within_openin: | |
| 4319 | 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: 
69918diff
changeset | 4320 | and "openin (top_of_set T) S" "a \<in> S" | 
| 69622 | 4321 | and eq: "\<And>x. x \<in> S \<Longrightarrow> f x = g x" | 
| 4322 | shows "continuous (at a within T) g" | |
| 4323 | using assms by (simp add: Lim_transform_within_openin continuous_within) | |
| 4324 | ||
| 4325 | ||
| 70136 | 4326 | 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: 
69918diff
changeset | 4327 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4328 | 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: 
69918diff
changeset | 4329 | 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: 
69918diff
changeset | 4330 | 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: 
69918diff
changeset | 4331 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4332 | 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: 
69918diff
changeset | 4333 | 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: 
69918diff
changeset | 4334 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4335 | inductive generate_topology_on for S where | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4336 |   Empty: "generate_topology_on S {}"
 | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4337 | | 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: 
69918diff
changeset | 4338 | | 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: 
69918diff
changeset | 4339 | | 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: 
69918diff
changeset | 4340 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4341 | lemma istopology_generate_topology_on: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4342 | "istopology (generate_topology_on S)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4343 | 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: 
69918diff
changeset | 4344 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4345 | 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: 
69918diff
changeset | 4346 | 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: 
69918diff
changeset | 4347 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4348 | lemma generate_topology_on_coarsest: | 
| 72608 | 4349 | assumes T: "istopology T" "\<And>s. s \<in> S \<Longrightarrow> T s" | 
| 4350 | 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: 
69918diff
changeset | 4351 | shows "T s0" | 
| 72608 | 4352 | using gen | 
| 4353 | 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: 
69918diff
changeset | 4354 | |
| 70136 | 4355 | 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: 
69918diff
changeset | 4356 | 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: 
69918diff
changeset | 4357 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4358 | lemma openin_topology_generated_by_iff: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4359 | "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: 
69918diff
changeset | 4360 | 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: 
69918diff
changeset | 4361 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4362 | lemma openin_topology_generated_by: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4363 | "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: 
69918diff
changeset | 4364 | 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: 
69918diff
changeset | 4365 | |
| 70044 
da5857dbcbb9
More group theory. Sum and product indexed by the non-neutral part of a set
 paulson <lp15@cam.ac.uk> parents: 
69994diff
changeset | 4366 | lemma topology_generated_by_topspace [simp]: | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4367 | "topspace (topology_generated_by S) = (\<Union>S)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4368 | proof | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4369 |   {
 | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4370 | 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: 
69918diff
changeset | 4371 | 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: 
69918diff
changeset | 4372 | 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: 
69918diff
changeset | 4373 | } | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4374 | 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: 
69918diff
changeset | 4375 | unfolding topspace_def by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4376 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4377 | have "generate_topology_on S (\<Union>S)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4378 | 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: 
69918diff
changeset | 4379 | 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: 
69918diff
changeset | 4380 | 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: 
69918diff
changeset | 4381 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4382 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4383 | lemma topology_generated_by_Basis: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4384 | "s \<in> S \<Longrightarrow> openin (topology_generated_by S) s" | 
| 77234 | 4385 | 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: 
69918diff
changeset | 4386 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4387 | lemma generate_topology_on_Inter: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4388 |   "\<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: 
69918diff
changeset | 4389 | 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: 
69918diff
changeset | 4390 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4391 | 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: 
69918diff
changeset | 4392 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4393 | lemma istopology_base_alt: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4394 | "istopology (arbitrary union_of P) \<longleftrightarrow> | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4395 | (\<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: 
69918diff
changeset | 4396 | \<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: 
69918diff
changeset | 4397 | 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: 
69918diff
changeset | 4398 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4399 | lemma istopology_base_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4400 | "istopology (arbitrary union_of P) \<longleftrightarrow> | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4401 | (\<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: 
69918diff
changeset | 4402 | 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: 
69918diff
changeset | 4403 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4404 | lemma istopology_base: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4405 | "(\<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: 
69918diff
changeset | 4406 | 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: 
69918diff
changeset | 4407 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4408 | lemma openin_topology_base_unique: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4409 | "openin X = arbitrary union_of P \<longleftrightarrow> | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4410 | (\<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: 
69918diff
changeset | 4411 | (is "?lhs = ?rhs") | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4412 | proof | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4413 | assume ?lhs | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4414 | then show ?rhs | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4415 | 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: 
69918diff
changeset | 4416 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4417 | assume R: ?rhs | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4418 | 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: 
69918diff
changeset | 4419 |     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: 
69918diff
changeset | 4420 | from R show ?lhs | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4421 | 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: 
69918diff
changeset | 4422 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4423 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4424 | lemma topology_base_unique: | 
| 71840 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4425 | assumes "\<And>S. P S \<Longrightarrow> openin X S" | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4426 | "\<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: 
71633diff
changeset | 4427 | shows "topology (arbitrary union_of P) = X" | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4428 | proof - | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4429 | have "X = topology (openin X)" | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4430 | by (simp add: openin_inverse) | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4431 | also from assms have "openin X = arbitrary union_of P" | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4432 | by (subst openin_topology_base_unique) auto | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4433 | finally show ?thesis .. | 
| 
8ed78bb0b915
Tuned some proofs in HOL-Analysis
 Manuel Eberl <eberlm@in.tum.de> parents: 
71633diff
changeset | 4434 | qed | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4435 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4436 | lemma topology_bases_eq_aux: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4437 | "\<lbrakk>(arbitrary union_of P) S; | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4438 | \<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: 
69918diff
changeset | 4439 | \<Longrightarrow> (arbitrary union_of Q) S" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4440 | 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: 
69918diff
changeset | 4441 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4442 | lemma topology_bases_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4443 | "\<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: 
69918diff
changeset | 4444 | \<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: 
69918diff
changeset | 4445 | \<Longrightarrow> topology (arbitrary union_of P) = | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4446 | topology (arbitrary union_of Q)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4447 | 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: 
69918diff
changeset | 4448 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4449 | lemma istopology_subbase: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4450 | "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: 
69918diff
changeset | 4451 | 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: 
69918diff
changeset | 4452 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4453 | lemma openin_subbase: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4454 | "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: 
69918diff
changeset | 4455 | \<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: 
69918diff
changeset | 4456 | by (simp add: istopology_subbase topology_inverse') | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4457 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4458 | lemma topspace_subbase [simp]: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4459 | "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: 
69918diff
changeset | 4460 | proof | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4461 | show "?lhs \<subseteq> U" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4462 | 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: 
69918diff
changeset | 4463 | show "U \<subseteq> ?lhs" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4464 | 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: 
69918diff
changeset | 4465 | 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: 
69918diff
changeset | 4466 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4467 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4468 | lemma minimal_topology_subbase: | 
| 72608 | 4469 | assumes X: "\<And>S. P S \<Longrightarrow> openin X S" and "openin X U" | 
| 4470 | and S: "openin(topology(arbitrary union_of (finite intersection_of P relative_to U))) S" | |
| 4471 | shows "openin X S" | |
| 4472 | proof - | |
| 4473 | have "(arbitrary union_of (finite intersection_of P relative_to U)) S" | |
| 4474 | using S openin_subbase by blast | |
| 4475 | with X \<open>openin X U\<close> show ?thesis | |
| 4476 | by (force simp add: union_of_def intersection_of_def relative_to_def intro: openin_Int_Inter) | |
| 4477 | qed | |
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4478 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4479 | lemma istopology_subbase_UNIV: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4480 | "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: 
69918diff
changeset | 4481 | 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: 
69918diff
changeset | 4482 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4483 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4484 | lemma generate_topology_on_eq: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4485 | "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: 
69918diff
changeset | 4486 | proof (intro ext iffI) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4487 | fix A | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4488 | assume "?lhs A" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4489 | then show "?rhs A" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4490 | proof induction | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4491 | case (Int a b) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4492 | then show ?case | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4493 | 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: 
69918diff
changeset | 4494 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4495 | case (UN K) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4496 | then show ?case | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4497 | by (simp add: arbitrary_union_of_Union) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4498 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4499 | case (Basis s) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4500 | then show ?case | 
| 78250 
400aecdfd71f
Another tranche of HOL Light material on metric and topological spaces
 paulson <lp15@cam.ac.uk> parents: 
78248diff
changeset | 4501 | 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: 
69918diff
changeset | 4502 | qed auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4503 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4504 | fix A | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4505 | assume "?rhs A" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4506 | 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: 
69918diff
changeset | 4507 | 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: 
69918diff
changeset | 4508 | show "?lhs A" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4509 | unfolding eq | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4510 | proof (rule generate_topology_on.UN) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4511 | fix T | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4512 | assume "T \<in> \<U>" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4513 | 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: 
69918diff
changeset | 4514 | by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4515 | have "generate_topology_on S (\<Inter>\<F>)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4516 | proof (rule generate_topology_on_Inter) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4517 |       show "finite \<F>" "\<F> \<noteq> {}"
 | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4518 | by (auto simp: \<open>finite' \<F>\<close>) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4519 | 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: 
69918diff
changeset | 4520 | 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: 
69918diff
changeset | 4521 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4522 | then show "generate_topology_on S T" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4523 | 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: 
69918diff
changeset | 4524 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4525 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4526 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4527 | 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: 
69922diff
changeset | 4528 | "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: 
69918diff
changeset | 4529 | ((\<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: 
69922diff
changeset | 4530 | 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: 
69918diff
changeset | 4531 | 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: 
69918diff
changeset | 4532 | 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: 
69918diff
changeset | 4533 | 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: 
69918diff
changeset | 4534 | 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: 
69918diff
changeset | 4535 | 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: 
69918diff
changeset | 4536 | proof (induct) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4537 | fix a b | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4538 | 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: 
69918diff
changeset | 4539 | 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: 
69918diff
changeset | 4540 | by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4541 | 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: 
69918diff
changeset | 4542 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4543 | fix K | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4544 | 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: 
69918diff
changeset | 4545 |     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: 
69918diff
changeset | 4546 | 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: 
69918diff
changeset | 4547 | 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: 
69918diff
changeset | 4548 | 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: 
69918diff
changeset | 4549 | 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: 
69918diff
changeset | 4550 | qed (auto simp add: H) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4551 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4552 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4553 | lemma continuous_on_generated_topo: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4554 | 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: 
69918diff
changeset | 4555 | "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: 
69922diff
changeset | 4556 | 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: 
69918diff
changeset | 4557 | 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: 
69918diff
changeset | 4558 | |
| 69939 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 4559 | |
| 77943 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4560 | 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: 
77939diff
changeset | 4561 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4562 | lemma continuous_map_into_topology_base: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4563 | assumes P: "openin Y = arbitrary union_of P" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4564 | 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: 
77939diff
changeset | 4565 |     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: 
77939diff
changeset | 4566 | shows "continuous_map X Y f" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4567 | proof - | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4568 |   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: 
77939diff
changeset | 4569 | 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: 
77939diff
changeset | 4570 | show ?thesis | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4571 | 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: 
77939diff
changeset | 4572 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4573 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4574 | lemma continuous_map_into_topology_base_eq: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4575 | assumes P: "openin Y = arbitrary union_of P" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4576 | shows | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4577 | "continuous_map X Y f \<longleftrightarrow> | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4578 |     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: 
77939diff
changeset | 4579 | (is "?lhs=?rhs") | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4580 | proof | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4581 | assume L: ?lhs | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4582 | 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: 
78250diff
changeset | 4583 | by (simp add: continuous_map_funspace) | 
| 77943 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4584 |   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: 
77939diff
changeset | 4585 | 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: 
77939diff
changeset | 4586 | ultimately show ?rhs by auto | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4587 | 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: 
77939diff
changeset | 4588 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4589 | lemma continuous_map_into_topology_subbase: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4590 | fixes U P | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4591 | 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: 
77939diff
changeset | 4592 | 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: 
77939diff
changeset | 4593 |     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: 
77939diff
changeset | 4594 | shows "continuous_map X Y f" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4595 | proof (intro continuous_map_into_topology_base) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4596 | 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: 
77939diff
changeset | 4597 | unfolding Y_def using istopology_subbase topology_inverse' by blast | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4598 |   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: 
77939diff
changeset | 4599 | 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: 
77939diff
changeset | 4600 | proof - | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4601 |     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: 
77939diff
changeset | 4602 | 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: 
77939diff
changeset | 4603 |                       "{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: 
77939diff
changeset | 4604 | 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: 
77939diff
changeset | 4605 | show ?thesis | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4606 | unfolding \<U> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4607 | proof (intro openin_Inter ope) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4608 | have U: "U = topspace Y" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4609 | unfolding Y_def using topspace_subbase by fastforce | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4610 | fix V | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4611 | assume V: "V \<in> finv ` insert U \<U>" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4612 |       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: 
77939diff
changeset | 4613 | by (auto simp: openin_subopen [of X "Collect _"]) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4614 | then show "openin X V" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4615 | using V \<U>(2) ope by (fastforce simp: finv_def) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4616 | qed (use \<open>finite \<U>\<close> in auto) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4617 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4618 | qed (use f in auto) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4619 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4620 | lemma continuous_map_into_topology_subbase_eq: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4621 | 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: 
77939diff
changeset | 4622 | shows | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4623 | "continuous_map X Y f \<longleftrightarrow> | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4624 |     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: 
77939diff
changeset | 4625 | (is "?lhs=?rhs") | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4626 | proof | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4627 | assume L: ?lhs | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4628 | show ?rhs | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4629 | proof (intro conjI strip) | 
| 78320 
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
 paulson <lp15@cam.ac.uk> parents: 
78250diff
changeset | 4630 | show "f \<in> topspace X \<rightarrow> topspace Y" | 
| 77943 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4631 | using L continuous_map_def by fastforce | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4632 | fix V | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4633 | assume "P V" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4634 | have "U = topspace Y" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4635 | unfolding assms using topspace_subbase by fastforce | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4636 |     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: 
77939diff
changeset | 4637 | using L by (auto simp: continuous_map) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4638 | have "openin Y (U \<inter> V)" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4639 | unfolding assms openin_subbase | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4640 | 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: 
77939diff
changeset | 4641 |     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: 
77939diff
changeset | 4642 | 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: 
77939diff
changeset | 4643 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4644 | next | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4645 | show "?rhs \<Longrightarrow> ?lhs" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4646 | unfolding assms | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4647 | by (intro continuous_map_into_topology_subbase) auto | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4648 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4649 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4650 | lemma subbase_subtopology_euclidean: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4651 | fixes U :: "'a::order_topology set" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4652 | shows | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4653 | "topology | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4654 | (arbitrary union_of | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4655 | (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: 
77939diff
changeset | 4656 | = subtopology euclidean U" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4657 | proof - | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4658 | 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: 
77939diff
changeset | 4659 | 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: 
77939diff
changeset | 4660 | 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: 
77939diff
changeset | 4661 | proof (induct rule: generate_topology.induct) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4662 | case UNIV | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4663 | then show ?case | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4664 | using finite_intersection_of_empty by blast | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4665 | next | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4666 | case (Int a b) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4667 | then show ?case | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4668 | by (meson Int_iff finite_intersection_of_Int inf_mono) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4669 | next | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4670 | case (UN K) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4671 | then show ?case | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4672 | by (meson Union_iff subset_iff) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4673 | next | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4674 | case (Basis s) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4675 | then show ?case | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4676 | 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: 
77939diff
changeset | 4677 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4678 | moreover | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4679 | 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: 
77939diff
changeset | 4680 | by (force simp: intersection_of_def subset_iff) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4681 | ultimately have *: "openin (euclidean::'a topology) = | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4682 | (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: 
77939diff
changeset | 4683 | by (smt (verit, best) openin_topology_base_unique open_openin) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4684 | show ?thesis | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4685 | unfolding subtopology_def arbitrary_union_of_relative_to [symmetric] | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4686 | apply (simp add: relative_to_def flip: *) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4687 | by (metis Int_commute) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4688 | qed | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4689 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4690 | lemma continuous_map_upper_lower_semicontinuous_lt_gen: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4691 | fixes U :: "'a::order_topology set" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4692 | shows "continuous_map X (subtopology euclidean U) f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4693 | (\<forall>x \<in> topspace X. f x \<in> U) \<and> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4694 |          (\<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: 
77939diff
changeset | 4695 |          (\<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: 
77939diff
changeset | 4696 | 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: 
77939diff
changeset | 4697 | greaterThan_def lessThan_def image_iff simp flip: all_simps) | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4698 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4699 | lemma continuous_map_upper_lower_semicontinuous_lt: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4700 | fixes f :: "'a \<Rightarrow> 'b::order_topology" | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4701 | shows "continuous_map X euclidean f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4702 |          (\<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: 
77939diff
changeset | 4703 |          (\<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: 
77939diff
changeset | 4704 | 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: 
77939diff
changeset | 4705 | by auto | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4706 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4707 | 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: 
77939diff
changeset | 4708 | by blast | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4709 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4710 | lemma continuous_map_upper_lower_semicontinuous_le_gen: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4711 | shows | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4712 | "continuous_map X (subtopology euclideanreal U) f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4713 | (\<forall>x \<in> topspace X. f x \<in> U) \<and> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4714 |          (\<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: 
77939diff
changeset | 4715 |          (\<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: 
77939diff
changeset | 4716 | unfolding continuous_map_upper_lower_semicontinuous_lt_gen | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4717 | 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: 
77939diff
changeset | 4718 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4719 | lemma continuous_map_upper_lower_semicontinuous_le: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4720 | "continuous_map X euclideanreal f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4721 |          (\<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: 
77939diff
changeset | 4722 |          (\<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: 
77939diff
changeset | 4723 | 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: 
77939diff
changeset | 4724 | by auto | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4725 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4726 | lemma continuous_map_upper_lower_semicontinuous_lte_gen: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4727 | "continuous_map X (subtopology euclideanreal U) f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4728 | (\<forall>x \<in> topspace X. f x \<in> U) \<and> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4729 |          (\<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: 
77939diff
changeset | 4730 |          (\<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: 
77939diff
changeset | 4731 | unfolding continuous_map_upper_lower_semicontinuous_lt_gen | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4732 | 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: 
77939diff
changeset | 4733 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4734 | lemma continuous_map_upper_lower_semicontinuous_lte: | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4735 | "continuous_map X euclideanreal f \<longleftrightarrow> | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4736 |          (\<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: 
77939diff
changeset | 4737 |          (\<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: 
77939diff
changeset | 4738 | 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: 
77939diff
changeset | 4739 | by auto | 
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4740 | |
| 
ffdad62bc235
Importation of additional lemmas from metric.ml
 paulson <lp15@cam.ac.uk> parents: 
77939diff
changeset | 4741 | |
| 70136 | 4742 | 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: 
69918diff
changeset | 4743 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4744 | 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: 
69918diff
changeset | 4745 | 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: 
69918diff
changeset | 4746 | 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: 
69918diff
changeset | 4747 | 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: 
69918diff
changeset | 4748 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4749 | 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: 
69918diff
changeset | 4750 | the set \<open>A\<close>.\<close> | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4751 | |
| 70136 | 4752 | 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: 
69918diff
changeset | 4753 | 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: 
69918diff
changeset | 4754 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4755 | lemma istopology_pullback_topology: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4756 | "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: 
69918diff
changeset | 4757 | unfolding istopology_def proof (auto) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4758 | 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: 
69918diff
changeset | 4759 | 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: 
69918diff
changeset | 4760 | by (rule bchoice) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4761 | 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: 
69918diff
changeset | 4762 | by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4763 | 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: 
69918diff
changeset | 4764 | 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: 
69918diff
changeset | 4765 | 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: 
69918diff
changeset | 4766 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4767 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4768 | lemma openin_pullback_topology: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4769 | "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: 
69918diff
changeset | 4770 | 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: 
69918diff
changeset | 4771 | |
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4772 | lemma topspace_pullback_topology: | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4773 | "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: 
69918diff
changeset | 4774 | 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: 
69918diff
changeset | 4775 | |
| 69939 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 4776 | 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: 
69922diff
changeset | 4777 | 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: 
69922diff
changeset | 4778 | 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: 
69922diff
changeset | 4779 | unfolding continuous_map_alt | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4780 | proof (auto) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4781 | 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: 
69918diff
changeset | 4782 | 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: 
69922diff
changeset | 4783 | 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: 
69918diff
changeset | 4784 | 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: 
69918diff
changeset | 4785 | unfolding topspace_pullback_topology by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4786 | 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: 
69918diff
changeset | 4787 | by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4788 | 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: 
69918diff
changeset | 4789 | 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: 
69918diff
changeset | 4790 | 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: 
69918diff
changeset | 4791 | by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4792 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4793 | 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: 
69918diff
changeset | 4794 | then have "f x \<in> topspace T1" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4795 | unfolding topspace_pullback_topology by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4796 | 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: 
69922diff
changeset | 4797 | 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: 
69918diff
changeset | 4798 | qed | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4799 | |
| 69939 
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
 paulson <lp15@cam.ac.uk> parents: 
69922diff
changeset | 4800 | 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: 
69922diff
changeset | 4801 | 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: 
69922diff
changeset | 4802 | 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: 
69922diff
changeset | 4803 | unfolding continuous_map_alt | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4804 | proof (auto) | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4805 | 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: 
69918diff
changeset | 4806 | 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: 
69918diff
changeset | 4807 | unfolding openin_pullback_topology by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4808 | 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: 
69918diff
changeset | 4809 | by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4810 | 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: 
69918diff
changeset | 4811 | by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4812 | 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: 
69918diff
changeset | 4813 | by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4814 | 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: 
69918diff
changeset | 4815 | using assms(2) by auto | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4816 | also have "openin T1 (...)" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4817 | 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: 
69918diff
changeset | 4818 | 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: 
69918diff
changeset | 4819 | next | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4820 | fix x assume "x \<in> topspace T1" | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4821 | 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: 
69922diff
changeset | 4822 | 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: 
69918diff
changeset | 4823 | 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: 
69918diff
changeset | 4824 | unfolding comp_def by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4825 | 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: 
69918diff
changeset | 4826 | 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: 
69918diff
changeset | 4827 | unfolding topspace_pullback_topology by blast | 
| 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 4828 | qed | 
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4829 | subsection\<open>Proper maps (not a priori assumed continuous) \<close> | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4830 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4831 | definition proper_map | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4832 | where | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4833 | "proper_map X Y f \<equiv> | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4834 |         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: 
70136diff
changeset | 4835 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4836 | lemma proper_imp_closed_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4837 | "proper_map X Y f \<Longrightarrow> closed_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4838 | by (simp add: proper_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4839 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4840 | 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: 
78200diff
changeset | 4841 | "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: 
70136diff
changeset | 4842 | by (simp add: closed_map_imp_subset_topspace proper_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4843 | |
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4844 | lemma proper_map_restriction: | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4845 |   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: 
78038diff
changeset | 4846 | shows "proper_map (subtopology X U) (subtopology Y V) f" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4847 | proof - | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4848 |   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: 
78038diff
changeset | 4849 | if "y \<in> V" for y | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4850 | using that by auto | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4851 | show ?thesis | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4852 | using assms unfolding proper_map_def using closed_map_restriction | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4853 | by (force simp: compactin_subtopology) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4854 | qed | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 4855 | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4856 | lemma closed_injective_imp_proper_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4857 | 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: 
70136diff
changeset | 4858 | shows "proper_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4859 | unfolding proper_map_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4860 | proof (clarsimp simp: f) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4861 |   show "compactin X {x \<in> topspace X. f x = y}"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4862 | if "y \<in> topspace Y" for y | 
| 77234 | 4863 | using inj_on_eq_iff [OF inj] that | 
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4864 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4865 |     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: 
70136diff
changeset | 4866 | using inj_on_eq_iff [OF inj] by auto | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4867 | then show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4868 | using that by (metis (no_types, lifting) compactin_empty compactin_sing) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4869 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4870 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4871 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4872 | lemma injective_imp_proper_eq_closed_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4873 | "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: 
70136diff
changeset | 4874 | 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: 
70136diff
changeset | 4875 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4876 | lemma homeomorphic_imp_proper_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4877 | "homeomorphic_map X Y f \<Longrightarrow> proper_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4878 | 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: 
70136diff
changeset | 4879 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4880 | lemma compactin_proper_map_preimage: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4881 | assumes f: "proper_map X Y f" and "compactin Y K" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4882 |   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: 
70136diff
changeset | 4883 | proof - | 
| 78248 
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
 paulson <lp15@cam.ac.uk> parents: 
78200diff
changeset | 4884 | have "f \<in> (topspace X) \<rightarrow> topspace Y" | 
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4885 | by (simp add: f proper_map_imp_subset_topspace) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4886 |   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: 
70136diff
changeset | 4887 | using f by (auto simp: proper_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4888 | show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4889 | unfolding compactin_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4890 | proof clarsimp | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4891 |     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: 
70136diff
changeset | 4892 |       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: 
70136diff
changeset | 4893 | for \<U> | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4894 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4895 |       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: 
70136diff
changeset | 4896 | proof | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4897 | fix y | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4898 | assume "y \<in> K" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4899 |         then have "compactin X {x \<in> topspace X. f x = y}"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4900 | by (metis "*" \<open>compactin Y K\<close> compactin_subspace subsetD) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4901 |         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: 
70136diff
changeset | 4902 | unfolding compactin_def using \<U> sub by fastforce | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4903 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4904 |       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: 
70136diff
changeset | 4905 | by (metis (full_types)) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4906 | 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: 
70136diff
changeset | 4907 | 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: 
70136diff
changeset | 4908 | proof (rule compactinD [OF \<open>compactin Y K\<close>]) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4909 | 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: 
70136diff
changeset | 4910 | using f unfolding proper_map_def closed_map_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4911 | by (meson \<U> \<V> openin_Union openin_closedin_eq subsetD) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4912 | 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: 
70136diff
changeset | 4913 | using that by (auto simp: F_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4914 | show "K \<subseteq> \<Union>(F ` K)" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4915 | 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: 
70136diff
changeset | 4916 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4917 | 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: 
70136diff
changeset | 4918 | by (auto simp: ex_finite_subset_image) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4919 | show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4920 | unfolding F_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4921 | proof (intro exI conjI) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4922 | show "finite (\<Union>(\<V> ` J))" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4923 | 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: 
70136diff
changeset | 4924 | show "\<Union>(\<V> ` J) \<subseteq> \<U>" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4925 | using \<V> \<open>J \<subseteq> K\<close> by blast | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4926 |         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: 
70136diff
changeset | 4927 | 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: 
70136diff
changeset | 4928 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4929 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4930 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4931 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4932 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4933 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4934 | lemma compact_space_proper_map_preimage: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4935 | 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: 
70136diff
changeset | 4936 | shows "compact_space X" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4937 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4938 |   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: 
70136diff
changeset | 4939 | using fim by blast | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4940 | moreover have "compactin Y (topspace Y)" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4941 | using \<open>compact_space Y\<close> compact_space_def by auto | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4942 | ultimately show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4943 | unfolding compact_space_def | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4944 | using eq f compactin_proper_map_preimage by fastforce | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4945 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4946 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4947 | lemma proper_map_alt: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4948 | "proper_map X Y f \<longleftrightarrow> | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4949 |     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: 
70136diff
changeset | 4950 | proof (intro iffI conjI allI impI) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4951 |   show "compactin X {x \<in> topspace X. f x \<in> K}"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4952 | 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: 
70136diff
changeset | 4953 | using that by (simp add: compactin_proper_map_preimage) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4954 | show "proper_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4955 |     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: 
70136diff
changeset | 4956 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4957 |     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: 
70136diff
changeset | 4958 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4959 |       have "compactin X {x \<in> topspace X. f x \<in> {y}}"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4960 | using f compactin_sing that by fastforce | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4961 | then show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4962 | by auto | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4963 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4964 | with f show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4965 | by (auto simp: proper_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4966 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4967 | qed (simp add: proper_imp_closed_map) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4968 | |
| 78336 | 4969 | 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: 
70136diff
changeset | 4970 | by (auto simp: proper_map_def closed_map_on_empty) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4971 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4972 | lemma proper_map_id [simp]: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4973 | "proper_map X X id" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4974 | proof (clarsimp simp: proper_map_alt closed_map_id) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4975 | fix K | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4976 | assume K: "compactin X K" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4977 |   then have "{a \<in> topspace X. a \<in> K} = K"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4978 | by (simp add: compactin_subspace subset_antisym subset_iff) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4979 |   then show "compactin X {a \<in> topspace X. a \<in> K}"
 | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4980 | using K by auto | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4981 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4982 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4983 | lemma proper_map_compose: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4984 | assumes "proper_map X Y f" "proper_map Y Z g" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4985 | shows "proper_map X Z (g \<circ> f)" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4986 | proof - | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4987 |   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: 
70136diff
changeset | 4988 |     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: 
70136diff
changeset | 4989 | using assms by (auto simp: proper_map_alt) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4990 | show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4991 | unfolding proper_map_alt | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4992 | proof (intro conjI allI impI) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4993 | show "closed_map X Z (g \<circ> f)" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4994 | 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: 
70136diff
changeset | 4995 |     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: 
70136diff
changeset | 4996 | 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: 
70136diff
changeset | 4997 |     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: 
70136diff
changeset | 4998 | if "compactin Z K" for K | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 4999 | using f [OF g [OF that]] by auto | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5000 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5001 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5002 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5003 | lemma proper_map_const: | 
| 78336 | 5004 |    "proper_map X Y (\<lambda>x. c) \<longleftrightarrow> compact_space X \<and> (X = trivial_topology \<or> closedin Y {c})"
 | 
| 5005 | proof (cases "X = trivial_topology") | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5006 | case True | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5007 | then show ?thesis | 
| 78336 | 5008 | by simp | 
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5009 | next | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5010 | case False | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5011 |   have *: "compactin X {x \<in> topspace X. c = y}" if "compact_space X" for y
 | 
| 77234 | 5012 | using that unfolding compact_space_def | 
| 5013 | 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: 
70136diff
changeset | 5014 | then show ?thesis | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5015 | using closed_compactin closedin_subset | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5016 | 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: 
70136diff
changeset | 5017 | qed | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5018 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5019 | lemma proper_map_inclusion: | 
| 77234 | 5020 | "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))" | 
| 5021 | 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: 
70136diff
changeset | 5022 | |
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5023 | 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: 
78200diff
changeset | 5024 | "\<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: 
78038diff
changeset | 5025 | 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: 
78038diff
changeset | 5026 | |
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5027 | lemma proper_map_from_composition_left: | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5028 | 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: 
78038diff
changeset | 5029 | shows "proper_map Y Z g" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5030 | unfolding proper_map_def | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5031 | proof (intro strip conjI) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5032 | show "closed_map Y Z g" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5033 | 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: 
78038diff
changeset | 5034 | fix z assume "z \<in> topspace Z" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5035 |   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: 
78038diff
changeset | 5036 | using fim by force | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5037 |   show "compactin Y {x \<in> topspace Y. g x = z}"
 | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5038 | unfolding eq | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5039 | proof (rule image_compactin [OF _ contf]) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5040 |     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: 
78038diff
changeset | 5041 | 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: 
78038diff
changeset | 5042 | qed | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5043 | qed | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5044 | |
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5045 | 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: 
78200diff
changeset | 5046 | 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: 
78038diff
changeset | 5047 | 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: 
78038diff
changeset | 5048 | shows "proper_map X Y f" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5049 | unfolding proper_map_def | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5050 | proof (intro strip conjI) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5051 | show "closed_map X Y f" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5052 | 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: 
78038diff
changeset | 5053 | fix y | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5054 | assume "y \<in> topspace Y" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5055 |   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: 
78200diff
changeset | 5056 | by (auto simp: Pi_iff inj_onD) | 
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5057 |   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: 
78250diff
changeset | 5058 | 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: 
78250diff
changeset | 5059 | 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: 
78250diff
changeset | 5060 | by blast | 
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5061 | qed | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5062 | |
| 70178 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5063 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5064 | subsection\<open>Perfect maps (proper, continuous and surjective)\<close> | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5065 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5066 | definition perfect_map | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5067 | 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: 
70136diff
changeset | 5068 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5069 | lemma homeomorphic_imp_perfect_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5070 | "homeomorphic_map X Y f \<Longrightarrow> perfect_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5071 | 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: 
70136diff
changeset | 5072 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5073 | lemma perfect_imp_quotient_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5074 | "perfect_map X Y f \<Longrightarrow> quotient_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5075 | 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: 
70136diff
changeset | 5076 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5077 | lemma homeomorphic_eq_injective_perfect_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5078 | "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: 
70136diff
changeset | 5079 | 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: 
70136diff
changeset | 5080 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5081 | lemma perfect_injective_eq_homeomorphic_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5082 | "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: 
70136diff
changeset | 5083 | by (simp add: homeomorphic_eq_injective_perfect_map) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5084 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5085 | lemma perfect_map_id [simp]: "perfect_map X X id" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5086 | by (simp add: homeomorphic_imp_perfect_map) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5087 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5088 | lemma perfect_map_compose: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5089 | "\<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: 
70136diff
changeset | 5090 | 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: 
70136diff
changeset | 5091 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5092 | lemma perfect_imp_continuous_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5093 | "perfect_map X Y f \<Longrightarrow> continuous_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5094 | using perfect_map_def by blast | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5095 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5096 | lemma perfect_imp_closed_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5097 | "perfect_map X Y f \<Longrightarrow> closed_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5098 | by (simp add: perfect_map_def proper_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5099 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5100 | lemma perfect_imp_proper_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5101 | "perfect_map X Y f \<Longrightarrow> proper_map X Y f" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5102 | by (simp add: perfect_map_def) | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5103 | |
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5104 | lemma perfect_imp_surjective_map: | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5105 | "perfect_map X Y f \<Longrightarrow> f ` (topspace X) = topspace Y" | 
| 
4900351361b0
Lindelöf spaces and supporting material
 paulson <lp15@cam.ac.uk> parents: 
70136diff
changeset | 5106 | by (simp add: perfect_map_def) | 
| 69922 
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
 paulson <lp15@cam.ac.uk> parents: 
69918diff
changeset | 5107 | |
| 78093 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5108 | lemma perfect_map_from_composition_left: | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5109 | 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: 
78038diff
changeset | 5110 | 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: 
78038diff
changeset | 5111 | shows "perfect_map Y Z g" | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5112 | using assms unfolding perfect_map_def | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5113 | by (metis image_comp proper_map_from_composition_left) | 
| 
cec875dcc59e
Finally, the abstract metric space development
 paulson <lp15@cam.ac.uk> parents: 
78038diff
changeset | 5114 | |
| 69144 
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
 paulson <lp15@cam.ac.uk> parents: diff
changeset | 5115 | end |