author | paulson <lp15@cam.ac.uk> |
Sun, 12 Apr 2020 10:51:51 +0100 | |
changeset 71745 | ad84f8a712b4 |
parent 71633 | 07bec530f02e |
child 71746 | da0e18db1517 |
permissions | -rw-r--r-- |
69620 | 1 |
(* Title: HOL/Analysis/Path_Connected.thy |
2 |
Authors: LC Paulson and Robert Himmelmann (TU Muenchen), based on material from HOL Light |
|
3 |
*) |
|
4 |
||
5 |
section \<open>Homotopy of Maps\<close> |
|
6 |
||
7 |
theory Homotopy |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
8 |
imports Path_Connected Continuum_Not_Denumerable Product_Topology |
69620 | 9 |
begin |
10 |
||
70136 | 11 |
definition\<^marker>\<open>tag important\<close> homotopic_with |
69620 | 12 |
where |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
13 |
"homotopic_with P X Y f g \<equiv> |
71745 | 14 |
(\<exists>h. continuous_map (prod_topology (top_of_set {0..1::real}) X) Y h \<and> |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
15 |
(\<forall>x. h(0, x) = f x) \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
16 |
(\<forall>x. h(1, x) = g x) \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
17 |
(\<forall>t \<in> {0..1}. P(\<lambda>x. h(t,x))))" |
69620 | 18 |
|
19 |
text\<open>\<open>p\<close>, \<open>q\<close> are functions \<open>X \<rightarrow> Y\<close>, and the property \<open>P\<close> restricts all intermediate maps. |
|
20 |
We often just want to require that \<open>P\<close> fixes some subset, but to include the case of a loop homotopy, |
|
21 |
it is convenient to have a general property \<open>P\<close>.\<close> |
|
22 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
23 |
abbreviation homotopic_with_canon :: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
24 |
"[('a::topological_space \<Rightarrow> 'b::topological_space) \<Rightarrow> bool, 'a set, 'b set, 'a \<Rightarrow> 'b, 'a \<Rightarrow> 'b] \<Rightarrow> bool" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
25 |
where |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
26 |
"homotopic_with_canon P S T p q \<equiv> homotopic_with P (top_of_set S) (top_of_set T) p q" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
27 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
28 |
lemma split_01: "{0..1::real} = {0..1/2} \<union> {1/2..1}" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
29 |
by force |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
30 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
31 |
lemma split_01_prod: "{0..1::real} \<times> X = ({0..1/2} \<times> X) \<union> ({1/2..1} \<times> X)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
32 |
by force |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
33 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
34 |
lemma image_Pair_const: "(\<lambda>x. (x, c)) ` A = A \<times> {c}" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
35 |
by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
36 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
37 |
lemma fst_o_paired [simp]: "fst \<circ> (\<lambda>(x,y). (f x y, g x y)) = (\<lambda>(x,y). f x y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
38 |
by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
39 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
40 |
lemma snd_o_paired [simp]: "snd \<circ> (\<lambda>(x,y). (f x y, g x y)) = (\<lambda>(x,y). g x y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
41 |
by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
42 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
43 |
lemma continuous_on_o_Pair: "\<lbrakk>continuous_on (T \<times> X) h; t \<in> T\<rbrakk> \<Longrightarrow> continuous_on X (h \<circ> Pair t)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
44 |
by (fast intro: continuous_intros elim!: continuous_on_subset) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
45 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
46 |
lemma continuous_map_o_Pair: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
47 |
assumes h: "continuous_map (prod_topology X Y) Z h" and t: "t \<in> topspace X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
48 |
shows "continuous_map Y Z (h \<circ> Pair t)" |
71745 | 49 |
by (intro continuous_map_compose [OF _ h] continuous_intros; simp add: t) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
50 |
|
70136 | 51 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Trivial properties\<close> |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
52 |
|
69620 | 53 |
text \<open>We often want to just localize the ending function equality or whatever.\<close> |
70136 | 54 |
text\<^marker>\<open>tag important\<close> \<open>%whitespace\<close> |
69620 | 55 |
proposition homotopic_with: |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
56 |
assumes "\<And>h k. (\<And>x. x \<in> topspace X \<Longrightarrow> h x = k x) \<Longrightarrow> (P h \<longleftrightarrow> P k)" |
69620 | 57 |
shows "homotopic_with P X Y p q \<longleftrightarrow> |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
58 |
(\<exists>h. continuous_map (prod_topology (subtopology euclideanreal {0..1}) X) Y h \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
59 |
(\<forall>x \<in> topspace X. h(0,x) = p x) \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
60 |
(\<forall>x \<in> topspace X. h(1,x) = q x) \<and> |
69620 | 61 |
(\<forall>t \<in> {0..1}. P(\<lambda>x. h(t, x))))" |
62 |
unfolding homotopic_with_def |
|
63 |
apply (rule iffI, blast, clarify) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
64 |
apply (rule_tac x="\<lambda>(u,v). if v \<in> topspace X then h(u,v) else if u = 0 then p v else q v" in exI) |
69620 | 65 |
apply auto |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
66 |
using continuous_map_eq apply fastforce |
69620 | 67 |
apply (drule_tac x=t in bspec, force) |
68 |
apply (subst assms; simp) |
|
69 |
done |
|
70 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
71 |
lemma homotopic_with_mono: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
72 |
assumes hom: "homotopic_with P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
73 |
and Q: "\<And>h. \<lbrakk>continuous_map X Y h; P h\<rbrakk> \<Longrightarrow> Q h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
74 |
shows "homotopic_with Q X Y f g" |
71745 | 75 |
using hom unfolding homotopic_with_def |
76 |
by (force simp: o_def dest: continuous_map_o_Pair intro: Q) |
|
69620 | 77 |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
78 |
lemma homotopic_with_imp_continuous_maps: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
79 |
assumes "homotopic_with P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
80 |
shows "continuous_map X Y f \<and> continuous_map X Y g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
81 |
proof - |
71745 | 82 |
obtain h :: "real \<times> 'a \<Rightarrow> 'b" |
83 |
where conth: "continuous_map (prod_topology (top_of_set {0..1}) X) Y h" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
84 |
and h: "\<forall>x. h (0, x) = f x" "\<forall>x. h (1, x) = g x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
85 |
using assms by (auto simp: homotopic_with_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
86 |
have *: "t \<in> {0..1} \<Longrightarrow> continuous_map X Y (h \<circ> (\<lambda>x. (t,x)))" for t |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
87 |
by (rule continuous_map_compose [OF _ conth]) (simp add: o_def continuous_map_pairwise) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
88 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
89 |
using h *[of 0] *[of 1] by (simp add: continuous_map_eq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
90 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
91 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
92 |
lemma homotopic_with_imp_continuous: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
93 |
assumes "homotopic_with_canon P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
94 |
shows "continuous_on X f \<and> continuous_on X g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
95 |
by (meson assms continuous_map_subtopology_eu homotopic_with_imp_continuous_maps) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
96 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
97 |
lemma homotopic_with_imp_property: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
98 |
assumes "homotopic_with P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
99 |
shows "P f \<and> P g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
100 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
101 |
obtain h where h: "\<And>x. h(0, x) = f x" "\<And>x. h(1, x) = g x" and P: "\<And>t. t \<in> {0..1::real} \<Longrightarrow> P(\<lambda>x. h(t,x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
102 |
using assms by (force simp: homotopic_with_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
103 |
show "P f" "P g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
104 |
using P [of 0] P [of 1] by (force simp: h)+ |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
105 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
106 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
107 |
lemma homotopic_with_equal: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
108 |
assumes "P f" "P g" and contf: "continuous_map X Y f" and fg: "\<And>x. x \<in> topspace X \<Longrightarrow> f x = g x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
109 |
shows "homotopic_with P X Y f g" |
69620 | 110 |
unfolding homotopic_with_def |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
111 |
proof (intro exI conjI allI ballI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
112 |
let ?h = "\<lambda>(t::real,x). if t = 1 then g x else f x" |
71745 | 113 |
show "continuous_map (prod_topology (top_of_set {0..1}) X) Y ?h" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
114 |
proof (rule continuous_map_eq) |
71745 | 115 |
show "continuous_map (prod_topology (top_of_set {0..1}) X) Y (f \<circ> snd)" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
116 |
by (simp add: contf continuous_map_of_snd) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
117 |
qed (auto simp: fg) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
118 |
show "P (\<lambda>x. ?h (t, x))" if "t \<in> {0..1}" for t |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
119 |
by (cases "t = 1") (simp_all add: assms) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
120 |
qed auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
121 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
122 |
lemma homotopic_with_imp_subset1: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
123 |
"homotopic_with_canon P X Y f g \<Longrightarrow> f ` X \<subseteq> Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
124 |
by (simp add: homotopic_with_def image_subset_iff) (metis atLeastAtMost_iff order_refl zero_le_one) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
125 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
126 |
lemma homotopic_with_imp_subset2: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
127 |
"homotopic_with_canon P X Y f g \<Longrightarrow> g ` X \<subseteq> Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
128 |
by (simp add: homotopic_with_def image_subset_iff) (metis atLeastAtMost_iff order_refl zero_le_one) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
129 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
130 |
lemma homotopic_with_subset_left: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
131 |
"\<lbrakk>homotopic_with_canon P X Y f g; Z \<subseteq> X\<rbrakk> \<Longrightarrow> homotopic_with_canon P Z Y f g" |
71745 | 132 |
unfolding homotopic_with_def by (auto elim!: continuous_on_subset ex_forward) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
133 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
134 |
lemma homotopic_with_subset_right: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
135 |
"\<lbrakk>homotopic_with_canon P X Y f g; Y \<subseteq> Z\<rbrakk> \<Longrightarrow> homotopic_with_canon P X Z f g" |
71745 | 136 |
unfolding homotopic_with_def by (auto elim!: continuous_on_subset ex_forward) |
69620 | 137 |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
138 |
subsection\<open>Homotopy with P is an equivalence relation\<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
139 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
140 |
text \<open>(on continuous functions mapping X into Y that satisfy P, though this only affects reflexivity)\<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
141 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
142 |
lemma homotopic_with_refl [simp]: "homotopic_with P X Y f f \<longleftrightarrow> continuous_map X Y f \<and> P f" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
143 |
by (auto simp: homotopic_with_imp_continuous_maps intro: homotopic_with_equal dest: homotopic_with_imp_property) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
144 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
145 |
lemma homotopic_with_symD: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
146 |
assumes "homotopic_with P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
147 |
shows "homotopic_with P X Y g f" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
148 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
149 |
let ?I01 = "subtopology euclideanreal {0..1}" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
150 |
let ?j = "\<lambda>y. (1 - fst y, snd y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
151 |
have 1: "continuous_map (prod_topology ?I01 X) (prod_topology euclideanreal X) ?j" |
71745 | 152 |
by (intro continuous_intros; simp add: continuous_map_subtopology_fst prod_topology_subtopology) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
153 |
have *: "continuous_map (prod_topology ?I01 X) (prod_topology ?I01 X) ?j" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
154 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
155 |
have "continuous_map (prod_topology ?I01 X) (subtopology (prod_topology euclideanreal X) ({0..1} \<times> topspace X)) ?j" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
156 |
by (simp add: continuous_map_into_subtopology [OF 1] image_subset_iff) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
157 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
158 |
by (simp add: prod_topology_subtopology(1)) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
159 |
qed |
69620 | 160 |
show ?thesis |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
161 |
using assms |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
162 |
apply (clarsimp simp add: homotopic_with_def) |
71745 | 163 |
subgoal for h |
164 |
by (rule_tac x="h \<circ> (\<lambda>y. (1 - fst y, snd y))" in exI) (simp add: continuous_map_compose [OF *]) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
165 |
done |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
166 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
167 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
168 |
lemma homotopic_with_sym: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
169 |
"homotopic_with P X Y f g \<longleftrightarrow> homotopic_with P X Y g f" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
170 |
by (metis homotopic_with_symD) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
171 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
172 |
proposition homotopic_with_trans: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
173 |
assumes "homotopic_with P X Y f g" "homotopic_with P X Y g h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
174 |
shows "homotopic_with P X Y f h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
175 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
176 |
let ?X01 = "prod_topology (subtopology euclideanreal {0..1}) X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
177 |
obtain k1 k2 |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
178 |
where contk1: "continuous_map ?X01 Y k1" and contk2: "continuous_map ?X01 Y k2" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
179 |
and k12: "\<forall>x. k1 (1, x) = g x" "\<forall>x. k2 (0, x) = g x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
180 |
"\<forall>x. k1 (0, x) = f x" "\<forall>x. k2 (1, x) = h x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
181 |
and P: "\<forall>t\<in>{0..1}. P (\<lambda>x. k1 (t, x))" "\<forall>t\<in>{0..1}. P (\<lambda>x. k2 (t, x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
182 |
using assms by (auto simp: homotopic_with_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
183 |
define k where "k \<equiv> \<lambda>y. if fst y \<le> 1/2 |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
184 |
then (k1 \<circ> (\<lambda>x. (2 *\<^sub>R fst x, snd x))) y |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
185 |
else (k2 \<circ> (\<lambda>x. (2 *\<^sub>R fst x -1, snd x))) y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
186 |
have keq: "k1 (2 * u, v) = k2 (2 * u -1, v)" if "u = 1/2" for u v |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
187 |
by (simp add: k12 that) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
188 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
189 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
190 |
proof (intro exI conjI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
191 |
show "continuous_map ?X01 Y k" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
192 |
unfolding k_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
193 |
proof (rule continuous_map_cases_le) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
194 |
show fst: "continuous_map ?X01 euclideanreal fst" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
195 |
using continuous_map_fst continuous_map_in_subtopology by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
196 |
show "continuous_map ?X01 euclideanreal (\<lambda>x. 1/2)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
197 |
by simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
198 |
show "continuous_map (subtopology ?X01 {y \<in> topspace ?X01. fst y \<le> 1/2}) Y |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
199 |
(k1 \<circ> (\<lambda>x. (2 *\<^sub>R fst x, snd x)))" |
71745 | 200 |
apply (intro fst continuous_map_compose [OF _ contk1] continuous_intros continuous_map_into_subtopology fst continuous_map_from_subtopology | simp)+ |
201 |
by (force simp: prod_topology_subtopology) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
202 |
show "continuous_map (subtopology ?X01 {y \<in> topspace ?X01. 1/2 \<le> fst y}) Y |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
203 |
(k2 \<circ> (\<lambda>x. (2 *\<^sub>R fst x -1, snd x)))" |
71745 | 204 |
apply (intro fst continuous_map_compose [OF _ contk2] continuous_intros continuous_map_into_subtopology fst continuous_map_from_subtopology | simp)+ |
205 |
by (force simp: prod_topology_subtopology) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
206 |
show "(k1 \<circ> (\<lambda>x. (2 *\<^sub>R fst x, snd x))) y = (k2 \<circ> (\<lambda>x. (2 *\<^sub>R fst x -1, snd x))) y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
207 |
if "y \<in> topspace ?X01" and "fst y = 1/2" for y |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
208 |
using that by (simp add: keq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
209 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
210 |
show "\<forall>x. k (0, x) = f x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
211 |
by (simp add: k12 k_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
212 |
show "\<forall>x. k (1, x) = h x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
213 |
by (simp add: k12 k_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
214 |
show "\<forall>t\<in>{0..1}. P (\<lambda>x. k (t, x))" |
71745 | 215 |
proof |
216 |
fix t show "t\<in>{0..1} \<Longrightarrow> P (\<lambda>x. k (t, x))" |
|
217 |
by (cases "t \<le> 1/2") (auto simp add: k_def P) |
|
218 |
qed |
|
69620 | 219 |
qed |
220 |
qed |
|
221 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
222 |
lemma homotopic_with_id2: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
223 |
"(\<And>x. x \<in> topspace X \<Longrightarrow> g (f x) = x) \<Longrightarrow> homotopic_with (\<lambda>x. True) X X (g \<circ> f) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
224 |
by (metis comp_apply continuous_map_id eq_id_iff homotopic_with_equal homotopic_with_symD) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
225 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
226 |
subsection\<open>Continuity lemmas\<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
227 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
228 |
lemma homotopic_with_compose_continuous_map_left: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
229 |
"\<lbrakk>homotopic_with p X1 X2 f g; continuous_map X2 X3 h; \<And>j. p j \<Longrightarrow> q(h \<circ> j)\<rbrakk> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
230 |
\<Longrightarrow> homotopic_with q X1 X3 (h \<circ> f) (h \<circ> g)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
231 |
unfolding homotopic_with_def |
69620 | 232 |
apply clarify |
71745 | 233 |
subgoal for k |
234 |
by (rule_tac x="h \<circ> k" in exI) (rule conjI continuous_map_compose | simp add: o_def)+ |
|
69620 | 235 |
done |
236 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
237 |
lemma homotopic_with_compose_continuous_map_right: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
238 |
assumes hom: "homotopic_with p X2 X3 f g" and conth: "continuous_map X1 X2 h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
239 |
and q: "\<And>j. p j \<Longrightarrow> q(j \<circ> h)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
240 |
shows "homotopic_with q X1 X3 (f \<circ> h) (g \<circ> h)" |
69620 | 241 |
proof - |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
242 |
obtain k |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
243 |
where contk: "continuous_map (prod_topology (subtopology euclideanreal {0..1}) X2) X3 k" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
244 |
and k: "\<forall>x. k (0, x) = f x" "\<forall>x. k (1, x) = g x" and p: "\<And>t. t\<in>{0..1} \<Longrightarrow> p (\<lambda>x. k (t, x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
245 |
using hom unfolding homotopic_with_def by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
246 |
have hsnd: "continuous_map (prod_topology (subtopology euclideanreal {0..1}) X1) X2 (h \<circ> snd)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
247 |
by (rule continuous_map_compose [OF continuous_map_snd conth]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
248 |
let ?h = "k \<circ> (\<lambda>(t,x). (t,h x))" |
69620 | 249 |
show ?thesis |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
250 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
251 |
proof (intro exI conjI allI ballI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
252 |
have "continuous_map (prod_topology (top_of_set {0..1}) X1) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
253 |
(prod_topology (top_of_set {0..1::real}) X2) (\<lambda>(t, x). (t, h x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
254 |
by (metis (mono_tags, lifting) case_prod_beta' comp_def continuous_map_eq continuous_map_fst continuous_map_pairedI hsnd) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
255 |
then show "continuous_map (prod_topology (subtopology euclideanreal {0..1}) X1) X3 ?h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
256 |
by (intro conjI continuous_map_compose [OF _ contk]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
257 |
show "q (\<lambda>x. ?h (t, x))" if "t \<in> {0..1}" for t |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
258 |
using q [OF p [OF that]] by (simp add: o_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
259 |
qed (auto simp: k) |
69620 | 260 |
qed |
261 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
262 |
corollary homotopic_compose: |
71745 | 263 |
assumes "homotopic_with (\<lambda>x. True) X Y f f'" "homotopic_with (\<lambda>x. True) Y Z g g'" |
264 |
shows "homotopic_with (\<lambda>x. True) X Z (g \<circ> f) (g' \<circ> f')" |
|
265 |
proof (rule homotopic_with_trans [where g = "g \<circ> f'"]) |
|
266 |
show "homotopic_with (\<lambda>x. True) X Z (g \<circ> f) (g \<circ> f')" |
|
267 |
using assms by (simp add: homotopic_with_compose_continuous_map_left homotopic_with_imp_continuous_maps) |
|
268 |
show "homotopic_with (\<lambda>x. True) X Z (g \<circ> f') (g' \<circ> f')" |
|
269 |
using assms by (simp add: homotopic_with_compose_continuous_map_right homotopic_with_imp_continuous_maps) |
|
270 |
qed |
|
69620 | 271 |
|
272 |
proposition homotopic_with_compose_continuous_right: |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
273 |
"\<lbrakk>homotopic_with_canon (\<lambda>f. p (f \<circ> h)) X Y f g; continuous_on W h; h ` W \<subseteq> X\<rbrakk> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
274 |
\<Longrightarrow> homotopic_with_canon p W Y (f \<circ> h) (g \<circ> h)" |
69620 | 275 |
apply (clarsimp simp add: homotopic_with_def) |
276 |
apply (rename_tac k) |
|
277 |
apply (rule_tac x="k \<circ> (\<lambda>y. (fst y, h (snd y)))" in exI) |
|
71745 | 278 |
apply (rule conjI continuous_intros continuous_on_compose2 [where f=snd and g=h] | simp)+ |
279 |
apply (fastforce simp: o_def elim: continuous_on_subset)+ |
|
69620 | 280 |
done |
281 |
||
282 |
proposition homotopic_with_compose_continuous_left: |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
283 |
"\<lbrakk>homotopic_with_canon (\<lambda>f. p (h \<circ> f)) X Y f g; continuous_on Y h; h ` Y \<subseteq> Z\<rbrakk> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
284 |
\<Longrightarrow> homotopic_with_canon p X Z (h \<circ> f) (h \<circ> g)" |
69620 | 285 |
apply (clarsimp simp add: homotopic_with_def) |
286 |
apply (rename_tac k) |
|
287 |
apply (rule_tac x="h \<circ> k" in exI) |
|
288 |
apply (rule conjI continuous_intros continuous_on_compose [where f=snd and g=h, unfolded o_def] | simp)+ |
|
71745 | 289 |
apply (fastforce simp: o_def elim: continuous_on_subset)+ |
69620 | 290 |
done |
291 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
292 |
lemma homotopic_from_subtopology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
293 |
"homotopic_with P X X' f g \<Longrightarrow> homotopic_with P (subtopology X s) X' f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
294 |
unfolding homotopic_with_def |
71745 | 295 |
by (force simp add: continuous_map_from_subtopology prod_topology_subtopology(2) elim!: ex_forward) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
296 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
297 |
lemma homotopic_on_emptyI: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
298 |
assumes "topspace X = {}" "P f" "P g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
299 |
shows "homotopic_with P X X' f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
300 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
301 |
proof (intro exI conjI ballI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
302 |
show "P (\<lambda>x. (\<lambda>(t,x). if t = 0 then f x else g x) (t, x))" if "t \<in> {0..1}" for t::real |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
303 |
by (cases "t = 0", auto simp: assms) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
304 |
qed (auto simp: continuous_map_atin assms) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
305 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
306 |
lemma homotopic_on_empty: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
307 |
"topspace X = {} \<Longrightarrow> (homotopic_with P X X' f g \<longleftrightarrow> P f \<and> P g)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
308 |
using homotopic_on_emptyI homotopic_with_imp_property by metis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
309 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
310 |
lemma homotopic_with_canon_on_empty [simp]: "homotopic_with_canon (\<lambda>x. True) {} t f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
311 |
by (auto intro: homotopic_with_equal) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
312 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
313 |
lemma homotopic_constant_maps: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
314 |
"homotopic_with (\<lambda>x. True) X X' (\<lambda>x. a) (\<lambda>x. b) \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
315 |
topspace X = {} \<or> path_component_of X' a b" (is "?lhs = ?rhs") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
316 |
proof (cases "topspace X = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
317 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
318 |
then obtain c where c: "c \<in> topspace X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
319 |
by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
320 |
have "\<exists>g. continuous_map (top_of_set {0..1::real}) X' g \<and> g 0 = a \<and> g 1 = b" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
321 |
if "x \<in> topspace X" and hom: "homotopic_with (\<lambda>x. True) X X' (\<lambda>x. a) (\<lambda>x. b)" for x |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
322 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
323 |
obtain h :: "real \<times> 'a \<Rightarrow> 'b" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
324 |
where conth: "continuous_map (prod_topology (top_of_set {0..1}) X) X' h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
325 |
and h: "\<And>x. h (0, x) = a" "\<And>x. h (1, x) = b" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
326 |
using hom by (auto simp: homotopic_with_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
327 |
have cont: "continuous_map (top_of_set {0..1}) X' (h \<circ> (\<lambda>t. (t, c)))" |
71745 | 328 |
by (rule continuous_map_compose [OF _ conth] continuous_intros c | simp)+ |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
329 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
330 |
by (force simp: h) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
331 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
332 |
moreover have "homotopic_with (\<lambda>x. True) X X' (\<lambda>x. g 0) (\<lambda>x. g 1)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
333 |
if "x \<in> topspace X" "a = g 0" "b = g 1" "continuous_map (top_of_set {0..1}) X' g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
334 |
for x and g :: "real \<Rightarrow> 'b" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
335 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
336 |
by (force intro!: continuous_map_compose continuous_intros c that) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
337 |
ultimately show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
338 |
using False by (auto simp: path_component_of_def pathin_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
339 |
qed (simp add: homotopic_on_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
340 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
341 |
proposition homotopic_with_eq: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
342 |
assumes h: "homotopic_with P X Y f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
343 |
and f': "\<And>x. x \<in> topspace X \<Longrightarrow> f' x = f x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
344 |
and g': "\<And>x. x \<in> topspace X \<Longrightarrow> g' x = g x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
345 |
and P: "(\<And>h k. (\<And>x. x \<in> topspace X \<Longrightarrow> h x = k x) \<Longrightarrow> P h \<longleftrightarrow> P k)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
346 |
shows "homotopic_with P X Y f' g'" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
347 |
using h unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
348 |
apply safe |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
349 |
apply (rule_tac x="\<lambda>(u,v). if v \<in> topspace X then h(u,v) else if u = 0 then f' v else g' v" in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
350 |
apply (simp add: f' g', safe) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
351 |
apply (fastforce intro: continuous_map_eq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
352 |
apply (subst P; fastforce) |
69620 | 353 |
done |
354 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
355 |
lemma homotopic_with_prod_topology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
356 |
assumes "homotopic_with p X1 Y1 f f'" and "homotopic_with q X2 Y2 g g'" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
357 |
and r: "\<And>i j. \<lbrakk>p i; q j\<rbrakk> \<Longrightarrow> r(\<lambda>(x,y). (i x, j y))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
358 |
shows "homotopic_with r (prod_topology X1 X2) (prod_topology Y1 Y2) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
359 |
(\<lambda>z. (f(fst z),g(snd z))) (\<lambda>z. (f'(fst z), g'(snd z)))" |
69620 | 360 |
proof - |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
361 |
obtain h |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
362 |
where h: "continuous_map (prod_topology (subtopology euclideanreal {0..1}) X1) Y1 h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
363 |
and h0: "\<And>x. h (0, x) = f x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
364 |
and h1: "\<And>x. h (1, x) = f' x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
365 |
and p: "\<And>t. \<lbrakk>0 \<le> t; t \<le> 1\<rbrakk> \<Longrightarrow> p (\<lambda>x. h (t,x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
366 |
using assms unfolding homotopic_with_def by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
367 |
obtain k |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
368 |
where k: "continuous_map (prod_topology (subtopology euclideanreal {0..1}) X2) Y2 k" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
369 |
and k0: "\<And>x. k (0, x) = g x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
370 |
and k1: "\<And>x. k (1, x) = g' x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
371 |
and q: "\<And>t. \<lbrakk>0 \<le> t; t \<le> 1\<rbrakk> \<Longrightarrow> q (\<lambda>x. k (t,x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
372 |
using assms unfolding homotopic_with_def by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
373 |
let ?hk = "\<lambda>(t,x,y). (h(t,x), k(t,y))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
374 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
375 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
376 |
proof (intro conjI allI exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
377 |
show "continuous_map (prod_topology (subtopology euclideanreal {0..1}) (prod_topology X1 X2)) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
378 |
(prod_topology Y1 Y2) ?hk" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
379 |
unfolding continuous_map_pairwise case_prod_unfold |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
380 |
by (rule conjI continuous_map_pairedI continuous_intros continuous_map_id [unfolded id_def] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
381 |
continuous_map_fst_of [unfolded o_def] continuous_map_snd_of [unfolded o_def] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
382 |
continuous_map_compose [OF _ h, unfolded o_def] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
383 |
continuous_map_compose [OF _ k, unfolded o_def])+ |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
384 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
385 |
fix x |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
386 |
show "?hk (0, x) = (f (fst x), g (snd x))" "?hk (1, x) = (f' (fst x), g' (snd x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
387 |
by (auto simp: case_prod_beta h0 k0 h1 k1) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
388 |
qed (auto simp: p q r) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
389 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
390 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
391 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
392 |
lemma homotopic_with_product_topology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
393 |
assumes ht: "\<And>i. i \<in> I \<Longrightarrow> homotopic_with (p i) (X i) (Y i) (f i) (g i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
394 |
and pq: "\<And>h. (\<And>i. i \<in> I \<Longrightarrow> p i (h i)) \<Longrightarrow> q(\<lambda>x. (\<lambda>i\<in>I. h i (x i)))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
395 |
shows "homotopic_with q (product_topology X I) (product_topology Y I) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
396 |
(\<lambda>z. (\<lambda>i\<in>I. (f i) (z i))) (\<lambda>z. (\<lambda>i\<in>I. (g i) (z i)))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
397 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
398 |
obtain h |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
399 |
where h: "\<And>i. i \<in> I \<Longrightarrow> continuous_map (prod_topology (subtopology euclideanreal {0..1}) (X i)) (Y i) (h i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
400 |
and h0: "\<And>i x. i \<in> I \<Longrightarrow> h i (0, x) = f i x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
401 |
and h1: "\<And>i x. i \<in> I \<Longrightarrow> h i (1, x) = g i x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
402 |
and p: "\<And>i t. \<lbrakk>i \<in> I; t \<in> {0..1}\<rbrakk> \<Longrightarrow> p i (\<lambda>x. h i (t,x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
403 |
using ht unfolding homotopic_with_def by metis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
404 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
405 |
unfolding homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
406 |
proof (intro conjI allI exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
407 |
let ?h = "\<lambda>(t,z). \<lambda>i\<in>I. h i (t,z i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
408 |
have "continuous_map (prod_topology (subtopology euclideanreal {0..1}) (product_topology X I)) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
409 |
(Y i) (\<lambda>x. h i (fst x, snd x i))" if "i \<in> I" for i |
71745 | 410 |
proof - |
411 |
have \<section>: "continuous_map (prod_topology (top_of_set {0..1}) (product_topology X I)) (X i) (\<lambda>x. snd x i)" |
|
412 |
using continuous_map_componentwise continuous_map_snd that by fastforce |
|
413 |
show ?thesis |
|
414 |
unfolding continuous_map_pairwise case_prod_unfold |
|
415 |
by (intro conjI that \<section> continuous_intros continuous_map_compose [OF _ h, unfolded o_def]) |
|
416 |
qed |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
417 |
then show "continuous_map (prod_topology (subtopology euclideanreal {0..1}) (product_topology X I)) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
418 |
(product_topology Y I) ?h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
419 |
by (auto simp: continuous_map_componentwise case_prod_beta) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
420 |
show "?h (0, x) = (\<lambda>i\<in>I. f i (x i))" "?h (1, x) = (\<lambda>i\<in>I. g i (x i))" for x |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
421 |
by (auto simp: case_prod_beta h0 h1) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
422 |
show "\<forall>t\<in>{0..1}. q (\<lambda>x. ?h (t, x))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
423 |
by (force intro: p pq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
424 |
qed |
69620 | 425 |
qed |
426 |
||
427 |
text\<open>Homotopic triviality implicitly incorporates path-connectedness.\<close> |
|
428 |
lemma homotopic_triviality: |
|
429 |
shows "(\<forall>f g. continuous_on S f \<and> f ` S \<subseteq> T \<and> |
|
430 |
continuous_on S g \<and> g ` S \<subseteq> T |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
431 |
\<longrightarrow> homotopic_with_canon (\<lambda>x. True) S T f g) \<longleftrightarrow> |
69620 | 432 |
(S = {} \<or> path_connected T) \<and> |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
433 |
(\<forall>f. continuous_on S f \<and> f ` S \<subseteq> T \<longrightarrow> (\<exists>c. homotopic_with_canon (\<lambda>x. True) S T f (\<lambda>x. c)))" |
69620 | 434 |
(is "?lhs = ?rhs") |
435 |
proof (cases "S = {} \<or> T = {}") |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
436 |
case True then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
437 |
by (auto simp: homotopic_on_emptyI) |
69620 | 438 |
next |
439 |
case False show ?thesis |
|
440 |
proof |
|
441 |
assume LHS [rule_format]: ?lhs |
|
442 |
have pab: "path_component T a b" if "a \<in> T" "b \<in> T" for a b |
|
443 |
proof - |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
444 |
have "homotopic_with_canon (\<lambda>x. True) S T (\<lambda>x. a) (\<lambda>x. b)" |
71172 | 445 |
by (simp add: LHS image_subset_iff that) |
69620 | 446 |
then show ?thesis |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
447 |
using False homotopic_constant_maps [of "top_of_set S" "top_of_set T" a b] by auto |
69620 | 448 |
qed |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
449 |
moreover |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
450 |
have "\<exists>c. homotopic_with_canon (\<lambda>x. True) S T f (\<lambda>x. c)" if "continuous_on S f" "f ` S \<subseteq> T" for f |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
451 |
using False LHS continuous_on_const that by blast |
69620 | 452 |
ultimately show ?rhs |
453 |
by (simp add: path_connected_component) |
|
454 |
next |
|
455 |
assume RHS: ?rhs |
|
456 |
with False have T: "path_connected T" |
|
457 |
by blast |
|
458 |
show ?lhs |
|
459 |
proof clarify |
|
460 |
fix f g |
|
461 |
assume "continuous_on S f" "f ` S \<subseteq> T" "continuous_on S g" "g ` S \<subseteq> T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
462 |
obtain c d where c: "homotopic_with_canon (\<lambda>x. True) S T f (\<lambda>x. c)" and d: "homotopic_with_canon (\<lambda>x. True) S T g (\<lambda>x. d)" |
69620 | 463 |
using False \<open>continuous_on S f\<close> \<open>f ` S \<subseteq> T\<close> RHS \<open>continuous_on S g\<close> \<open>g ` S \<subseteq> T\<close> by blast |
464 |
then have "c \<in> T" "d \<in> T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
465 |
using False homotopic_with_imp_continuous_maps by fastforce+ |
69620 | 466 |
with T have "path_component T c d" |
467 |
using path_connected_component by blast |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
468 |
then have "homotopic_with_canon (\<lambda>x. True) S T (\<lambda>x. c) (\<lambda>x. d)" |
69620 | 469 |
by (simp add: homotopic_constant_maps) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
470 |
with c d show "homotopic_with_canon (\<lambda>x. True) S T f g" |
69620 | 471 |
by (meson homotopic_with_symD homotopic_with_trans) |
472 |
qed |
|
473 |
qed |
|
474 |
qed |
|
475 |
||
476 |
||
477 |
subsection\<open>Homotopy of paths, maintaining the same endpoints\<close> |
|
478 |
||
479 |
||
70136 | 480 |
definition\<^marker>\<open>tag important\<close> homotopic_paths :: "['a set, real \<Rightarrow> 'a, real \<Rightarrow> 'a::topological_space] \<Rightarrow> bool" |
69620 | 481 |
where |
482 |
"homotopic_paths s p q \<equiv> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
483 |
homotopic_with_canon (\<lambda>r. pathstart r = pathstart p \<and> pathfinish r = pathfinish p) {0..1} s p q" |
69620 | 484 |
|
485 |
lemma homotopic_paths: |
|
486 |
"homotopic_paths s p q \<longleftrightarrow> |
|
487 |
(\<exists>h. continuous_on ({0..1} \<times> {0..1}) h \<and> |
|
488 |
h ` ({0..1} \<times> {0..1}) \<subseteq> s \<and> |
|
489 |
(\<forall>x \<in> {0..1}. h(0,x) = p x) \<and> |
|
490 |
(\<forall>x \<in> {0..1}. h(1,x) = q x) \<and> |
|
491 |
(\<forall>t \<in> {0..1::real}. pathstart(h \<circ> Pair t) = pathstart p \<and> |
|
492 |
pathfinish(h \<circ> Pair t) = pathfinish p))" |
|
493 |
by (auto simp: homotopic_paths_def homotopic_with pathstart_def pathfinish_def) |
|
494 |
||
495 |
proposition homotopic_paths_imp_pathstart: |
|
496 |
"homotopic_paths s p q \<Longrightarrow> pathstart p = pathstart q" |
|
497 |
by (metis (mono_tags, lifting) homotopic_paths_def homotopic_with_imp_property) |
|
498 |
||
499 |
proposition homotopic_paths_imp_pathfinish: |
|
500 |
"homotopic_paths s p q \<Longrightarrow> pathfinish p = pathfinish q" |
|
501 |
by (metis (mono_tags, lifting) homotopic_paths_def homotopic_with_imp_property) |
|
502 |
||
503 |
lemma homotopic_paths_imp_path: |
|
504 |
"homotopic_paths s p q \<Longrightarrow> path p \<and> path q" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
505 |
using homotopic_paths_def homotopic_with_imp_continuous_maps path_def continuous_map_subtopology_eu by blast |
69620 | 506 |
|
507 |
lemma homotopic_paths_imp_subset: |
|
508 |
"homotopic_paths s p q \<Longrightarrow> path_image p \<subseteq> s \<and> path_image q \<subseteq> s" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
509 |
by (metis (mono_tags) continuous_map_subtopology_eu homotopic_paths_def homotopic_with_imp_continuous_maps path_image_def) |
69620 | 510 |
|
511 |
proposition homotopic_paths_refl [simp]: "homotopic_paths s p p \<longleftrightarrow> path p \<and> path_image p \<subseteq> s" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
512 |
by (simp add: homotopic_paths_def path_def path_image_def) |
69620 | 513 |
|
514 |
proposition homotopic_paths_sym: "homotopic_paths s p q \<Longrightarrow> homotopic_paths s q p" |
|
515 |
by (metis (mono_tags) homotopic_paths_def homotopic_paths_imp_pathfinish homotopic_paths_imp_pathstart homotopic_with_symD) |
|
516 |
||
517 |
proposition homotopic_paths_sym_eq: "homotopic_paths s p q \<longleftrightarrow> homotopic_paths s q p" |
|
518 |
by (metis homotopic_paths_sym) |
|
519 |
||
520 |
proposition homotopic_paths_trans [trans]: |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
521 |
assumes "homotopic_paths s p q" "homotopic_paths s q r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
522 |
shows "homotopic_paths s p r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
523 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
524 |
have "pathstart q = pathstart p" "pathfinish q = pathfinish p" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
525 |
using assms by (simp_all add: homotopic_paths_imp_pathstart homotopic_paths_imp_pathfinish) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
526 |
then have "homotopic_with_canon (\<lambda>f. pathstart f = pathstart p \<and> pathfinish f = pathfinish p) {0..1} s q r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
527 |
using \<open>homotopic_paths s q r\<close> homotopic_paths_def by force |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
528 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
529 |
using assms homotopic_paths_def homotopic_with_trans by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
530 |
qed |
69620 | 531 |
|
532 |
proposition homotopic_paths_eq: |
|
533 |
"\<lbrakk>path p; path_image p \<subseteq> s; \<And>t. t \<in> {0..1} \<Longrightarrow> p t = q t\<rbrakk> \<Longrightarrow> homotopic_paths s p q" |
|
71745 | 534 |
unfolding homotopic_paths_def |
535 |
by (rule homotopic_with_eq) |
|
536 |
(auto simp: path_def pathstart_def pathfinish_def path_image_def elim: continuous_on_eq) |
|
69620 | 537 |
|
538 |
proposition homotopic_paths_reparametrize: |
|
539 |
assumes "path p" |
|
540 |
and pips: "path_image p \<subseteq> s" |
|
541 |
and contf: "continuous_on {0..1} f" |
|
542 |
and f01:"f ` {0..1} \<subseteq> {0..1}" |
|
543 |
and [simp]: "f(0) = 0" "f(1) = 1" |
|
544 |
and q: "\<And>t. t \<in> {0..1} \<Longrightarrow> q(t) = p(f t)" |
|
545 |
shows "homotopic_paths s p q" |
|
546 |
proof - |
|
547 |
have contp: "continuous_on {0..1} p" |
|
548 |
by (metis \<open>path p\<close> path_def) |
|
549 |
then have "continuous_on {0..1} (p \<circ> f)" |
|
550 |
using contf continuous_on_compose continuous_on_subset f01 by blast |
|
551 |
then have "path q" |
|
552 |
by (simp add: path_def) (metis q continuous_on_cong) |
|
553 |
have piqs: "path_image q \<subseteq> s" |
|
554 |
by (metis (no_types, hide_lams) pips f01 image_subset_iff path_image_def q) |
|
555 |
have fb0: "\<And>a b. \<lbrakk>0 \<le> a; a \<le> 1; 0 \<le> b; b \<le> 1\<rbrakk> \<Longrightarrow> 0 \<le> (1 - a) * f b + a * b" |
|
556 |
using f01 by force |
|
557 |
have fb1: "\<lbrakk>0 \<le> a; a \<le> 1; 0 \<le> b; b \<le> 1\<rbrakk> \<Longrightarrow> (1 - a) * f b + a * b \<le> 1" for a b |
|
558 |
using f01 [THEN subsetD, of "f b"] by (simp add: convex_bound_le) |
|
559 |
have "homotopic_paths s q p" |
|
560 |
proof (rule homotopic_paths_trans) |
|
561 |
show "homotopic_paths s q (p \<circ> f)" |
|
562 |
using q by (force intro: homotopic_paths_eq [OF \<open>path q\<close> piqs]) |
|
563 |
next |
|
564 |
show "homotopic_paths s (p \<circ> f) p" |
|
565 |
apply (simp add: homotopic_paths_def homotopic_with_def) |
|
566 |
apply (rule_tac x="p \<circ> (\<lambda>y. (1 - (fst y)) *\<^sub>R ((f \<circ> snd) y) + (fst y) *\<^sub>R snd y)" in exI) |
|
567 |
apply (rule conjI contf continuous_intros continuous_on_subset [OF contp] | simp)+ |
|
568 |
using pips [unfolded path_image_def] |
|
569 |
apply (auto simp: fb0 fb1 pathstart_def pathfinish_def) |
|
570 |
done |
|
571 |
qed |
|
572 |
then show ?thesis |
|
573 |
by (simp add: homotopic_paths_sym) |
|
574 |
qed |
|
575 |
||
576 |
lemma homotopic_paths_subset: "\<lbrakk>homotopic_paths s p q; s \<subseteq> t\<rbrakk> \<Longrightarrow> homotopic_paths t p q" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
577 |
unfolding homotopic_paths by fast |
69620 | 578 |
|
579 |
||
580 |
text\<open> A slightly ad-hoc but useful lemma in constructing homotopies.\<close> |
|
581 |
lemma homotopic_join_lemma: |
|
582 |
fixes q :: "[real,real] \<Rightarrow> 'a::topological_space" |
|
71745 | 583 |
assumes p: "continuous_on ({0..1} \<times> {0..1}) (\<lambda>y. p (fst y) (snd y))" (is "continuous_on ?A ?p") |
584 |
and q: "continuous_on ({0..1} \<times> {0..1}) (\<lambda>y. q (fst y) (snd y))" (is "continuous_on ?A ?q") |
|
69620 | 585 |
and pf: "\<And>t. t \<in> {0..1} \<Longrightarrow> pathfinish(p t) = pathstart(q t)" |
586 |
shows "continuous_on ({0..1} \<times> {0..1}) (\<lambda>y. (p(fst y) +++ q(fst y)) (snd y))" |
|
587 |
proof - |
|
71745 | 588 |
have \<section>: "(\<lambda>t. p (fst t) (2 * snd t)) = ?p \<circ> (\<lambda>y. (fst y, 2 * snd y))" |
589 |
"(\<lambda>t. q (fst t) (2 * snd t - 1)) = ?q \<circ> (\<lambda>y. (fst y, 2 * snd y - 1))" |
|
590 |
by force+ |
|
69620 | 591 |
show ?thesis |
71745 | 592 |
unfolding joinpaths_def |
593 |
proof (rule continuous_on_cases_le) |
|
594 |
show "continuous_on {y \<in> ?A. snd y \<le> 1/2} (\<lambda>t. p (fst t) (2 * snd t))" |
|
595 |
"continuous_on {y \<in> ?A. 1/2 \<le> snd y} (\<lambda>t. q (fst t) (2 * snd t - 1))" |
|
596 |
"continuous_on ?A snd" |
|
597 |
unfolding \<section> |
|
598 |
by (rule continuous_intros continuous_on_subset [OF p] continuous_on_subset [OF q] | force)+ |
|
599 |
qed (use pf in \<open>auto simp: mult.commute pathstart_def pathfinish_def\<close>) |
|
69620 | 600 |
qed |
601 |
||
602 |
text\<open> Congruence properties of homotopy w.r.t. path-combining operations.\<close> |
|
603 |
||
604 |
lemma homotopic_paths_reversepath_D: |
|
605 |
assumes "homotopic_paths s p q" |
|
606 |
shows "homotopic_paths s (reversepath p) (reversepath q)" |
|
607 |
using assms |
|
608 |
apply (simp add: homotopic_paths_def homotopic_with_def, clarify) |
|
609 |
apply (rule_tac x="h \<circ> (\<lambda>x. (fst x, 1 - snd x))" in exI) |
|
610 |
apply (rule conjI continuous_intros)+ |
|
611 |
apply (auto simp: reversepath_def pathstart_def pathfinish_def elim!: continuous_on_subset) |
|
612 |
done |
|
613 |
||
614 |
proposition homotopic_paths_reversepath: |
|
615 |
"homotopic_paths s (reversepath p) (reversepath q) \<longleftrightarrow> homotopic_paths s p q" |
|
616 |
using homotopic_paths_reversepath_D by force |
|
617 |
||
618 |
||
619 |
proposition homotopic_paths_join: |
|
620 |
"\<lbrakk>homotopic_paths s p p'; homotopic_paths s q q'; pathfinish p = pathstart q\<rbrakk> \<Longrightarrow> homotopic_paths s (p +++ q) (p' +++ q')" |
|
71745 | 621 |
apply (clarsimp simp add: homotopic_paths_def homotopic_with_def) |
69620 | 622 |
apply (rename_tac k1 k2) |
623 |
apply (rule_tac x="(\<lambda>y. ((k1 \<circ> Pair (fst y)) +++ (k2 \<circ> Pair (fst y))) (snd y))" in exI) |
|
71745 | 624 |
apply (intro conjI continuous_intros homotopic_join_lemma; force simp: joinpaths_def pathstart_def pathfinish_def path_image_def) |
69620 | 625 |
done |
626 |
||
627 |
proposition homotopic_paths_continuous_image: |
|
628 |
"\<lbrakk>homotopic_paths s f g; continuous_on s h; h ` s \<subseteq> t\<rbrakk> \<Longrightarrow> homotopic_paths t (h \<circ> f) (h \<circ> g)" |
|
629 |
unfolding homotopic_paths_def |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
630 |
by (simp add: homotopic_with_compose_continuous_map_left pathfinish_compose pathstart_compose) |
69620 | 631 |
|
632 |
||
633 |
subsection\<open>Group properties for homotopy of paths\<close> |
|
634 |
||
70136 | 635 |
text\<^marker>\<open>tag important\<close>\<open>So taking equivalence classes under homotopy would give the fundamental group\<close> |
69620 | 636 |
|
637 |
proposition homotopic_paths_rid: |
|
71745 | 638 |
assumes "path p" "path_image p \<subseteq> s" |
639 |
shows "homotopic_paths s (p +++ linepath (pathfinish p) (pathfinish p)) p" |
|
640 |
proof - |
|
641 |
have \<section>: "continuous_on {0..1} (\<lambda>t::real. if t \<le> 1/2 then 2 *\<^sub>R t else 1)" |
|
642 |
unfolding split_01 |
|
643 |
by (rule continuous_on_cases continuous_intros | force simp: pathfinish_def joinpaths_def)+ |
|
644 |
show ?thesis |
|
645 |
using assms |
|
646 |
apply (subst homotopic_paths_sym) |
|
647 |
apply (rule homotopic_paths_reparametrize [where f = "\<lambda>t. if t \<le> 1/2 then 2 *\<^sub>R t else 1"]) |
|
648 |
apply (rule \<section> continuous_on_cases continuous_intros | force simp: pathfinish_def joinpaths_def)+ |
|
649 |
done |
|
650 |
qed |
|
69620 | 651 |
|
652 |
proposition homotopic_paths_lid: |
|
653 |
"\<lbrakk>path p; path_image p \<subseteq> s\<rbrakk> \<Longrightarrow> homotopic_paths s (linepath (pathstart p) (pathstart p) +++ p) p" |
|
654 |
using homotopic_paths_rid [of "reversepath p" s] |
|
655 |
by (metis homotopic_paths_reversepath path_image_reversepath path_reversepath pathfinish_linepath |
|
656 |
pathfinish_reversepath reversepath_joinpaths reversepath_linepath) |
|
657 |
||
658 |
proposition homotopic_paths_assoc: |
|
659 |
"\<lbrakk>path p; path_image p \<subseteq> s; path q; path_image q \<subseteq> s; path r; path_image r \<subseteq> s; pathfinish p = pathstart q; |
|
660 |
pathfinish q = pathstart r\<rbrakk> |
|
661 |
\<Longrightarrow> homotopic_paths s (p +++ (q +++ r)) ((p +++ q) +++ r)" |
|
662 |
apply (subst homotopic_paths_sym) |
|
663 |
apply (rule homotopic_paths_reparametrize |
|
71745 | 664 |
[where f = "\<lambda>t. if t \<le> 1/2 then inverse 2 *\<^sub>R t |
69620 | 665 |
else if t \<le> 3 / 4 then t - (1 / 4) |
666 |
else 2 *\<^sub>R t - 1"]) |
|
667 |
apply (simp_all del: le_divide_eq_numeral1) |
|
668 |
apply (simp add: subset_path_image_join) |
|
71745 | 669 |
apply (rule continuous_on_cases_1 continuous_intros | auto simp: joinpaths_def)+ |
69620 | 670 |
done |
671 |
||
672 |
proposition homotopic_paths_rinv: |
|
673 |
assumes "path p" "path_image p \<subseteq> s" |
|
674 |
shows "homotopic_paths s (p +++ reversepath p) (linepath (pathstart p) (pathstart p))" |
|
675 |
proof - |
|
71745 | 676 |
have p: "continuous_on {0..1} p" |
677 |
using assms by (auto simp: path_def) |
|
678 |
let ?A = "{0..1} \<times> {0..1}" |
|
679 |
have "continuous_on ?A (\<lambda>x. (subpath 0 (fst x) p +++ reversepath (subpath 0 (fst x) p)) (snd x))" |
|
680 |
unfolding joinpaths_def subpath_def reversepath_def path_def add_0_right diff_0_right |
|
681 |
proof (rule continuous_on_cases_le) |
|
682 |
show "continuous_on {x \<in> ?A. snd x \<le> 1/2} (\<lambda>t. p (fst t * (2 * snd t)))" |
|
683 |
"continuous_on {x \<in> ?A. 1/2 \<le> snd x} (\<lambda>t. p (fst t * (1 - (2 * snd t - 1))))" |
|
684 |
"continuous_on ?A snd" |
|
685 |
by (intro continuous_on_compose2 [OF p] continuous_intros; auto simp add: mult_le_one)+ |
|
686 |
qed (auto simp add: algebra_simps) |
|
69620 | 687 |
then show ?thesis |
688 |
using assms |
|
689 |
apply (subst homotopic_paths_sym_eq) |
|
690 |
unfolding homotopic_paths_def homotopic_with_def |
|
691 |
apply (rule_tac x="(\<lambda>y. (subpath 0 (fst y) p +++ reversepath(subpath 0 (fst y) p)) (snd y))" in exI) |
|
71745 | 692 |
apply (force simp: mult_le_one path_defs joinpaths_def subpath_def reversepath_def) |
69620 | 693 |
done |
694 |
qed |
|
695 |
||
696 |
proposition homotopic_paths_linv: |
|
697 |
assumes "path p" "path_image p \<subseteq> s" |
|
698 |
shows "homotopic_paths s (reversepath p +++ p) (linepath (pathfinish p) (pathfinish p))" |
|
699 |
using homotopic_paths_rinv [of "reversepath p" s] assms by simp |
|
700 |
||
701 |
||
702 |
subsection\<open>Homotopy of loops without requiring preservation of endpoints\<close> |
|
703 |
||
70136 | 704 |
definition\<^marker>\<open>tag important\<close> homotopic_loops :: "'a::topological_space set \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> bool" where |
69620 | 705 |
"homotopic_loops s p q \<equiv> |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
706 |
homotopic_with_canon (\<lambda>r. pathfinish r = pathstart r) {0..1} s p q" |
69620 | 707 |
|
708 |
lemma homotopic_loops: |
|
709 |
"homotopic_loops s p q \<longleftrightarrow> |
|
710 |
(\<exists>h. continuous_on ({0..1::real} \<times> {0..1}) h \<and> |
|
711 |
image h ({0..1} \<times> {0..1}) \<subseteq> s \<and> |
|
712 |
(\<forall>x \<in> {0..1}. h(0,x) = p x) \<and> |
|
713 |
(\<forall>x \<in> {0..1}. h(1,x) = q x) \<and> |
|
714 |
(\<forall>t \<in> {0..1}. pathfinish(h \<circ> Pair t) = pathstart(h \<circ> Pair t)))" |
|
715 |
by (simp add: homotopic_loops_def pathstart_def pathfinish_def homotopic_with) |
|
716 |
||
717 |
proposition homotopic_loops_imp_loop: |
|
718 |
"homotopic_loops s p q \<Longrightarrow> pathfinish p = pathstart p \<and> pathfinish q = pathstart q" |
|
719 |
using homotopic_with_imp_property homotopic_loops_def by blast |
|
720 |
||
721 |
proposition homotopic_loops_imp_path: |
|
722 |
"homotopic_loops s p q \<Longrightarrow> path p \<and> path q" |
|
723 |
unfolding homotopic_loops_def path_def |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
724 |
using homotopic_with_imp_continuous_maps continuous_map_subtopology_eu by blast |
69620 | 725 |
|
726 |
proposition homotopic_loops_imp_subset: |
|
727 |
"homotopic_loops s p q \<Longrightarrow> path_image p \<subseteq> s \<and> path_image q \<subseteq> s" |
|
728 |
unfolding homotopic_loops_def path_image_def |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
729 |
by (meson continuous_map_subtopology_eu homotopic_with_imp_continuous_maps) |
69620 | 730 |
|
731 |
proposition homotopic_loops_refl: |
|
732 |
"homotopic_loops s p p \<longleftrightarrow> |
|
733 |
path p \<and> path_image p \<subseteq> s \<and> pathfinish p = pathstart p" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
734 |
by (simp add: homotopic_loops_def path_image_def path_def) |
69620 | 735 |
|
736 |
proposition homotopic_loops_sym: "homotopic_loops s p q \<Longrightarrow> homotopic_loops s q p" |
|
737 |
by (simp add: homotopic_loops_def homotopic_with_sym) |
|
738 |
||
739 |
proposition homotopic_loops_sym_eq: "homotopic_loops s p q \<longleftrightarrow> homotopic_loops s q p" |
|
740 |
by (metis homotopic_loops_sym) |
|
741 |
||
742 |
proposition homotopic_loops_trans: |
|
743 |
"\<lbrakk>homotopic_loops s p q; homotopic_loops s q r\<rbrakk> \<Longrightarrow> homotopic_loops s p r" |
|
744 |
unfolding homotopic_loops_def by (blast intro: homotopic_with_trans) |
|
745 |
||
746 |
proposition homotopic_loops_subset: |
|
747 |
"\<lbrakk>homotopic_loops s p q; s \<subseteq> t\<rbrakk> \<Longrightarrow> homotopic_loops t p q" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
748 |
by (fastforce simp add: homotopic_loops) |
69620 | 749 |
|
750 |
proposition homotopic_loops_eq: |
|
751 |
"\<lbrakk>path p; path_image p \<subseteq> s; pathfinish p = pathstart p; \<And>t. t \<in> {0..1} \<Longrightarrow> p(t) = q(t)\<rbrakk> |
|
752 |
\<Longrightarrow> homotopic_loops s p q" |
|
753 |
unfolding homotopic_loops_def |
|
71745 | 754 |
apply (rule homotopic_with_eq [OF homotopic_with_refl [where f = p, THEN iffD2]]) |
69620 | 755 |
apply (simp_all add: path_image_def path_def pathstart_def pathfinish_def) |
756 |
done |
|
757 |
||
758 |
proposition homotopic_loops_continuous_image: |
|
759 |
"\<lbrakk>homotopic_loops s f g; continuous_on s h; h ` s \<subseteq> t\<rbrakk> \<Longrightarrow> homotopic_loops t (h \<circ> f) (h \<circ> g)" |
|
760 |
unfolding homotopic_loops_def |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
761 |
by (simp add: homotopic_with_compose_continuous_map_left pathfinish_def pathstart_def) |
69620 | 762 |
|
763 |
||
764 |
subsection\<open>Relations between the two variants of homotopy\<close> |
|
765 |
||
766 |
proposition homotopic_paths_imp_homotopic_loops: |
|
767 |
"\<lbrakk>homotopic_paths s p q; pathfinish p = pathstart p; pathfinish q = pathstart p\<rbrakk> \<Longrightarrow> homotopic_loops s p q" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
768 |
by (auto simp: homotopic_with_def homotopic_paths_def homotopic_loops_def) |
69620 | 769 |
|
770 |
proposition homotopic_loops_imp_homotopic_paths_null: |
|
771 |
assumes "homotopic_loops s p (linepath a a)" |
|
772 |
shows "homotopic_paths s p (linepath (pathstart p) (pathstart p))" |
|
773 |
proof - |
|
774 |
have "path p" by (metis assms homotopic_loops_imp_path) |
|
775 |
have ploop: "pathfinish p = pathstart p" by (metis assms homotopic_loops_imp_loop) |
|
776 |
have pip: "path_image p \<subseteq> s" by (metis assms homotopic_loops_imp_subset) |
|
71745 | 777 |
let ?A = "{0..1::real} \<times> {0..1::real}" |
778 |
obtain h where conth: "continuous_on ?A h" |
|
779 |
and hs: "h ` ?A \<subseteq> s" |
|
69620 | 780 |
and [simp]: "\<And>x. x \<in> {0..1} \<Longrightarrow> h(0,x) = p x" |
781 |
and [simp]: "\<And>x. x \<in> {0..1} \<Longrightarrow> h(1,x) = a" |
|
782 |
and ends: "\<And>t. t \<in> {0..1} \<Longrightarrow> pathfinish (h \<circ> Pair t) = pathstart (h \<circ> Pair t)" |
|
783 |
using assms by (auto simp: homotopic_loops homotopic_with) |
|
784 |
have conth0: "path (\<lambda>u. h (u, 0))" |
|
785 |
unfolding path_def |
|
71745 | 786 |
proof (rule continuous_on_compose [of _ _ h, unfolded o_def]) |
787 |
show "continuous_on ((\<lambda>x. (x, 0)) ` {0..1}) h" |
|
788 |
by (force intro: continuous_on_subset [OF conth]) |
|
789 |
qed (force intro: continuous_intros) |
|
69620 | 790 |
have pih0: "path_image (\<lambda>u. h (u, 0)) \<subseteq> s" |
791 |
using hs by (force simp: path_image_def) |
|
71745 | 792 |
have c1: "continuous_on ?A (\<lambda>x. h (fst x * snd x, 0))" |
793 |
proof (rule continuous_on_compose [of _ _ h, unfolded o_def]) |
|
794 |
show "continuous_on ((\<lambda>x. (fst x * snd x, 0)) ` ?A) h" |
|
795 |
by (force simp: mult_le_one intro: continuous_on_subset [OF conth]) |
|
796 |
qed (force intro: continuous_intros)+ |
|
797 |
have c2: "continuous_on ?A (\<lambda>x. h (fst x - fst x * snd x, 0))" |
|
798 |
proof (rule continuous_on_compose [of _ _ h, unfolded o_def]) |
|
799 |
show "continuous_on ((\<lambda>x. (fst x - fst x * snd x, 0)) ` ?A) h" |
|
800 |
by (auto simp: algebra_simps add_increasing2 mult_left_le intro: continuous_on_subset [OF conth]) |
|
801 |
qed (force intro: continuous_intros) |
|
69620 | 802 |
have [simp]: "\<And>t. \<lbrakk>0 \<le> t \<and> t \<le> 1\<rbrakk> \<Longrightarrow> h (t, 1) = h (t, 0)" |
803 |
using ends by (simp add: pathfinish_def pathstart_def) |
|
804 |
have adhoc_le: "c * 4 \<le> 1 + c * (d * 4)" if "\<not> d * 4 \<le> 3" "0 \<le> c" "c \<le> 1" for c d::real |
|
805 |
proof - |
|
806 |
have "c * 3 \<le> c * (d * 4)" using that less_eq_real_def by auto |
|
807 |
with \<open>c \<le> 1\<close> show ?thesis by fastforce |
|
808 |
qed |
|
809 |
have *: "\<And>p x. (path p \<and> path(reversepath p)) \<and> |
|
810 |
(path_image p \<subseteq> s \<and> path_image(reversepath p) \<subseteq> s) \<and> |
|
811 |
(pathfinish p = pathstart(linepath a a +++ reversepath p) \<and> |
|
812 |
pathstart(reversepath p) = a) \<and> pathstart p = x |
|
813 |
\<Longrightarrow> homotopic_paths s (p +++ linepath a a +++ reversepath p) (linepath x x)" |
|
814 |
by (metis homotopic_paths_lid homotopic_paths_join |
|
815 |
homotopic_paths_trans homotopic_paths_sym homotopic_paths_rinv) |
|
816 |
have 1: "homotopic_paths s p (p +++ linepath (pathfinish p) (pathfinish p))" |
|
817 |
using \<open>path p\<close> homotopic_paths_rid homotopic_paths_sym pip by blast |
|
818 |
moreover have "homotopic_paths s (p +++ linepath (pathfinish p) (pathfinish p)) |
|
819 |
(linepath (pathstart p) (pathstart p) +++ p +++ linepath (pathfinish p) (pathfinish p))" |
|
820 |
apply (rule homotopic_paths_sym) |
|
821 |
using homotopic_paths_lid [of "p +++ linepath (pathfinish p) (pathfinish p)" s] |
|
822 |
by (metis 1 homotopic_paths_imp_path homotopic_paths_imp_pathstart homotopic_paths_imp_subset) |
|
71745 | 823 |
moreover |
824 |
have "homotopic_paths s (linepath (pathstart p) (pathstart p) +++ p +++ linepath (pathfinish p) (pathfinish p)) |
|
69620 | 825 |
((\<lambda>u. h (u, 0)) +++ linepath a a +++ reversepath (\<lambda>u. h (u, 0)))" |
71745 | 826 |
unfolding homotopic_paths_def homotopic_with_def |
827 |
proof (intro exI strip conjI) |
|
828 |
let ?h = "\<lambda>y. (subpath 0 (fst y) (\<lambda>u. h (u, 0)) +++ (\<lambda>u. h (Pair (fst y) u)) +++ subpath (fst y) 0 (\<lambda>u. h (u, 0))) (snd y)" |
|
829 |
show "continuous_map (prod_topology (top_of_set {0..1}) (top_of_set {0..1})) |
|
830 |
(top_of_set s) ?h" |
|
831 |
apply (simp add: subpath_reversepath) |
|
832 |
apply (intro conjI homotopic_join_lemma; simp add: path_defs joinpaths_def subpath_def conth c1 c2) |
|
833 |
apply (force simp: algebra_simps mult_le_one mult_left_le intro: hs [THEN subsetD] adhoc_le) |
|
834 |
done |
|
835 |
qed (use ploop in \<open>simp_all add: reversepath_def path_defs joinpaths_def o_def subpath_def conth c1 c2\<close>) |
|
69620 | 836 |
moreover have "homotopic_paths s ((\<lambda>u. h (u, 0)) +++ linepath a a +++ reversepath (\<lambda>u. h (u, 0))) |
837 |
(linepath (pathstart p) (pathstart p))" |
|
838 |
apply (rule *) |
|
839 |
apply (simp add: pih0 pathstart_def pathfinish_def conth0) |
|
840 |
apply (simp add: reversepath_def joinpaths_def) |
|
841 |
done |
|
842 |
ultimately show ?thesis |
|
843 |
by (blast intro: homotopic_paths_trans) |
|
844 |
qed |
|
845 |
||
846 |
proposition homotopic_loops_conjugate: |
|
847 |
fixes s :: "'a::real_normed_vector set" |
|
848 |
assumes "path p" "path q" and pip: "path_image p \<subseteq> s" and piq: "path_image q \<subseteq> s" |
|
849 |
and papp: "pathfinish p = pathstart q" and qloop: "pathfinish q = pathstart q" |
|
850 |
shows "homotopic_loops s (p +++ q +++ reversepath p) q" |
|
851 |
proof - |
|
852 |
have contp: "continuous_on {0..1} p" using \<open>path p\<close> [unfolded path_def] by blast |
|
853 |
have contq: "continuous_on {0..1} q" using \<open>path q\<close> [unfolded path_def] by blast |
|
71745 | 854 |
let ?A = "{0..1::real} \<times> {0..1::real}" |
855 |
have c1: "continuous_on ?A (\<lambda>x. p ((1 - fst x) * snd x + fst x))" |
|
856 |
proof (rule continuous_on_compose [of _ _ p, unfolded o_def]) |
|
857 |
show "continuous_on ((\<lambda>x. (1 - fst x) * snd x + fst x) ` ?A) p" |
|
858 |
by (auto intro: continuous_on_subset [OF contp] simp: algebra_simps add_increasing2 mult_right_le_one_le sum_le_prod1) |
|
859 |
qed (force intro: continuous_intros) |
|
860 |
have c2: "continuous_on ?A (\<lambda>x. p ((fst x - 1) * snd x + 1))" |
|
861 |
proof (rule continuous_on_compose [of _ _ p, unfolded o_def]) |
|
862 |
show "continuous_on ((\<lambda>x. (fst x - 1) * snd x + 1) ` ?A) p" |
|
863 |
by (auto intro: continuous_on_subset [OF contp] simp: algebra_simps add_increasing2 mult_left_le_one_le) |
|
864 |
qed (force intro: continuous_intros) |
|
865 |
||
69620 | 866 |
have ps1: "\<And>a b. \<lbrakk>b * 2 \<le> 1; 0 \<le> b; 0 \<le> a; a \<le> 1\<rbrakk> \<Longrightarrow> p ((1 - a) * (2 * b) + a) \<in> s" |
867 |
using sum_le_prod1 |
|
868 |
by (force simp: algebra_simps add_increasing2 mult_left_le intro: pip [unfolded path_image_def, THEN subsetD]) |
|
869 |
have ps2: "\<And>a b. \<lbrakk>\<not> 4 * b \<le> 3; b \<le> 1; 0 \<le> a; a \<le> 1\<rbrakk> \<Longrightarrow> p ((a - 1) * (4 * b - 3) + 1) \<in> s" |
|
870 |
apply (rule pip [unfolded path_image_def, THEN subsetD]) |
|
871 |
apply (rule image_eqI, blast) |
|
872 |
apply (simp add: algebra_simps) |
|
71633 | 873 |
by (metis add_mono_thms_linordered_semiring(1) affine_ineq linear mult.commute mult.left_neutral mult_right_mono |
69620 | 874 |
add.commute zero_le_numeral) |
875 |
have qs: "\<And>a b. \<lbrakk>4 * b \<le> 3; \<not> b * 2 \<le> 1\<rbrakk> \<Longrightarrow> q (4 * b - 2) \<in> s" |
|
876 |
using path_image_def piq by fastforce |
|
877 |
have "homotopic_loops s (p +++ q +++ reversepath p) |
|
878 |
(linepath (pathstart q) (pathstart q) +++ q +++ linepath (pathstart q) (pathstart q))" |
|
879 |
apply (simp add: homotopic_loops_def homotopic_with_def) |
|
880 |
apply (rule_tac x="(\<lambda>y. (subpath (fst y) 1 p +++ q +++ subpath 1 (fst y) p) (snd y))" in exI) |
|
881 |
apply (simp add: subpath_refl subpath_reversepath) |
|
882 |
apply (intro conjI homotopic_join_lemma) |
|
883 |
using papp qloop |
|
884 |
apply (simp_all add: path_defs joinpaths_def o_def subpath_def c1 c2) |
|
885 |
apply (force simp: contq intro: continuous_on_compose [of _ _ q, unfolded o_def] continuous_on_id continuous_on_snd) |
|
886 |
apply (auto simp: ps1 ps2 qs) |
|
887 |
done |
|
888 |
moreover have "homotopic_loops s (linepath (pathstart q) (pathstart q) +++ q +++ linepath (pathstart q) (pathstart q)) q" |
|
889 |
proof - |
|
890 |
have "homotopic_paths s (linepath (pathfinish q) (pathfinish q) +++ q) q" |
|
891 |
using \<open>path q\<close> homotopic_paths_lid qloop piq by auto |
|
892 |
hence 1: "\<And>f. homotopic_paths s f q \<or> \<not> homotopic_paths s f (linepath (pathfinish q) (pathfinish q) +++ q)" |
|
893 |
using homotopic_paths_trans by blast |
|
894 |
hence "homotopic_paths s (linepath (pathfinish q) (pathfinish q) +++ q +++ linepath (pathfinish q) (pathfinish q)) q" |
|
895 |
proof - |
|
896 |
have "homotopic_paths s (q +++ linepath (pathfinish q) (pathfinish q)) q" |
|
897 |
by (simp add: \<open>path q\<close> homotopic_paths_rid piq) |
|
898 |
thus ?thesis |
|
899 |
by (metis (no_types) 1 \<open>path q\<close> homotopic_paths_join homotopic_paths_rinv homotopic_paths_sym |
|
900 |
homotopic_paths_trans qloop pathfinish_linepath piq) |
|
901 |
qed |
|
902 |
thus ?thesis |
|
903 |
by (metis (no_types) qloop homotopic_loops_sym homotopic_paths_imp_homotopic_loops homotopic_paths_imp_pathfinish homotopic_paths_sym) |
|
904 |
qed |
|
905 |
ultimately show ?thesis |
|
906 |
by (blast intro: homotopic_loops_trans) |
|
907 |
qed |
|
908 |
||
909 |
lemma homotopic_paths_loop_parts: |
|
910 |
assumes loops: "homotopic_loops S (p +++ reversepath q) (linepath a a)" and "path q" |
|
911 |
shows "homotopic_paths S p q" |
|
912 |
proof - |
|
913 |
have paths: "homotopic_paths S (p +++ reversepath q) (linepath (pathstart p) (pathstart p))" |
|
914 |
using homotopic_loops_imp_homotopic_paths_null [OF loops] by simp |
|
915 |
then have "path p" |
|
916 |
using \<open>path q\<close> homotopic_loops_imp_path loops path_join path_join_path_ends path_reversepath by blast |
|
917 |
show ?thesis |
|
918 |
proof (cases "pathfinish p = pathfinish q") |
|
919 |
case True |
|
920 |
have pipq: "path_image p \<subseteq> S" "path_image q \<subseteq> S" |
|
921 |
by (metis Un_subset_iff paths \<open>path p\<close> \<open>path q\<close> homotopic_loops_imp_subset homotopic_paths_imp_path loops |
|
922 |
path_image_join path_image_reversepath path_imp_reversepath path_join_eq)+ |
|
923 |
have "homotopic_paths S p (p +++ (linepath (pathfinish p) (pathfinish p)))" |
|
924 |
using \<open>path p\<close> \<open>path_image p \<subseteq> S\<close> homotopic_paths_rid homotopic_paths_sym by blast |
|
925 |
moreover have "homotopic_paths S (p +++ (linepath (pathfinish p) (pathfinish p))) (p +++ (reversepath q +++ q))" |
|
926 |
by (simp add: True \<open>path p\<close> \<open>path q\<close> pipq homotopic_paths_join homotopic_paths_linv homotopic_paths_sym) |
|
927 |
moreover have "homotopic_paths S (p +++ (reversepath q +++ q)) ((p +++ reversepath q) +++ q)" |
|
928 |
by (simp add: True \<open>path p\<close> \<open>path q\<close> homotopic_paths_assoc pipq) |
|
929 |
moreover have "homotopic_paths S ((p +++ reversepath q) +++ q) (linepath (pathstart p) (pathstart p) +++ q)" |
|
930 |
by (simp add: \<open>path q\<close> homotopic_paths_join paths pipq) |
|
931 |
moreover then have "homotopic_paths S (linepath (pathstart p) (pathstart p) +++ q) q" |
|
932 |
by (metis \<open>path q\<close> homotopic_paths_imp_path homotopic_paths_lid linepath_trivial path_join_path_ends pathfinish_def pipq(2)) |
|
933 |
ultimately show ?thesis |
|
934 |
using homotopic_paths_trans by metis |
|
935 |
next |
|
936 |
case False |
|
937 |
then show ?thesis |
|
938 |
using \<open>path q\<close> homotopic_loops_imp_path loops path_join_path_ends by fastforce |
|
939 |
qed |
|
940 |
qed |
|
941 |
||
942 |
||
70136 | 943 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Homotopy of "nearby" function, paths and loops\<close> |
69620 | 944 |
|
945 |
lemma homotopic_with_linear: |
|
946 |
fixes f g :: "_ \<Rightarrow> 'b::real_normed_vector" |
|
947 |
assumes contf: "continuous_on s f" |
|
948 |
and contg:"continuous_on s g" |
|
949 |
and sub: "\<And>x. x \<in> s \<Longrightarrow> closed_segment (f x) (g x) \<subseteq> t" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
950 |
shows "homotopic_with_canon (\<lambda>z. True) s t f g" |
69620 | 951 |
apply (simp add: homotopic_with_def) |
952 |
apply (rule_tac x="\<lambda>y. ((1 - (fst y)) *\<^sub>R f(snd y) + (fst y) *\<^sub>R g(snd y))" in exI) |
|
953 |
apply (intro conjI) |
|
954 |
apply (rule subset_refl continuous_intros continuous_on_subset [OF contf] continuous_on_compose2 [where g=f] |
|
955 |
continuous_on_subset [OF contg] continuous_on_compose2 [where g=g]| simp)+ |
|
956 |
using sub closed_segment_def apply fastforce+ |
|
957 |
done |
|
958 |
||
959 |
lemma homotopic_paths_linear: |
|
960 |
fixes g h :: "real \<Rightarrow> 'a::real_normed_vector" |
|
961 |
assumes "path g" "path h" "pathstart h = pathstart g" "pathfinish h = pathfinish g" |
|
962 |
"\<And>t. t \<in> {0..1} \<Longrightarrow> closed_segment (g t) (h t) \<subseteq> s" |
|
963 |
shows "homotopic_paths s g h" |
|
964 |
using assms |
|
965 |
unfolding path_def |
|
966 |
apply (simp add: closed_segment_def pathstart_def pathfinish_def homotopic_paths_def homotopic_with_def) |
|
967 |
apply (rule_tac x="\<lambda>y. ((1 - (fst y)) *\<^sub>R (g \<circ> snd) y + (fst y) *\<^sub>R (h \<circ> snd) y)" in exI) |
|
968 |
apply (intro conjI subsetI continuous_intros; force) |
|
969 |
done |
|
970 |
||
971 |
lemma homotopic_loops_linear: |
|
972 |
fixes g h :: "real \<Rightarrow> 'a::real_normed_vector" |
|
973 |
assumes "path g" "path h" "pathfinish g = pathstart g" "pathfinish h = pathstart h" |
|
974 |
"\<And>t x. t \<in> {0..1} \<Longrightarrow> closed_segment (g t) (h t) \<subseteq> s" |
|
975 |
shows "homotopic_loops s g h" |
|
976 |
using assms |
|
977 |
unfolding path_def |
|
978 |
apply (simp add: pathstart_def pathfinish_def homotopic_loops_def homotopic_with_def) |
|
979 |
apply (rule_tac x="\<lambda>y. ((1 - (fst y)) *\<^sub>R g(snd y) + (fst y) *\<^sub>R h(snd y))" in exI) |
|
980 |
apply (auto intro!: continuous_intros intro: continuous_on_compose2 [where g=g] continuous_on_compose2 [where g=h]) |
|
981 |
apply (force simp: closed_segment_def) |
|
982 |
done |
|
983 |
||
984 |
lemma homotopic_paths_nearby_explicit: |
|
985 |
assumes "path g" "path h" "pathstart h = pathstart g" "pathfinish h = pathfinish g" |
|
986 |
and no: "\<And>t x. \<lbrakk>t \<in> {0..1}; x \<notin> s\<rbrakk> \<Longrightarrow> norm(h t - g t) < norm(g t - x)" |
|
987 |
shows "homotopic_paths s g h" |
|
988 |
apply (rule homotopic_paths_linear [OF assms(1-4)]) |
|
989 |
by (metis no segment_bound(1) subsetI norm_minus_commute not_le) |
|
990 |
||
991 |
lemma homotopic_loops_nearby_explicit: |
|
992 |
assumes "path g" "path h" "pathfinish g = pathstart g" "pathfinish h = pathstart h" |
|
993 |
and no: "\<And>t x. \<lbrakk>t \<in> {0..1}; x \<notin> s\<rbrakk> \<Longrightarrow> norm(h t - g t) < norm(g t - x)" |
|
994 |
shows "homotopic_loops s g h" |
|
995 |
apply (rule homotopic_loops_linear [OF assms(1-4)]) |
|
996 |
by (metis no segment_bound(1) subsetI norm_minus_commute not_le) |
|
997 |
||
998 |
lemma homotopic_nearby_paths: |
|
999 |
fixes g h :: "real \<Rightarrow> 'a::euclidean_space" |
|
1000 |
assumes "path g" "open s" "path_image g \<subseteq> s" |
|
1001 |
shows "\<exists>e. 0 < e \<and> |
|
1002 |
(\<forall>h. path h \<and> |
|
1003 |
pathstart h = pathstart g \<and> pathfinish h = pathfinish g \<and> |
|
1004 |
(\<forall>t \<in> {0..1}. norm(h t - g t) < e) \<longrightarrow> homotopic_paths s g h)" |
|
1005 |
proof - |
|
1006 |
obtain e where "e > 0" and e: "\<And>x y. x \<in> path_image g \<Longrightarrow> y \<in> - s \<Longrightarrow> e \<le> dist x y" |
|
1007 |
using separate_compact_closed [of "path_image g" "-s"] assms by force |
|
1008 |
show ?thesis |
|
1009 |
apply (intro exI conjI) |
|
1010 |
using e [unfolded dist_norm] |
|
1011 |
apply (auto simp: intro!: homotopic_paths_nearby_explicit assms \<open>e > 0\<close>) |
|
1012 |
by (metis atLeastAtMost_iff imageI le_less_trans not_le path_image_def) |
|
1013 |
qed |
|
1014 |
||
1015 |
lemma homotopic_nearby_loops: |
|
1016 |
fixes g h :: "real \<Rightarrow> 'a::euclidean_space" |
|
1017 |
assumes "path g" "open s" "path_image g \<subseteq> s" "pathfinish g = pathstart g" |
|
1018 |
shows "\<exists>e. 0 < e \<and> |
|
1019 |
(\<forall>h. path h \<and> pathfinish h = pathstart h \<and> |
|
1020 |
(\<forall>t \<in> {0..1}. norm(h t - g t) < e) \<longrightarrow> homotopic_loops s g h)" |
|
1021 |
proof - |
|
1022 |
obtain e where "e > 0" and e: "\<And>x y. x \<in> path_image g \<Longrightarrow> y \<in> - s \<Longrightarrow> e \<le> dist x y" |
|
1023 |
using separate_compact_closed [of "path_image g" "-s"] assms by force |
|
1024 |
show ?thesis |
|
1025 |
apply (intro exI conjI) |
|
1026 |
using e [unfolded dist_norm] |
|
1027 |
apply (auto simp: intro!: homotopic_loops_nearby_explicit assms \<open>e > 0\<close>) |
|
1028 |
by (metis atLeastAtMost_iff imageI le_less_trans not_le path_image_def) |
|
1029 |
qed |
|
1030 |
||
1031 |
||
1032 |
subsection\<open> Homotopy and subpaths\<close> |
|
1033 |
||
1034 |
lemma homotopic_join_subpaths1: |
|
1035 |
assumes "path g" and pag: "path_image g \<subseteq> s" |
|
1036 |
and u: "u \<in> {0..1}" and v: "v \<in> {0..1}" and w: "w \<in> {0..1}" "u \<le> v" "v \<le> w" |
|
1037 |
shows "homotopic_paths s (subpath u v g +++ subpath v w g) (subpath u w g)" |
|
1038 |
proof - |
|
1039 |
have 1: "t * 2 \<le> 1 \<Longrightarrow> u + t * (v * 2) \<le> v + t * (u * 2)" for t |
|
1040 |
using affine_ineq \<open>u \<le> v\<close> by fastforce |
|
1041 |
have 2: "t * 2 > 1 \<Longrightarrow> u + (2*t - 1) * v \<le> v + (2*t - 1) * w" for t |
|
1042 |
by (metis add_mono_thms_linordered_semiring(1) diff_gt_0_iff_gt less_eq_real_def mult.commute mult_right_mono \<open>u \<le> v\<close> \<open>v \<le> w\<close>) |
|
1043 |
have t2: "\<And>t::real. t*2 = 1 \<Longrightarrow> t = 1/2" by auto |
|
1044 |
show ?thesis |
|
1045 |
apply (rule homotopic_paths_subset [OF _ pag]) |
|
1046 |
using assms |
|
1047 |
apply (cases "w = u") |
|
1048 |
using homotopic_paths_rinv [of "subpath u v g" "path_image g"] |
|
1049 |
apply (force simp: closed_segment_eq_real_ivl image_mono path_image_def subpath_refl) |
|
1050 |
apply (rule homotopic_paths_sym) |
|
1051 |
apply (rule homotopic_paths_reparametrize |
|
71745 | 1052 |
[where f = "\<lambda>t. if t \<le> 1/2 |
69620 | 1053 |
then inverse((w - u)) *\<^sub>R (2 * (v - u)) *\<^sub>R t |
1054 |
else inverse((w - u)) *\<^sub>R ((v - u) + (w - v) *\<^sub>R (2 *\<^sub>R t - 1))"]) |
|
1055 |
using \<open>path g\<close> path_subpath u w apply blast |
|
1056 |
using \<open>path g\<close> path_image_subpath_subset u w(1) apply blast |
|
1057 |
apply simp_all |
|
1058 |
apply (subst split_01) |
|
1059 |
apply (rule continuous_on_cases continuous_intros | force simp: pathfinish_def joinpaths_def)+ |
|
1060 |
apply (simp_all add: field_simps not_le) |
|
1061 |
apply (force dest!: t2) |
|
1062 |
apply (force simp: algebra_simps mult_left_mono affine_ineq dest!: 1 2) |
|
1063 |
apply (simp add: joinpaths_def subpath_def) |
|
1064 |
apply (force simp: algebra_simps) |
|
1065 |
done |
|
1066 |
qed |
|
1067 |
||
1068 |
lemma homotopic_join_subpaths2: |
|
1069 |
assumes "homotopic_paths s (subpath u v g +++ subpath v w g) (subpath u w g)" |
|
1070 |
shows "homotopic_paths s (subpath w v g +++ subpath v u g) (subpath w u g)" |
|
1071 |
by (metis assms homotopic_paths_reversepath_D pathfinish_subpath pathstart_subpath reversepath_joinpaths reversepath_subpath) |
|
1072 |
||
1073 |
lemma homotopic_join_subpaths3: |
|
1074 |
assumes hom: "homotopic_paths s (subpath u v g +++ subpath v w g) (subpath u w g)" |
|
1075 |
and "path g" and pag: "path_image g \<subseteq> s" |
|
1076 |
and u: "u \<in> {0..1}" and v: "v \<in> {0..1}" and w: "w \<in> {0..1}" |
|
1077 |
shows "homotopic_paths s (subpath v w g +++ subpath w u g) (subpath v u g)" |
|
1078 |
proof - |
|
1079 |
have "homotopic_paths s (subpath u w g +++ subpath w v g) ((subpath u v g +++ subpath v w g) +++ subpath w v g)" |
|
1080 |
apply (rule homotopic_paths_join) |
|
1081 |
using hom homotopic_paths_sym_eq apply blast |
|
1082 |
apply (metis \<open>path g\<close> homotopic_paths_eq pag path_image_subpath_subset path_subpath subset_trans v w, simp) |
|
1083 |
done |
|
1084 |
also have "homotopic_paths s ((subpath u v g +++ subpath v w g) +++ subpath w v g) (subpath u v g +++ subpath v w g +++ subpath w v g)" |
|
1085 |
apply (rule homotopic_paths_sym [OF homotopic_paths_assoc]) |
|
1086 |
using assms by (simp_all add: path_image_subpath_subset [THEN order_trans]) |
|
1087 |
also have "homotopic_paths s (subpath u v g +++ subpath v w g +++ subpath w v g) |
|
1088 |
(subpath u v g +++ linepath (pathfinish (subpath u v g)) (pathfinish (subpath u v g)))" |
|
1089 |
apply (rule homotopic_paths_join) |
|
1090 |
apply (metis \<open>path g\<close> homotopic_paths_eq order.trans pag path_image_subpath_subset path_subpath u v) |
|
1091 |
apply (metis (no_types, lifting) \<open>path g\<close> homotopic_paths_linv order_trans pag path_image_subpath_subset path_subpath pathfinish_subpath reversepath_subpath v w) |
|
1092 |
apply simp |
|
1093 |
done |
|
1094 |
also have "homotopic_paths s (subpath u v g +++ linepath (pathfinish (subpath u v g)) (pathfinish (subpath u v g))) (subpath u v g)" |
|
1095 |
apply (rule homotopic_paths_rid) |
|
1096 |
using \<open>path g\<close> path_subpath u v apply blast |
|
1097 |
apply (meson \<open>path g\<close> order.trans pag path_image_subpath_subset u v) |
|
1098 |
done |
|
1099 |
finally have "homotopic_paths s (subpath u w g +++ subpath w v g) (subpath u v g)" . |
|
1100 |
then show ?thesis |
|
1101 |
using homotopic_join_subpaths2 by blast |
|
1102 |
qed |
|
1103 |
||
1104 |
proposition homotopic_join_subpaths: |
|
1105 |
"\<lbrakk>path g; path_image g \<subseteq> s; u \<in> {0..1}; v \<in> {0..1}; w \<in> {0..1}\<rbrakk> |
|
1106 |
\<Longrightarrow> homotopic_paths s (subpath u v g +++ subpath v w g) (subpath u w g)" |
|
1107 |
apply (rule le_cases3 [of u v w]) |
|
1108 |
using homotopic_join_subpaths1 homotopic_join_subpaths2 homotopic_join_subpaths3 by metis+ |
|
1109 |
||
1110 |
text\<open>Relating homotopy of trivial loops to path-connectedness.\<close> |
|
1111 |
||
1112 |
lemma path_component_imp_homotopic_points: |
|
1113 |
"path_component S a b \<Longrightarrow> homotopic_loops S (linepath a a) (linepath b b)" |
|
1114 |
apply (simp add: path_component_def homotopic_loops_def homotopic_with_def |
|
1115 |
pathstart_def pathfinish_def path_image_def path_def, clarify) |
|
1116 |
apply (rule_tac x="g \<circ> fst" in exI) |
|
1117 |
apply (intro conjI continuous_intros continuous_on_compose)+ |
|
1118 |
apply (auto elim!: continuous_on_subset) |
|
1119 |
done |
|
1120 |
||
1121 |
lemma homotopic_loops_imp_path_component_value: |
|
1122 |
"\<lbrakk>homotopic_loops S p q; 0 \<le> t; t \<le> 1\<rbrakk> |
|
1123 |
\<Longrightarrow> path_component S (p t) (q t)" |
|
1124 |
apply (simp add: path_component_def homotopic_loops_def homotopic_with_def |
|
1125 |
pathstart_def pathfinish_def path_image_def path_def, clarify) |
|
1126 |
apply (rule_tac x="h \<circ> (\<lambda>u. (u, t))" in exI) |
|
1127 |
apply (intro conjI continuous_intros continuous_on_compose)+ |
|
1128 |
apply (auto elim!: continuous_on_subset) |
|
1129 |
done |
|
1130 |
||
1131 |
lemma homotopic_points_eq_path_component: |
|
1132 |
"homotopic_loops S (linepath a a) (linepath b b) \<longleftrightarrow> |
|
1133 |
path_component S a b" |
|
1134 |
by (auto simp: path_component_imp_homotopic_points |
|
1135 |
dest: homotopic_loops_imp_path_component_value [where t=1]) |
|
1136 |
||
1137 |
lemma path_connected_eq_homotopic_points: |
|
1138 |
"path_connected S \<longleftrightarrow> |
|
1139 |
(\<forall>a b. a \<in> S \<and> b \<in> S \<longrightarrow> homotopic_loops S (linepath a a) (linepath b b))" |
|
1140 |
by (auto simp: path_connected_def path_component_def homotopic_points_eq_path_component) |
|
1141 |
||
1142 |
||
1143 |
subsection\<open>Simply connected sets\<close> |
|
1144 |
||
70136 | 1145 |
text\<^marker>\<open>tag important\<close>\<open>defined as "all loops are homotopic (as loops)\<close> |
1146 |
||
1147 |
definition\<^marker>\<open>tag important\<close> simply_connected where |
|
69620 | 1148 |
"simply_connected S \<equiv> |
1149 |
\<forall>p q. path p \<and> pathfinish p = pathstart p \<and> path_image p \<subseteq> S \<and> |
|
1150 |
path q \<and> pathfinish q = pathstart q \<and> path_image q \<subseteq> S |
|
1151 |
\<longrightarrow> homotopic_loops S p q" |
|
1152 |
||
1153 |
lemma simply_connected_empty [iff]: "simply_connected {}" |
|
1154 |
by (simp add: simply_connected_def) |
|
1155 |
||
1156 |
lemma simply_connected_imp_path_connected: |
|
1157 |
fixes S :: "_::real_normed_vector set" |
|
1158 |
shows "simply_connected S \<Longrightarrow> path_connected S" |
|
1159 |
by (simp add: simply_connected_def path_connected_eq_homotopic_points) |
|
1160 |
||
1161 |
lemma simply_connected_imp_connected: |
|
1162 |
fixes S :: "_::real_normed_vector set" |
|
1163 |
shows "simply_connected S \<Longrightarrow> connected S" |
|
1164 |
by (simp add: path_connected_imp_connected simply_connected_imp_path_connected) |
|
1165 |
||
1166 |
lemma simply_connected_eq_contractible_loop_any: |
|
1167 |
fixes S :: "_::real_normed_vector set" |
|
1168 |
shows "simply_connected S \<longleftrightarrow> |
|
1169 |
(\<forall>p a. path p \<and> path_image p \<subseteq> S \<and> |
|
1170 |
pathfinish p = pathstart p \<and> a \<in> S |
|
1171 |
\<longrightarrow> homotopic_loops S p (linepath a a))" |
|
1172 |
apply (simp add: simply_connected_def) |
|
1173 |
apply (rule iffI, force, clarify) |
|
1174 |
apply (rule_tac q = "linepath (pathstart p) (pathstart p)" in homotopic_loops_trans) |
|
1175 |
apply (fastforce simp add:) |
|
1176 |
using homotopic_loops_sym apply blast |
|
1177 |
done |
|
1178 |
||
1179 |
lemma simply_connected_eq_contractible_loop_some: |
|
1180 |
fixes S :: "_::real_normed_vector set" |
|
1181 |
shows "simply_connected S \<longleftrightarrow> |
|
1182 |
path_connected S \<and> |
|
1183 |
(\<forall>p. path p \<and> path_image p \<subseteq> S \<and> pathfinish p = pathstart p |
|
1184 |
\<longrightarrow> (\<exists>a. a \<in> S \<and> homotopic_loops S p (linepath a a)))" |
|
1185 |
apply (rule iffI) |
|
1186 |
apply (fastforce simp: simply_connected_imp_path_connected simply_connected_eq_contractible_loop_any) |
|
1187 |
apply (clarsimp simp add: simply_connected_eq_contractible_loop_any) |
|
1188 |
apply (drule_tac x=p in spec) |
|
1189 |
using homotopic_loops_trans path_connected_eq_homotopic_points |
|
1190 |
apply blast |
|
1191 |
done |
|
1192 |
||
1193 |
lemma simply_connected_eq_contractible_loop_all: |
|
1194 |
fixes S :: "_::real_normed_vector set" |
|
1195 |
shows "simply_connected S \<longleftrightarrow> |
|
1196 |
S = {} \<or> |
|
1197 |
(\<exists>a \<in> S. \<forall>p. path p \<and> path_image p \<subseteq> S \<and> pathfinish p = pathstart p |
|
1198 |
\<longrightarrow> homotopic_loops S p (linepath a a))" |
|
1199 |
(is "?lhs = ?rhs") |
|
1200 |
proof (cases "S = {}") |
|
1201 |
case True then show ?thesis by force |
|
1202 |
next |
|
1203 |
case False |
|
1204 |
then obtain a where "a \<in> S" by blast |
|
1205 |
show ?thesis |
|
1206 |
proof |
|
1207 |
assume "simply_connected S" |
|
1208 |
then show ?rhs |
|
1209 |
using \<open>a \<in> S\<close> \<open>simply_connected S\<close> simply_connected_eq_contractible_loop_any |
|
1210 |
by blast |
|
1211 |
next |
|
1212 |
assume ?rhs |
|
1213 |
then show "simply_connected S" |
|
1214 |
apply (simp add: simply_connected_eq_contractible_loop_any False) |
|
1215 |
by (meson homotopic_loops_refl homotopic_loops_sym homotopic_loops_trans |
|
1216 |
path_component_imp_homotopic_points path_component_refl) |
|
1217 |
qed |
|
1218 |
qed |
|
1219 |
||
1220 |
lemma simply_connected_eq_contractible_path: |
|
1221 |
fixes S :: "_::real_normed_vector set" |
|
1222 |
shows "simply_connected S \<longleftrightarrow> |
|
1223 |
path_connected S \<and> |
|
1224 |
(\<forall>p. path p \<and> path_image p \<subseteq> S \<and> pathfinish p = pathstart p |
|
1225 |
\<longrightarrow> homotopic_paths S p (linepath (pathstart p) (pathstart p)))" |
|
1226 |
apply (rule iffI) |
|
1227 |
apply (simp add: simply_connected_imp_path_connected) |
|
1228 |
apply (metis simply_connected_eq_contractible_loop_some homotopic_loops_imp_homotopic_paths_null) |
|
1229 |
by (meson homotopic_paths_imp_homotopic_loops pathfinish_linepath pathstart_in_path_image |
|
1230 |
simply_connected_eq_contractible_loop_some subset_iff) |
|
1231 |
||
1232 |
lemma simply_connected_eq_homotopic_paths: |
|
1233 |
fixes S :: "_::real_normed_vector set" |
|
1234 |
shows "simply_connected S \<longleftrightarrow> |
|
1235 |
path_connected S \<and> |
|
1236 |
(\<forall>p q. path p \<and> path_image p \<subseteq> S \<and> |
|
1237 |
path q \<and> path_image q \<subseteq> S \<and> |
|
1238 |
pathstart q = pathstart p \<and> pathfinish q = pathfinish p |
|
1239 |
\<longrightarrow> homotopic_paths S p q)" |
|
1240 |
(is "?lhs = ?rhs") |
|
1241 |
proof |
|
1242 |
assume ?lhs |
|
1243 |
then have pc: "path_connected S" |
|
1244 |
and *: "\<And>p. \<lbrakk>path p; path_image p \<subseteq> S; |
|
1245 |
pathfinish p = pathstart p\<rbrakk> |
|
1246 |
\<Longrightarrow> homotopic_paths S p (linepath (pathstart p) (pathstart p))" |
|
1247 |
by (auto simp: simply_connected_eq_contractible_path) |
|
1248 |
have "homotopic_paths S p q" |
|
1249 |
if "path p" "path_image p \<subseteq> S" "path q" |
|
1250 |
"path_image q \<subseteq> S" "pathstart q = pathstart p" |
|
1251 |
"pathfinish q = pathfinish p" for p q |
|
1252 |
proof - |
|
1253 |
have "homotopic_paths S p (p +++ linepath (pathfinish p) (pathfinish p))" |
|
1254 |
by (simp add: homotopic_paths_rid homotopic_paths_sym that) |
|
1255 |
also have "homotopic_paths S (p +++ linepath (pathfinish p) (pathfinish p)) |
|
1256 |
(p +++ reversepath q +++ q)" |
|
1257 |
using that |
|
1258 |
by (metis homotopic_paths_join homotopic_paths_linv homotopic_paths_refl homotopic_paths_sym_eq pathstart_linepath) |
|
1259 |
also have "homotopic_paths S (p +++ reversepath q +++ q) |
|
1260 |
((p +++ reversepath q) +++ q)" |
|
1261 |
by (simp add: that homotopic_paths_assoc) |
|
1262 |
also have "homotopic_paths S ((p +++ reversepath q) +++ q) |
|
1263 |
(linepath (pathstart q) (pathstart q) +++ q)" |
|
1264 |
using * [of "p +++ reversepath q"] that |
|
1265 |
by (simp add: homotopic_paths_join path_image_join) |
|
1266 |
also have "homotopic_paths S (linepath (pathstart q) (pathstart q) +++ q) q" |
|
1267 |
using that homotopic_paths_lid by blast |
|
1268 |
finally show ?thesis . |
|
1269 |
qed |
|
1270 |
then show ?rhs |
|
1271 |
by (blast intro: pc *) |
|
1272 |
next |
|
1273 |
assume ?rhs |
|
1274 |
then show ?lhs |
|
1275 |
by (force simp: simply_connected_eq_contractible_path) |
|
1276 |
qed |
|
1277 |
||
1278 |
proposition simply_connected_Times: |
|
1279 |
fixes S :: "'a::real_normed_vector set" and T :: "'b::real_normed_vector set" |
|
1280 |
assumes S: "simply_connected S" and T: "simply_connected T" |
|
1281 |
shows "simply_connected(S \<times> T)" |
|
1282 |
proof - |
|
1283 |
have "homotopic_loops (S \<times> T) p (linepath (a, b) (a, b))" |
|
1284 |
if "path p" "path_image p \<subseteq> S \<times> T" "p 1 = p 0" "a \<in> S" "b \<in> T" |
|
1285 |
for p a b |
|
1286 |
proof - |
|
1287 |
have "path (fst \<circ> p)" |
|
1288 |
apply (rule Path_Connected.path_continuous_image [OF \<open>path p\<close>]) |
|
1289 |
apply (rule continuous_intros)+ |
|
1290 |
done |
|
1291 |
moreover have "path_image (fst \<circ> p) \<subseteq> S" |
|
1292 |
using that apply (simp add: path_image_def) by force |
|
1293 |
ultimately have p1: "homotopic_loops S (fst \<circ> p) (linepath a a)" |
|
1294 |
using S that |
|
1295 |
apply (simp add: simply_connected_eq_contractible_loop_any) |
|
1296 |
apply (drule_tac x="fst \<circ> p" in spec) |
|
1297 |
apply (drule_tac x=a in spec) |
|
1298 |
apply (auto simp: pathstart_def pathfinish_def) |
|
1299 |
done |
|
1300 |
have "path (snd \<circ> p)" |
|
1301 |
apply (rule Path_Connected.path_continuous_image [OF \<open>path p\<close>]) |
|
1302 |
apply (rule continuous_intros)+ |
|
1303 |
done |
|
1304 |
moreover have "path_image (snd \<circ> p) \<subseteq> T" |
|
1305 |
using that apply (simp add: path_image_def) by force |
|
1306 |
ultimately have p2: "homotopic_loops T (snd \<circ> p) (linepath b b)" |
|
1307 |
using T that |
|
1308 |
apply (simp add: simply_connected_eq_contractible_loop_any) |
|
1309 |
apply (drule_tac x="snd \<circ> p" in spec) |
|
1310 |
apply (drule_tac x=b in spec) |
|
1311 |
apply (auto simp: pathstart_def pathfinish_def) |
|
1312 |
done |
|
1313 |
show ?thesis |
|
1314 |
using p1 p2 |
|
1315 |
apply (simp add: homotopic_loops, clarify) |
|
1316 |
apply (rename_tac h k) |
|
1317 |
apply (rule_tac x="\<lambda>z. Pair (h z) (k z)" in exI) |
|
1318 |
apply (intro conjI continuous_intros | assumption)+ |
|
1319 |
apply (auto simp: pathstart_def pathfinish_def) |
|
1320 |
done |
|
1321 |
qed |
|
1322 |
with assms show ?thesis |
|
1323 |
by (simp add: simply_connected_eq_contractible_loop_any pathfinish_def pathstart_def) |
|
1324 |
qed |
|
1325 |
||
1326 |
||
1327 |
subsection\<open>Contractible sets\<close> |
|
1328 |
||
70136 | 1329 |
definition\<^marker>\<open>tag important\<close> contractible where |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1330 |
"contractible S \<equiv> \<exists>a. homotopic_with_canon (\<lambda>x. True) S S id (\<lambda>x. a)" |
69620 | 1331 |
|
1332 |
proposition contractible_imp_simply_connected: |
|
1333 |
fixes S :: "_::real_normed_vector set" |
|
1334 |
assumes "contractible S" shows "simply_connected S" |
|
1335 |
proof (cases "S = {}") |
|
1336 |
case True then show ?thesis by force |
|
1337 |
next |
|
1338 |
case False |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1339 |
obtain a where a: "homotopic_with_canon (\<lambda>x. True) S S id (\<lambda>x. a)" |
69620 | 1340 |
using assms by (force simp: contractible_def) |
1341 |
then have "a \<in> S" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1342 |
by (metis False homotopic_constant_maps homotopic_with_symD homotopic_with_trans path_component_in_topspace topspace_euclidean_subtopology) |
69620 | 1343 |
show ?thesis |
1344 |
apply (simp add: simply_connected_eq_contractible_loop_all False) |
|
1345 |
apply (rule bexI [OF _ \<open>a \<in> S\<close>]) |
|
1346 |
using a apply (simp add: homotopic_loops_def homotopic_with_def path_def path_image_def pathfinish_def pathstart_def, clarify) |
|
1347 |
apply (rule_tac x="(h \<circ> (\<lambda>y. (fst y, (p \<circ> snd) y)))" in exI) |
|
1348 |
apply (intro conjI continuous_on_compose continuous_intros) |
|
1349 |
apply (erule continuous_on_subset | force)+ |
|
1350 |
done |
|
1351 |
qed |
|
1352 |
||
1353 |
corollary contractible_imp_connected: |
|
1354 |
fixes S :: "_::real_normed_vector set" |
|
1355 |
shows "contractible S \<Longrightarrow> connected S" |
|
1356 |
by (simp add: contractible_imp_simply_connected simply_connected_imp_connected) |
|
1357 |
||
1358 |
lemma contractible_imp_path_connected: |
|
1359 |
fixes S :: "_::real_normed_vector set" |
|
1360 |
shows "contractible S \<Longrightarrow> path_connected S" |
|
1361 |
by (simp add: contractible_imp_simply_connected simply_connected_imp_path_connected) |
|
1362 |
||
1363 |
lemma nullhomotopic_through_contractible: |
|
1364 |
fixes S :: "_::topological_space set" |
|
1365 |
assumes f: "continuous_on S f" "f ` S \<subseteq> T" |
|
1366 |
and g: "continuous_on T g" "g ` T \<subseteq> U" |
|
1367 |
and T: "contractible T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1368 |
obtains c where "homotopic_with_canon (\<lambda>h. True) S U (g \<circ> f) (\<lambda>x. c)" |
69620 | 1369 |
proof - |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1370 |
obtain b where b: "homotopic_with_canon (\<lambda>x. True) T T id (\<lambda>x. b)" |
69620 | 1371 |
using assms by (force simp: contractible_def) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1372 |
have "homotopic_with_canon (\<lambda>f. True) T U (g \<circ> id) (g \<circ> (\<lambda>x. b))" |
71745 | 1373 |
by (metis Abstract_Topology.continuous_map_subtopology_eu b g homotopic_with_compose_continuous_map_left) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1374 |
then have "homotopic_with_canon (\<lambda>f. True) S U (g \<circ> id \<circ> f) (g \<circ> (\<lambda>x. b) \<circ> f)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1375 |
by (simp add: f homotopic_with_compose_continuous_map_right) |
69620 | 1376 |
then show ?thesis |
1377 |
by (simp add: comp_def that) |
|
1378 |
qed |
|
1379 |
||
1380 |
lemma nullhomotopic_into_contractible: |
|
1381 |
assumes f: "continuous_on S f" "f ` S \<subseteq> T" |
|
1382 |
and T: "contractible T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1383 |
obtains c where "homotopic_with_canon (\<lambda>h. True) S T f (\<lambda>x. c)" |
69620 | 1384 |
apply (rule nullhomotopic_through_contractible [OF f, of id T]) |
1385 |
using assms |
|
71172 | 1386 |
apply (auto) |
69620 | 1387 |
done |
1388 |
||
1389 |
lemma nullhomotopic_from_contractible: |
|
1390 |
assumes f: "continuous_on S f" "f ` S \<subseteq> T" |
|
1391 |
and S: "contractible S" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1392 |
obtains c where "homotopic_with_canon (\<lambda>h. True) S T f (\<lambda>x. c)" |
69620 | 1393 |
apply (rule nullhomotopic_through_contractible [OF continuous_on_id _ f S, of S]) |
1394 |
using assms |
|
1395 |
apply (auto simp: comp_def) |
|
1396 |
done |
|
1397 |
||
1398 |
lemma homotopic_through_contractible: |
|
1399 |
fixes S :: "_::real_normed_vector set" |
|
1400 |
assumes "continuous_on S f1" "f1 ` S \<subseteq> T" |
|
1401 |
"continuous_on T g1" "g1 ` T \<subseteq> U" |
|
1402 |
"continuous_on S f2" "f2 ` S \<subseteq> T" |
|
1403 |
"continuous_on T g2" "g2 ` T \<subseteq> U" |
|
1404 |
"contractible T" "path_connected U" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1405 |
shows "homotopic_with_canon (\<lambda>h. True) S U (g1 \<circ> f1) (g2 \<circ> f2)" |
69620 | 1406 |
proof - |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1407 |
obtain c1 where c1: "homotopic_with_canon (\<lambda>h. True) S U (g1 \<circ> f1) (\<lambda>x. c1)" |
69620 | 1408 |
apply (rule nullhomotopic_through_contractible [of S f1 T g1 U]) |
1409 |
using assms apply auto |
|
1410 |
done |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1411 |
obtain c2 where c2: "homotopic_with_canon (\<lambda>h. True) S U (g2 \<circ> f2) (\<lambda>x. c2)" |
69620 | 1412 |
apply (rule nullhomotopic_through_contractible [of S f2 T g2 U]) |
1413 |
using assms apply auto |
|
1414 |
done |
|
1415 |
have *: "S = {} \<or> (\<exists>t. path_connected t \<and> t \<subseteq> U \<and> c2 \<in> t \<and> c1 \<in> t)" |
|
1416 |
proof (cases "S = {}") |
|
1417 |
case True then show ?thesis by force |
|
1418 |
next |
|
1419 |
case False |
|
1420 |
with c1 c2 have "c1 \<in> U" "c2 \<in> U" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1421 |
using homotopic_with_imp_continuous_maps by fastforce+ |
69620 | 1422 |
with \<open>path_connected U\<close> show ?thesis by blast |
1423 |
qed |
|
1424 |
show ?thesis |
|
1425 |
apply (rule homotopic_with_trans [OF c1]) |
|
1426 |
apply (rule homotopic_with_symD) |
|
1427 |
apply (rule homotopic_with_trans [OF c2]) |
|
1428 |
apply (simp add: path_component homotopic_constant_maps *) |
|
1429 |
done |
|
1430 |
qed |
|
1431 |
||
1432 |
lemma homotopic_into_contractible: |
|
1433 |
fixes S :: "'a::real_normed_vector set" and T:: "'b::real_normed_vector set" |
|
1434 |
assumes f: "continuous_on S f" "f ` S \<subseteq> T" |
|
1435 |
and g: "continuous_on S g" "g ` S \<subseteq> T" |
|
1436 |
and T: "contractible T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1437 |
shows "homotopic_with_canon (\<lambda>h. True) S T f g" |
69620 | 1438 |
using homotopic_through_contractible [of S f T id T g id] |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1439 |
by (simp add: assms contractible_imp_path_connected) |
69620 | 1440 |
|
1441 |
lemma homotopic_from_contractible: |
|
1442 |
fixes S :: "'a::real_normed_vector set" and T:: "'b::real_normed_vector set" |
|
1443 |
assumes f: "continuous_on S f" "f ` S \<subseteq> T" |
|
1444 |
and g: "continuous_on S g" "g ` S \<subseteq> T" |
|
1445 |
and "contractible S" "path_connected T" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1446 |
shows "homotopic_with_canon (\<lambda>h. True) S T f g" |
69620 | 1447 |
using homotopic_through_contractible [of S id S f T id g] |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1448 |
by (simp add: assms contractible_imp_path_connected) |
69620 | 1449 |
|
71233 | 1450 |
subsection\<open>Starlike sets\<close> |
1451 |
||
1452 |
definition\<^marker>\<open>tag important\<close> "starlike S \<longleftrightarrow> (\<exists>a\<in>S. \<forall>x\<in>S. closed_segment a x \<subseteq> S)" |
|
1453 |
||
1454 |
lemma starlike_UNIV [simp]: "starlike UNIV" |
|
1455 |
by (simp add: starlike_def) |
|
1456 |
||
1457 |
lemma convex_imp_starlike: |
|
1458 |
"convex S \<Longrightarrow> S \<noteq> {} \<Longrightarrow> starlike S" |
|
1459 |
unfolding convex_contains_segment starlike_def by auto |
|
1460 |
||
1461 |
lemma starlike_convex_tweak_boundary_points: |
|
1462 |
fixes S :: "'a::euclidean_space set" |
|
1463 |
assumes "convex S" "S \<noteq> {}" and ST: "rel_interior S \<subseteq> T" and TS: "T \<subseteq> closure S" |
|
1464 |
shows "starlike T" |
|
1465 |
proof - |
|
1466 |
have "rel_interior S \<noteq> {}" |
|
1467 |
by (simp add: assms rel_interior_eq_empty) |
|
1468 |
then obtain a where a: "a \<in> rel_interior S" by blast |
|
1469 |
with ST have "a \<in> T" by blast |
|
1470 |
have *: "\<And>x. x \<in> T \<Longrightarrow> open_segment a x \<subseteq> rel_interior S" |
|
1471 |
apply (rule rel_interior_closure_convex_segment [OF \<open>convex S\<close> a]) |
|
1472 |
using assms by blast |
|
1473 |
show ?thesis |
|
1474 |
unfolding starlike_def |
|
1475 |
apply (rule bexI [OF _ \<open>a \<in> T\<close>]) |
|
1476 |
apply (simp add: closed_segment_eq_open) |
|
1477 |
apply (intro conjI ballI a \<open>a \<in> T\<close> rel_interior_closure_convex_segment [OF \<open>convex S\<close> a]) |
|
1478 |
apply (simp add: order_trans [OF * ST]) |
|
1479 |
done |
|
1480 |
qed |
|
1481 |
||
69620 | 1482 |
lemma starlike_imp_contractible_gen: |
1483 |
fixes S :: "'a::real_normed_vector set" |
|
1484 |
assumes S: "starlike S" |
|
1485 |
and P: "\<And>a T. \<lbrakk>a \<in> S; 0 \<le> T; T \<le> 1\<rbrakk> \<Longrightarrow> P(\<lambda>x. (1 - T) *\<^sub>R x + T *\<^sub>R a)" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1486 |
obtains a where "homotopic_with_canon P S S (\<lambda>x. x) (\<lambda>x. a)" |
69620 | 1487 |
proof - |
1488 |
obtain a where "a \<in> S" and a: "\<And>x. x \<in> S \<Longrightarrow> closed_segment a x \<subseteq> S" |
|
1489 |
using S by (auto simp: starlike_def) |
|
1490 |
have "(\<lambda>y. (1 - fst y) *\<^sub>R snd y + fst y *\<^sub>R a) ` ({0..1} \<times> S) \<subseteq> S" |
|
1491 |
apply clarify |
|
1492 |
apply (erule a [unfolded closed_segment_def, THEN subsetD], simp) |
|
1493 |
apply (metis add_diff_cancel_right' diff_ge_0_iff_ge le_add_diff_inverse pth_c(1)) |
|
1494 |
done |
|
1495 |
then show ?thesis |
|
1496 |
apply (rule_tac a=a in that) |
|
1497 |
using \<open>a \<in> S\<close> |
|
1498 |
apply (simp add: homotopic_with_def) |
|
1499 |
apply (rule_tac x="\<lambda>y. (1 - (fst y)) *\<^sub>R snd y + (fst y) *\<^sub>R a" in exI) |
|
1500 |
apply (intro conjI ballI continuous_on_compose continuous_intros) |
|
1501 |
apply (simp_all add: P) |
|
1502 |
done |
|
1503 |
qed |
|
1504 |
||
1505 |
lemma starlike_imp_contractible: |
|
1506 |
fixes S :: "'a::real_normed_vector set" |
|
1507 |
shows "starlike S \<Longrightarrow> contractible S" |
|
1508 |
using starlike_imp_contractible_gen contractible_def by (fastforce simp: id_def) |
|
1509 |
||
1510 |
lemma contractible_UNIV [simp]: "contractible (UNIV :: 'a::real_normed_vector set)" |
|
1511 |
by (simp add: starlike_imp_contractible) |
|
1512 |
||
1513 |
lemma starlike_imp_simply_connected: |
|
1514 |
fixes S :: "'a::real_normed_vector set" |
|
1515 |
shows "starlike S \<Longrightarrow> simply_connected S" |
|
1516 |
by (simp add: contractible_imp_simply_connected starlike_imp_contractible) |
|
1517 |
||
1518 |
lemma convex_imp_simply_connected: |
|
1519 |
fixes S :: "'a::real_normed_vector set" |
|
1520 |
shows "convex S \<Longrightarrow> simply_connected S" |
|
1521 |
using convex_imp_starlike starlike_imp_simply_connected by blast |
|
1522 |
||
1523 |
lemma starlike_imp_path_connected: |
|
1524 |
fixes S :: "'a::real_normed_vector set" |
|
1525 |
shows "starlike S \<Longrightarrow> path_connected S" |
|
1526 |
by (simp add: simply_connected_imp_path_connected starlike_imp_simply_connected) |
|
1527 |
||
1528 |
lemma starlike_imp_connected: |
|
1529 |
fixes S :: "'a::real_normed_vector set" |
|
1530 |
shows "starlike S \<Longrightarrow> connected S" |
|
1531 |
by (simp add: path_connected_imp_connected starlike_imp_path_connected) |
|
1532 |
||
1533 |
lemma is_interval_simply_connected_1: |
|
1534 |
fixes S :: "real set" |
|
1535 |
shows "is_interval S \<longleftrightarrow> simply_connected S" |
|
1536 |
using convex_imp_simply_connected is_interval_convex_1 is_interval_path_connected_1 simply_connected_imp_path_connected by auto |
|
1537 |
||
1538 |
lemma contractible_empty [simp]: "contractible {}" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1539 |
by (simp add: contractible_def homotopic_on_emptyI) |
69620 | 1540 |
|
1541 |
lemma contractible_convex_tweak_boundary_points: |
|
1542 |
fixes S :: "'a::euclidean_space set" |
|
1543 |
assumes "convex S" and TS: "rel_interior S \<subseteq> T" "T \<subseteq> closure S" |
|
1544 |
shows "contractible T" |
|
1545 |
proof (cases "S = {}") |
|
1546 |
case True |
|
1547 |
with assms show ?thesis |
|
1548 |
by (simp add: subsetCE) |
|
1549 |
next |
|
1550 |
case False |
|
1551 |
show ?thesis |
|
1552 |
apply (rule starlike_imp_contractible) |
|
1553 |
apply (rule starlike_convex_tweak_boundary_points [OF \<open>convex S\<close> False TS]) |
|
1554 |
done |
|
1555 |
qed |
|
1556 |
||
1557 |
lemma convex_imp_contractible: |
|
1558 |
fixes S :: "'a::real_normed_vector set" |
|
1559 |
shows "convex S \<Longrightarrow> contractible S" |
|
1560 |
using contractible_empty convex_imp_starlike starlike_imp_contractible by blast |
|
1561 |
||
1562 |
lemma contractible_sing [simp]: |
|
1563 |
fixes a :: "'a::real_normed_vector" |
|
1564 |
shows "contractible {a}" |
|
1565 |
by (rule convex_imp_contractible [OF convex_singleton]) |
|
1566 |
||
1567 |
lemma is_interval_contractible_1: |
|
1568 |
fixes S :: "real set" |
|
1569 |
shows "is_interval S \<longleftrightarrow> contractible S" |
|
1570 |
using contractible_imp_simply_connected convex_imp_contractible is_interval_convex_1 |
|
1571 |
is_interval_simply_connected_1 by auto |
|
1572 |
||
1573 |
lemma contractible_Times: |
|
1574 |
fixes S :: "'a::euclidean_space set" and T :: "'b::euclidean_space set" |
|
1575 |
assumes S: "contractible S" and T: "contractible T" |
|
1576 |
shows "contractible (S \<times> T)" |
|
1577 |
proof - |
|
1578 |
obtain a h where conth: "continuous_on ({0..1} \<times> S) h" |
|
1579 |
and hsub: "h ` ({0..1} \<times> S) \<subseteq> S" |
|
1580 |
and [simp]: "\<And>x. x \<in> S \<Longrightarrow> h (0, x) = x" |
|
1581 |
and [simp]: "\<And>x. x \<in> S \<Longrightarrow> h (1::real, x) = a" |
|
1582 |
using S by (auto simp: contractible_def homotopic_with) |
|
1583 |
obtain b k where contk: "continuous_on ({0..1} \<times> T) k" |
|
1584 |
and ksub: "k ` ({0..1} \<times> T) \<subseteq> T" |
|
1585 |
and [simp]: "\<And>x. x \<in> T \<Longrightarrow> k (0, x) = x" |
|
1586 |
and [simp]: "\<And>x. x \<in> T \<Longrightarrow> k (1::real, x) = b" |
|
1587 |
using T by (auto simp: contractible_def homotopic_with) |
|
1588 |
show ?thesis |
|
1589 |
apply (simp add: contractible_def homotopic_with) |
|
1590 |
apply (rule exI [where x=a]) |
|
1591 |
apply (rule exI [where x=b]) |
|
1592 |
apply (rule exI [where x = "\<lambda>z. (h (fst z, fst(snd z)), k (fst z, snd(snd z)))"]) |
|
1593 |
apply (intro conjI ballI continuous_intros continuous_on_compose2 [OF conth] continuous_on_compose2 [OF contk]) |
|
1594 |
using hsub ksub |
|
1595 |
apply auto |
|
1596 |
done |
|
1597 |
qed |
|
1598 |
||
1599 |
||
1600 |
subsection\<open>Local versions of topological properties in general\<close> |
|
1601 |
||
70136 | 1602 |
definition\<^marker>\<open>tag important\<close> locally :: "('a::topological_space set \<Rightarrow> bool) \<Rightarrow> 'a set \<Rightarrow> bool" |
69620 | 1603 |
where |
1604 |
"locally P S \<equiv> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1605 |
\<forall>w x. openin (top_of_set S) w \<and> x \<in> w |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1606 |
\<longrightarrow> (\<exists>u v. openin (top_of_set S) u \<and> P v \<and> |
69620 | 1607 |
x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> w)" |
1608 |
||
1609 |
lemma locallyI: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1610 |
assumes "\<And>w x. \<lbrakk>openin (top_of_set S) w; x \<in> w\<rbrakk> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1611 |
\<Longrightarrow> \<exists>u v. openin (top_of_set S) u \<and> P v \<and> |
69620 | 1612 |
x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> w" |
1613 |
shows "locally P S" |
|
1614 |
using assms by (force simp: locally_def) |
|
1615 |
||
1616 |
lemma locallyE: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1617 |
assumes "locally P S" "openin (top_of_set S) w" "x \<in> w" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1618 |
obtains u v where "openin (top_of_set S) u" |
69620 | 1619 |
"P v" "x \<in> u" "u \<subseteq> v" "v \<subseteq> w" |
1620 |
using assms unfolding locally_def by meson |
|
1621 |
||
1622 |
lemma locally_mono: |
|
1623 |
assumes "locally P S" "\<And>t. P t \<Longrightarrow> Q t" |
|
1624 |
shows "locally Q S" |
|
1625 |
by (metis assms locally_def) |
|
1626 |
||
1627 |
lemma locally_open_subset: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1628 |
assumes "locally P S" "openin (top_of_set S) t" |
69620 | 1629 |
shows "locally P t" |
1630 |
using assms |
|
1631 |
apply (simp add: locally_def) |
|
1632 |
apply (erule all_forward)+ |
|
1633 |
apply (rule impI) |
|
1634 |
apply (erule impCE) |
|
1635 |
using openin_trans apply blast |
|
1636 |
apply (erule ex_forward) |
|
1637 |
by (metis (no_types, hide_lams) Int_absorb1 Int_lower1 Int_subset_iff openin_open openin_subtopology_Int_subset) |
|
1638 |
||
1639 |
lemma locally_diff_closed: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1640 |
"\<lbrakk>locally P S; closedin (top_of_set S) t\<rbrakk> \<Longrightarrow> locally P (S - t)" |
69620 | 1641 |
using locally_open_subset closedin_def by fastforce |
1642 |
||
1643 |
lemma locally_empty [iff]: "locally P {}" |
|
1644 |
by (simp add: locally_def openin_subtopology) |
|
1645 |
||
1646 |
lemma locally_singleton [iff]: |
|
1647 |
fixes a :: "'a::metric_space" |
|
1648 |
shows "locally P {a} \<longleftrightarrow> P {a}" |
|
1649 |
apply (simp add: locally_def openin_euclidean_subtopology_iff subset_singleton_iff conj_disj_distribR cong: conj_cong) |
|
1650 |
using zero_less_one by blast |
|
1651 |
||
1652 |
lemma locally_iff: |
|
1653 |
"locally P S \<longleftrightarrow> |
|
1654 |
(\<forall>T x. open T \<and> x \<in> S \<inter> T \<longrightarrow> (\<exists>U. open U \<and> (\<exists>v. P v \<and> x \<in> S \<inter> U \<and> S \<inter> U \<subseteq> v \<and> v \<subseteq> S \<inter> T)))" |
|
1655 |
apply (simp add: le_inf_iff locally_def openin_open, safe) |
|
1656 |
apply (metis IntE IntI le_inf_iff) |
|
1657 |
apply (metis IntI Int_subset_iff) |
|
1658 |
done |
|
1659 |
||
1660 |
lemma locally_Int: |
|
1661 |
assumes S: "locally P S" and t: "locally P t" |
|
1662 |
and P: "\<And>S t. P S \<and> P t \<Longrightarrow> P(S \<inter> t)" |
|
1663 |
shows "locally P (S \<inter> t)" |
|
1664 |
using S t unfolding locally_iff |
|
1665 |
apply clarify |
|
1666 |
apply (drule_tac x=T in spec)+ |
|
1667 |
apply (drule_tac x=x in spec)+ |
|
1668 |
apply clarsimp |
|
1669 |
apply (rename_tac U1 U2 V1 V2) |
|
1670 |
apply (rule_tac x="U1 \<inter> U2" in exI) |
|
1671 |
apply (simp add: open_Int) |
|
1672 |
apply (rule_tac x="V1 \<inter> V2" in exI) |
|
1673 |
apply (auto intro: P) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1674 |
done |
69620 | 1675 |
|
1676 |
lemma locally_Times: |
|
1677 |
fixes S :: "('a::metric_space) set" and T :: "('b::metric_space) set" |
|
1678 |
assumes PS: "locally P S" and QT: "locally Q T" and R: "\<And>S T. P S \<and> Q T \<Longrightarrow> R(S \<times> T)" |
|
1679 |
shows "locally R (S \<times> T)" |
|
1680 |
unfolding locally_def |
|
1681 |
proof (clarify) |
|
1682 |
fix W x y |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1683 |
assume W: "openin (top_of_set (S \<times> T)) W" and xy: "(x, y) \<in> W" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1684 |
then obtain U V where "openin (top_of_set S) U" "x \<in> U" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1685 |
"openin (top_of_set T) V" "y \<in> V" "U \<times> V \<subseteq> W" |
69620 | 1686 |
using Times_in_interior_subtopology by metis |
1687 |
then obtain U1 U2 V1 V2 |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1688 |
where opeS: "openin (top_of_set S) U1 \<and> P U2 \<and> x \<in> U1 \<and> U1 \<subseteq> U2 \<and> U2 \<subseteq> U" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1689 |
and opeT: "openin (top_of_set T) V1 \<and> Q V2 \<and> y \<in> V1 \<and> V1 \<subseteq> V2 \<and> V2 \<subseteq> V" |
69620 | 1690 |
by (meson PS QT locallyE) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1691 |
with \<open>U \<times> V \<subseteq> W\<close> show "\<exists>u v. openin (top_of_set (S \<times> T)) u \<and> R v \<and> (x,y) \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> W" |
69620 | 1692 |
apply (rule_tac x="U1 \<times> V1" in exI) |
1693 |
apply (rule_tac x="U2 \<times> V2" in exI) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
1694 |
apply (auto simp: openin_Times R openin_Times_eq) |
69620 | 1695 |
done |
1696 |
qed |
|
1697 |
||
1698 |
||
1699 |
proposition homeomorphism_locally_imp: |
|
1700 |
fixes S :: "'a::metric_space set" and t :: "'b::t2_space set" |
|
1701 |
assumes S: "locally P S" and hom: "homeomorphism S t f g" |
|
1702 |
and Q: "\<And>S S'. \<lbrakk>P S; homeomorphism S S' f g\<rbrakk> \<Longrightarrow> Q S'" |
|
1703 |
shows "locally Q t" |
|
1704 |
proof (clarsimp simp: locally_def) |
|
1705 |
fix W y |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1706 |
assume "y \<in> W" and "openin (top_of_set t) W" |
69620 | 1707 |
then obtain T where T: "open T" "W = t \<inter> T" |
1708 |
by (force simp: openin_open) |
|
1709 |
then have "W \<subseteq> t" by auto |
|
1710 |
have f: "\<And>x. x \<in> S \<Longrightarrow> g(f x) = x" "f ` S = t" "continuous_on S f" |
|
1711 |
and g: "\<And>y. y \<in> t \<Longrightarrow> f(g y) = y" "g ` t = S" "continuous_on t g" |
|
1712 |
using hom by (auto simp: homeomorphism_def) |
|
1713 |
have gw: "g ` W = S \<inter> f -` W" |
|
1714 |
using \<open>W \<subseteq> t\<close> |
|
1715 |
apply auto |
|
1716 |
using \<open>g ` t = S\<close> \<open>W \<subseteq> t\<close> apply blast |
|
1717 |
using g \<open>W \<subseteq> t\<close> apply auto[1] |
|
1718 |
by (simp add: f rev_image_eqI) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1719 |
have \<circ>: "openin (top_of_set S) (g ` W)" |
69620 | 1720 |
proof - |
1721 |
have "continuous_on S f" |
|
1722 |
using f(3) by blast |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1723 |
then show "openin (top_of_set S) (g ` W)" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1724 |
by (simp add: gw Collect_conj_eq \<open>openin (top_of_set t) W\<close> continuous_on_open f(2)) |
69620 | 1725 |
qed |
1726 |
then obtain u v |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1727 |
where osu: "openin (top_of_set S) u" and uv: "P v" "g y \<in> u" "u \<subseteq> v" "v \<subseteq> g ` W" |
69620 | 1728 |
using S [unfolded locally_def, rule_format, of "g ` W" "g y"] \<open>y \<in> W\<close> by force |
1729 |
have "v \<subseteq> S" using uv by (simp add: gw) |
|
1730 |
have fv: "f ` v = t \<inter> {x. g x \<in> v}" |
|
1731 |
using \<open>f ` S = t\<close> f \<open>v \<subseteq> S\<close> by auto |
|
1732 |
have "f ` v \<subseteq> W" |
|
1733 |
using uv using Int_lower2 gw image_subsetI mem_Collect_eq subset_iff by auto |
|
1734 |
have contvf: "continuous_on v f" |
|
1735 |
using \<open>v \<subseteq> S\<close> continuous_on_subset f(3) by blast |
|
1736 |
have contvg: "continuous_on (f ` v) g" |
|
1737 |
using \<open>f ` v \<subseteq> W\<close> \<open>W \<subseteq> t\<close> continuous_on_subset [OF g(3)] by blast |
|
1738 |
have homv: "homeomorphism v (f ` v) f g" |
|
1739 |
using \<open>v \<subseteq> S\<close> \<open>W \<subseteq> t\<close> f |
|
1740 |
apply (simp add: homeomorphism_def contvf contvg, auto) |
|
1741 |
by (metis f(1) rev_image_eqI rev_subsetD) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1742 |
have 1: "openin (top_of_set t) (t \<inter> g -` u)" |
69620 | 1743 |
apply (rule continuous_on_open [THEN iffD1, rule_format]) |
1744 |
apply (rule \<open>continuous_on t g\<close>) |
|
1745 |
using \<open>g ` t = S\<close> apply (simp add: osu) |
|
1746 |
done |
|
1747 |
have 2: "\<exists>V. Q V \<and> y \<in> (t \<inter> g -` u) \<and> (t \<inter> g -` u) \<subseteq> V \<and> V \<subseteq> W" |
|
1748 |
apply (rule_tac x="f ` v" in exI) |
|
1749 |
apply (intro conjI Q [OF \<open>P v\<close> homv]) |
|
1750 |
using \<open>W \<subseteq> t\<close> \<open>y \<in> W\<close> \<open>f ` v \<subseteq> W\<close> uv apply (auto simp: fv) |
|
1751 |
done |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1752 |
show "\<exists>U. openin (top_of_set t) U \<and> (\<exists>v. Q v \<and> y \<in> U \<and> U \<subseteq> v \<and> v \<subseteq> W)" |
69620 | 1753 |
by (meson 1 2) |
1754 |
qed |
|
1755 |
||
1756 |
lemma homeomorphism_locally: |
|
1757 |
fixes f:: "'a::metric_space \<Rightarrow> 'b::metric_space" |
|
1758 |
assumes hom: "homeomorphism S t f g" |
|
1759 |
and eq: "\<And>S t. homeomorphism S t f g \<Longrightarrow> (P S \<longleftrightarrow> Q t)" |
|
1760 |
shows "locally P S \<longleftrightarrow> locally Q t" |
|
1761 |
apply (rule iffI) |
|
1762 |
apply (erule homeomorphism_locally_imp [OF _ hom]) |
|
1763 |
apply (simp add: eq) |
|
1764 |
apply (erule homeomorphism_locally_imp) |
|
1765 |
using eq homeomorphism_sym homeomorphism_symD [OF hom] apply blast+ |
|
1766 |
done |
|
1767 |
||
1768 |
lemma homeomorphic_locally: |
|
1769 |
fixes S:: "'a::metric_space set" and T:: "'b::metric_space set" |
|
1770 |
assumes hom: "S homeomorphic T" |
|
1771 |
and iff: "\<And>X Y. X homeomorphic Y \<Longrightarrow> (P X \<longleftrightarrow> Q Y)" |
|
1772 |
shows "locally P S \<longleftrightarrow> locally Q T" |
|
1773 |
proof - |
|
1774 |
obtain f g where hom: "homeomorphism S T f g" |
|
1775 |
using assms by (force simp: homeomorphic_def) |
|
1776 |
then show ?thesis |
|
1777 |
using homeomorphic_def local.iff |
|
1778 |
by (blast intro!: homeomorphism_locally) |
|
1779 |
qed |
|
1780 |
||
1781 |
lemma homeomorphic_local_compactness: |
|
1782 |
fixes S:: "'a::metric_space set" and T:: "'b::metric_space set" |
|
1783 |
shows "S homeomorphic T \<Longrightarrow> locally compact S \<longleftrightarrow> locally compact T" |
|
1784 |
by (simp add: homeomorphic_compactness homeomorphic_locally) |
|
1785 |
||
1786 |
lemma locally_translation: |
|
1787 |
fixes P :: "'a :: real_normed_vector set \<Rightarrow> bool" |
|
1788 |
shows |
|
1789 |
"(\<And>S. P (image (\<lambda>x. a + x) S) \<longleftrightarrow> P S) |
|
1790 |
\<Longrightarrow> locally P (image (\<lambda>x. a + x) S) \<longleftrightarrow> locally P S" |
|
1791 |
apply (rule homeomorphism_locally [OF homeomorphism_translation]) |
|
1792 |
apply (simp add: homeomorphism_def) |
|
1793 |
by metis |
|
1794 |
||
1795 |
lemma locally_injective_linear_image: |
|
1796 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
1797 |
assumes f: "linear f" "inj f" and iff: "\<And>S. P (f ` S) \<longleftrightarrow> Q S" |
|
1798 |
shows "locally P (f ` S) \<longleftrightarrow> locally Q S" |
|
1799 |
apply (rule linear_homeomorphism_image [OF f]) |
|
1800 |
apply (rule_tac f=g and g = f in homeomorphism_locally, assumption) |
|
1801 |
by (metis iff homeomorphism_def) |
|
1802 |
||
1803 |
lemma locally_open_map_image: |
|
1804 |
fixes f :: "'a::real_normed_vector \<Rightarrow> 'b::real_normed_vector" |
|
1805 |
assumes P: "locally P S" |
|
1806 |
and f: "continuous_on S f" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1807 |
and oo: "\<And>t. openin (top_of_set S) t |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1808 |
\<Longrightarrow> openin (top_of_set (f ` S)) (f ` t)" |
69620 | 1809 |
and Q: "\<And>t. \<lbrakk>t \<subseteq> S; P t\<rbrakk> \<Longrightarrow> Q(f ` t)" |
1810 |
shows "locally Q (f ` S)" |
|
1811 |
proof (clarsimp simp add: locally_def) |
|
1812 |
fix W y |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1813 |
assume oiw: "openin (top_of_set (f ` S)) W" and "y \<in> W" |
69620 | 1814 |
then have "W \<subseteq> f ` S" by (simp add: openin_euclidean_subtopology_iff) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1815 |
have oivf: "openin (top_of_set S) (S \<inter> f -` W)" |
69620 | 1816 |
by (rule continuous_on_open [THEN iffD1, rule_format, OF f oiw]) |
1817 |
then obtain x where "x \<in> S" "f x = y" |
|
1818 |
using \<open>W \<subseteq> f ` S\<close> \<open>y \<in> W\<close> by blast |
|
1819 |
then obtain U V |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1820 |
where "openin (top_of_set S) U" "P V" "x \<in> U" "U \<subseteq> V" "V \<subseteq> S \<inter> f -` W" |
69620 | 1821 |
using P [unfolded locally_def, rule_format, of "(S \<inter> f -` W)" x] oivf \<open>y \<in> W\<close> |
1822 |
by auto |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1823 |
then show "\<exists>X. openin (top_of_set (f ` S)) X \<and> (\<exists>Y. Q Y \<and> y \<in> X \<and> X \<subseteq> Y \<and> Y \<subseteq> W)" |
69620 | 1824 |
apply (rule_tac x="f ` U" in exI) |
1825 |
apply (rule conjI, blast intro!: oo) |
|
1826 |
apply (rule_tac x="f ` V" in exI) |
|
1827 |
apply (force simp: \<open>f x = y\<close> rev_image_eqI intro: Q) |
|
1828 |
done |
|
1829 |
qed |
|
1830 |
||
1831 |
||
1832 |
subsection\<open>An induction principle for connected sets\<close> |
|
1833 |
||
1834 |
proposition connected_induction: |
|
1835 |
assumes "connected S" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1836 |
and opD: "\<And>T a. \<lbrakk>openin (top_of_set S) T; a \<in> T\<rbrakk> \<Longrightarrow> \<exists>z. z \<in> T \<and> P z" |
69620 | 1837 |
and opI: "\<And>a. a \<in> S |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1838 |
\<Longrightarrow> \<exists>T. openin (top_of_set S) T \<and> a \<in> T \<and> |
69620 | 1839 |
(\<forall>x \<in> T. \<forall>y \<in> T. P x \<and> P y \<and> Q x \<longrightarrow> Q y)" |
1840 |
and etc: "a \<in> S" "b \<in> S" "P a" "P b" "Q a" |
|
1841 |
shows "Q b" |
|
1842 |
proof - |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1843 |
have 1: "openin (top_of_set S) |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1844 |
{b. \<exists>T. openin (top_of_set S) T \<and> |
69620 | 1845 |
b \<in> T \<and> (\<forall>x\<in>T. P x \<longrightarrow> Q x)}" |
1846 |
apply (subst openin_subopen, clarify) |
|
1847 |
apply (rule_tac x=T in exI, auto) |
|
1848 |
done |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1849 |
have 2: "openin (top_of_set S) |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1850 |
{b. \<exists>T. openin (top_of_set S) T \<and> |
69620 | 1851 |
b \<in> T \<and> (\<forall>x\<in>T. P x \<longrightarrow> \<not> Q x)}" |
1852 |
apply (subst openin_subopen, clarify) |
|
1853 |
apply (rule_tac x=T in exI, auto) |
|
1854 |
done |
|
1855 |
show ?thesis |
|
1856 |
using \<open>connected S\<close> |
|
1857 |
apply (simp only: connected_openin HOL.not_ex HOL.de_Morgan_conj) |
|
1858 |
apply (elim disjE allE) |
|
1859 |
apply (blast intro: 1) |
|
1860 |
apply (blast intro: 2, simp_all) |
|
1861 |
apply clarify apply (metis opI) |
|
1862 |
using opD apply (blast intro: etc elim: dest:) |
|
1863 |
using opI etc apply meson+ |
|
1864 |
done |
|
1865 |
qed |
|
1866 |
||
1867 |
lemma connected_equivalence_relation_gen: |
|
1868 |
assumes "connected S" |
|
1869 |
and etc: "a \<in> S" "b \<in> S" "P a" "P b" |
|
1870 |
and trans: "\<And>x y z. \<lbrakk>R x y; R y z\<rbrakk> \<Longrightarrow> R x z" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1871 |
and opD: "\<And>T a. \<lbrakk>openin (top_of_set S) T; a \<in> T\<rbrakk> \<Longrightarrow> \<exists>z. z \<in> T \<and> P z" |
69620 | 1872 |
and opI: "\<And>a. a \<in> S |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1873 |
\<Longrightarrow> \<exists>T. openin (top_of_set S) T \<and> a \<in> T \<and> |
69620 | 1874 |
(\<forall>x \<in> T. \<forall>y \<in> T. P x \<and> P y \<longrightarrow> R x y)" |
1875 |
shows "R a b" |
|
1876 |
proof - |
|
1877 |
have "\<And>a b c. \<lbrakk>a \<in> S; P a; b \<in> S; c \<in> S; P b; P c; R a b\<rbrakk> \<Longrightarrow> R a c" |
|
1878 |
apply (rule connected_induction [OF \<open>connected S\<close> opD], simp_all) |
|
1879 |
by (meson trans opI) |
|
1880 |
then show ?thesis by (metis etc opI) |
|
1881 |
qed |
|
1882 |
||
1883 |
lemma connected_induction_simple: |
|
1884 |
assumes "connected S" |
|
1885 |
and etc: "a \<in> S" "b \<in> S" "P a" |
|
1886 |
and opI: "\<And>a. a \<in> S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1887 |
\<Longrightarrow> \<exists>T. openin (top_of_set S) T \<and> a \<in> T \<and> |
69620 | 1888 |
(\<forall>x \<in> T. \<forall>y \<in> T. P x \<longrightarrow> P y)" |
1889 |
shows "P b" |
|
1890 |
apply (rule connected_induction [OF \<open>connected S\<close> _, where P = "\<lambda>x. True"], blast) |
|
1891 |
apply (frule opI) |
|
1892 |
using etc apply simp_all |
|
1893 |
done |
|
1894 |
||
1895 |
lemma connected_equivalence_relation: |
|
1896 |
assumes "connected S" |
|
1897 |
and etc: "a \<in> S" "b \<in> S" |
|
1898 |
and sym: "\<And>x y. \<lbrakk>R x y; x \<in> S; y \<in> S\<rbrakk> \<Longrightarrow> R y x" |
|
1899 |
and trans: "\<And>x y z. \<lbrakk>R x y; R y z; x \<in> S; y \<in> S; z \<in> S\<rbrakk> \<Longrightarrow> R x z" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1900 |
and opI: "\<And>a. a \<in> S \<Longrightarrow> \<exists>T. openin (top_of_set S) T \<and> a \<in> T \<and> (\<forall>x \<in> T. R a x)" |
69620 | 1901 |
shows "R a b" |
1902 |
proof - |
|
1903 |
have "\<And>a b c. \<lbrakk>a \<in> S; b \<in> S; c \<in> S; R a b\<rbrakk> \<Longrightarrow> R a c" |
|
1904 |
apply (rule connected_induction_simple [OF \<open>connected S\<close>], simp_all) |
|
1905 |
by (meson local.sym local.trans opI openin_imp_subset subsetCE) |
|
1906 |
then show ?thesis by (metis etc opI) |
|
1907 |
qed |
|
1908 |
||
1909 |
lemma locally_constant_imp_constant: |
|
1910 |
assumes "connected S" |
|
1911 |
and opI: "\<And>a. a \<in> S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1912 |
\<Longrightarrow> \<exists>T. openin (top_of_set S) T \<and> a \<in> T \<and> (\<forall>x \<in> T. f x = f a)" |
69620 | 1913 |
shows "f constant_on S" |
1914 |
proof - |
|
1915 |
have "\<And>x y. x \<in> S \<Longrightarrow> y \<in> S \<Longrightarrow> f x = f y" |
|
1916 |
apply (rule connected_equivalence_relation [OF \<open>connected S\<close>], simp_all) |
|
1917 |
by (metis opI) |
|
1918 |
then show ?thesis |
|
1919 |
by (metis constant_on_def) |
|
1920 |
qed |
|
1921 |
||
1922 |
lemma locally_constant: |
|
1923 |
"connected S \<Longrightarrow> locally (\<lambda>U. f constant_on U) S \<longleftrightarrow> f constant_on S" |
|
1924 |
apply (simp add: locally_def) |
|
1925 |
apply (rule iffI) |
|
1926 |
apply (rule locally_constant_imp_constant, assumption) |
|
1927 |
apply (metis (mono_tags, hide_lams) constant_on_def constant_on_subset openin_subtopology_self) |
|
1928 |
by (meson constant_on_subset openin_imp_subset order_refl) |
|
1929 |
||
1930 |
||
1931 |
subsection\<open>Basic properties of local compactness\<close> |
|
1932 |
||
1933 |
proposition locally_compact: |
|
1934 |
fixes s :: "'a :: metric_space set" |
|
1935 |
shows |
|
1936 |
"locally compact s \<longleftrightarrow> |
|
1937 |
(\<forall>x \<in> s. \<exists>u v. x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1938 |
openin (top_of_set s) u \<and> compact v)" |
69620 | 1939 |
(is "?lhs = ?rhs") |
1940 |
proof |
|
1941 |
assume ?lhs |
|
1942 |
then show ?rhs |
|
1943 |
apply clarify |
|
1944 |
apply (erule_tac w = "s \<inter> ball x 1" in locallyE) |
|
1945 |
by auto |
|
1946 |
next |
|
1947 |
assume r [rule_format]: ?rhs |
|
1948 |
have *: "\<exists>u v. |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1949 |
openin (top_of_set s) u \<and> |
69620 | 1950 |
compact v \<and> x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<inter> T" |
1951 |
if "open T" "x \<in> s" "x \<in> T" for x T |
|
1952 |
proof - |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1953 |
obtain u v where uv: "x \<in> u" "u \<subseteq> v" "v \<subseteq> s" "compact v" "openin (top_of_set s) u" |
69620 | 1954 |
using r [OF \<open>x \<in> s\<close>] by auto |
1955 |
obtain e where "e>0" and e: "cball x e \<subseteq> T" |
|
1956 |
using open_contains_cball \<open>open T\<close> \<open>x \<in> T\<close> by blast |
|
1957 |
show ?thesis |
|
1958 |
apply (rule_tac x="(s \<inter> ball x e) \<inter> u" in exI) |
|
1959 |
apply (rule_tac x="cball x e \<inter> v" in exI) |
|
1960 |
using that \<open>e > 0\<close> e uv |
|
1961 |
apply auto |
|
1962 |
done |
|
1963 |
qed |
|
1964 |
show ?lhs |
|
1965 |
apply (rule locallyI) |
|
1966 |
apply (subst (asm) openin_open) |
|
1967 |
apply (blast intro: *) |
|
1968 |
done |
|
1969 |
qed |
|
1970 |
||
1971 |
lemma locally_compactE: |
|
1972 |
fixes s :: "'a :: metric_space set" |
|
1973 |
assumes "locally compact s" |
|
1974 |
obtains u v where "\<And>x. x \<in> s \<Longrightarrow> x \<in> u x \<and> u x \<subseteq> v x \<and> v x \<subseteq> s \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1975 |
openin (top_of_set s) (u x) \<and> compact (v x)" |
69620 | 1976 |
using assms |
1977 |
unfolding locally_compact by metis |
|
1978 |
||
1979 |
lemma locally_compact_alt: |
|
1980 |
fixes s :: "'a :: heine_borel set" |
|
1981 |
shows "locally compact s \<longleftrightarrow> |
|
1982 |
(\<forall>x \<in> s. \<exists>u. x \<in> u \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
1983 |
openin (top_of_set s) u \<and> compact(closure u) \<and> closure u \<subseteq> s)" |
69620 | 1984 |
apply (simp add: locally_compact) |
1985 |
apply (intro ball_cong ex_cong refl iffI) |
|
1986 |
apply (metis bounded_subset closure_eq closure_mono compact_eq_bounded_closed dual_order.trans) |
|
1987 |
by (meson closure_subset compact_closure) |
|
1988 |
||
1989 |
lemma locally_compact_Int_cball: |
|
1990 |
fixes s :: "'a :: heine_borel set" |
|
1991 |
shows "locally compact s \<longleftrightarrow> (\<forall>x \<in> s. \<exists>e. 0 < e \<and> closed(cball x e \<inter> s))" |
|
1992 |
(is "?lhs = ?rhs") |
|
1993 |
proof |
|
1994 |
assume ?lhs |
|
1995 |
then show ?rhs |
|
1996 |
apply (simp add: locally_compact openin_contains_cball) |
|
1997 |
apply (clarify | assumption | drule bspec)+ |
|
1998 |
by (metis (no_types, lifting) compact_cball compact_imp_closed compact_Int inf.absorb_iff2 inf.orderE inf_sup_aci(2)) |
|
1999 |
next |
|
2000 |
assume ?rhs |
|
2001 |
then show ?lhs |
|
2002 |
apply (simp add: locally_compact openin_contains_cball) |
|
2003 |
apply (clarify | assumption | drule bspec)+ |
|
2004 |
apply (rule_tac x="ball x e \<inter> s" in exI, simp) |
|
2005 |
apply (rule_tac x="cball x e \<inter> s" in exI) |
|
2006 |
using compact_eq_bounded_closed |
|
2007 |
apply auto |
|
2008 |
apply (metis open_ball le_infI1 mem_ball open_contains_cball_eq) |
|
2009 |
done |
|
2010 |
qed |
|
2011 |
||
2012 |
lemma locally_compact_compact: |
|
2013 |
fixes s :: "'a :: heine_borel set" |
|
2014 |
shows "locally compact s \<longleftrightarrow> |
|
2015 |
(\<forall>k. k \<subseteq> s \<and> compact k |
|
2016 |
\<longrightarrow> (\<exists>u v. k \<subseteq> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2017 |
openin (top_of_set s) u \<and> compact v))" |
69620 | 2018 |
(is "?lhs = ?rhs") |
2019 |
proof |
|
2020 |
assume ?lhs |
|
2021 |
then obtain u v where |
|
2022 |
uv: "\<And>x. x \<in> s \<Longrightarrow> x \<in> u x \<and> u x \<subseteq> v x \<and> v x \<subseteq> s \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2023 |
openin (top_of_set s) (u x) \<and> compact (v x)" |
69620 | 2024 |
by (metis locally_compactE) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2025 |
have *: "\<exists>u v. k \<subseteq> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<and> openin (top_of_set s) u \<and> compact v" |
69620 | 2026 |
if "k \<subseteq> s" "compact k" for k |
2027 |
proof - |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2028 |
have "\<And>C. (\<forall>c\<in>C. openin (top_of_set k) c) \<and> k \<subseteq> \<Union>C \<Longrightarrow> |
69620 | 2029 |
\<exists>D\<subseteq>C. finite D \<and> k \<subseteq> \<Union>D" |
2030 |
using that by (simp add: compact_eq_openin_cover) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2031 |
moreover have "\<forall>c \<in> (\<lambda>x. k \<inter> u x) ` k. openin (top_of_set k) c" |
69620 | 2032 |
using that by clarify (metis subsetD inf.absorb_iff2 openin_subset openin_subtopology_Int_subset topspace_euclidean_subtopology uv) |
2033 |
moreover have "k \<subseteq> \<Union>((\<lambda>x. k \<inter> u x) ` k)" |
|
2034 |
using that by clarsimp (meson subsetCE uv) |
|
2035 |
ultimately obtain D where "D \<subseteq> (\<lambda>x. k \<inter> u x) ` k" "finite D" "k \<subseteq> \<Union>D" |
|
2036 |
by metis |
|
2037 |
then obtain T where T: "T \<subseteq> k" "finite T" "k \<subseteq> \<Union>((\<lambda>x. k \<inter> u x) ` T)" |
|
2038 |
by (metis finite_subset_image) |
|
2039 |
have Tuv: "\<Union>(u ` T) \<subseteq> \<Union>(v ` T)" |
|
2040 |
using T that by (force simp: dest!: uv) |
|
2041 |
show ?thesis |
|
2042 |
apply (rule_tac x="\<Union>(u ` T)" in exI) |
|
2043 |
apply (rule_tac x="\<Union>(v ` T)" in exI) |
|
2044 |
apply (simp add: Tuv) |
|
2045 |
using T that |
|
2046 |
apply (auto simp: dest!: uv) |
|
2047 |
done |
|
2048 |
qed |
|
2049 |
show ?rhs |
|
2050 |
by (blast intro: *) |
|
2051 |
next |
|
2052 |
assume ?rhs |
|
2053 |
then show ?lhs |
|
2054 |
apply (clarsimp simp add: locally_compact) |
|
2055 |
apply (drule_tac x="{x}" in spec, simp) |
|
2056 |
done |
|
2057 |
qed |
|
2058 |
||
2059 |
lemma open_imp_locally_compact: |
|
2060 |
fixes s :: "'a :: heine_borel set" |
|
2061 |
assumes "open s" |
|
2062 |
shows "locally compact s" |
|
2063 |
proof - |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2064 |
have *: "\<exists>u v. x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<and> openin (top_of_set s) u \<and> compact v" |
69620 | 2065 |
if "x \<in> s" for x |
2066 |
proof - |
|
2067 |
obtain e where "e>0" and e: "cball x e \<subseteq> s" |
|
2068 |
using open_contains_cball assms \<open>x \<in> s\<close> by blast |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2069 |
have ope: "openin (top_of_set s) (ball x e)" |
69620 | 2070 |
by (meson e open_ball ball_subset_cball dual_order.trans open_subset) |
2071 |
show ?thesis |
|
2072 |
apply (rule_tac x="ball x e" in exI) |
|
2073 |
apply (rule_tac x="cball x e" in exI) |
|
2074 |
using \<open>e > 0\<close> e apply (auto simp: ope) |
|
2075 |
done |
|
2076 |
qed |
|
2077 |
show ?thesis |
|
2078 |
unfolding locally_compact |
|
2079 |
by (blast intro: *) |
|
2080 |
qed |
|
2081 |
||
2082 |
lemma closed_imp_locally_compact: |
|
2083 |
fixes s :: "'a :: heine_borel set" |
|
2084 |
assumes "closed s" |
|
2085 |
shows "locally compact s" |
|
2086 |
proof - |
|
2087 |
have *: "\<exists>u v. x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> s \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2088 |
openin (top_of_set s) u \<and> compact v" |
69620 | 2089 |
if "x \<in> s" for x |
2090 |
proof - |
|
2091 |
show ?thesis |
|
2092 |
apply (rule_tac x = "s \<inter> ball x 1" in exI) |
|
2093 |
apply (rule_tac x = "s \<inter> cball x 1" in exI) |
|
2094 |
using \<open>x \<in> s\<close> assms apply auto |
|
2095 |
done |
|
2096 |
qed |
|
2097 |
show ?thesis |
|
2098 |
unfolding locally_compact |
|
2099 |
by (blast intro: *) |
|
2100 |
qed |
|
2101 |
||
2102 |
lemma locally_compact_UNIV: "locally compact (UNIV :: 'a :: heine_borel set)" |
|
2103 |
by (simp add: closed_imp_locally_compact) |
|
2104 |
||
2105 |
lemma locally_compact_Int: |
|
2106 |
fixes s :: "'a :: t2_space set" |
|
2107 |
shows "\<lbrakk>locally compact s; locally compact t\<rbrakk> \<Longrightarrow> locally compact (s \<inter> t)" |
|
2108 |
by (simp add: compact_Int locally_Int) |
|
2109 |
||
2110 |
lemma locally_compact_closedin: |
|
2111 |
fixes s :: "'a :: heine_borel set" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2112 |
shows "\<lbrakk>closedin (top_of_set s) t; locally compact s\<rbrakk> |
69620 | 2113 |
\<Longrightarrow> locally compact t" |
2114 |
unfolding closedin_closed |
|
2115 |
using closed_imp_locally_compact locally_compact_Int by blast |
|
2116 |
||
2117 |
lemma locally_compact_delete: |
|
2118 |
fixes s :: "'a :: t1_space set" |
|
2119 |
shows "locally compact s \<Longrightarrow> locally compact (s - {a})" |
|
2120 |
by (auto simp: openin_delete locally_open_subset) |
|
2121 |
||
2122 |
lemma locally_closed: |
|
2123 |
fixes s :: "'a :: heine_borel set" |
|
2124 |
shows "locally closed s \<longleftrightarrow> locally compact s" |
|
2125 |
(is "?lhs = ?rhs") |
|
2126 |
proof |
|
2127 |
assume ?lhs |
|
2128 |
then show ?rhs |
|
2129 |
apply (simp only: locally_def) |
|
2130 |
apply (erule all_forward imp_forward asm_rl exE)+ |
|
2131 |
apply (rule_tac x = "u \<inter> ball x 1" in exI) |
|
2132 |
apply (rule_tac x = "v \<inter> cball x 1" in exI) |
|
2133 |
apply (force intro: openin_trans) |
|
2134 |
done |
|
2135 |
next |
|
2136 |
assume ?rhs then show ?lhs |
|
2137 |
using compact_eq_bounded_closed locally_mono by blast |
|
2138 |
qed |
|
2139 |
||
2140 |
lemma locally_compact_openin_Un: |
|
2141 |
fixes S :: "'a::euclidean_space set" |
|
2142 |
assumes LCS: "locally compact S" and LCT:"locally compact T" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2143 |
and opS: "openin (top_of_set (S \<union> T)) S" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2144 |
and opT: "openin (top_of_set (S \<union> T)) T" |
69620 | 2145 |
shows "locally compact (S \<union> T)" |
2146 |
proof - |
|
2147 |
have "\<exists>e>0. closed (cball x e \<inter> (S \<union> T))" if "x \<in> S" for x |
|
2148 |
proof - |
|
2149 |
obtain e1 where "e1 > 0" and e1: "closed (cball x e1 \<inter> S)" |
|
2150 |
using LCS \<open>x \<in> S\<close> unfolding locally_compact_Int_cball by blast |
|
2151 |
moreover obtain e2 where "e2 > 0" and e2: "cball x e2 \<inter> (S \<union> T) \<subseteq> S" |
|
2152 |
by (meson \<open>x \<in> S\<close> opS openin_contains_cball) |
|
2153 |
then have "cball x e2 \<inter> (S \<union> T) = cball x e2 \<inter> S" |
|
2154 |
by force |
|
2155 |
ultimately show ?thesis |
|
2156 |
apply (rule_tac x="min e1 e2" in exI) |
|
2157 |
apply (auto simp: cball_min_Int \<open>e2 > 0\<close> inf_assoc closed_Int) |
|
2158 |
by (metis closed_Int closed_cball inf_left_commute) |
|
2159 |
qed |
|
2160 |
moreover have "\<exists>e>0. closed (cball x e \<inter> (S \<union> T))" if "x \<in> T" for x |
|
2161 |
proof - |
|
2162 |
obtain e1 where "e1 > 0" and e1: "closed (cball x e1 \<inter> T)" |
|
2163 |
using LCT \<open>x \<in> T\<close> unfolding locally_compact_Int_cball by blast |
|
2164 |
moreover obtain e2 where "e2 > 0" and e2: "cball x e2 \<inter> (S \<union> T) \<subseteq> T" |
|
2165 |
by (meson \<open>x \<in> T\<close> opT openin_contains_cball) |
|
2166 |
then have "cball x e2 \<inter> (S \<union> T) = cball x e2 \<inter> T" |
|
2167 |
by force |
|
2168 |
ultimately show ?thesis |
|
2169 |
apply (rule_tac x="min e1 e2" in exI) |
|
2170 |
apply (auto simp: cball_min_Int \<open>e2 > 0\<close> inf_assoc closed_Int) |
|
2171 |
by (metis closed_Int closed_cball inf_left_commute) |
|
2172 |
qed |
|
2173 |
ultimately show ?thesis |
|
2174 |
by (force simp: locally_compact_Int_cball) |
|
2175 |
qed |
|
2176 |
||
2177 |
lemma locally_compact_closedin_Un: |
|
2178 |
fixes S :: "'a::euclidean_space set" |
|
2179 |
assumes LCS: "locally compact S" and LCT:"locally compact T" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2180 |
and clS: "closedin (top_of_set (S \<union> T)) S" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2181 |
and clT: "closedin (top_of_set (S \<union> T)) T" |
69620 | 2182 |
shows "locally compact (S \<union> T)" |
2183 |
proof - |
|
2184 |
have "\<exists>e>0. closed (cball x e \<inter> (S \<union> T))" if "x \<in> S" "x \<in> T" for x |
|
2185 |
proof - |
|
2186 |
obtain e1 where "e1 > 0" and e1: "closed (cball x e1 \<inter> S)" |
|
2187 |
using LCS \<open>x \<in> S\<close> unfolding locally_compact_Int_cball by blast |
|
2188 |
moreover |
|
2189 |
obtain e2 where "e2 > 0" and e2: "closed (cball x e2 \<inter> T)" |
|
2190 |
using LCT \<open>x \<in> T\<close> unfolding locally_compact_Int_cball by blast |
|
2191 |
ultimately show ?thesis |
|
2192 |
apply (rule_tac x="min e1 e2" in exI) |
|
2193 |
apply (auto simp: cball_min_Int \<open>e2 > 0\<close> inf_assoc closed_Int Int_Un_distrib) |
|
2194 |
by (metis closed_Int closed_Un closed_cball inf_left_commute) |
|
2195 |
qed |
|
2196 |
moreover |
|
2197 |
have "\<exists>e>0. closed (cball x e \<inter> (S \<union> T))" if x: "x \<in> S" "x \<notin> T" for x |
|
2198 |
proof - |
|
2199 |
obtain e1 where "e1 > 0" and e1: "closed (cball x e1 \<inter> S)" |
|
2200 |
using LCS \<open>x \<in> S\<close> unfolding locally_compact_Int_cball by blast |
|
2201 |
moreover |
|
2202 |
obtain e2 where "e2>0" and "cball x e2 \<inter> (S \<union> T) \<subseteq> S - T" |
|
2203 |
using clT x by (fastforce simp: openin_contains_cball closedin_def) |
|
2204 |
then have "closed (cball x e2 \<inter> T)" |
|
2205 |
proof - |
|
2206 |
have "{} = T - (T - cball x e2)" |
|
2207 |
using Diff_subset Int_Diff \<open>cball x e2 \<inter> (S \<union> T) \<subseteq> S - T\<close> by auto |
|
2208 |
then show ?thesis |
|
2209 |
by (simp add: Diff_Diff_Int inf_commute) |
|
2210 |
qed |
|
2211 |
ultimately show ?thesis |
|
2212 |
apply (rule_tac x="min e1 e2" in exI) |
|
2213 |
apply (auto simp: cball_min_Int \<open>e2 > 0\<close> inf_assoc closed_Int Int_Un_distrib) |
|
2214 |
by (metis closed_Int closed_Un closed_cball inf_left_commute) |
|
2215 |
qed |
|
2216 |
moreover |
|
2217 |
have "\<exists>e>0. closed (cball x e \<inter> (S \<union> T))" if x: "x \<notin> S" "x \<in> T" for x |
|
2218 |
proof - |
|
2219 |
obtain e1 where "e1 > 0" and e1: "closed (cball x e1 \<inter> T)" |
|
2220 |
using LCT \<open>x \<in> T\<close> unfolding locally_compact_Int_cball by blast |
|
2221 |
moreover |
|
2222 |
obtain e2 where "e2>0" and "cball x e2 \<inter> (S \<union> T) \<subseteq> S \<union> T - S" |
|
2223 |
using clS x by (fastforce simp: openin_contains_cball closedin_def) |
|
2224 |
then have "closed (cball x e2 \<inter> S)" |
|
2225 |
by (metis Diff_disjoint Int_empty_right closed_empty inf.left_commute inf.orderE inf_sup_absorb) |
|
2226 |
ultimately show ?thesis |
|
2227 |
apply (rule_tac x="min e1 e2" in exI) |
|
2228 |
apply (auto simp: cball_min_Int \<open>e2 > 0\<close> inf_assoc closed_Int Int_Un_distrib) |
|
2229 |
by (metis closed_Int closed_Un closed_cball inf_left_commute) |
|
2230 |
qed |
|
2231 |
ultimately show ?thesis |
|
2232 |
by (auto simp: locally_compact_Int_cball) |
|
2233 |
qed |
|
2234 |
||
2235 |
lemma locally_compact_Times: |
|
2236 |
fixes S :: "'a::euclidean_space set" and T :: "'b::euclidean_space set" |
|
2237 |
shows "\<lbrakk>locally compact S; locally compact T\<rbrakk> \<Longrightarrow> locally compact (S \<times> T)" |
|
2238 |
by (auto simp: compact_Times locally_Times) |
|
2239 |
||
2240 |
lemma locally_compact_compact_subopen: |
|
2241 |
fixes S :: "'a :: heine_borel set" |
|
2242 |
shows |
|
2243 |
"locally compact S \<longleftrightarrow> |
|
2244 |
(\<forall>K T. K \<subseteq> S \<and> compact K \<and> open T \<and> K \<subseteq> T |
|
2245 |
\<longrightarrow> (\<exists>U V. K \<subseteq> U \<and> U \<subseteq> V \<and> U \<subseteq> T \<and> V \<subseteq> S \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2246 |
openin (top_of_set S) U \<and> compact V))" |
69620 | 2247 |
(is "?lhs = ?rhs") |
2248 |
proof |
|
2249 |
assume L: ?lhs |
|
2250 |
show ?rhs |
|
2251 |
proof clarify |
|
2252 |
fix K :: "'a set" and T :: "'a set" |
|
2253 |
assume "K \<subseteq> S" and "compact K" and "open T" and "K \<subseteq> T" |
|
2254 |
obtain U V where "K \<subseteq> U" "U \<subseteq> V" "V \<subseteq> S" "compact V" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2255 |
and ope: "openin (top_of_set S) U" |
69620 | 2256 |
using L unfolding locally_compact_compact by (meson \<open>K \<subseteq> S\<close> \<open>compact K\<close>) |
2257 |
show "\<exists>U V. K \<subseteq> U \<and> U \<subseteq> V \<and> U \<subseteq> T \<and> V \<subseteq> S \<and> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2258 |
openin (top_of_set S) U \<and> compact V" |
69620 | 2259 |
proof (intro exI conjI) |
2260 |
show "K \<subseteq> U \<inter> T" |
|
2261 |
by (simp add: \<open>K \<subseteq> T\<close> \<open>K \<subseteq> U\<close>) |
|
2262 |
show "U \<inter> T \<subseteq> closure(U \<inter> T)" |
|
2263 |
by (rule closure_subset) |
|
2264 |
show "closure (U \<inter> T) \<subseteq> S" |
|
2265 |
by (metis \<open>U \<subseteq> V\<close> \<open>V \<subseteq> S\<close> \<open>compact V\<close> closure_closed closure_mono compact_imp_closed inf.cobounded1 subset_trans) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2266 |
show "openin (top_of_set S) (U \<inter> T)" |
69620 | 2267 |
by (simp add: \<open>open T\<close> ope openin_Int_open) |
2268 |
show "compact (closure (U \<inter> T))" |
|
2269 |
by (meson Int_lower1 \<open>U \<subseteq> V\<close> \<open>compact V\<close> bounded_subset compact_closure compact_eq_bounded_closed) |
|
2270 |
qed auto |
|
2271 |
qed |
|
2272 |
next |
|
2273 |
assume ?rhs then show ?lhs |
|
2274 |
unfolding locally_compact_compact |
|
2275 |
by (metis open_openin openin_topspace subtopology_superset top.extremum topspace_euclidean_subtopology) |
|
2276 |
qed |
|
2277 |
||
2278 |
||
2279 |
subsection\<open>Sura-Bura's results about compact components of sets\<close> |
|
2280 |
||
2281 |
proposition Sura_Bura_compact: |
|
2282 |
fixes S :: "'a::euclidean_space set" |
|
2283 |
assumes "compact S" and C: "C \<in> components S" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2284 |
shows "C = \<Inter>{T. C \<subseteq> T \<and> openin (top_of_set S) T \<and> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2285 |
closedin (top_of_set S) T}" |
69620 | 2286 |
(is "C = \<Inter>?\<T>") |
2287 |
proof |
|
2288 |
obtain x where x: "C = connected_component_set S x" and "x \<in> S" |
|
2289 |
using C by (auto simp: components_def) |
|
2290 |
have "C \<subseteq> S" |
|
2291 |
by (simp add: C in_components_subset) |
|
2292 |
have "\<Inter>?\<T> \<subseteq> connected_component_set S x" |
|
2293 |
proof (rule connected_component_maximal) |
|
2294 |
have "x \<in> C" |
|
2295 |
by (simp add: \<open>x \<in> S\<close> x) |
|
2296 |
then show "x \<in> \<Inter>?\<T>" |
|
2297 |
by blast |
|
2298 |
have clo: "closed (\<Inter>?\<T>)" |
|
2299 |
by (simp add: \<open>compact S\<close> closed_Inter closedin_compact_eq compact_imp_closed) |
|
2300 |
have False |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2301 |
if K1: "closedin (top_of_set (\<Inter>?\<T>)) K1" and |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2302 |
K2: "closedin (top_of_set (\<Inter>?\<T>)) K2" and |
69620 | 2303 |
K12_Int: "K1 \<inter> K2 = {}" and K12_Un: "K1 \<union> K2 = \<Inter>?\<T>" and "K1 \<noteq> {}" "K2 \<noteq> {}" |
2304 |
for K1 K2 |
|
2305 |
proof - |
|
2306 |
have "closed K1" "closed K2" |
|
2307 |
using closedin_closed_trans clo K1 K2 by blast+ |
|
2308 |
then obtain V1 V2 where "open V1" "open V2" "K1 \<subseteq> V1" "K2 \<subseteq> V2" and V12: "V1 \<inter> V2 = {}" |
|
2309 |
using separation_normal \<open>K1 \<inter> K2 = {}\<close> by metis |
|
2310 |
have SV12_ne: "(S - (V1 \<union> V2)) \<inter> (\<Inter>?\<T>) \<noteq> {}" |
|
2311 |
proof (rule compact_imp_fip) |
|
2312 |
show "compact (S - (V1 \<union> V2))" |
|
2313 |
by (simp add: \<open>open V1\<close> \<open>open V2\<close> \<open>compact S\<close> compact_diff open_Un) |
|
2314 |
show clo\<T>: "closed T" if "T \<in> ?\<T>" for T |
|
2315 |
using that \<open>compact S\<close> |
|
2316 |
by (force intro: closedin_closed_trans simp add: compact_imp_closed) |
|
2317 |
show "(S - (V1 \<union> V2)) \<inter> \<Inter>\<F> \<noteq> {}" if "finite \<F>" and \<F>: "\<F> \<subseteq> ?\<T>" for \<F> |
|
2318 |
proof |
|
2319 |
assume djo: "(S - (V1 \<union> V2)) \<inter> \<Inter>\<F> = {}" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2320 |
obtain D where opeD: "openin (top_of_set S) D" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2321 |
and cloD: "closedin (top_of_set S) D" |
69620 | 2322 |
and "C \<subseteq> D" and DV12: "D \<subseteq> V1 \<union> V2" |
2323 |
proof (cases "\<F> = {}") |
|
2324 |
case True |
|
2325 |
with \<open>C \<subseteq> S\<close> djo that show ?thesis |
|
2326 |
by force |
|
2327 |
next |
|
2328 |
case False show ?thesis |
|
2329 |
proof |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2330 |
show ope: "openin (top_of_set S) (\<Inter>\<F>)" |
69620 | 2331 |
using openin_Inter \<open>finite \<F>\<close> False \<F> by blast |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2332 |
then show "closedin (top_of_set S) (\<Inter>\<F>)" |
69620 | 2333 |
by (meson clo\<T> \<F> closed_Inter closed_subset openin_imp_subset subset_eq) |
2334 |
show "C \<subseteq> \<Inter>\<F>" |
|
2335 |
using \<F> by auto |
|
2336 |
show "\<Inter>\<F> \<subseteq> V1 \<union> V2" |
|
2337 |
using ope djo openin_imp_subset by fastforce |
|
2338 |
qed |
|
2339 |
qed |
|
2340 |
have "connected C" |
|
2341 |
by (simp add: x) |
|
2342 |
have "closed D" |
|
2343 |
using \<open>compact S\<close> cloD closedin_closed_trans compact_imp_closed by blast |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2344 |
have cloV1: "closedin (top_of_set D) (D \<inter> closure V1)" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2345 |
and cloV2: "closedin (top_of_set D) (D \<inter> closure V2)" |
69620 | 2346 |
by (simp_all add: closedin_closed_Int) |
2347 |
moreover have "D \<inter> closure V1 = D \<inter> V1" "D \<inter> closure V2 = D \<inter> V2" |
|
2348 |
apply safe |
|
2349 |
using \<open>D \<subseteq> V1 \<union> V2\<close> \<open>open V1\<close> \<open>open V2\<close> V12 |
|
2350 |
apply (simp_all add: closure_subset [THEN subsetD] closure_iff_nhds_not_empty, blast+) |
|
2351 |
done |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2352 |
ultimately have cloDV1: "closedin (top_of_set D) (D \<inter> V1)" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2353 |
and cloDV2: "closedin (top_of_set D) (D \<inter> V2)" |
69620 | 2354 |
by metis+ |
2355 |
then obtain U1 U2 where "closed U1" "closed U2" |
|
2356 |
and D1: "D \<inter> V1 = D \<inter> U1" and D2: "D \<inter> V2 = D \<inter> U2" |
|
2357 |
by (auto simp: closedin_closed) |
|
2358 |
have "D \<inter> U1 \<inter> C \<noteq> {}" |
|
2359 |
proof |
|
2360 |
assume "D \<inter> U1 \<inter> C = {}" |
|
2361 |
then have *: "C \<subseteq> D \<inter> V2" |
|
2362 |
using D1 DV12 \<open>C \<subseteq> D\<close> by auto |
|
2363 |
have "\<Inter>?\<T> \<subseteq> D \<inter> V2" |
|
2364 |
apply (rule Inter_lower) |
|
2365 |
using * apply simp |
|
2366 |
by (meson cloDV2 \<open>open V2\<close> cloD closedin_trans le_inf_iff opeD openin_Int_open) |
|
2367 |
then show False |
|
2368 |
using K1 V12 \<open>K1 \<noteq> {}\<close> \<open>K1 \<subseteq> V1\<close> closedin_imp_subset by blast |
|
2369 |
qed |
|
2370 |
moreover have "D \<inter> U2 \<inter> C \<noteq> {}" |
|
2371 |
proof |
|
2372 |
assume "D \<inter> U2 \<inter> C = {}" |
|
2373 |
then have *: "C \<subseteq> D \<inter> V1" |
|
2374 |
using D2 DV12 \<open>C \<subseteq> D\<close> by auto |
|
2375 |
have "\<Inter>?\<T> \<subseteq> D \<inter> V1" |
|
2376 |
apply (rule Inter_lower) |
|
2377 |
using * apply simp |
|
2378 |
by (meson cloDV1 \<open>open V1\<close> cloD closedin_trans le_inf_iff opeD openin_Int_open) |
|
2379 |
then show False |
|
2380 |
using K2 V12 \<open>K2 \<noteq> {}\<close> \<open>K2 \<subseteq> V2\<close> closedin_imp_subset by blast |
|
2381 |
qed |
|
2382 |
ultimately show False |
|
2383 |
using \<open>connected C\<close> unfolding connected_closed |
|
2384 |
apply (simp only: not_ex) |
|
2385 |
apply (drule_tac x="D \<inter> U1" in spec) |
|
2386 |
apply (drule_tac x="D \<inter> U2" in spec) |
|
2387 |
using \<open>C \<subseteq> D\<close> D1 D2 V12 DV12 \<open>closed U1\<close> \<open>closed U2\<close> \<open>closed D\<close> |
|
2388 |
by blast |
|
2389 |
qed |
|
2390 |
qed |
|
2391 |
show False |
|
2392 |
by (metis (full_types) DiffE UnE Un_upper2 SV12_ne \<open>K1 \<subseteq> V1\<close> \<open>K2 \<subseteq> V2\<close> disjoint_iff_not_equal subsetCE sup_ge1 K12_Un) |
|
2393 |
qed |
|
2394 |
then show "connected (\<Inter>?\<T>)" |
|
2395 |
by (auto simp: connected_closedin_eq) |
|
2396 |
show "\<Inter>?\<T> \<subseteq> S" |
|
2397 |
by (fastforce simp: C in_components_subset) |
|
2398 |
qed |
|
2399 |
with x show "\<Inter>?\<T> \<subseteq> C" by simp |
|
2400 |
qed auto |
|
2401 |
||
2402 |
||
2403 |
corollary Sura_Bura_clopen_subset: |
|
2404 |
fixes S :: "'a::euclidean_space set" |
|
2405 |
assumes S: "locally compact S" and C: "C \<in> components S" and "compact C" |
|
2406 |
and U: "open U" "C \<subseteq> U" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2407 |
obtains K where "openin (top_of_set S) K" "compact K" "C \<subseteq> K" "K \<subseteq> U" |
69620 | 2408 |
proof (rule ccontr) |
2409 |
assume "\<not> thesis" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2410 |
with that have neg: "\<nexists>K. openin (top_of_set S) K \<and> compact K \<and> C \<subseteq> K \<and> K \<subseteq> U" |
69620 | 2411 |
by metis |
2412 |
obtain V K where "C \<subseteq> V" "V \<subseteq> U" "V \<subseteq> K" "K \<subseteq> S" "compact K" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2413 |
and opeSV: "openin (top_of_set S) V" |
69620 | 2414 |
using S U \<open>compact C\<close> |
2415 |
apply (simp add: locally_compact_compact_subopen) |
|
2416 |
by (meson C in_components_subset) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2417 |
let ?\<T> = "{T. C \<subseteq> T \<and> openin (top_of_set K) T \<and> compact T \<and> T \<subseteq> K}" |
69620 | 2418 |
have CK: "C \<in> components K" |
2419 |
by (meson C \<open>C \<subseteq> V\<close> \<open>K \<subseteq> S\<close> \<open>V \<subseteq> K\<close> components_intermediate_subset subset_trans) |
|
2420 |
with \<open>compact K\<close> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2421 |
have "C = \<Inter>{T. C \<subseteq> T \<and> openin (top_of_set K) T \<and> closedin (top_of_set K) T}" |
69620 | 2422 |
by (simp add: Sura_Bura_compact) |
2423 |
then have Ceq: "C = \<Inter>?\<T>" |
|
2424 |
by (simp add: closedin_compact_eq \<open>compact K\<close>) |
|
2425 |
obtain W where "open W" and W: "V = S \<inter> W" |
|
2426 |
using opeSV by (auto simp: openin_open) |
|
2427 |
have "-(U \<inter> W) \<inter> \<Inter>?\<T> \<noteq> {}" |
|
2428 |
proof (rule closed_imp_fip_compact) |
|
2429 |
show "- (U \<inter> W) \<inter> \<Inter>\<F> \<noteq> {}" |
|
2430 |
if "finite \<F>" and \<F>: "\<F> \<subseteq> ?\<T>" for \<F> |
|
2431 |
proof (cases "\<F> = {}") |
|
2432 |
case True |
|
2433 |
have False if "U = UNIV" "W = UNIV" |
|
2434 |
proof - |
|
2435 |
have "V = S" |
|
2436 |
by (simp add: W \<open>W = UNIV\<close>) |
|
2437 |
with neg show False |
|
2438 |
using \<open>C \<subseteq> V\<close> \<open>K \<subseteq> S\<close> \<open>V \<subseteq> K\<close> \<open>V \<subseteq> U\<close> \<open>compact K\<close> by auto |
|
2439 |
qed |
|
2440 |
with True show ?thesis |
|
2441 |
by auto |
|
2442 |
next |
|
2443 |
case False |
|
2444 |
show ?thesis |
|
2445 |
proof |
|
2446 |
assume "- (U \<inter> W) \<inter> \<Inter>\<F> = {}" |
|
2447 |
then have FUW: "\<Inter>\<F> \<subseteq> U \<inter> W" |
|
2448 |
by blast |
|
2449 |
have "C \<subseteq> \<Inter>\<F>" |
|
2450 |
using \<F> by auto |
|
2451 |
moreover have "compact (\<Inter>\<F>)" |
|
2452 |
by (metis (no_types, lifting) compact_Inter False mem_Collect_eq subsetCE \<F>) |
|
2453 |
moreover have "\<Inter>\<F> \<subseteq> K" |
|
2454 |
using False that(2) by fastforce |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2455 |
moreover have opeKF: "openin (top_of_set K) (\<Inter>\<F>)" |
69620 | 2456 |
using False \<F> \<open>finite \<F>\<close> by blast |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2457 |
then have opeVF: "openin (top_of_set V) (\<Inter>\<F>)" |
69620 | 2458 |
using W \<open>K \<subseteq> S\<close> \<open>V \<subseteq> K\<close> opeKF \<open>\<Inter>\<F> \<subseteq> K\<close> FUW openin_subset_trans by fastforce |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2459 |
then have "openin (top_of_set S) (\<Inter>\<F>)" |
69620 | 2460 |
by (metis opeSV openin_trans) |
2461 |
moreover have "\<Inter>\<F> \<subseteq> U" |
|
2462 |
by (meson \<open>V \<subseteq> U\<close> opeVF dual_order.trans openin_imp_subset) |
|
2463 |
ultimately show False |
|
2464 |
using neg by blast |
|
2465 |
qed |
|
2466 |
qed |
|
2467 |
qed (use \<open>open W\<close> \<open>open U\<close> in auto) |
|
2468 |
with W Ceq \<open>C \<subseteq> V\<close> \<open>C \<subseteq> U\<close> show False |
|
2469 |
by auto |
|
2470 |
qed |
|
2471 |
||
2472 |
||
2473 |
corollary Sura_Bura_clopen_subset_alt: |
|
2474 |
fixes S :: "'a::euclidean_space set" |
|
2475 |
assumes S: "locally compact S" and C: "C \<in> components S" and "compact C" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2476 |
and opeSU: "openin (top_of_set S) U" and "C \<subseteq> U" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2477 |
obtains K where "openin (top_of_set S) K" "compact K" "C \<subseteq> K" "K \<subseteq> U" |
69620 | 2478 |
proof - |
2479 |
obtain V where "open V" "U = S \<inter> V" |
|
2480 |
using opeSU by (auto simp: openin_open) |
|
2481 |
with \<open>C \<subseteq> U\<close> have "C \<subseteq> V" |
|
2482 |
by auto |
|
2483 |
then show ?thesis |
|
2484 |
using Sura_Bura_clopen_subset [OF S C \<open>compact C\<close> \<open>open V\<close>] |
|
2485 |
by (metis \<open>U = S \<inter> V\<close> inf.bounded_iff openin_imp_subset that) |
|
2486 |
qed |
|
2487 |
||
2488 |
corollary Sura_Bura: |
|
2489 |
fixes S :: "'a::euclidean_space set" |
|
2490 |
assumes "locally compact S" "C \<in> components S" "compact C" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2491 |
shows "C = \<Inter> {K. C \<subseteq> K \<and> compact K \<and> openin (top_of_set S) K}" |
69620 | 2492 |
(is "C = ?rhs") |
2493 |
proof |
|
2494 |
show "?rhs \<subseteq> C" |
|
2495 |
proof (clarsimp, rule ccontr) |
|
2496 |
fix x |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2497 |
assume *: "\<forall>X. C \<subseteq> X \<and> compact X \<and> openin (top_of_set S) X \<longrightarrow> x \<in> X" |
69620 | 2498 |
and "x \<notin> C" |
2499 |
obtain U V where "open U" "open V" "{x} \<subseteq> U" "C \<subseteq> V" "U \<inter> V = {}" |
|
2500 |
using separation_normal [of "{x}" C] |
|
2501 |
by (metis Int_empty_left \<open>x \<notin> C\<close> \<open>compact C\<close> closed_empty closed_insert compact_imp_closed insert_disjoint(1)) |
|
2502 |
have "x \<notin> V" |
|
2503 |
using \<open>U \<inter> V = {}\<close> \<open>{x} \<subseteq> U\<close> by blast |
|
2504 |
then show False |
|
2505 |
by (meson "*" Sura_Bura_clopen_subset \<open>C \<subseteq> V\<close> \<open>open V\<close> assms(1) assms(2) assms(3) subsetCE) |
|
2506 |
qed |
|
2507 |
qed blast |
|
2508 |
||
2509 |
||
2510 |
subsection\<open>Special cases of local connectedness and path connectedness\<close> |
|
2511 |
||
2512 |
lemma locally_connected_1: |
|
2513 |
assumes |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2514 |
"\<And>v x. \<lbrakk>openin (top_of_set S) v; x \<in> v\<rbrakk> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2515 |
\<Longrightarrow> \<exists>u. openin (top_of_set S) u \<and> |
69620 | 2516 |
connected u \<and> x \<in> u \<and> u \<subseteq> v" |
2517 |
shows "locally connected S" |
|
2518 |
apply (clarsimp simp add: locally_def) |
|
2519 |
apply (drule assms; blast) |
|
2520 |
done |
|
2521 |
||
2522 |
lemma locally_connected_2: |
|
2523 |
assumes "locally connected S" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2524 |
"openin (top_of_set S) t" |
69620 | 2525 |
"x \<in> t" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2526 |
shows "openin (top_of_set S) (connected_component_set t x)" |
69620 | 2527 |
proof - |
2528 |
{ fix y :: 'a |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2529 |
let ?SS = "top_of_set S" |
69620 | 2530 |
assume 1: "openin ?SS t" |
2531 |
"\<forall>w x. openin ?SS w \<and> x \<in> w \<longrightarrow> (\<exists>u. openin ?SS u \<and> (\<exists>v. connected v \<and> x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> w))" |
|
2532 |
and "connected_component t x y" |
|
2533 |
then have "y \<in> t" and y: "y \<in> connected_component_set t x" |
|
2534 |
using connected_component_subset by blast+ |
|
2535 |
obtain F where |
|
2536 |
"\<forall>x y. (\<exists>w. openin ?SS w \<and> (\<exists>u. connected u \<and> x \<in> w \<and> w \<subseteq> u \<and> u \<subseteq> y)) = (openin ?SS (F x y) \<and> (\<exists>u. connected u \<and> x \<in> F x y \<and> F x y \<subseteq> u \<and> u \<subseteq> y))" |
|
2537 |
by moura |
|
2538 |
then obtain G where |
|
2539 |
"\<forall>a A. (\<exists>U. openin ?SS U \<and> (\<exists>V. connected V \<and> a \<in> U \<and> U \<subseteq> V \<and> V \<subseteq> A)) = (openin ?SS (F a A) \<and> connected (G a A) \<and> a \<in> F a A \<and> F a A \<subseteq> G a A \<and> G a A \<subseteq> A)" |
|
2540 |
by moura |
|
2541 |
then have *: "openin ?SS (F y t) \<and> connected (G y t) \<and> y \<in> F y t \<and> F y t \<subseteq> G y t \<and> G y t \<subseteq> t" |
|
2542 |
using 1 \<open>y \<in> t\<close> by presburger |
|
2543 |
have "G y t \<subseteq> connected_component_set t y" |
|
2544 |
by (metis (no_types) * connected_component_eq_self connected_component_mono contra_subsetD) |
|
2545 |
then have "\<exists>A. openin ?SS A \<and> y \<in> A \<and> A \<subseteq> connected_component_set t x" |
|
2546 |
by (metis (no_types) * connected_component_eq dual_order.trans y) |
|
2547 |
} |
|
2548 |
then show ?thesis |
|
2549 |
using assms openin_subopen by (force simp: locally_def) |
|
2550 |
qed |
|
2551 |
||
2552 |
lemma locally_connected_3: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2553 |
assumes "\<And>t x. \<lbrakk>openin (top_of_set S) t; x \<in> t\<rbrakk> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2554 |
\<Longrightarrow> openin (top_of_set S) |
69620 | 2555 |
(connected_component_set t x)" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2556 |
"openin (top_of_set S) v" "x \<in> v" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2557 |
shows "\<exists>u. openin (top_of_set S) u \<and> connected u \<and> x \<in> u \<and> u \<subseteq> v" |
69620 | 2558 |
using assms connected_component_subset by fastforce |
2559 |
||
2560 |
lemma locally_connected: |
|
2561 |
"locally connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2562 |
(\<forall>v x. openin (top_of_set S) v \<and> x \<in> v |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2563 |
\<longrightarrow> (\<exists>u. openin (top_of_set S) u \<and> connected u \<and> x \<in> u \<and> u \<subseteq> v))" |
69620 | 2564 |
by (metis locally_connected_1 locally_connected_2 locally_connected_3) |
2565 |
||
2566 |
lemma locally_connected_open_connected_component: |
|
2567 |
"locally connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2568 |
(\<forall>t x. openin (top_of_set S) t \<and> x \<in> t |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2569 |
\<longrightarrow> openin (top_of_set S) (connected_component_set t x))" |
69620 | 2570 |
by (metis locally_connected_1 locally_connected_2 locally_connected_3) |
2571 |
||
2572 |
lemma locally_path_connected_1: |
|
2573 |
assumes |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2574 |
"\<And>v x. \<lbrakk>openin (top_of_set S) v; x \<in> v\<rbrakk> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2575 |
\<Longrightarrow> \<exists>u. openin (top_of_set S) u \<and> path_connected u \<and> x \<in> u \<and> u \<subseteq> v" |
69620 | 2576 |
shows "locally path_connected S" |
2577 |
apply (clarsimp simp add: locally_def) |
|
2578 |
apply (drule assms; blast) |
|
2579 |
done |
|
2580 |
||
2581 |
lemma locally_path_connected_2: |
|
2582 |
assumes "locally path_connected S" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2583 |
"openin (top_of_set S) t" |
69620 | 2584 |
"x \<in> t" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2585 |
shows "openin (top_of_set S) (path_component_set t x)" |
69620 | 2586 |
proof - |
2587 |
{ fix y :: 'a |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2588 |
let ?SS = "top_of_set S" |
69620 | 2589 |
assume 1: "openin ?SS t" |
2590 |
"\<forall>w x. openin ?SS w \<and> x \<in> w \<longrightarrow> (\<exists>u. openin ?SS u \<and> (\<exists>v. path_connected v \<and> x \<in> u \<and> u \<subseteq> v \<and> v \<subseteq> w))" |
|
2591 |
and "path_component t x y" |
|
2592 |
then have "y \<in> t" and y: "y \<in> path_component_set t x" |
|
2593 |
using path_component_mem(2) by blast+ |
|
2594 |
obtain F where |
|
2595 |
"\<forall>x y. (\<exists>w. openin ?SS w \<and> (\<exists>u. path_connected u \<and> x \<in> w \<and> w \<subseteq> u \<and> u \<subseteq> y)) = (openin ?SS (F x y) \<and> (\<exists>u. path_connected u \<and> x \<in> F x y \<and> F x y \<subseteq> u \<and> u \<subseteq> y))" |
|
2596 |
by moura |
|
2597 |
then obtain G where |
|
2598 |
"\<forall>a A. (\<exists>U. openin ?SS U \<and> (\<exists>V. path_connected V \<and> a \<in> U \<and> U \<subseteq> V \<and> V \<subseteq> A)) = (openin ?SS (F a A) \<and> path_connected (G a A) \<and> a \<in> F a A \<and> F a A \<subseteq> G a A \<and> G a A \<subseteq> A)" |
|
2599 |
by moura |
|
2600 |
then have *: "openin ?SS (F y t) \<and> path_connected (G y t) \<and> y \<in> F y t \<and> F y t \<subseteq> G y t \<and> G y t \<subseteq> t" |
|
2601 |
using 1 \<open>y \<in> t\<close> by presburger |
|
2602 |
have "G y t \<subseteq> path_component_set t y" |
|
69712 | 2603 |
using * path_component_maximal rev_subsetD by blast |
69620 | 2604 |
then have "\<exists>A. openin ?SS A \<and> y \<in> A \<and> A \<subseteq> path_component_set t x" |
2605 |
by (metis "*" \<open>G y t \<subseteq> path_component_set t y\<close> dual_order.trans path_component_eq y) |
|
2606 |
} |
|
2607 |
then show ?thesis |
|
2608 |
using assms openin_subopen by (force simp: locally_def) |
|
2609 |
qed |
|
2610 |
||
2611 |
lemma locally_path_connected_3: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2612 |
assumes "\<And>t x. \<lbrakk>openin (top_of_set S) t; x \<in> t\<rbrakk> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2613 |
\<Longrightarrow> openin (top_of_set S) (path_component_set t x)" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2614 |
"openin (top_of_set S) v" "x \<in> v" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2615 |
shows "\<exists>u. openin (top_of_set S) u \<and> path_connected u \<and> x \<in> u \<and> u \<subseteq> v" |
69620 | 2616 |
proof - |
2617 |
have "path_component v x x" |
|
2618 |
by (meson assms(3) path_component_refl) |
|
2619 |
then show ?thesis |
|
2620 |
by (metis assms(1) assms(2) assms(3) mem_Collect_eq path_component_subset path_connected_path_component) |
|
2621 |
qed |
|
2622 |
||
2623 |
proposition locally_path_connected: |
|
2624 |
"locally path_connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2625 |
(\<forall>v x. openin (top_of_set S) v \<and> x \<in> v |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2626 |
\<longrightarrow> (\<exists>u. openin (top_of_set S) u \<and> path_connected u \<and> x \<in> u \<and> u \<subseteq> v))" |
69620 | 2627 |
by (metis locally_path_connected_1 locally_path_connected_2 locally_path_connected_3) |
2628 |
||
2629 |
proposition locally_path_connected_open_path_component: |
|
2630 |
"locally path_connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2631 |
(\<forall>t x. openin (top_of_set S) t \<and> x \<in> t |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2632 |
\<longrightarrow> openin (top_of_set S) (path_component_set t x))" |
69620 | 2633 |
by (metis locally_path_connected_1 locally_path_connected_2 locally_path_connected_3) |
2634 |
||
2635 |
lemma locally_connected_open_component: |
|
2636 |
"locally connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2637 |
(\<forall>t c. openin (top_of_set S) t \<and> c \<in> components t |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2638 |
\<longrightarrow> openin (top_of_set S) c)" |
69620 | 2639 |
by (metis components_iff locally_connected_open_connected_component) |
2640 |
||
2641 |
proposition locally_connected_im_kleinen: |
|
2642 |
"locally connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2643 |
(\<forall>v x. openin (top_of_set S) v \<and> x \<in> v |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2644 |
\<longrightarrow> (\<exists>u. openin (top_of_set S) u \<and> |
69620 | 2645 |
x \<in> u \<and> u \<subseteq> v \<and> |
2646 |
(\<forall>y. y \<in> u \<longrightarrow> (\<exists>c. connected c \<and> c \<subseteq> v \<and> x \<in> c \<and> y \<in> c))))" |
|
2647 |
(is "?lhs = ?rhs") |
|
2648 |
proof |
|
2649 |
assume ?lhs |
|
2650 |
then show ?rhs |
|
2651 |
by (fastforce simp add: locally_connected) |
|
2652 |
next |
|
2653 |
assume ?rhs |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2654 |
have *: "\<exists>T. openin (top_of_set S) T \<and> x \<in> T \<and> T \<subseteq> c" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2655 |
if "openin (top_of_set S) t" and c: "c \<in> components t" and "x \<in> c" for t c x |
69620 | 2656 |
proof - |
2657 |
from that \<open>?rhs\<close> [rule_format, of t x] |
|
2658 |
obtain u where u: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2659 |
"openin (top_of_set S) u \<and> x \<in> u \<and> u \<subseteq> t \<and> |
69620 | 2660 |
(\<forall>y. y \<in> u \<longrightarrow> (\<exists>c. connected c \<and> c \<subseteq> t \<and> x \<in> c \<and> y \<in> c))" |
2661 |
using in_components_subset by auto |
|
2662 |
obtain F :: "'a set \<Rightarrow> 'a set \<Rightarrow> 'a" where |
|
2663 |
"\<forall>x y. (\<exists>z. z \<in> x \<and> y = connected_component_set x z) = (F x y \<in> x \<and> y = connected_component_set x (F x y))" |
|
2664 |
by moura |
|
2665 |
then have F: "F t c \<in> t \<and> c = connected_component_set t (F t c)" |
|
2666 |
by (meson components_iff c) |
|
2667 |
obtain G :: "'a set \<Rightarrow> 'a set \<Rightarrow> 'a" where |
|
2668 |
G: "\<forall>x y. (\<exists>z. z \<in> y \<and> z \<notin> x) = (G x y \<in> y \<and> G x y \<notin> x)" |
|
2669 |
by moura |
|
2670 |
have "G c u \<notin> u \<or> G c u \<in> c" |
|
2671 |
using F by (metis (full_types) u connected_componentI connected_component_eq mem_Collect_eq that(3)) |
|
2672 |
then show ?thesis |
|
2673 |
using G u by auto |
|
2674 |
qed |
|
2675 |
show ?lhs |
|
2676 |
apply (clarsimp simp add: locally_connected_open_component) |
|
2677 |
apply (subst openin_subopen) |
|
2678 |
apply (blast intro: *) |
|
2679 |
done |
|
2680 |
qed |
|
2681 |
||
2682 |
proposition locally_path_connected_im_kleinen: |
|
2683 |
"locally path_connected S \<longleftrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2684 |
(\<forall>v x. openin (top_of_set S) v \<and> x \<in> v |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2685 |
\<longrightarrow> (\<exists>u. openin (top_of_set S) u \<and> |
69620 | 2686 |
x \<in> u \<and> u \<subseteq> v \<and> |
2687 |
(\<forall>y. y \<in> u \<longrightarrow> (\<exists>p. path p \<and> path_image p \<subseteq> v \<and> |
|
2688 |
pathstart p = x \<and> pathfinish p = y))))" |
|
2689 |
(is "?lhs = ?rhs") |
|
2690 |
proof |
|
2691 |
assume ?lhs |
|
2692 |
then show ?rhs |
|
2693 |
apply (simp add: locally_path_connected path_connected_def) |
|
2694 |
apply (erule all_forward ex_forward imp_forward conjE | simp)+ |
|
2695 |
by (meson dual_order.trans) |
|
2696 |
next |
|
2697 |
assume ?rhs |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2698 |
have *: "\<exists>T. openin (top_of_set S) T \<and> |
69620 | 2699 |
x \<in> T \<and> T \<subseteq> path_component_set u z" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2700 |
if "openin (top_of_set S) u" and "z \<in> u" and c: "path_component u z x" for u z x |
69620 | 2701 |
proof - |
2702 |
have "x \<in> u" |
|
2703 |
by (meson c path_component_mem(2)) |
|
2704 |
with that \<open>?rhs\<close> [rule_format, of u x] |
|
2705 |
obtain U where U: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2706 |
"openin (top_of_set S) U \<and> x \<in> U \<and> U \<subseteq> u \<and> |
69620 | 2707 |
(\<forall>y. y \<in> U \<longrightarrow> (\<exists>p. path p \<and> path_image p \<subseteq> u \<and> pathstart p = x \<and> pathfinish p = y))" |
2708 |
by blast |
|
2709 |
show ?thesis |
|
2710 |
apply (rule_tac x=U in exI) |
|
2711 |
apply (auto simp: U) |
|
2712 |
apply (metis U c path_component_trans path_component_def) |
|
2713 |
done |
|
2714 |
qed |
|
2715 |
show ?lhs |
|
2716 |
apply (clarsimp simp add: locally_path_connected_open_path_component) |
|
2717 |
apply (subst openin_subopen) |
|
2718 |
apply (blast intro: *) |
|
2719 |
done |
|
2720 |
qed |
|
2721 |
||
2722 |
lemma locally_path_connected_imp_locally_connected: |
|
2723 |
"locally path_connected S \<Longrightarrow> locally connected S" |
|
2724 |
using locally_mono path_connected_imp_connected by blast |
|
2725 |
||
2726 |
lemma locally_connected_components: |
|
2727 |
"\<lbrakk>locally connected S; c \<in> components S\<rbrakk> \<Longrightarrow> locally connected c" |
|
2728 |
by (meson locally_connected_open_component locally_open_subset openin_subtopology_self) |
|
2729 |
||
2730 |
lemma locally_path_connected_components: |
|
2731 |
"\<lbrakk>locally path_connected S; c \<in> components S\<rbrakk> \<Longrightarrow> locally path_connected c" |
|
2732 |
by (meson locally_connected_open_component locally_open_subset locally_path_connected_imp_locally_connected openin_subtopology_self) |
|
2733 |
||
2734 |
lemma locally_path_connected_connected_component: |
|
2735 |
"locally path_connected S \<Longrightarrow> locally path_connected (connected_component_set S x)" |
|
2736 |
by (metis components_iff connected_component_eq_empty locally_empty locally_path_connected_components) |
|
2737 |
||
2738 |
lemma open_imp_locally_path_connected: |
|
2739 |
fixes S :: "'a :: real_normed_vector set" |
|
2740 |
shows "open S \<Longrightarrow> locally path_connected S" |
|
2741 |
apply (rule locally_mono [of convex]) |
|
2742 |
apply (simp_all add: locally_def openin_open_eq convex_imp_path_connected) |
|
2743 |
apply (meson open_ball centre_in_ball convex_ball openE order_trans) |
|
2744 |
done |
|
2745 |
||
2746 |
lemma open_imp_locally_connected: |
|
2747 |
fixes S :: "'a :: real_normed_vector set" |
|
2748 |
shows "open S \<Longrightarrow> locally connected S" |
|
2749 |
by (simp add: locally_path_connected_imp_locally_connected open_imp_locally_path_connected) |
|
2750 |
||
2751 |
lemma locally_path_connected_UNIV: "locally path_connected (UNIV::'a :: real_normed_vector set)" |
|
2752 |
by (simp add: open_imp_locally_path_connected) |
|
2753 |
||
2754 |
lemma locally_connected_UNIV: "locally connected (UNIV::'a :: real_normed_vector set)" |
|
2755 |
by (simp add: open_imp_locally_connected) |
|
2756 |
||
2757 |
lemma openin_connected_component_locally_connected: |
|
2758 |
"locally connected S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2759 |
\<Longrightarrow> openin (top_of_set S) (connected_component_set S x)" |
69620 | 2760 |
apply (simp add: locally_connected_open_connected_component) |
2761 |
by (metis connected_component_eq_empty connected_component_subset open_empty open_subset openin_subtopology_self) |
|
2762 |
||
2763 |
lemma openin_components_locally_connected: |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2764 |
"\<lbrakk>locally connected S; c \<in> components S\<rbrakk> \<Longrightarrow> openin (top_of_set S) c" |
69620 | 2765 |
using locally_connected_open_component openin_subtopology_self by blast |
2766 |
||
2767 |
lemma openin_path_component_locally_path_connected: |
|
2768 |
"locally path_connected S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2769 |
\<Longrightarrow> openin (top_of_set S) (path_component_set S x)" |
69620 | 2770 |
by (metis (no_types) empty_iff locally_path_connected_2 openin_subopen openin_subtopology_self path_component_eq_empty) |
2771 |
||
2772 |
lemma closedin_path_component_locally_path_connected: |
|
2773 |
"locally path_connected S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2774 |
\<Longrightarrow> closedin (top_of_set S) (path_component_set S x)" |
69620 | 2775 |
apply (simp add: closedin_def path_component_subset complement_path_component_Union) |
2776 |
apply (rule openin_Union) |
|
2777 |
using openin_path_component_locally_path_connected by auto |
|
2778 |
||
2779 |
lemma convex_imp_locally_path_connected: |
|
2780 |
fixes S :: "'a:: real_normed_vector set" |
|
2781 |
shows "convex S \<Longrightarrow> locally path_connected S" |
|
2782 |
apply (clarsimp simp add: locally_path_connected) |
|
2783 |
apply (subst (asm) openin_open) |
|
2784 |
apply clarify |
|
2785 |
apply (erule (1) openE) |
|
2786 |
apply (rule_tac x = "S \<inter> ball x e" in exI) |
|
2787 |
apply (force simp: convex_Int convex_imp_path_connected) |
|
2788 |
done |
|
2789 |
||
2790 |
lemma convex_imp_locally_connected: |
|
2791 |
fixes S :: "'a:: real_normed_vector set" |
|
2792 |
shows "convex S \<Longrightarrow> locally connected S" |
|
2793 |
by (simp add: locally_path_connected_imp_locally_connected convex_imp_locally_path_connected) |
|
2794 |
||
2795 |
||
2796 |
subsection\<open>Relations between components and path components\<close> |
|
2797 |
||
2798 |
lemma path_component_eq_connected_component: |
|
2799 |
assumes "locally path_connected S" |
|
2800 |
shows "(path_component S x = connected_component S x)" |
|
2801 |
proof (cases "x \<in> S") |
|
2802 |
case True |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2803 |
have "openin (top_of_set (connected_component_set S x)) (path_component_set S x)" |
69620 | 2804 |
apply (rule openin_subset_trans [of S]) |
2805 |
apply (intro conjI openin_path_component_locally_path_connected [OF assms]) |
|
2806 |
using path_component_subset_connected_component apply (auto simp: connected_component_subset) |
|
2807 |
done |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2808 |
moreover have "closedin (top_of_set (connected_component_set S x)) (path_component_set S x)" |
69620 | 2809 |
apply (rule closedin_subset_trans [of S]) |
2810 |
apply (intro conjI closedin_path_component_locally_path_connected [OF assms]) |
|
2811 |
using path_component_subset_connected_component apply (auto simp: connected_component_subset) |
|
2812 |
done |
|
2813 |
ultimately have *: "path_component_set S x = connected_component_set S x" |
|
2814 |
by (metis connected_connected_component connected_clopen True path_component_eq_empty) |
|
2815 |
then show ?thesis |
|
2816 |
by blast |
|
2817 |
next |
|
2818 |
case False then show ?thesis |
|
2819 |
by (metis Collect_empty_eq_bot connected_component_eq_empty path_component_eq_empty) |
|
2820 |
qed |
|
2821 |
||
2822 |
lemma path_component_eq_connected_component_set: |
|
2823 |
"locally path_connected S \<Longrightarrow> (path_component_set S x = connected_component_set S x)" |
|
2824 |
by (simp add: path_component_eq_connected_component) |
|
2825 |
||
2826 |
lemma locally_path_connected_path_component: |
|
2827 |
"locally path_connected S \<Longrightarrow> locally path_connected (path_component_set S x)" |
|
2828 |
using locally_path_connected_connected_component path_component_eq_connected_component by fastforce |
|
2829 |
||
2830 |
lemma open_path_connected_component: |
|
2831 |
fixes S :: "'a :: real_normed_vector set" |
|
2832 |
shows "open S \<Longrightarrow> path_component S x = connected_component S x" |
|
2833 |
by (simp add: path_component_eq_connected_component open_imp_locally_path_connected) |
|
2834 |
||
2835 |
lemma open_path_connected_component_set: |
|
2836 |
fixes S :: "'a :: real_normed_vector set" |
|
2837 |
shows "open S \<Longrightarrow> path_component_set S x = connected_component_set S x" |
|
2838 |
by (simp add: open_path_connected_component) |
|
2839 |
||
2840 |
proposition locally_connected_quotient_image: |
|
2841 |
assumes lcS: "locally connected S" |
|
2842 |
and oo: "\<And>T. T \<subseteq> f ` S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2843 |
\<Longrightarrow> openin (top_of_set S) (S \<inter> f -` T) \<longleftrightarrow> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2844 |
openin (top_of_set (f ` S)) T" |
69620 | 2845 |
shows "locally connected (f ` S)" |
2846 |
proof (clarsimp simp: locally_connected_open_component) |
|
2847 |
fix U C |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2848 |
assume opefSU: "openin (top_of_set (f ` S)) U" and "C \<in> components U" |
69620 | 2849 |
then have "C \<subseteq> U" "U \<subseteq> f ` S" |
2850 |
by (meson in_components_subset openin_imp_subset)+ |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2851 |
then have "openin (top_of_set (f ` S)) C \<longleftrightarrow> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2852 |
openin (top_of_set S) (S \<inter> f -` C)" |
69620 | 2853 |
by (auto simp: oo) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2854 |
moreover have "openin (top_of_set S) (S \<inter> f -` C)" |
69620 | 2855 |
proof (subst openin_subopen, clarify) |
2856 |
fix x |
|
2857 |
assume "x \<in> S" "f x \<in> C" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2858 |
show "\<exists>T. openin (top_of_set S) T \<and> x \<in> T \<and> T \<subseteq> (S \<inter> f -` C)" |
69620 | 2859 |
proof (intro conjI exI) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2860 |
show "openin (top_of_set S) (connected_component_set (S \<inter> f -` U) x)" |
69620 | 2861 |
proof (rule ccontr) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2862 |
assume **: "\<not> openin (top_of_set S) (connected_component_set (S \<inter> f -` U) x)" |
69620 | 2863 |
then have "x \<notin> (S \<inter> f -` U)" |
2864 |
using \<open>U \<subseteq> f ` S\<close> opefSU lcS locally_connected_2 oo by blast |
|
2865 |
with ** show False |
|
2866 |
by (metis (no_types) connected_component_eq_empty empty_iff openin_subopen) |
|
2867 |
qed |
|
2868 |
next |
|
2869 |
show "x \<in> connected_component_set (S \<inter> f -` U) x" |
|
2870 |
using \<open>C \<subseteq> U\<close> \<open>f x \<in> C\<close> \<open>x \<in> S\<close> by auto |
|
2871 |
next |
|
2872 |
have contf: "continuous_on S f" |
|
2873 |
by (simp add: continuous_on_open oo openin_imp_subset) |
|
2874 |
then have "continuous_on (connected_component_set (S \<inter> f -` U) x) f" |
|
2875 |
apply (rule continuous_on_subset) |
|
2876 |
using connected_component_subset apply blast |
|
2877 |
done |
|
2878 |
then have "connected (f ` connected_component_set (S \<inter> f -` U) x)" |
|
2879 |
by (rule connected_continuous_image [OF _ connected_connected_component]) |
|
2880 |
moreover have "f ` connected_component_set (S \<inter> f -` U) x \<subseteq> U" |
|
2881 |
using connected_component_in by blast |
|
2882 |
moreover have "C \<inter> f ` connected_component_set (S \<inter> f -` U) x \<noteq> {}" |
|
2883 |
using \<open>C \<subseteq> U\<close> \<open>f x \<in> C\<close> \<open>x \<in> S\<close> by fastforce |
|
2884 |
ultimately have fC: "f ` (connected_component_set (S \<inter> f -` U) x) \<subseteq> C" |
|
2885 |
by (rule components_maximal [OF \<open>C \<in> components U\<close>]) |
|
2886 |
have cUC: "connected_component_set (S \<inter> f -` U) x \<subseteq> (S \<inter> f -` C)" |
|
2887 |
using connected_component_subset fC by blast |
|
2888 |
have "connected_component_set (S \<inter> f -` U) x \<subseteq> connected_component_set (S \<inter> f -` C) x" |
|
2889 |
proof - |
|
2890 |
{ assume "x \<in> connected_component_set (S \<inter> f -` U) x" |
|
2891 |
then have ?thesis |
|
2892 |
using cUC connected_component_idemp connected_component_mono by blast } |
|
2893 |
then show ?thesis |
|
2894 |
using connected_component_eq_empty by auto |
|
2895 |
qed |
|
2896 |
also have "\<dots> \<subseteq> (S \<inter> f -` C)" |
|
2897 |
by (rule connected_component_subset) |
|
2898 |
finally show "connected_component_set (S \<inter> f -` U) x \<subseteq> (S \<inter> f -` C)" . |
|
2899 |
qed |
|
2900 |
qed |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2901 |
ultimately show "openin (top_of_set (f ` S)) C" |
69620 | 2902 |
by metis |
2903 |
qed |
|
2904 |
||
2905 |
text\<open>The proof resembles that above but is not identical!\<close> |
|
2906 |
proposition locally_path_connected_quotient_image: |
|
2907 |
assumes lcS: "locally path_connected S" |
|
2908 |
and oo: "\<And>T. T \<subseteq> f ` S |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2909 |
\<Longrightarrow> openin (top_of_set S) (S \<inter> f -` T) \<longleftrightarrow> openin (top_of_set (f ` S)) T" |
69620 | 2910 |
shows "locally path_connected (f ` S)" |
2911 |
proof (clarsimp simp: locally_path_connected_open_path_component) |
|
2912 |
fix U y |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2913 |
assume opefSU: "openin (top_of_set (f ` S)) U" and "y \<in> U" |
69620 | 2914 |
then have "path_component_set U y \<subseteq> U" "U \<subseteq> f ` S" |
2915 |
by (meson path_component_subset openin_imp_subset)+ |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2916 |
then have "openin (top_of_set (f ` S)) (path_component_set U y) \<longleftrightarrow> |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2917 |
openin (top_of_set S) (S \<inter> f -` path_component_set U y)" |
69620 | 2918 |
proof - |
2919 |
have "path_component_set U y \<subseteq> f ` S" |
|
2920 |
using \<open>U \<subseteq> f ` S\<close> \<open>path_component_set U y \<subseteq> U\<close> by blast |
|
2921 |
then show ?thesis |
|
2922 |
using oo by blast |
|
2923 |
qed |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2924 |
moreover have "openin (top_of_set S) (S \<inter> f -` path_component_set U y)" |
69620 | 2925 |
proof (subst openin_subopen, clarify) |
2926 |
fix x |
|
2927 |
assume "x \<in> S" and Uyfx: "path_component U y (f x)" |
|
2928 |
then have "f x \<in> U" |
|
2929 |
using path_component_mem by blast |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2930 |
show "\<exists>T. openin (top_of_set S) T \<and> x \<in> T \<and> T \<subseteq> (S \<inter> f -` path_component_set U y)" |
69620 | 2931 |
proof (intro conjI exI) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2932 |
show "openin (top_of_set S) (path_component_set (S \<inter> f -` U) x)" |
69620 | 2933 |
proof (rule ccontr) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2934 |
assume **: "\<not> openin (top_of_set S) (path_component_set (S \<inter> f -` U) x)" |
69620 | 2935 |
then have "x \<notin> (S \<inter> f -` U)" |
2936 |
by (metis (no_types, lifting) \<open>U \<subseteq> f ` S\<close> opefSU lcS oo locally_path_connected_open_path_component) |
|
2937 |
then show False |
|
2938 |
using ** \<open>path_component_set U y \<subseteq> U\<close> \<open>x \<in> S\<close> \<open>path_component U y (f x)\<close> by blast |
|
2939 |
qed |
|
2940 |
next |
|
2941 |
show "x \<in> path_component_set (S \<inter> f -` U) x" |
|
2942 |
by (simp add: \<open>f x \<in> U\<close> \<open>x \<in> S\<close> path_component_refl) |
|
2943 |
next |
|
2944 |
have contf: "continuous_on S f" |
|
2945 |
by (simp add: continuous_on_open oo openin_imp_subset) |
|
2946 |
then have "continuous_on (path_component_set (S \<inter> f -` U) x) f" |
|
2947 |
apply (rule continuous_on_subset) |
|
2948 |
using path_component_subset apply blast |
|
2949 |
done |
|
2950 |
then have "path_connected (f ` path_component_set (S \<inter> f -` U) x)" |
|
2951 |
by (simp add: path_connected_continuous_image) |
|
2952 |
moreover have "f ` path_component_set (S \<inter> f -` U) x \<subseteq> U" |
|
2953 |
using path_component_mem by fastforce |
|
2954 |
moreover have "f x \<in> f ` path_component_set (S \<inter> f -` U) x" |
|
2955 |
by (force simp: \<open>x \<in> S\<close> \<open>f x \<in> U\<close> path_component_refl_eq) |
|
2956 |
ultimately have "f ` (path_component_set (S \<inter> f -` U) x) \<subseteq> path_component_set U (f x)" |
|
2957 |
by (meson path_component_maximal) |
|
2958 |
also have "\<dots> \<subseteq> path_component_set U y" |
|
2959 |
by (simp add: Uyfx path_component_maximal path_component_subset path_component_sym) |
|
2960 |
finally have fC: "f ` (path_component_set (S \<inter> f -` U) x) \<subseteq> path_component_set U y" . |
|
2961 |
have cUC: "path_component_set (S \<inter> f -` U) x \<subseteq> (S \<inter> f -` path_component_set U y)" |
|
2962 |
using path_component_subset fC by blast |
|
2963 |
have "path_component_set (S \<inter> f -` U) x \<subseteq> path_component_set (S \<inter> f -` path_component_set U y) x" |
|
2964 |
proof - |
|
2965 |
have "\<And>a. path_component_set (path_component_set (S \<inter> f -` U) x) a \<subseteq> path_component_set (S \<inter> f -` path_component_set U y) a" |
|
2966 |
using cUC path_component_mono by blast |
|
2967 |
then show ?thesis |
|
2968 |
using path_component_path_component by blast |
|
2969 |
qed |
|
2970 |
also have "\<dots> \<subseteq> (S \<inter> f -` path_component_set U y)" |
|
2971 |
by (rule path_component_subset) |
|
2972 |
finally show "path_component_set (S \<inter> f -` U) x \<subseteq> (S \<inter> f -` path_component_set U y)" . |
|
2973 |
qed |
|
2974 |
qed |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2975 |
ultimately show "openin (top_of_set (f ` S)) (path_component_set U y)" |
69620 | 2976 |
by metis |
2977 |
qed |
|
2978 |
||
70136 | 2979 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Components, continuity, openin, closedin\<close> |
69620 | 2980 |
|
2981 |
lemma continuous_on_components_gen: |
|
2982 |
fixes f :: "'a::topological_space \<Rightarrow> 'b::topological_space" |
|
2983 |
assumes "\<And>c. c \<in> components S \<Longrightarrow> |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2984 |
openin (top_of_set S) c \<and> continuous_on c f" |
69620 | 2985 |
shows "continuous_on S f" |
2986 |
proof (clarsimp simp: continuous_openin_preimage_eq) |
|
2987 |
fix t :: "'b set" |
|
2988 |
assume "open t" |
|
2989 |
have *: "S \<inter> f -` t = (\<Union>c \<in> components S. c \<inter> f -` t)" |
|
2990 |
by auto |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
2991 |
show "openin (top_of_set S) (S \<inter> f -` t)" |
69620 | 2992 |
unfolding * using \<open>open t\<close> assms continuous_openin_preimage_gen openin_trans openin_Union by blast |
2993 |
qed |
|
2994 |
||
2995 |
lemma continuous_on_components: |
|
2996 |
fixes f :: "'a::topological_space \<Rightarrow> 'b::topological_space" |
|
2997 |
assumes "locally connected S " |
|
2998 |
"\<And>c. c \<in> components S \<Longrightarrow> continuous_on c f" |
|
2999 |
shows "continuous_on S f" |
|
3000 |
apply (rule continuous_on_components_gen) |
|
3001 |
apply (auto simp: assms intro: openin_components_locally_connected) |
|
3002 |
done |
|
3003 |
||
3004 |
lemma continuous_on_components_eq: |
|
3005 |
"locally connected S |
|
3006 |
\<Longrightarrow> (continuous_on S f \<longleftrightarrow> (\<forall>c \<in> components S. continuous_on c f))" |
|
3007 |
by (meson continuous_on_components continuous_on_subset in_components_subset) |
|
3008 |
||
3009 |
lemma continuous_on_components_open: |
|
3010 |
fixes S :: "'a::real_normed_vector set" |
|
3011 |
assumes "open S " |
|
3012 |
"\<And>c. c \<in> components S \<Longrightarrow> continuous_on c f" |
|
3013 |
shows "continuous_on S f" |
|
3014 |
using continuous_on_components open_imp_locally_connected assms by blast |
|
3015 |
||
3016 |
lemma continuous_on_components_open_eq: |
|
3017 |
fixes S :: "'a::real_normed_vector set" |
|
3018 |
shows "open S \<Longrightarrow> (continuous_on S f \<longleftrightarrow> (\<forall>c \<in> components S. continuous_on c f))" |
|
3019 |
using continuous_on_subset in_components_subset |
|
3020 |
by (blast intro: continuous_on_components_open) |
|
3021 |
||
3022 |
lemma closedin_union_complement_components: |
|
3023 |
assumes u: "locally connected u" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3024 |
and S: "closedin (top_of_set u) S" |
69620 | 3025 |
and cuS: "c \<subseteq> components(u - S)" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3026 |
shows "closedin (top_of_set u) (S \<union> \<Union>c)" |
69620 | 3027 |
proof - |
3028 |
have di: "(\<And>S t. S \<in> c \<and> t \<in> c' \<Longrightarrow> disjnt S t) \<Longrightarrow> disjnt (\<Union> c) (\<Union> c')" for c' |
|
3029 |
by (simp add: disjnt_def) blast |
|
3030 |
have "S \<subseteq> u" |
|
3031 |
using S closedin_imp_subset by blast |
|
3032 |
moreover have "u - S = \<Union>c \<union> \<Union>(components (u - S) - c)" |
|
3033 |
by (metis Diff_partition Union_components Union_Un_distrib assms(3)) |
|
3034 |
moreover have "disjnt (\<Union>c) (\<Union>(components (u - S) - c))" |
|
3035 |
apply (rule di) |
|
3036 |
by (metis DiffD1 DiffD2 assms(3) components_nonoverlap disjnt_def subsetCE) |
|
3037 |
ultimately have eq: "S \<union> \<Union>c = u - (\<Union>(components(u - S) - c))" |
|
3038 |
by (auto simp: disjnt_def) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3039 |
have *: "openin (top_of_set u) (\<Union>(components (u - S) - c))" |
69620 | 3040 |
apply (rule openin_Union) |
3041 |
apply (rule openin_trans [of "u - S"]) |
|
3042 |
apply (simp add: u S locally_diff_closed openin_components_locally_connected) |
|
3043 |
apply (simp add: openin_diff S) |
|
3044 |
done |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3045 |
have "openin (top_of_set u) (u - (u - \<Union>(components (u - S) - c)))" |
69620 | 3046 |
apply (rule openin_diff, simp) |
3047 |
apply (metis closedin_diff closedin_topspace topspace_euclidean_subtopology *) |
|
3048 |
done |
|
3049 |
then show ?thesis |
|
3050 |
by (force simp: eq closedin_def) |
|
3051 |
qed |
|
3052 |
||
3053 |
lemma closed_union_complement_components: |
|
3054 |
fixes S :: "'a::real_normed_vector set" |
|
3055 |
assumes S: "closed S" and c: "c \<subseteq> components(- S)" |
|
3056 |
shows "closed(S \<union> \<Union> c)" |
|
3057 |
proof - |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3058 |
have "closedin (top_of_set UNIV) (S \<union> \<Union>c)" |
69620 | 3059 |
apply (rule closedin_union_complement_components [OF locally_connected_UNIV]) |
3060 |
using S c apply (simp_all add: Compl_eq_Diff_UNIV) |
|
3061 |
done |
|
3062 |
then show ?thesis by simp |
|
3063 |
qed |
|
3064 |
||
3065 |
lemma closedin_Un_complement_component: |
|
3066 |
fixes S :: "'a::real_normed_vector set" |
|
3067 |
assumes u: "locally connected u" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3068 |
and S: "closedin (top_of_set u) S" |
69620 | 3069 |
and c: " c \<in> components(u - S)" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3070 |
shows "closedin (top_of_set u) (S \<union> c)" |
69620 | 3071 |
proof - |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
3072 |
have "closedin (top_of_set u) (S \<union> \<Union>{c})" |
69620 | 3073 |
using c by (blast intro: closedin_union_complement_components [OF u S]) |
3074 |
then show ?thesis |
|
3075 |
by simp |
|
3076 |
qed |
|
3077 |
||
3078 |
lemma closed_Un_complement_component: |
|
3079 |
fixes S :: "'a::real_normed_vector set" |
|
3080 |
assumes S: "closed S" and c: " c \<in> components(-S)" |
|
3081 |
shows "closed (S \<union> c)" |
|
3082 |
by (metis Compl_eq_Diff_UNIV S c closed_closedin closedin_Un_complement_component |
|
3083 |
locally_connected_UNIV subtopology_UNIV) |
|
3084 |
||
3085 |
||
3086 |
subsection\<open>Existence of isometry between subspaces of same dimension\<close> |
|
3087 |
||
3088 |
lemma isometry_subset_subspace: |
|
3089 |
fixes S :: "'a::euclidean_space set" |
|
3090 |
and T :: "'b::euclidean_space set" |
|
3091 |
assumes S: "subspace S" |
|
3092 |
and T: "subspace T" |
|
3093 |
and d: "dim S \<le> dim T" |
|
3094 |
obtains f where "linear f" "f ` S \<subseteq> T" "\<And>x. x \<in> S \<Longrightarrow> norm(f x) = norm x" |
|
3095 |
proof - |
|
3096 |
obtain B where "B \<subseteq> S" and Borth: "pairwise orthogonal B" |
|
3097 |
and B1: "\<And>x. x \<in> B \<Longrightarrow> norm x = 1" |
|
3098 |
and "independent B" "finite B" "card B = dim S" "span B = S" |
|
3099 |
by (metis orthonormal_basis_subspace [OF S] independent_finite) |
|
3100 |
obtain C where "C \<subseteq> T" and Corth: "pairwise orthogonal C" |
|
3101 |
and C1:"\<And>x. x \<in> C \<Longrightarrow> norm x = 1" |
|
3102 |
and "independent C" "finite C" "card C = dim T" "span C = T" |
|
3103 |
by (metis orthonormal_basis_subspace [OF T] independent_finite) |
|
3104 |
obtain fb where "fb ` B \<subseteq> C" "inj_on fb B" |
|
3105 |
by (metis \<open>card B = dim S\<close> \<open>card C = dim T\<close> \<open>finite B\<close> \<open>finite C\<close> card_le_inj d) |
|
3106 |
then have pairwise_orth_fb: "pairwise (\<lambda>v j. orthogonal (fb v) (fb j)) B" |
|
3107 |
using Corth |
|
3108 |
apply (auto simp: pairwise_def orthogonal_clauses) |
|
3109 |
by (meson subsetD image_eqI inj_on_def) |
|
3110 |
obtain f where "linear f" and ffb: "\<And>x. x \<in> B \<Longrightarrow> f x = fb x" |
|
3111 |
using linear_independent_extend \<open>independent B\<close> by fastforce |
|
3112 |
have "span (f ` B) \<subseteq> span C" |
|
3113 |
by (metis \<open>fb ` B \<subseteq> C\<close> ffb image_cong span_mono) |
|
3114 |
then have "f ` S \<subseteq> T" |
|
3115 |
unfolding \<open>span B = S\<close> \<open>span C = T\<close> span_linear_image[OF \<open>linear f\<close>] . |
|
3116 |
have [simp]: "\<And>x. x \<in> B \<Longrightarrow> norm (fb x) = norm x" |
|
3117 |
using B1 C1 \<open>fb ` B \<subseteq> C\<close> by auto |
|
3118 |
have "norm (f x) = norm x" if "x \<in> S" for x |
|
3119 |
proof - |
|
3120 |
interpret linear f by fact |
|
3121 |
obtain a where x: "x = (\<Sum>v \<in> B. a v *\<^sub>R v)" |
|
3122 |
using \<open>finite B\<close> \<open>span B = S\<close> \<open>x \<in> S\<close> span_finite by fastforce |
|
3123 |
have "norm (f x)^2 = norm (\<Sum>v\<in>B. a v *\<^sub>R fb v)^2" by (simp add: sum scale ffb x) |
|
3124 |
also have "\<dots> = (\<Sum>v\<in>B. norm ((a v *\<^sub>R fb v))^2)" |
|
3125 |
apply (rule norm_sum_Pythagorean [OF \<open>finite B\<close>]) |
|
3126 |
apply (rule pairwise_ortho_scaleR [OF pairwise_orth_fb]) |
|
3127 |
done |
|
3128 |
also have "\<dots> = norm x ^2" |
|
3129 |
by (simp add: x pairwise_ortho_scaleR Borth norm_sum_Pythagorean [OF \<open>finite B\<close>]) |
|
3130 |
finally show ?thesis |
|
3131 |
by (simp add: norm_eq_sqrt_inner) |
|
3132 |
qed |
|
3133 |
then show ?thesis |
|
3134 |
by (rule that [OF \<open>linear f\<close> \<open>f ` S \<subseteq> T\<close>]) |
|
3135 |
qed |
|
3136 |
||
3137 |
proposition isometries_subspaces: |
|
3138 |
fixes S :: "'a::euclidean_space set" |
|
3139 |
and T :: "'b::euclidean_space set" |
|
3140 |
assumes S: "subspace S" |
|
3141 |
and T: "subspace T" |
|
3142 |
and d: "dim S = dim T" |
|
3143 |
obtains f g where "linear f" "linear g" "f ` S = T" "g ` T = S" |
|
3144 |
"\<And>x. x \<in> S \<Longrightarrow> norm(f x) = norm x" |
|
3145 |
"\<And>x. x \<in> T \<Longrightarrow> norm(g x) = norm x" |
|
3146 |
"\<And>x. x \<in> S \<Longrightarrow> g(f x) = x" |
|
3147 |
"\<And>x. x \<in> T \<Longrightarrow> f(g x) = x" |
|
3148 |
proof - |
|
3149 |
obtain B where "B \<subseteq> S" and Borth: "pairwise orthogonal B" |
|
3150 |
and B1: "\<And>x. x \<in> B \<Longrightarrow> norm x = 1" |
|
3151 |
and "independent B" "finite B" "card B = dim S" "span B = S" |
|
3152 |
by (metis orthonormal_basis_subspace [OF S] independent_finite) |
|
3153 |
obtain C where "C \<subseteq> T" and Corth: "pairwise orthogonal C" |
|
3154 |
and C1:"\<And>x. x \<in> C \<Longrightarrow> norm x = 1" |
|
3155 |
and "independent C" "finite C" "card C = dim T" "span C = T" |
|
3156 |
by (metis orthonormal_basis_subspace [OF T] independent_finite) |
|
3157 |
obtain fb where "bij_betw fb B C" |
|
3158 |
by (metis \<open>finite B\<close> \<open>finite C\<close> bij_betw_iff_card \<open>card B = dim S\<close> \<open>card C = dim T\<close> d) |
|
3159 |
then have pairwise_orth_fb: "pairwise (\<lambda>v j. orthogonal (fb v) (fb j)) B" |
|
3160 |
using Corth |
|
3161 |
apply (auto simp: pairwise_def orthogonal_clauses bij_betw_def) |
|
3162 |
by (meson subsetD image_eqI inj_on_def) |
|
3163 |
obtain f where "linear f" and ffb: "\<And>x. x \<in> B \<Longrightarrow> f x = fb x" |
|
3164 |
using linear_independent_extend \<open>independent B\<close> by fastforce |
|
3165 |
interpret f: linear f by fact |
|
3166 |
define gb where "gb \<equiv> inv_into B fb" |
|
3167 |
then have pairwise_orth_gb: "pairwise (\<lambda>v j. orthogonal (gb v) (gb j)) C" |
|
3168 |
using Borth |
|
3169 |
apply (auto simp: pairwise_def orthogonal_clauses bij_betw_def) |
|
3170 |
by (metis \<open>bij_betw fb B C\<close> bij_betw_imp_surj_on bij_betw_inv_into_right inv_into_into) |
|
3171 |
obtain g where "linear g" and ggb: "\<And>x. x \<in> C \<Longrightarrow> g x = gb x" |
|
3172 |
using linear_independent_extend \<open>independent C\<close> by fastforce |
|
3173 |
interpret g: linear g by fact |
|
3174 |
have "span (f ` B) \<subseteq> span C" |
|
3175 |
by (metis \<open>bij_betw fb B C\<close> bij_betw_imp_surj_on eq_iff ffb image_cong) |
|
3176 |
then have "f ` S \<subseteq> T" |
|
3177 |
unfolding \<open>span B = S\<close> \<open>span C = T\<close> |
|
3178 |
span_linear_image[OF \<open>linear f\<close>] . |
|
3179 |
have [simp]: "\<And>x. x \<in> B \<Longrightarrow> norm (fb x) = norm x" |
|
3180 |
using B1 C1 \<open>bij_betw fb B C\<close> bij_betw_imp_surj_on by fastforce |
|
3181 |
have f [simp]: "norm (f x) = norm x" "g (f x) = x" if "x \<in> S" for x |
|
3182 |
proof - |
|
3183 |
obtain a where x: "x = (\<Sum>v \<in> B. a v *\<^sub>R v)" |
|
3184 |
using \<open>finite B\<close> \<open>span B = S\<close> \<open>x \<in> S\<close> span_finite by fastforce |
|
3185 |
have "f x = (\<Sum>v \<in> B. f (a v *\<^sub>R v))" |
|
3186 |
using linear_sum [OF \<open>linear f\<close>] x by auto |
|
3187 |
also have "\<dots> = (\<Sum>v \<in> B. a v *\<^sub>R f v)" |
|
3188 |
by (simp add: f.sum f.scale) |
|
3189 |
also have "\<dots> = (\<Sum>v \<in> B. a v *\<^sub>R fb v)" |
|
3190 |
by (simp add: ffb cong: sum.cong) |
|
3191 |
finally have *: "f x = (\<Sum>v\<in>B. a v *\<^sub>R fb v)" . |
|
3192 |
then have "(norm (f x))\<^sup>2 = (norm (\<Sum>v\<in>B. a v *\<^sub>R fb v))\<^sup>2" by simp |
|
3193 |
also have "\<dots> = (\<Sum>v\<in>B. norm ((a v *\<^sub>R fb v))^2)" |
|
3194 |
apply (rule norm_sum_Pythagorean [OF \<open>finite B\<close>]) |
|
3195 |
apply (rule pairwise_ortho_scaleR [OF pairwise_orth_fb]) |
|
3196 |
done |
|
3197 |
also have "\<dots> = (norm x)\<^sup>2" |
|
3198 |
by (simp add: x pairwise_ortho_scaleR Borth norm_sum_Pythagorean [OF \<open>finite B\<close>]) |
|
3199 |
finally show "norm (f x) = norm x" |
|
3200 |
by (simp add: norm_eq_sqrt_inner) |
|
3201 |
have "g (f x) = g (\<Sum>v\<in>B. a v *\<^sub>R fb v)" by (simp add: *) |
|
3202 |
also have "\<dots> = (\<Sum>v\<in>B. g (a v *\<^sub>R fb v))" |
|
3203 |
by (simp add: g.sum g.scale) |
|
3204 |
also have "\<dots> = (\<Sum>v\<in>B. a v *\<^sub>R g (fb v))" |
|
3205 |
by (simp add: g.scale) |
|
3206 |
also have "\<dots> = (\<Sum>v\<in>B. a v *\<^sub>R v)" |
|
3207 |
apply (rule sum.cong [OF refl]) |
|
3208 |
using \<open>bij_betw fb B C\<close> gb_def bij_betwE bij_betw_inv_into_left gb_def ggb by fastforce |
|
3209 |
also have "\<dots> = x" |
|
3210 |
using x by blast |
|
3211 |
finally show "g (f x) = x" . |
|
3212 |
qed |
|
3213 |
have [simp]: "\<And>x. x \<in> C \<Longrightarrow> norm (gb x) = norm x" |
|
3214 |
by (metis B1 C1 \<open>bij_betw fb B C\<close> bij_betw_imp_surj_on gb_def inv_into_into) |
|
3215 |
have g [simp]: "f (g x) = x" if "x \<in> T" for x |
|
3216 |
proof - |
|
3217 |
obtain a where x: "x = (\<Sum>v \<in> C. a v *\<^sub>R v)" |
|
3218 |
using \<open>finite C\<close> \<open>span C = T\<close> \<open>x \<in> T\<close> span_finite by fastforce |
|
3219 |
have "g x = (\<Sum>v \<in> C. g (a v *\<^sub>R v))" |
|
3220 |
by (simp add: x g.sum) |
|
3221 |
also have "\<dots> = (\<Sum>v \<in> C. a v *\<^sub>R g v)" |
|
3222 |
by (simp add: g.scale) |
|
3223 |
also have "\<dots> = (\<Sum>v \<in> C. a v *\<^sub>R gb v)" |
|
3224 |
by (simp add: ggb cong: sum.cong) |
|
3225 |
finally have "f (g x) = f (\<Sum>v\<in>C. a v *\<^sub>R gb v)" by simp |
|
3226 |
also have "\<dots> = (\<Sum>v\<in>C. f (a v *\<^sub>R gb v))" |
|
3227 |
by (simp add: f.scale f.sum) |
|
3228 |
also have "\<dots> = (\<Sum>v\<in>C. a v *\<^sub>R f (gb v))" |
|
3229 |
by (simp add: f.scale f.sum) |
|
3230 |
also have "\<dots> = (\<Sum>v\<in>C. a v *\<^sub>R v)" |
|
3231 |
using \<open>bij_betw fb B C\<close> |
|
3232 |
by (simp add: bij_betw_def gb_def bij_betw_inv_into_right ffb inv_into_into) |
|
3233 |
also have "\<dots> = x" |
|
3234 |
using x by blast |
|
3235 |
finally show "f (g x) = x" . |
|
3236 |
qed |
|
3237 |
have gim: "g ` T = S" |
|
3238 |
by (metis (full_types) S T \<open>f ` S \<subseteq> T\<close> d dim_eq_span dim_image_le f(2) g.linear_axioms |
|
3239 |
image_iff linear_subspace_image span_eq_iff subset_iff) |
|
3240 |
have fim: "f ` S = T" |
|
3241 |
using \<open>g ` T = S\<close> image_iff by fastforce |
|
3242 |
have [simp]: "norm (g x) = norm x" if "x \<in> T" for x |
|
3243 |
using fim that by auto |
|
3244 |
show ?thesis |
|
3245 |
apply (rule that [OF \<open>linear f\<close> \<open>linear g\<close>]) |
|
3246 |
apply (simp_all add: fim gim) |
|
3247 |
done |
|
3248 |
qed |
|
3249 |
||
3250 |
corollary isometry_subspaces: |
|
3251 |
fixes S :: "'a::euclidean_space set" |
|
3252 |
and T :: "'b::euclidean_space set" |
|
3253 |
assumes S: "subspace S" |
|
3254 |
and T: "subspace T" |
|
3255 |
and d: "dim S = dim T" |
|
3256 |
obtains f where "linear f" "f ` S = T" "\<And>x. x \<in> S \<Longrightarrow> norm(f x) = norm x" |
|
3257 |
using isometries_subspaces [OF assms] |
|
3258 |
by metis |
|
3259 |
||
3260 |
corollary isomorphisms_UNIV_UNIV: |
|
3261 |
assumes "DIM('M) = DIM('N)" |
|
3262 |
obtains f::"'M::euclidean_space \<Rightarrow>'N::euclidean_space" and g |
|
3263 |
where "linear f" "linear g" |
|
3264 |
"\<And>x. norm(f x) = norm x" "\<And>y. norm(g y) = norm y" |
|
3265 |
"\<And>x. g (f x) = x" "\<And>y. f(g y) = y" |
|
3266 |
using assms by (auto intro: isometries_subspaces [of "UNIV::'M set" "UNIV::'N set"]) |
|
3267 |
||
3268 |
lemma homeomorphic_subspaces: |
|
3269 |
fixes S :: "'a::euclidean_space set" |
|
3270 |
and T :: "'b::euclidean_space set" |
|
3271 |
assumes S: "subspace S" |
|
3272 |
and T: "subspace T" |
|
3273 |
and d: "dim S = dim T" |
|
3274 |
shows "S homeomorphic T" |
|
3275 |
proof - |
|
3276 |
obtain f g where "linear f" "linear g" "f ` S = T" "g ` T = S" |
|
3277 |
"\<And>x. x \<in> S \<Longrightarrow> g(f x) = x" "\<And>x. x \<in> T \<Longrightarrow> f(g x) = x" |
|
3278 |
by (blast intro: isometries_subspaces [OF assms]) |
|
3279 |
then show ?thesis |
|
3280 |
apply (simp add: homeomorphic_def homeomorphism_def) |
|
3281 |
apply (rule_tac x=f in exI) |
|
3282 |
apply (rule_tac x=g in exI) |
|
3283 |
apply (auto simp: linear_continuous_on linear_conv_bounded_linear) |
|
3284 |
done |
|
3285 |
qed |
|
3286 |
||
3287 |
lemma homeomorphic_affine_sets: |
|
3288 |
assumes "affine S" "affine T" "aff_dim S = aff_dim T" |
|
3289 |
shows "S homeomorphic T" |
|
3290 |
proof (cases "S = {} \<or> T = {}") |
|
3291 |
case True with assms aff_dim_empty homeomorphic_empty show ?thesis |
|
3292 |
by metis |
|
3293 |
next |
|
3294 |
case False |
|
3295 |
then obtain a b where ab: "a \<in> S" "b \<in> T" by auto |
|
3296 |
then have ss: "subspace ((+) (- a) ` S)" "subspace ((+) (- b) ` T)" |
|
3297 |
using affine_diffs_subspace assms by blast+ |
|
3298 |
have dd: "dim ((+) (- a) ` S) = dim ((+) (- b) ` T)" |
|
3299 |
using assms ab by (simp add: aff_dim_eq_dim [OF hull_inc] image_def) |
|
3300 |
have "S homeomorphic ((+) (- a) ` S)" |
|
69768 | 3301 |
by (fact homeomorphic_translation) |
69620 | 3302 |
also have "\<dots> homeomorphic ((+) (- b) ` T)" |
3303 |
by (rule homeomorphic_subspaces [OF ss dd]) |
|
3304 |
also have "\<dots> homeomorphic T" |
|
69768 | 3305 |
using homeomorphic_translation [of T "- b"] by (simp add: homeomorphic_sym [of T]) |
69620 | 3306 |
finally show ?thesis . |
3307 |
qed |
|
3308 |
||
3309 |
||
3310 |
subsection\<open>Retracts, in a general sense, preserve (co)homotopic triviality)\<close> |
|
3311 |
||
70136 | 3312 |
locale\<^marker>\<open>tag important\<close> Retracts = |
69620 | 3313 |
fixes s h t k |
3314 |
assumes conth: "continuous_on s h" |
|
3315 |
and imh: "h ` s = t" |
|
3316 |
and contk: "continuous_on t k" |
|
3317 |
and imk: "k ` t \<subseteq> s" |
|
3318 |
and idhk: "\<And>y. y \<in> t \<Longrightarrow> h(k y) = y" |
|
3319 |
||
3320 |
begin |
|
3321 |
||
3322 |
lemma homotopically_trivial_retraction_gen: |
|
3323 |
assumes P: "\<And>f. \<lbrakk>continuous_on u f; f ` u \<subseteq> t; Q f\<rbrakk> \<Longrightarrow> P(k \<circ> f)" |
|
3324 |
and Q: "\<And>f. \<lbrakk>continuous_on u f; f ` u \<subseteq> s; P f\<rbrakk> \<Longrightarrow> Q(h \<circ> f)" |
|
3325 |
and Qeq: "\<And>h k. (\<And>x. x \<in> u \<Longrightarrow> h x = k x) \<Longrightarrow> Q h = Q k" |
|
3326 |
and hom: "\<And>f g. \<lbrakk>continuous_on u f; f ` u \<subseteq> s; P f; |
|
3327 |
continuous_on u g; g ` u \<subseteq> s; P g\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3328 |
\<Longrightarrow> homotopic_with_canon P u s f g" |
69620 | 3329 |
and contf: "continuous_on u f" and imf: "f ` u \<subseteq> t" and Qf: "Q f" |
3330 |
and contg: "continuous_on u g" and img: "g ` u \<subseteq> t" and Qg: "Q g" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3331 |
shows "homotopic_with_canon Q u t f g" |
69620 | 3332 |
proof - |
3333 |
have feq: "\<And>x. x \<in> u \<Longrightarrow> (h \<circ> (k \<circ> f)) x = f x" using idhk imf by auto |
|
3334 |
have geq: "\<And>x. x \<in> u \<Longrightarrow> (h \<circ> (k \<circ> g)) x = g x" using idhk img by auto |
|
3335 |
have "continuous_on u (k \<circ> f)" |
|
3336 |
using contf continuous_on_compose continuous_on_subset contk imf by blast |
|
3337 |
moreover have "(k \<circ> f) ` u \<subseteq> s" |
|
3338 |
using imf imk by fastforce |
|
3339 |
moreover have "P (k \<circ> f)" |
|
3340 |
by (simp add: P Qf contf imf) |
|
3341 |
moreover have "continuous_on u (k \<circ> g)" |
|
3342 |
using contg continuous_on_compose continuous_on_subset contk img by blast |
|
3343 |
moreover have "(k \<circ> g) ` u \<subseteq> s" |
|
3344 |
using img imk by fastforce |
|
3345 |
moreover have "P (k \<circ> g)" |
|
3346 |
by (simp add: P Qg contg img) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3347 |
ultimately have "homotopic_with_canon P u s (k \<circ> f) (k \<circ> g)" |
69620 | 3348 |
by (rule hom) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3349 |
then have "homotopic_with_canon Q u t (h \<circ> (k \<circ> f)) (h \<circ> (k \<circ> g))" |
69620 | 3350 |
apply (rule homotopic_with_compose_continuous_left [OF homotopic_with_mono]) |
3351 |
using Q by (auto simp: conth imh) |
|
3352 |
then show ?thesis |
|
3353 |
apply (rule homotopic_with_eq) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3354 |
using feq geq apply fastforce+ |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3355 |
using Qeq topspace_euclidean_subtopology by blast |
69620 | 3356 |
qed |
3357 |
||
3358 |
lemma homotopically_trivial_retraction_null_gen: |
|
3359 |
assumes P: "\<And>f. \<lbrakk>continuous_on u f; f ` u \<subseteq> t; Q f\<rbrakk> \<Longrightarrow> P(k \<circ> f)" |
|
3360 |
and Q: "\<And>f. \<lbrakk>continuous_on u f; f ` u \<subseteq> s; P f\<rbrakk> \<Longrightarrow> Q(h \<circ> f)" |
|
3361 |
and Qeq: "\<And>h k. (\<And>x. x \<in> u \<Longrightarrow> h x = k x) \<Longrightarrow> Q h = Q k" |
|
3362 |
and hom: "\<And>f. \<lbrakk>continuous_on u f; f ` u \<subseteq> s; P f\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3363 |
\<Longrightarrow> \<exists>c. homotopic_with_canon P u s f (\<lambda>x. c)" |
69620 | 3364 |
and contf: "continuous_on u f" and imf:"f ` u \<subseteq> t" and Qf: "Q f" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3365 |
obtains c where "homotopic_with_canon Q u t f (\<lambda>x. c)" |
69620 | 3366 |
proof - |
3367 |
have feq: "\<And>x. x \<in> u \<Longrightarrow> (h \<circ> (k \<circ> f)) x = f x" using idhk imf by auto |
|
3368 |
have "continuous_on u (k \<circ> f)" |
|
3369 |
using contf continuous_on_compose continuous_on_subset contk imf by blast |
|
3370 |
moreover have "(k \<circ> f) ` u \<subseteq> s" |
|
3371 |
using imf imk by fastforce |
|
3372 |
moreover have "P (k \<circ> f)" |
|
3373 |
by (simp add: P Qf contf imf) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3374 |
ultimately obtain c where "homotopic_with_canon P u s (k \<circ> f) (\<lambda>x. c)" |
69620 | 3375 |
by (metis hom) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3376 |
then have "homotopic_with_canon Q u t (h \<circ> (k \<circ> f)) (h \<circ> (\<lambda>x. c))" |
69620 | 3377 |
apply (rule homotopic_with_compose_continuous_left [OF homotopic_with_mono]) |
3378 |
using Q by (auto simp: conth imh) |
|
3379 |
then show ?thesis |
|
3380 |
apply (rule_tac c = "h c" in that) |
|
3381 |
apply (erule homotopic_with_eq) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3382 |
using feq apply auto[1] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3383 |
apply simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3384 |
using Qeq topspace_euclidean_subtopology by blast |
69620 | 3385 |
qed |
3386 |
||
3387 |
lemma cohomotopically_trivial_retraction_gen: |
|
3388 |
assumes P: "\<And>f. \<lbrakk>continuous_on t f; f ` t \<subseteq> u; Q f\<rbrakk> \<Longrightarrow> P(f \<circ> h)" |
|
3389 |
and Q: "\<And>f. \<lbrakk>continuous_on s f; f ` s \<subseteq> u; P f\<rbrakk> \<Longrightarrow> Q(f \<circ> k)" |
|
3390 |
and Qeq: "\<And>h k. (\<And>x. x \<in> t \<Longrightarrow> h x = k x) \<Longrightarrow> Q h = Q k" |
|
3391 |
and hom: "\<And>f g. \<lbrakk>continuous_on s f; f ` s \<subseteq> u; P f; |
|
3392 |
continuous_on s g; g ` s \<subseteq> u; P g\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3393 |
\<Longrightarrow> homotopic_with_canon P s u f g" |
69620 | 3394 |
and contf: "continuous_on t f" and imf: "f ` t \<subseteq> u" and Qf: "Q f" |
3395 |
and contg: "continuous_on t g" and img: "g ` t \<subseteq> u" and Qg: "Q g" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3396 |
shows "homotopic_with_canon Q t u f g" |
69620 | 3397 |
proof - |
3398 |
have feq: "\<And>x. x \<in> t \<Longrightarrow> (f \<circ> h \<circ> k) x = f x" using idhk imf by auto |
|
3399 |
have geq: "\<And>x. x \<in> t \<Longrightarrow> (g \<circ> h \<circ> k) x = g x" using idhk img by auto |
|
3400 |
have "continuous_on s (f \<circ> h)" |
|
3401 |
using contf conth continuous_on_compose imh by blast |
|
3402 |
moreover have "(f \<circ> h) ` s \<subseteq> u" |
|
3403 |
using imf imh by fastforce |
|
3404 |
moreover have "P (f \<circ> h)" |
|
3405 |
by (simp add: P Qf contf imf) |
|
3406 |
moreover have "continuous_on s (g \<circ> h)" |
|
3407 |
using contg continuous_on_compose continuous_on_subset conth imh by blast |
|
3408 |
moreover have "(g \<circ> h) ` s \<subseteq> u" |
|
3409 |
using img imh by fastforce |
|
3410 |
moreover have "P (g \<circ> h)" |
|
3411 |
by (simp add: P Qg contg img) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3412 |
ultimately have "homotopic_with_canon P s u (f \<circ> h) (g \<circ> h)" |
69620 | 3413 |
by (rule hom) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3414 |
then have "homotopic_with_canon Q t u (f \<circ> h \<circ> k) (g \<circ> h \<circ> k)" |
69620 | 3415 |
apply (rule homotopic_with_compose_continuous_right [OF homotopic_with_mono]) |
3416 |
using Q by (auto simp: contk imk) |
|
3417 |
then show ?thesis |
|
3418 |
apply (rule homotopic_with_eq) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3419 |
using feq apply auto[1] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3420 |
using geq apply auto[1] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3421 |
using Qeq topspace_euclidean_subtopology by blast |
69620 | 3422 |
qed |
3423 |
||
3424 |
lemma cohomotopically_trivial_retraction_null_gen: |
|
3425 |
assumes P: "\<And>f. \<lbrakk>continuous_on t f; f ` t \<subseteq> u; Q f\<rbrakk> \<Longrightarrow> P(f \<circ> h)" |
|
3426 |
and Q: "\<And>f. \<lbrakk>continuous_on s f; f ` s \<subseteq> u; P f\<rbrakk> \<Longrightarrow> Q(f \<circ> k)" |
|
3427 |
and Qeq: "\<And>h k. (\<And>x. x \<in> t \<Longrightarrow> h x = k x) \<Longrightarrow> Q h = Q k" |
|
3428 |
and hom: "\<And>f g. \<lbrakk>continuous_on s f; f ` s \<subseteq> u; P f\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3429 |
\<Longrightarrow> \<exists>c. homotopic_with_canon P s u f (\<lambda>x. c)" |
69620 | 3430 |
and contf: "continuous_on t f" and imf: "f ` t \<subseteq> u" and Qf: "Q f" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3431 |
obtains c where "homotopic_with_canon Q t u f (\<lambda>x. c)" |
69620 | 3432 |
proof - |
3433 |
have feq: "\<And>x. x \<in> t \<Longrightarrow> (f \<circ> h \<circ> k) x = f x" using idhk imf by auto |
|
3434 |
have "continuous_on s (f \<circ> h)" |
|
3435 |
using contf conth continuous_on_compose imh by blast |
|
3436 |
moreover have "(f \<circ> h) ` s \<subseteq> u" |
|
3437 |
using imf imh by fastforce |
|
3438 |
moreover have "P (f \<circ> h)" |
|
3439 |
by (simp add: P Qf contf imf) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3440 |
ultimately obtain c where "homotopic_with_canon P s u (f \<circ> h) (\<lambda>x. c)" |
69620 | 3441 |
by (metis hom) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3442 |
then have "homotopic_with_canon Q t u (f \<circ> h \<circ> k) ((\<lambda>x. c) \<circ> k)" |
69620 | 3443 |
apply (rule homotopic_with_compose_continuous_right [OF homotopic_with_mono]) |
3444 |
using Q by (auto simp: contk imk) |
|
3445 |
then show ?thesis |
|
3446 |
apply (rule_tac c = c in that) |
|
3447 |
apply (erule homotopic_with_eq) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3448 |
using feq apply auto[1] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3449 |
apply simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3450 |
using Qeq topspace_euclidean_subtopology by blast |
69620 | 3451 |
qed |
3452 |
||
3453 |
end |
|
3454 |
||
3455 |
lemma simply_connected_retraction_gen: |
|
3456 |
shows "\<lbrakk>simply_connected S; continuous_on S h; h ` S = T; |
|
3457 |
continuous_on T k; k ` T \<subseteq> S; \<And>y. y \<in> T \<Longrightarrow> h(k y) = y\<rbrakk> |
|
3458 |
\<Longrightarrow> simply_connected T" |
|
3459 |
apply (simp add: simply_connected_def path_def path_image_def homotopic_loops_def, clarify) |
|
3460 |
apply (rule Retracts.homotopically_trivial_retraction_gen |
|
3461 |
[of S h _ k _ "\<lambda>p. pathfinish p = pathstart p" "\<lambda>p. pathfinish p = pathstart p"]) |
|
3462 |
apply (simp_all add: Retracts_def pathfinish_def pathstart_def) |
|
3463 |
done |
|
3464 |
||
3465 |
lemma homeomorphic_simply_connected: |
|
3466 |
"\<lbrakk>S homeomorphic T; simply_connected S\<rbrakk> \<Longrightarrow> simply_connected T" |
|
3467 |
by (auto simp: homeomorphic_def homeomorphism_def intro: simply_connected_retraction_gen) |
|
3468 |
||
3469 |
lemma homeomorphic_simply_connected_eq: |
|
3470 |
"S homeomorphic T \<Longrightarrow> (simply_connected S \<longleftrightarrow> simply_connected T)" |
|
3471 |
by (metis homeomorphic_simply_connected homeomorphic_sym) |
|
3472 |
||
3473 |
||
3474 |
subsection\<open>Homotopy equivalence\<close> |
|
3475 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3476 |
subsection\<open>Homotopy equivalence of topological spaces.\<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3477 |
|
70136 | 3478 |
definition\<^marker>\<open>tag important\<close> homotopy_equivalent_space |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3479 |
(infix "homotopy'_equivalent'_space" 50) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3480 |
where "X homotopy_equivalent_space Y \<equiv> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3481 |
(\<exists>f g. continuous_map X Y f \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3482 |
continuous_map Y X g \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3483 |
homotopic_with (\<lambda>x. True) X X (g \<circ> f) id \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3484 |
homotopic_with (\<lambda>x. True) Y Y (f \<circ> g) id)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3485 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3486 |
lemma homeomorphic_imp_homotopy_equivalent_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3487 |
"X homeomorphic_space Y \<Longrightarrow> X homotopy_equivalent_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3488 |
unfolding homeomorphic_space_def homotopy_equivalent_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3489 |
apply (erule ex_forward)+ |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3490 |
by (simp add: homotopic_with_equal homotopic_with_sym homeomorphic_maps_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3491 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3492 |
lemma homotopy_equivalent_space_refl: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3493 |
"X homotopy_equivalent_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3494 |
by (simp add: homeomorphic_imp_homotopy_equivalent_space homeomorphic_space_refl) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3495 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3496 |
lemma homotopy_equivalent_space_sym: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3497 |
"X homotopy_equivalent_space Y \<longleftrightarrow> Y homotopy_equivalent_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3498 |
by (meson homotopy_equivalent_space_def) |
69620 | 3499 |
|
3500 |
lemma homotopy_eqv_trans [trans]: |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3501 |
assumes 1: "X homotopy_equivalent_space Y" and 2: "Y homotopy_equivalent_space U" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3502 |
shows "X homotopy_equivalent_space U" |
69620 | 3503 |
proof - |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3504 |
obtain f1 g1 where f1: "continuous_map X Y f1" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3505 |
and g1: "continuous_map Y X g1" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3506 |
and hom1: "homotopic_with (\<lambda>x. True) X X (g1 \<circ> f1) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3507 |
"homotopic_with (\<lambda>x. True) Y Y (f1 \<circ> g1) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3508 |
using 1 by (auto simp: homotopy_equivalent_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3509 |
obtain f2 g2 where f2: "continuous_map Y U f2" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3510 |
and g2: "continuous_map U Y g2" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3511 |
and hom2: "homotopic_with (\<lambda>x. True) Y Y (g2 \<circ> f2) id" |
69620 | 3512 |
"homotopic_with (\<lambda>x. True) U U (f2 \<circ> g2) id" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3513 |
using 2 by (auto simp: homotopy_equivalent_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3514 |
have "homotopic_with (\<lambda>f. True) X Y (g2 \<circ> f2 \<circ> f1) (id \<circ> f1)" |
71745 | 3515 |
using f1 hom2(1) homotopic_with_compose_continuous_map_right by metis |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3516 |
then have "homotopic_with (\<lambda>f. True) X Y (g2 \<circ> (f2 \<circ> f1)) (id \<circ> f1)" |
69620 | 3517 |
by (simp add: o_assoc) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3518 |
then have "homotopic_with (\<lambda>x. True) X X |
69620 | 3519 |
(g1 \<circ> (g2 \<circ> (f2 \<circ> f1))) (g1 \<circ> (id \<circ> f1))" |
71745 | 3520 |
by (simp add: g1 homotopic_with_compose_continuous_map_left) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3521 |
moreover have "homotopic_with (\<lambda>x. True) X X (g1 \<circ> id \<circ> f1) id" |
69620 | 3522 |
using hom1 by simp |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3523 |
ultimately have SS: "homotopic_with (\<lambda>x. True) X X (g1 \<circ> g2 \<circ> (f2 \<circ> f1)) id" |
69620 | 3524 |
apply (simp add: o_assoc) |
3525 |
apply (blast intro: homotopic_with_trans) |
|
3526 |
done |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3527 |
have "homotopic_with (\<lambda>f. True) U Y (f1 \<circ> g1 \<circ> g2) (id \<circ> g2)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3528 |
using g2 hom1(2) homotopic_with_compose_continuous_map_right by fastforce |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3529 |
then have "homotopic_with (\<lambda>f. True) U Y (f1 \<circ> (g1 \<circ> g2)) (id \<circ> g2)" |
69620 | 3530 |
by (simp add: o_assoc) |
3531 |
then have "homotopic_with (\<lambda>x. True) U U |
|
3532 |
(f2 \<circ> (f1 \<circ> (g1 \<circ> g2))) (f2 \<circ> (id \<circ> g2))" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3533 |
by (simp add: f2 homotopic_with_compose_continuous_map_left) |
69620 | 3534 |
moreover have "homotopic_with (\<lambda>x. True) U U (f2 \<circ> id \<circ> g2) id" |
3535 |
using hom2 by simp |
|
3536 |
ultimately have UU: "homotopic_with (\<lambda>x. True) U U (f2 \<circ> f1 \<circ> (g1 \<circ> g2)) id" |
|
3537 |
apply (simp add: o_assoc) |
|
3538 |
apply (blast intro: homotopic_with_trans) |
|
3539 |
done |
|
3540 |
show ?thesis |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3541 |
unfolding homotopy_equivalent_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3542 |
by (blast intro: f1 f2 g1 g2 continuous_map_compose SS UU) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3543 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3544 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3545 |
lemma deformation_retraction_imp_homotopy_equivalent_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3546 |
"\<lbrakk>homotopic_with (\<lambda>x. True) X X (s \<circ> r) id; retraction_maps X Y r s\<rbrakk> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3547 |
\<Longrightarrow> X homotopy_equivalent_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3548 |
unfolding homotopy_equivalent_space_def retraction_maps_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3549 |
apply (rule_tac x=r in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3550 |
apply (rule_tac x=s in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3551 |
apply (auto simp: homotopic_with_equal continuous_map_compose) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3552 |
done |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3553 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3554 |
lemma deformation_retract_imp_homotopy_equivalent_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3555 |
"\<lbrakk>homotopic_with (\<lambda>x. True) X X r id; retraction_maps X Y r id\<rbrakk> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3556 |
\<Longrightarrow> X homotopy_equivalent_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3557 |
using deformation_retraction_imp_homotopy_equivalent_space by force |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3558 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3559 |
lemma deformation_retract_of_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3560 |
"S \<subseteq> topspace X \<and> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3561 |
(\<exists>r. homotopic_with (\<lambda>x. True) X X id r \<and> retraction_maps X (subtopology X S) r id) \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3562 |
S retract_of_space X \<and> (\<exists>f. homotopic_with (\<lambda>x. True) X X id f \<and> f ` (topspace X) \<subseteq> S)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3563 |
proof (cases "S \<subseteq> topspace X") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3564 |
case True |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3565 |
moreover have "(\<exists>r. homotopic_with (\<lambda>x. True) X X id r \<and> retraction_maps X (subtopology X S) r id) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3566 |
\<longleftrightarrow> (S retract_of_space X \<and> (\<exists>f. homotopic_with (\<lambda>x. True) X X id f \<and> f ` topspace X \<subseteq> S))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3567 |
unfolding retract_of_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3568 |
proof safe |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3569 |
fix f r |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3570 |
assume f: "homotopic_with (\<lambda>x. True) X X id f" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3571 |
and fS: "f ` topspace X \<subseteq> S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3572 |
and r: "continuous_map X (subtopology X S) r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3573 |
and req: "\<forall>x\<in>S. r x = x" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3574 |
show "\<exists>r. homotopic_with (\<lambda>x. True) X X id r \<and> retraction_maps X (subtopology X S) r id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3575 |
proof (intro exI conjI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3576 |
have "homotopic_with (\<lambda>x. True) X X f r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3577 |
proof (rule homotopic_with_eq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3578 |
show "homotopic_with (\<lambda>x. True) X X (r \<circ> f) (r \<circ> id)" |
71745 | 3579 |
by (metis continuous_map_into_fulltopology f homotopic_with_compose_continuous_map_left homotopic_with_symD r) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3580 |
show "f x = (r \<circ> f) x" if "x \<in> topspace X" for x |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3581 |
using that fS req by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3582 |
qed auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3583 |
then show "homotopic_with (\<lambda>x. True) X X id r" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3584 |
by (rule homotopic_with_trans [OF f]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3585 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3586 |
show "retraction_maps X (subtopology X S) r id" |
71172 | 3587 |
by (simp add: r req retraction_maps_def) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3588 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3589 |
qed (use True in \<open>auto simp: retraction_maps_def topspace_subtopology_subset continuous_map_in_subtopology\<close>) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3590 |
ultimately show ?thesis by simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3591 |
qed (auto simp: retract_of_space_def retraction_maps_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3592 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3593 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3594 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3595 |
subsection\<open>Contractible spaces\<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3596 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3597 |
text\<open>The definition (which agrees with "contractible" on subsets of Euclidean space) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3598 |
is a little cryptic because we don't in fact assume that the constant "a" is in the space. |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3599 |
This forces the convention that the empty space / set is contractible, avoiding some special cases. \<close> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3600 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3601 |
definition contractible_space where |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3602 |
"contractible_space X \<equiv> \<exists>a. homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3603 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3604 |
lemma contractible_space_top_of_set [simp]:"contractible_space (top_of_set S) \<longleftrightarrow> contractible S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3605 |
by (auto simp: contractible_space_def contractible_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3606 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3607 |
lemma contractible_space_empty: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3608 |
"topspace X = {} \<Longrightarrow> contractible_space X" |
71745 | 3609 |
unfolding contractible_space_def homotopic_with_def |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3610 |
apply (rule_tac x=undefined in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3611 |
apply (rule_tac x="\<lambda>(t,x). if t = 0 then x else undefined" in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3612 |
apply (auto simp: continuous_map_on_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3613 |
done |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3614 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3615 |
lemma contractible_space_singleton: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3616 |
"topspace X = {a} \<Longrightarrow> contractible_space X" |
71745 | 3617 |
unfolding contractible_space_def homotopic_with_def |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3618 |
apply (rule_tac x=a in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3619 |
apply (rule_tac x="\<lambda>(t,x). if t = 0 then x else a" in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3620 |
apply (auto intro: continuous_map_eq [where f = "\<lambda>z. a"]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3621 |
done |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3622 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3623 |
lemma contractible_space_subset_singleton: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3624 |
"topspace X \<subseteq> {a} \<Longrightarrow> contractible_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3625 |
by (meson contractible_space_empty contractible_space_singleton subset_singletonD) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3626 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3627 |
lemma contractible_space_subtopology_singleton: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3628 |
"contractible_space(subtopology X {a})" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3629 |
by (meson contractible_space_subset_singleton insert_subset path_connectedin_singleton path_connectedin_subtopology subsetI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3630 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3631 |
lemma contractible_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3632 |
"contractible_space X \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3633 |
topspace X = {} \<or> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3634 |
(\<exists>a \<in> topspace X. homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3635 |
proof (cases "topspace X = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3636 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3637 |
then show ?thesis |
71745 | 3638 |
using homotopic_with_imp_continuous_maps by (fastforce simp: contractible_space_def) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3639 |
qed (simp add: contractible_space_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3640 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3641 |
lemma contractible_imp_path_connected_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3642 |
assumes "contractible_space X" shows "path_connected_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3643 |
proof (cases "topspace X = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3644 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3645 |
have *: "path_connected_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3646 |
if "a \<in> topspace X" and conth: "continuous_map (prod_topology (top_of_set {0..1}) X) X h" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3647 |
and h: "\<forall>x. h (0, x) = x" "\<forall>x. h (1, x) = a" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3648 |
for a and h :: "real \<times> 'a \<Rightarrow> 'a" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3649 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3650 |
have "path_component_of X b a" if "b \<in> topspace X" for b |
71745 | 3651 |
unfolding path_component_of_def |
3652 |
proof (intro exI conjI) |
|
3653 |
let ?g = "h \<circ> (\<lambda>x. (x,b))" |
|
3654 |
show "pathin X ?g" |
|
3655 |
unfolding pathin_def |
|
3656 |
apply (rule continuous_map_compose [OF _ conth]) |
|
3657 |
using that |
|
3658 |
apply (auto simp: continuous_map_pairwise intro!: continuous_intros continuous_map_compose continuous_map_id [unfolded id_def]) |
|
3659 |
done |
|
3660 |
qed (use h in auto) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3661 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3662 |
by (metis path_component_of_equiv path_connected_space_iff_path_component) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3663 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3664 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3665 |
using assms False by (auto simp: contractible_space homotopic_with_def *) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3666 |
qed (simp add: path_connected_space_topspace_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3667 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3668 |
lemma contractible_imp_connected_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3669 |
"contractible_space X \<Longrightarrow> connected_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3670 |
by (simp add: contractible_imp_path_connected_space path_connected_imp_connected_space) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3671 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3672 |
lemma contractible_space_alt: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3673 |
"contractible_space X \<longleftrightarrow> (\<forall>a \<in> topspace X. homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a))" (is "?lhs = ?rhs") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3674 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3675 |
assume X: ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3676 |
then obtain a where a: "homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3677 |
by (auto simp: contractible_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3678 |
show ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3679 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3680 |
show "homotopic_with (\<lambda>x. True) X X id (\<lambda>x. b)" if "b \<in> topspace X" for b |
71745 | 3681 |
proof (rule homotopic_with_trans [OF a]) |
3682 |
show "homotopic_with (\<lambda>x. True) X X (\<lambda>x. a) (\<lambda>x. b)" |
|
3683 |
using homotopic_constant_maps path_connected_space_imp_path_component_of |
|
3684 |
by (metis (full_types) X a continuous_map_const contractible_imp_path_connected_space homotopic_with_imp_continuous_maps that) |
|
3685 |
qed |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3686 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3687 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3688 |
assume R: ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3689 |
then show ?lhs |
71745 | 3690 |
unfolding contractible_space_def by (metis equals0I homotopic_on_emptyI) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3691 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3692 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3693 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3694 |
lemma compose_const [simp]: "f \<circ> (\<lambda>x. a) = (\<lambda>x. f a)" "(\<lambda>x. a) \<circ> g = (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3695 |
by (simp_all add: o_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3696 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3697 |
lemma nullhomotopic_through_contractible_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3698 |
assumes f: "continuous_map X Y f" and g: "continuous_map Y Z g" and Y: "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3699 |
obtains c where "homotopic_with (\<lambda>h. True) X Z (g \<circ> f) (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3700 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3701 |
obtain b where b: "homotopic_with (\<lambda>x. True) Y Y id (\<lambda>x. b)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3702 |
using Y by (auto simp: contractible_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3703 |
show thesis |
71745 | 3704 |
using homotopic_with_compose_continuous_map_right |
3705 |
[OF homotopic_with_compose_continuous_map_left [OF b g] f] |
|
3706 |
by (force simp add: that) |
|
69620 | 3707 |
qed |
3708 |
||
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3709 |
lemma nullhomotopic_into_contractible_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3710 |
assumes f: "continuous_map X Y f" and Y: "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3711 |
obtains c where "homotopic_with (\<lambda>h. True) X Y f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3712 |
using nullhomotopic_through_contractible_space [OF f _ Y] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3713 |
by (metis continuous_map_id id_comp) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3714 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3715 |
lemma nullhomotopic_from_contractible_space: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3716 |
assumes f: "continuous_map X Y f" and X: "contractible_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3717 |
obtains c where "homotopic_with (\<lambda>h. True) X Y f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3718 |
using nullhomotopic_through_contractible_space [OF _ f X] |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3719 |
by (metis comp_id continuous_map_id) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3720 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3721 |
lemma homotopy_dominated_contractibility: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3722 |
assumes f: "continuous_map X Y f" and g: "continuous_map Y X g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3723 |
and hom: "homotopic_with (\<lambda>x. True) Y Y (f \<circ> g) id" and X: "contractible_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3724 |
shows "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3725 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3726 |
obtain c where c: "homotopic_with (\<lambda>h. True) X Y f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3727 |
using nullhomotopic_from_contractible_space [OF f X] . |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3728 |
have "homotopic_with (\<lambda>x. True) Y Y (f \<circ> g) (\<lambda>x. c)" |
71745 | 3729 |
using homotopic_with_compose_continuous_map_right [OF c g] by fastforce |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3730 |
then have "homotopic_with (\<lambda>x. True) Y Y id (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3731 |
using homotopic_with_trans [OF _ hom] homotopic_with_symD by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3732 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3733 |
unfolding contractible_space_def .. |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3734 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3735 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3736 |
lemma homotopy_equivalent_space_contractibility: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3737 |
"X homotopy_equivalent_space Y \<Longrightarrow> (contractible_space X \<longleftrightarrow> contractible_space Y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3738 |
unfolding homotopy_equivalent_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3739 |
by (blast intro: homotopy_dominated_contractibility) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3740 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3741 |
lemma homeomorphic_space_contractibility: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3742 |
"X homeomorphic_space Y |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3743 |
\<Longrightarrow> (contractible_space X \<longleftrightarrow> contractible_space Y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3744 |
by (simp add: homeomorphic_imp_homotopy_equivalent_space homotopy_equivalent_space_contractibility) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3745 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3746 |
lemma contractible_eq_homotopy_equivalent_singleton_subtopology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3747 |
"contractible_space X \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3748 |
topspace X = {} \<or> (\<exists>a \<in> topspace X. X homotopy_equivalent_space (subtopology X {a}))"(is "?lhs = ?rhs") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3749 |
proof (cases "topspace X = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3750 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3751 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3752 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3753 |
assume ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3754 |
then obtain a where a: "homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3755 |
by (auto simp: contractible_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3756 |
then have "a \<in> topspace X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3757 |
by (metis False continuous_map_const homotopic_with_imp_continuous_maps) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3758 |
then have "X homotopy_equivalent_space subtopology X {a}" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3759 |
unfolding homotopy_equivalent_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3760 |
apply (rule_tac x="\<lambda>x. a" in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3761 |
apply (rule_tac x=id in exI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3762 |
apply (auto simp: homotopic_with_sym topspace_subtopology_subset a) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3763 |
using connectedin_absolute connectedin_sing contractible_space_alt contractible_space_subtopology_singleton by fastforce |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3764 |
with \<open>a \<in> topspace X\<close> show ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3765 |
by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3766 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3767 |
assume ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3768 |
then show ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3769 |
by (meson False contractible_space_subtopology_singleton homotopy_equivalent_space_contractibility) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3770 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3771 |
qed (simp add: contractible_space_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3772 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3773 |
lemma contractible_space_retraction_map_image: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3774 |
assumes "retraction_map X Y f" and X: "contractible_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3775 |
shows "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3776 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3777 |
obtain g where f: "continuous_map X Y f" and g: "continuous_map Y X g" and fg: "\<forall>y \<in> topspace Y. f(g y) = y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3778 |
using assms by (auto simp: retraction_map_def retraction_maps_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3779 |
obtain a where a: "homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3780 |
using X by (auto simp: contractible_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3781 |
have "homotopic_with (\<lambda>x. True) Y Y id (\<lambda>x. f a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3782 |
proof (rule homotopic_with_eq) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3783 |
show "homotopic_with (\<lambda>x. True) Y Y (f \<circ> id \<circ> g) (f \<circ> (\<lambda>x. a) \<circ> g)" |
71745 | 3784 |
using f g a homotopic_with_compose_continuous_map_left homotopic_with_compose_continuous_map_right by metis |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3785 |
qed (use fg in auto) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3786 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3787 |
unfolding contractible_space_def by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3788 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3789 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3790 |
lemma contractible_space_prod_topology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3791 |
"contractible_space(prod_topology X Y) \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3792 |
topspace X = {} \<or> topspace Y = {} \<or> contractible_space X \<and> contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3793 |
proof (cases "topspace X = {} \<or> topspace Y = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3794 |
case True |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3795 |
then have "topspace (prod_topology X Y) = {}" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3796 |
by simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3797 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3798 |
by (auto simp: contractible_space_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3799 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3800 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3801 |
have "contractible_space(prod_topology X Y) \<longleftrightarrow> contractible_space X \<and> contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3802 |
proof safe |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3803 |
assume XY: "contractible_space (prod_topology X Y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3804 |
with False have "retraction_map (prod_topology X Y) X fst" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3805 |
by (auto simp: contractible_space False retraction_map_fst) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3806 |
then show "contractible_space X" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3807 |
by (rule contractible_space_retraction_map_image [OF _ XY]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3808 |
have "retraction_map (prod_topology X Y) Y snd" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3809 |
using False XY by (auto simp: contractible_space False retraction_map_snd) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3810 |
then show "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3811 |
by (rule contractible_space_retraction_map_image [OF _ XY]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3812 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3813 |
assume "contractible_space X" and "contractible_space Y" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3814 |
with False obtain a b |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3815 |
where "a \<in> topspace X" and a: "homotopic_with (\<lambda>x. True) X X id (\<lambda>x. a)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3816 |
and "b \<in> topspace Y" and b: "homotopic_with (\<lambda>x. True) Y Y id (\<lambda>x. b)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3817 |
by (auto simp: contractible_space) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3818 |
with False show "contractible_space (prod_topology X Y)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3819 |
apply (simp add: contractible_space) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3820 |
apply (rule_tac x=a in bexI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3821 |
apply (rule_tac x=b in bexI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3822 |
using homotopic_with_prod_topology [OF a b] |
70033 | 3823 |
apply (metis (no_types, lifting) case_prod_Pair case_prod_beta' eq_id_iff) |
3824 |
apply auto |
|
3825 |
done |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3826 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3827 |
with False show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3828 |
by auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3829 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3830 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3831 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3832 |
lemma contractible_space_product_topology: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3833 |
"contractible_space(product_topology X I) \<longleftrightarrow> |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3834 |
topspace (product_topology X I) = {} \<or> (\<forall>i \<in> I. contractible_space(X i))" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3835 |
proof (cases "topspace (product_topology X I) = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3836 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3837 |
have 1: "contractible_space (X i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3838 |
if XI: "contractible_space (product_topology X I)" and "i \<in> I" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3839 |
for i |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3840 |
proof (rule contractible_space_retraction_map_image [OF _ XI]) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3841 |
show "retraction_map (product_topology X I) (X i) (\<lambda>x. x i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3842 |
using False by (simp add: retraction_map_product_projection \<open>i \<in> I\<close>) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3843 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3844 |
have 2: "contractible_space (product_topology X I)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3845 |
if "x \<in> topspace (product_topology X I)" and cs: "\<forall>i\<in>I. contractible_space (X i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3846 |
for x :: "'a \<Rightarrow> 'b" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3847 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3848 |
obtain f where f: "\<And>i. i\<in>I \<Longrightarrow> homotopic_with (\<lambda>x. True) (X i) (X i) id (\<lambda>x. f i)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3849 |
using cs unfolding contractible_space_def by metis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3850 |
have "homotopic_with (\<lambda>x. True) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3851 |
(product_topology X I) (product_topology X I) id (\<lambda>x. restrict f I)" |
71172 | 3852 |
by (rule homotopic_with_eq [OF homotopic_with_product_topology [OF f]]) (auto) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3853 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3854 |
by (auto simp: contractible_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3855 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3856 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3857 |
using False 1 2 by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3858 |
qed (simp add: contractible_space_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3859 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3860 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3861 |
lemma contractible_space_subtopology_euclideanreal [simp]: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3862 |
"contractible_space(subtopology euclideanreal S) \<longleftrightarrow> is_interval S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3863 |
(is "?lhs = ?rhs") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3864 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3865 |
assume ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3866 |
then have "path_connectedin (subtopology euclideanreal S) S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3867 |
using contractible_imp_path_connected_space path_connectedin_topspace path_connectedin_absolute |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3868 |
by (simp add: contractible_imp_path_connected) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3869 |
then show ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3870 |
by (simp add: is_interval_path_connected_1) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3871 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3872 |
assume ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3873 |
then have "convex S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3874 |
by (simp add: is_interval_convex_1) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3875 |
show ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3876 |
proof (cases "S = {}") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3877 |
case False |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3878 |
then obtain z where "z \<in> S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3879 |
by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3880 |
show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3881 |
unfolding contractible_space_def homotopic_with_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3882 |
proof (intro exI conjI allI) |
71745 | 3883 |
note \<section> = convexD [OF \<open>convex S\<close>, simplified] |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3884 |
show "continuous_map (prod_topology (top_of_set {0..1}) (top_of_set S)) (top_of_set S) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3885 |
(\<lambda>(t,x). (1 - t) * x + t * z)" |
71745 | 3886 |
using \<open>z \<in> S\<close> |
3887 |
by (auto simp add: case_prod_unfold intro!: continuous_intros \<section>) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3888 |
qed auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3889 |
qed (simp add: contractible_space_empty) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3890 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3891 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3892 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3893 |
corollary contractible_space_euclideanreal: "contractible_space euclideanreal" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3894 |
proof - |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3895 |
have "contractible_space (subtopology euclideanreal UNIV)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3896 |
using contractible_space_subtopology_euclideanreal by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3897 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3898 |
by simp |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3899 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3900 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3901 |
|
70136 | 3902 |
abbreviation\<^marker>\<open>tag important\<close> homotopy_eqv :: "'a::topological_space set \<Rightarrow> 'b::topological_space set \<Rightarrow> bool" |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3903 |
(infix "homotopy'_eqv" 50) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3904 |
where "S homotopy_eqv T \<equiv> top_of_set S homotopy_equivalent_space top_of_set T" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3905 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3906 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3907 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3908 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3909 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3910 |
lemma homeomorphic_imp_homotopy_eqv: "S homeomorphic T \<Longrightarrow> S homotopy_eqv T" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3911 |
unfolding homeomorphic_def homeomorphism_def homotopy_equivalent_space_def |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3912 |
apply (erule ex_forward)+ |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3913 |
apply auto |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3914 |
apply (metis homotopic_with_id2 topspace_euclidean_subtopology) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3915 |
by (metis (full_types) homotopic_with_id2 imageE topspace_euclidean_subtopology) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3916 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3917 |
|
69620 | 3918 |
lemma homotopy_eqv_inj_linear_image: |
3919 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
3920 |
assumes "linear f" "inj f" |
|
3921 |
shows "(f ` S) homotopy_eqv S" |
|
71745 | 3922 |
by (metis assms homeomorphic_sym homeomorphic_imp_homotopy_eqv linear_homeomorphic_image) |
69620 | 3923 |
|
3924 |
lemma homotopy_eqv_translation: |
|
3925 |
fixes S :: "'a::real_normed_vector set" |
|
3926 |
shows "(+) a ` S homotopy_eqv S" |
|
71745 | 3927 |
using homeomorphic_imp_homotopy_eqv homeomorphic_translation homeomorphic_sym by blast |
69620 | 3928 |
|
3929 |
lemma homotopy_eqv_homotopic_triviality_imp: |
|
3930 |
fixes S :: "'a::real_normed_vector set" |
|
3931 |
and T :: "'b::real_normed_vector set" |
|
3932 |
and U :: "'c::real_normed_vector set" |
|
3933 |
assumes "S homotopy_eqv T" |
|
3934 |
and f: "continuous_on U f" "f ` U \<subseteq> T" |
|
3935 |
and g: "continuous_on U g" "g ` U \<subseteq> T" |
|
3936 |
and homUS: "\<And>f g. \<lbrakk>continuous_on U f; f ` U \<subseteq> S; |
|
3937 |
continuous_on U g; g ` U \<subseteq> S\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3938 |
\<Longrightarrow> homotopic_with_canon (\<lambda>x. True) U S f g" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3939 |
shows "homotopic_with_canon (\<lambda>x. True) U T f g" |
69620 | 3940 |
proof - |
3941 |
obtain h k where h: "continuous_on S h" "h ` S \<subseteq> T" |
|
3942 |
and k: "continuous_on T k" "k ` T \<subseteq> S" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3943 |
and hom: "homotopic_with_canon (\<lambda>x. True) S S (k \<circ> h) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3944 |
"homotopic_with_canon (\<lambda>x. True) T T (h \<circ> k) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3945 |
using assms by (auto simp: homotopy_equivalent_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3946 |
have "homotopic_with_canon (\<lambda>f. True) U S (k \<circ> f) (k \<circ> g)" |
71745 | 3947 |
proof (rule homUS) |
3948 |
show "continuous_on U (k \<circ> f)" "continuous_on U (k \<circ> g)" |
|
3949 |
using continuous_on_compose continuous_on_subset f g k by blast+ |
|
3950 |
qed (use f g k in \<open>(force simp: o_def)+\<close> ) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3951 |
then have "homotopic_with_canon (\<lambda>x. True) U T (h \<circ> (k \<circ> f)) (h \<circ> (k \<circ> g))" |
71745 | 3952 |
by (rule homotopic_with_compose_continuous_left; simp add: h) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3953 |
moreover have "homotopic_with_canon (\<lambda>x. True) U T (h \<circ> k \<circ> f) (id \<circ> f)" |
71745 | 3954 |
by (rule homotopic_with_compose_continuous_right [where X=T and Y=T]; simp add: hom f) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3955 |
moreover have "homotopic_with_canon (\<lambda>x. True) U T (h \<circ> k \<circ> g) (id \<circ> g)" |
71745 | 3956 |
by (rule homotopic_with_compose_continuous_right [where X=T and Y=T]; simp add: hom g) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3957 |
ultimately show "homotopic_with_canon (\<lambda>x. True) U T f g" |
71745 | 3958 |
unfolding o_assoc |
3959 |
by (metis homotopic_with_trans homotopic_with_sym id_comp) |
|
69620 | 3960 |
qed |
3961 |
||
3962 |
lemma homotopy_eqv_homotopic_triviality: |
|
3963 |
fixes S :: "'a::real_normed_vector set" |
|
3964 |
and T :: "'b::real_normed_vector set" |
|
3965 |
and U :: "'c::real_normed_vector set" |
|
3966 |
assumes "S homotopy_eqv T" |
|
3967 |
shows "(\<forall>f g. continuous_on U f \<and> f ` U \<subseteq> S \<and> |
|
3968 |
continuous_on U g \<and> g ` U \<subseteq> S |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3969 |
\<longrightarrow> homotopic_with_canon (\<lambda>x. True) U S f g) \<longleftrightarrow> |
69620 | 3970 |
(\<forall>f g. continuous_on U f \<and> f ` U \<subseteq> T \<and> |
3971 |
continuous_on U g \<and> g ` U \<subseteq> T |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3972 |
\<longrightarrow> homotopic_with_canon (\<lambda>x. True) U T f g)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3973 |
(is "?lhs = ?rhs") |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3974 |
proof |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3975 |
assume ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3976 |
then show ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3977 |
by (metis assms homotopy_eqv_homotopic_triviality_imp) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3978 |
next |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3979 |
assume ?rhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3980 |
moreover |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3981 |
have "T homotopy_eqv S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3982 |
using assms homotopy_equivalent_space_sym by blast |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3983 |
ultimately show ?lhs |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3984 |
by (blast intro: homotopy_eqv_homotopic_triviality_imp) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3985 |
qed |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3986 |
|
69620 | 3987 |
|
3988 |
lemma homotopy_eqv_cohomotopic_triviality_null_imp: |
|
3989 |
fixes S :: "'a::real_normed_vector set" |
|
3990 |
and T :: "'b::real_normed_vector set" |
|
3991 |
and U :: "'c::real_normed_vector set" |
|
3992 |
assumes "S homotopy_eqv T" |
|
3993 |
and f: "continuous_on T f" "f ` T \<subseteq> U" |
|
3994 |
and homSU: "\<And>f. \<lbrakk>continuous_on S f; f ` S \<subseteq> U\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3995 |
\<Longrightarrow> \<exists>c. homotopic_with_canon (\<lambda>x. True) S U f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
3996 |
obtains c where "homotopic_with_canon (\<lambda>x. True) T U f (\<lambda>x. c)" |
69620 | 3997 |
proof - |
3998 |
obtain h k where h: "continuous_on S h" "h ` S \<subseteq> T" |
|
3999 |
and k: "continuous_on T k" "k ` T \<subseteq> S" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4000 |
and hom: "homotopic_with_canon (\<lambda>x. True) S S (k \<circ> h) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4001 |
"homotopic_with_canon (\<lambda>x. True) T T (h \<circ> k) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4002 |
using assms by (auto simp: homotopy_equivalent_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4003 |
obtain c where "homotopic_with_canon (\<lambda>x. True) S U (f \<circ> h) (\<lambda>x. c)" |
71745 | 4004 |
proof (rule exE [OF homSU]) |
4005 |
show "continuous_on S (f \<circ> h)" |
|
4006 |
using continuous_on_compose continuous_on_subset f h by blast |
|
4007 |
qed (use f h in force) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4008 |
then have "homotopic_with_canon (\<lambda>x. True) T U ((f \<circ> h) \<circ> k) ((\<lambda>x. c) \<circ> k)" |
71745 | 4009 |
by (rule homotopic_with_compose_continuous_right [where X=S]) (use k in auto) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4010 |
moreover have "homotopic_with_canon (\<lambda>x. True) T U (f \<circ> id) (f \<circ> (h \<circ> k))" |
71745 | 4011 |
by (rule homotopic_with_compose_continuous_left [where Y=T]) |
4012 |
(use f in \<open>auto simp add: hom homotopic_with_symD\<close>) |
|
69620 | 4013 |
ultimately show ?thesis |
4014 |
apply (rule_tac c=c in that) |
|
4015 |
apply (simp add: o_def) |
|
4016 |
using homotopic_with_trans by blast |
|
4017 |
qed |
|
4018 |
||
4019 |
lemma homotopy_eqv_cohomotopic_triviality_null: |
|
4020 |
fixes S :: "'a::real_normed_vector set" |
|
4021 |
and T :: "'b::real_normed_vector set" |
|
4022 |
and U :: "'c::real_normed_vector set" |
|
4023 |
assumes "S homotopy_eqv T" |
|
4024 |
shows "(\<forall>f. continuous_on S f \<and> f ` S \<subseteq> U |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4025 |
\<longrightarrow> (\<exists>c. homotopic_with_canon (\<lambda>x. True) S U f (\<lambda>x. c))) \<longleftrightarrow> |
69620 | 4026 |
(\<forall>f. continuous_on T f \<and> f ` T \<subseteq> U |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4027 |
\<longrightarrow> (\<exists>c. homotopic_with_canon (\<lambda>x. True) T U f (\<lambda>x. c)))" |
71745 | 4028 |
by (rule iffI; metis assms homotopy_eqv_cohomotopic_triviality_null_imp homotopy_equivalent_space_sym) |
4029 |
||
4030 |
text \<open>Similar to the proof above\<close> |
|
69620 | 4031 |
lemma homotopy_eqv_homotopic_triviality_null_imp: |
4032 |
fixes S :: "'a::real_normed_vector set" |
|
4033 |
and T :: "'b::real_normed_vector set" |
|
4034 |
and U :: "'c::real_normed_vector set" |
|
4035 |
assumes "S homotopy_eqv T" |
|
4036 |
and f: "continuous_on U f" "f ` U \<subseteq> T" |
|
4037 |
and homSU: "\<And>f. \<lbrakk>continuous_on U f; f ` U \<subseteq> S\<rbrakk> |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4038 |
\<Longrightarrow> \<exists>c. homotopic_with_canon (\<lambda>x. True) U S f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4039 |
shows "\<exists>c. homotopic_with_canon (\<lambda>x. True) U T f (\<lambda>x. c)" |
69620 | 4040 |
proof - |
4041 |
obtain h k where h: "continuous_on S h" "h ` S \<subseteq> T" |
|
4042 |
and k: "continuous_on T k" "k ` T \<subseteq> S" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4043 |
and hom: "homotopic_with_canon (\<lambda>x. True) S S (k \<circ> h) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4044 |
"homotopic_with_canon (\<lambda>x. True) T T (h \<circ> k) id" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4045 |
using assms by (auto simp: homotopy_equivalent_space_def) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4046 |
obtain c::'a where "homotopic_with_canon (\<lambda>x. True) U S (k \<circ> f) (\<lambda>x. c)" |
71745 | 4047 |
proof (rule exE [OF homSU [of "k \<circ> f"]]) |
4048 |
show "continuous_on U (k \<circ> f)" |
|
4049 |
using continuous_on_compose continuous_on_subset f k by blast |
|
4050 |
qed (use f k in force) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4051 |
then have "homotopic_with_canon (\<lambda>x. True) U T (h \<circ> (k \<circ> f)) (h \<circ> (\<lambda>x. c))" |
71745 | 4052 |
by (rule homotopic_with_compose_continuous_left [where Y=S]) (use h in auto) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4053 |
moreover have "homotopic_with_canon (\<lambda>x. True) U T (id \<circ> f) ((h \<circ> k) \<circ> f)" |
71745 | 4054 |
by (rule homotopic_with_compose_continuous_right [where X=T]) |
4055 |
(use f in \<open>auto simp add: hom homotopic_with_symD\<close>) |
|
69620 | 4056 |
ultimately show ?thesis |
4057 |
using homotopic_with_trans by (fastforce simp add: o_def) |
|
4058 |
qed |
|
4059 |
||
4060 |
lemma homotopy_eqv_homotopic_triviality_null: |
|
4061 |
fixes S :: "'a::real_normed_vector set" |
|
4062 |
and T :: "'b::real_normed_vector set" |
|
4063 |
and U :: "'c::real_normed_vector set" |
|
4064 |
assumes "S homotopy_eqv T" |
|
4065 |
shows "(\<forall>f. continuous_on U f \<and> f ` U \<subseteq> S |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4066 |
\<longrightarrow> (\<exists>c. homotopic_with_canon (\<lambda>x. True) U S f (\<lambda>x. c))) \<longleftrightarrow> |
69620 | 4067 |
(\<forall>f. continuous_on U f \<and> f ` U \<subseteq> T |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4068 |
\<longrightarrow> (\<exists>c. homotopic_with_canon (\<lambda>x. True) U T f (\<lambda>x. c)))" |
71745 | 4069 |
by (rule iffI; metis assms homotopy_eqv_homotopic_triviality_null_imp homotopy_equivalent_space_sym) |
69620 | 4070 |
|
4071 |
lemma homotopy_eqv_contractible_sets: |
|
4072 |
fixes S :: "'a::real_normed_vector set" |
|
4073 |
and T :: "'b::real_normed_vector set" |
|
4074 |
assumes "contractible S" "contractible T" "S = {} \<longleftrightarrow> T = {}" |
|
4075 |
shows "S homotopy_eqv T" |
|
4076 |
proof (cases "S = {}") |
|
4077 |
case True with assms show ?thesis |
|
4078 |
by (simp add: homeomorphic_imp_homotopy_eqv) |
|
4079 |
next |
|
4080 |
case False |
|
4081 |
with assms obtain a b where "a \<in> S" "b \<in> T" |
|
4082 |
by auto |
|
4083 |
then show ?thesis |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4084 |
unfolding homotopy_equivalent_space_def |
69620 | 4085 |
apply (rule_tac x="\<lambda>x. b" in exI) |
4086 |
apply (rule_tac x="\<lambda>x. a" in exI) |
|
4087 |
apply (intro assms conjI continuous_on_id' homotopic_into_contractible) |
|
71172 | 4088 |
apply (auto simp: o_def) |
69620 | 4089 |
done |
4090 |
qed |
|
4091 |
||
4092 |
lemma homotopy_eqv_empty1 [simp]: |
|
4093 |
fixes S :: "'a::real_normed_vector set" |
|
4094 |
shows "S homotopy_eqv ({}::'b::real_normed_vector set) \<longleftrightarrow> S = {}" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4095 |
apply (rule iffI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4096 |
apply (metis Abstract_Topology.continuous_map_subtopology_eu emptyE equals0I homotopy_equivalent_space_def image_subset_iff) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4097 |
by (simp add: homotopy_eqv_contractible_sets) |
69620 | 4098 |
|
4099 |
lemma homotopy_eqv_empty2 [simp]: |
|
4100 |
fixes S :: "'a::real_normed_vector set" |
|
4101 |
shows "({}::'b::real_normed_vector set) homotopy_eqv S \<longleftrightarrow> S = {}" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4102 |
using homotopy_equivalent_space_sym homotopy_eqv_empty1 by blast |
69620 | 4103 |
|
4104 |
lemma homotopy_eqv_contractibility: |
|
4105 |
fixes S :: "'a::real_normed_vector set" and T :: "'b::real_normed_vector set" |
|
4106 |
shows "S homotopy_eqv T \<Longrightarrow> (contractible S \<longleftrightarrow> contractible T)" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
4107 |
by (meson contractible_space_top_of_set homotopy_equivalent_space_contractibility) |
69620 | 4108 |
|
4109 |
lemma homotopy_eqv_sing: |
|
4110 |
fixes S :: "'a::real_normed_vector set" and a :: "'b::real_normed_vector" |
|
4111 |
shows "S homotopy_eqv {a} \<longleftrightarrow> S \<noteq> {} \<and> contractible S" |
|
4112 |
proof (cases "S = {}") |
|
4113 |
case True then show ?thesis |
|
4114 |
by simp |
|
4115 |
next |
|
4116 |
case False then show ?thesis |
|
4117 |
by (metis contractible_sing empty_not_insert homotopy_eqv_contractibility homotopy_eqv_contractible_sets) |
|
4118 |
qed |
|
4119 |
||
4120 |
lemma homeomorphic_contractible_eq: |
|
4121 |
fixes S :: "'a::real_normed_vector set" and T :: "'b::real_normed_vector set" |
|
4122 |
shows "S homeomorphic T \<Longrightarrow> (contractible S \<longleftrightarrow> contractible T)" |
|
4123 |
by (simp add: homeomorphic_imp_homotopy_eqv homotopy_eqv_contractibility) |
|
4124 |
||
4125 |
lemma homeomorphic_contractible: |
|
4126 |
fixes S :: "'a::real_normed_vector set" and T :: "'b::real_normed_vector set" |
|
4127 |
shows "\<lbrakk>contractible S; S homeomorphic T\<rbrakk> \<Longrightarrow> contractible T" |
|
4128 |
by (metis homeomorphic_contractible_eq) |
|
4129 |
||
4130 |
||
70136 | 4131 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Misc other results\<close> |
69620 | 4132 |
|
4133 |
lemma bounded_connected_Compl_real: |
|
4134 |
fixes S :: "real set" |
|
4135 |
assumes "bounded S" and conn: "connected(- S)" |
|
4136 |
shows "S = {}" |
|
4137 |
proof - |
|
4138 |
obtain a b where "S \<subseteq> box a b" |
|
4139 |
by (meson assms bounded_subset_box_symmetric) |
|
4140 |
then have "a \<notin> S" "b \<notin> S" |
|
4141 |
by auto |
|
4142 |
then have "\<forall>x. a \<le> x \<and> x \<le> b \<longrightarrow> x \<in> - S" |
|
4143 |
by (meson Compl_iff conn connected_iff_interval) |
|
4144 |
then show ?thesis |
|
4145 |
using \<open>S \<subseteq> box a b\<close> by auto |
|
4146 |
qed |
|
4147 |
||
69918
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
paulson <lp15@cam.ac.uk>
parents:
69768
diff
changeset
|
4148 |
corollary bounded_path_connected_Compl_real: |
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
paulson <lp15@cam.ac.uk>
parents:
69768
diff
changeset
|
4149 |
fixes S :: "real set" |
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
paulson <lp15@cam.ac.uk>
parents:
69768
diff
changeset
|
4150 |
assumes "bounded S" "path_connected(- S)" shows "S = {}" |
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
paulson <lp15@cam.ac.uk>
parents:
69768
diff
changeset
|
4151 |
by (simp add: assms bounded_connected_Compl_real path_connected_imp_connected) |
eddcc7c726f3
new material;' strengthened material; moved proofs out of Function_Topology in order to lessen its dependencies
paulson <lp15@cam.ac.uk>
parents:
69768
diff
changeset
|
4152 |
|
69620 | 4153 |
lemma bounded_connected_Compl_1: |
4154 |
fixes S :: "'a::{euclidean_space} set" |
|
4155 |
assumes "bounded S" and conn: "connected(- S)" and 1: "DIM('a) = 1" |
|
4156 |
shows "S = {}" |
|
4157 |
proof - |
|
4158 |
have "DIM('a) = DIM(real)" |
|
4159 |
by (simp add: "1") |
|
4160 |
then obtain f::"'a \<Rightarrow> real" and g |
|
4161 |
where "linear f" "\<And>x. norm(f x) = norm x" "\<And>x. g(f x) = x" "\<And>y. f(g y) = y" |
|
4162 |
by (rule isomorphisms_UNIV_UNIV) blast |
|
4163 |
with \<open>bounded S\<close> have "bounded (f ` S)" |
|
4164 |
using bounded_linear_image linear_linear by blast |
|
4165 |
have "connected (f ` (-S))" |
|
4166 |
using connected_linear_image assms \<open>linear f\<close> by blast |
|
4167 |
moreover have "f ` (-S) = - (f ` S)" |
|
4168 |
apply (rule bij_image_Compl_eq) |
|
4169 |
apply (auto simp: bij_def) |
|
4170 |
apply (metis \<open>\<And>x. g (f x) = x\<close> injI) |
|
4171 |
by (metis UNIV_I \<open>\<And>y. f (g y) = y\<close> image_iff) |
|
4172 |
finally have "connected (- (f ` S))" |
|
4173 |
by simp |
|
4174 |
then have "f ` S = {}" |
|
4175 |
using \<open>bounded (f ` S)\<close> bounded_connected_Compl_real by blast |
|
4176 |
then show ?thesis |
|
4177 |
by blast |
|
4178 |
qed |
|
4179 |
||
4180 |
||
70136 | 4181 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Some Uncountable Sets\<close> |
69620 | 4182 |
|
4183 |
lemma uncountable_closed_segment: |
|
4184 |
fixes a :: "'a::real_normed_vector" |
|
4185 |
assumes "a \<noteq> b" shows "uncountable (closed_segment a b)" |
|
4186 |
unfolding path_image_linepath [symmetric] path_image_def |
|
4187 |
using inj_on_linepath [OF assms] uncountable_closed_interval [of 0 1] |
|
4188 |
countable_image_inj_on by auto |
|
4189 |
||
4190 |
lemma uncountable_open_segment: |
|
4191 |
fixes a :: "'a::real_normed_vector" |
|
4192 |
assumes "a \<noteq> b" shows "uncountable (open_segment a b)" |
|
4193 |
by (simp add: assms open_segment_def uncountable_closed_segment uncountable_minus_countable) |
|
4194 |
||
4195 |
lemma uncountable_convex: |
|
4196 |
fixes a :: "'a::real_normed_vector" |
|
4197 |
assumes "convex S" "a \<in> S" "b \<in> S" "a \<noteq> b" |
|
4198 |
shows "uncountable S" |
|
4199 |
proof - |
|
4200 |
have "uncountable (closed_segment a b)" |
|
4201 |
by (simp add: uncountable_closed_segment assms) |
|
4202 |
then show ?thesis |
|
4203 |
by (meson assms convex_contains_segment countable_subset) |
|
4204 |
qed |
|
4205 |
||
4206 |
lemma uncountable_ball: |
|
4207 |
fixes a :: "'a::euclidean_space" |
|
4208 |
assumes "r > 0" |
|
4209 |
shows "uncountable (ball a r)" |
|
4210 |
proof - |
|
4211 |
have "uncountable (open_segment a (a + r *\<^sub>R (SOME i. i \<in> Basis)))" |
|
4212 |
by (metis Basis_zero SOME_Basis add_cancel_right_right assms less_le scale_eq_0_iff uncountable_open_segment) |
|
4213 |
moreover have "open_segment a (a + r *\<^sub>R (SOME i. i \<in> Basis)) \<subseteq> ball a r" |
|
4214 |
using assms by (auto simp: in_segment algebra_simps dist_norm SOME_Basis) |
|
4215 |
ultimately show ?thesis |
|
4216 |
by (metis countable_subset) |
|
4217 |
qed |
|
4218 |
||
4219 |
lemma ball_minus_countable_nonempty: |
|
4220 |
assumes "countable (A :: 'a :: euclidean_space set)" "r > 0" |
|
4221 |
shows "ball z r - A \<noteq> {}" |
|
4222 |
proof |
|
4223 |
assume *: "ball z r - A = {}" |
|
4224 |
have "uncountable (ball z r - A)" |
|
4225 |
by (intro uncountable_minus_countable assms uncountable_ball) |
|
4226 |
thus False by (subst (asm) *) auto |
|
4227 |
qed |
|
4228 |
||
4229 |
lemma uncountable_cball: |
|
4230 |
fixes a :: "'a::euclidean_space" |
|
4231 |
assumes "r > 0" |
|
4232 |
shows "uncountable (cball a r)" |
|
4233 |
using assms countable_subset uncountable_ball by auto |
|
4234 |
||
4235 |
lemma pairwise_disjnt_countable: |
|
4236 |
fixes \<N> :: "nat set set" |
|
4237 |
assumes "pairwise disjnt \<N>" |
|
4238 |
shows "countable \<N>" |
|
4239 |
proof - |
|
4240 |
have "inj_on (\<lambda>X. SOME n. n \<in> X) (\<N> - {{}})" |
|
4241 |
apply (clarsimp simp add: inj_on_def) |
|
4242 |
by (metis assms disjnt_insert2 insert_absorb pairwise_def subsetI subset_empty tfl_some) |
|
4243 |
then show ?thesis |
|
4244 |
by (metis countable_Diff_eq countable_def) |
|
4245 |
qed |
|
4246 |
||
4247 |
lemma pairwise_disjnt_countable_Union: |
|
4248 |
assumes "countable (\<Union>\<N>)" and pwd: "pairwise disjnt \<N>" |
|
4249 |
shows "countable \<N>" |
|
4250 |
proof - |
|
4251 |
obtain f :: "_ \<Rightarrow> nat" where f: "inj_on f (\<Union>\<N>)" |
|
4252 |
using assms by blast |
|
4253 |
then have "pairwise disjnt (\<Union> X \<in> \<N>. {f ` X})" |
|
4254 |
using assms by (force simp: pairwise_def disjnt_inj_on_iff [OF f]) |
|
4255 |
then have "countable (\<Union> X \<in> \<N>. {f ` X})" |
|
4256 |
using pairwise_disjnt_countable by blast |
|
4257 |
then show ?thesis |
|
4258 |
by (meson pwd countable_image_inj_on disjoint_image f inj_on_image pairwise_disjnt_countable) |
|
4259 |
qed |
|
4260 |
||
4261 |
lemma connected_uncountable: |
|
4262 |
fixes S :: "'a::metric_space set" |
|
4263 |
assumes "connected S" "a \<in> S" "b \<in> S" "a \<noteq> b" shows "uncountable S" |
|
4264 |
proof - |
|
4265 |
have "continuous_on S (dist a)" |
|
4266 |
by (intro continuous_intros) |
|
4267 |
then have "connected (dist a ` S)" |
|
4268 |
by (metis connected_continuous_image \<open>connected S\<close>) |
|
4269 |
then have "closed_segment 0 (dist a b) \<subseteq> (dist a ` S)" |
|
4270 |
by (simp add: assms closed_segment_subset is_interval_connected_1 is_interval_convex) |
|
4271 |
then have "uncountable (dist a ` S)" |
|
4272 |
by (metis \<open>a \<noteq> b\<close> countable_subset dist_eq_0_iff uncountable_closed_segment) |
|
4273 |
then show ?thesis |
|
4274 |
by blast |
|
4275 |
qed |
|
4276 |
||
4277 |
lemma path_connected_uncountable: |
|
4278 |
fixes S :: "'a::metric_space set" |
|
4279 |
assumes "path_connected S" "a \<in> S" "b \<in> S" "a \<noteq> b" shows "uncountable S" |
|
4280 |
using path_connected_imp_connected assms connected_uncountable by metis |
|
4281 |
||
4282 |
lemma connected_finite_iff_sing: |
|
4283 |
fixes S :: "'a::metric_space set" |
|
4284 |
assumes "connected S" |
|
4285 |
shows "finite S \<longleftrightarrow> S = {} \<or> (\<exists>a. S = {a})" (is "_ = ?rhs") |
|
4286 |
proof - |
|
4287 |
have "uncountable S" if "\<not> ?rhs" |
|
4288 |
using connected_uncountable assms that by blast |
|
4289 |
then show ?thesis |
|
4290 |
using uncountable_infinite by auto |
|
4291 |
qed |
|
4292 |
||
4293 |
lemma connected_card_eq_iff_nontrivial: |
|
4294 |
fixes S :: "'a::metric_space set" |
|
4295 |
shows "connected S \<Longrightarrow> uncountable S \<longleftrightarrow> \<not>(\<exists>a. S \<subseteq> {a})" |
|
4296 |
apply (auto simp: countable_finite finite_subset) |
|
4297 |
by (metis connected_uncountable is_singletonI' is_singleton_the_elem subset_singleton_iff) |
|
4298 |
||
4299 |
lemma simple_path_image_uncountable: |
|
4300 |
fixes g :: "real \<Rightarrow> 'a::metric_space" |
|
4301 |
assumes "simple_path g" |
|
4302 |
shows "uncountable (path_image g)" |
|
4303 |
proof - |
|
4304 |
have "g 0 \<in> path_image g" "g (1/2) \<in> path_image g" |
|
4305 |
by (simp_all add: path_defs) |
|
4306 |
moreover have "g 0 \<noteq> g (1/2)" |
|
4307 |
using assms by (fastforce simp add: simple_path_def) |
|
4308 |
ultimately show ?thesis |
|
4309 |
apply (simp add: assms connected_card_eq_iff_nontrivial connected_simple_path_image) |
|
4310 |
by blast |
|
4311 |
qed |
|
4312 |
||
4313 |
lemma arc_image_uncountable: |
|
4314 |
fixes g :: "real \<Rightarrow> 'a::metric_space" |
|
4315 |
assumes "arc g" |
|
4316 |
shows "uncountable (path_image g)" |
|
4317 |
by (simp add: arc_imp_simple_path assms simple_path_image_uncountable) |
|
4318 |
||
4319 |
||
70136 | 4320 |
subsection\<^marker>\<open>tag unimportant\<close>\<open> Some simple positive connection theorems\<close> |
69620 | 4321 |
|
4322 |
proposition path_connected_convex_diff_countable: |
|
4323 |
fixes U :: "'a::euclidean_space set" |
|
4324 |
assumes "convex U" "\<not> collinear U" "countable S" |
|
4325 |
shows "path_connected(U - S)" |
|
4326 |
proof (clarsimp simp add: path_connected_def) |
|
4327 |
fix a b |
|
4328 |
assume "a \<in> U" "a \<notin> S" "b \<in> U" "b \<notin> S" |
|
4329 |
let ?m = "midpoint a b" |
|
4330 |
show "\<exists>g. path g \<and> path_image g \<subseteq> U - S \<and> pathstart g = a \<and> pathfinish g = b" |
|
4331 |
proof (cases "a = b") |
|
4332 |
case True |
|
4333 |
then show ?thesis |
|
4334 |
by (metis DiffI \<open>a \<in> U\<close> \<open>a \<notin> S\<close> path_component_def path_component_refl) |
|
4335 |
next |
|
4336 |
case False |
|
4337 |
then have "a \<noteq> ?m" "b \<noteq> ?m" |
|
4338 |
using midpoint_eq_endpoint by fastforce+ |
|
4339 |
have "?m \<in> U" |
|
4340 |
using \<open>a \<in> U\<close> \<open>b \<in> U\<close> \<open>convex U\<close> convex_contains_segment by force |
|
4341 |
obtain c where "c \<in> U" and nc_abc: "\<not> collinear {a,b,c}" |
|
4342 |
by (metis False \<open>a \<in> U\<close> \<open>b \<in> U\<close> \<open>\<not> collinear U\<close> collinear_triples insert_absorb) |
|
4343 |
have ncoll_mca: "\<not> collinear {?m,c,a}" |
|
4344 |
by (metis (full_types) \<open>a \<noteq> ?m\<close> collinear_3_trans collinear_midpoint insert_commute nc_abc) |
|
4345 |
have ncoll_mcb: "\<not> collinear {?m,c,b}" |
|
4346 |
by (metis (full_types) \<open>b \<noteq> ?m\<close> collinear_3_trans collinear_midpoint insert_commute nc_abc) |
|
4347 |
have "c \<noteq> ?m" |
|
4348 |
by (metis collinear_midpoint insert_commute nc_abc) |
|
4349 |
then have "closed_segment ?m c \<subseteq> U" |
|
4350 |
by (simp add: \<open>c \<in> U\<close> \<open>?m \<in> U\<close> \<open>convex U\<close> closed_segment_subset) |
|
4351 |
then obtain z where z: "z \<in> closed_segment ?m c" |
|
4352 |
and disjS: "(closed_segment a z \<union> closed_segment z b) \<inter> S = {}" |
|
4353 |
proof - |
|
4354 |
have False if "closed_segment ?m c \<subseteq> {z. (closed_segment a z \<union> closed_segment z b) \<inter> S \<noteq> {}}" |
|
4355 |
proof - |
|
4356 |
have closb: "closed_segment ?m c \<subseteq> |
|
4357 |
{z \<in> closed_segment ?m c. closed_segment a z \<inter> S \<noteq> {}} \<union> {z \<in> closed_segment ?m c. closed_segment z b \<inter> S \<noteq> {}}" |
|
4358 |
using that by blast |
|
4359 |
have *: "countable {z \<in> closed_segment ?m c. closed_segment z u \<inter> S \<noteq> {}}" |
|
4360 |
if "u \<in> U" "u \<notin> S" and ncoll: "\<not> collinear {?m, c, u}" for u |
|
4361 |
proof - |
|
4362 |
have **: False if x1: "x1 \<in> closed_segment ?m c" and x2: "x2 \<in> closed_segment ?m c" |
|
4363 |
and "x1 \<noteq> x2" "x1 \<noteq> u" |
|
4364 |
and w: "w \<in> closed_segment x1 u" "w \<in> closed_segment x2 u" |
|
4365 |
and "w \<in> S" for x1 x2 w |
|
4366 |
proof - |
|
4367 |
have "x1 \<in> affine hull {?m,c}" "x2 \<in> affine hull {?m,c}" |
|
4368 |
using segment_as_ball x1 x2 by auto |
|
4369 |
then have coll_x1: "collinear {x1, ?m, c}" and coll_x2: "collinear {?m, c, x2}" |
|
4370 |
by (simp_all add: affine_hull_3_imp_collinear) (metis affine_hull_3_imp_collinear insert_commute) |
|
4371 |
have "\<not> collinear {x1, u, x2}" |
|
4372 |
proof |
|
4373 |
assume "collinear {x1, u, x2}" |
|
4374 |
then have "collinear {?m, c, u}" |
|
4375 |
by (metis (full_types) \<open>c \<noteq> ?m\<close> coll_x1 coll_x2 collinear_3_trans insert_commute ncoll \<open>x1 \<noteq> x2\<close>) |
|
4376 |
with ncoll show False .. |
|
4377 |
qed |
|
4378 |
then have "closed_segment x1 u \<inter> closed_segment u x2 = {u}" |
|
4379 |
by (blast intro!: Int_closed_segment) |
|
4380 |
then have "w = u" |
|
4381 |
using closed_segment_commute w by auto |
|
4382 |
show ?thesis |
|
4383 |
using \<open>u \<notin> S\<close> \<open>w = u\<close> that(7) by auto |
|
4384 |
qed |
|
4385 |
then have disj: "disjoint ((\<Union>z\<in>closed_segment ?m c. {closed_segment z u \<inter> S}))" |
|
4386 |
by (fastforce simp: pairwise_def disjnt_def) |
|
4387 |
have cou: "countable ((\<Union>z \<in> closed_segment ?m c. {closed_segment z u \<inter> S}) - {{}})" |
|
4388 |
apply (rule pairwise_disjnt_countable_Union [OF _ pairwise_subset [OF disj]]) |
|
4389 |
apply (rule countable_subset [OF _ \<open>countable S\<close>], auto) |
|
4390 |
done |
|
4391 |
define f where "f \<equiv> \<lambda>X. (THE z. z \<in> closed_segment ?m c \<and> X = closed_segment z u \<inter> S)" |
|
4392 |
show ?thesis |
|
4393 |
proof (rule countable_subset [OF _ countable_image [OF cou, where f=f]], clarify) |
|
4394 |
fix x |
|
4395 |
assume x: "x \<in> closed_segment ?m c" "closed_segment x u \<inter> S \<noteq> {}" |
|
4396 |
show "x \<in> f ` ((\<Union>z\<in>closed_segment ?m c. {closed_segment z u \<inter> S}) - {{}})" |
|
4397 |
proof (rule_tac x="closed_segment x u \<inter> S" in image_eqI) |
|
4398 |
show "x = f (closed_segment x u \<inter> S)" |
|
4399 |
unfolding f_def |
|
4400 |
apply (rule the_equality [symmetric]) |
|
4401 |
using x apply (auto simp: dest: **) |
|
4402 |
done |
|
4403 |
qed (use x in auto) |
|
4404 |
qed |
|
4405 |
qed |
|
4406 |
have "uncountable (closed_segment ?m c)" |
|
4407 |
by (metis \<open>c \<noteq> ?m\<close> uncountable_closed_segment) |
|
4408 |
then show False |
|
4409 |
using closb * [OF \<open>a \<in> U\<close> \<open>a \<notin> S\<close> ncoll_mca] * [OF \<open>b \<in> U\<close> \<open>b \<notin> S\<close> ncoll_mcb] |
|
4410 |
apply (simp add: closed_segment_commute) |
|
4411 |
by (simp add: countable_subset) |
|
4412 |
qed |
|
4413 |
then show ?thesis |
|
4414 |
by (force intro: that) |
|
4415 |
qed |
|
4416 |
show ?thesis |
|
4417 |
proof (intro exI conjI) |
|
4418 |
have "path_image (linepath a z +++ linepath z b) \<subseteq> U" |
|
4419 |
by (metis \<open>a \<in> U\<close> \<open>b \<in> U\<close> \<open>closed_segment ?m c \<subseteq> U\<close> z \<open>convex U\<close> closed_segment_subset contra_subsetD path_image_linepath subset_path_image_join) |
|
4420 |
with disjS show "path_image (linepath a z +++ linepath z b) \<subseteq> U - S" |
|
4421 |
by (force simp: path_image_join) |
|
4422 |
qed auto |
|
4423 |
qed |
|
4424 |
qed |
|
4425 |
||
4426 |
||
4427 |
corollary connected_convex_diff_countable: |
|
4428 |
fixes U :: "'a::euclidean_space set" |
|
4429 |
assumes "convex U" "\<not> collinear U" "countable S" |
|
4430 |
shows "connected(U - S)" |
|
4431 |
by (simp add: assms path_connected_convex_diff_countable path_connected_imp_connected) |
|
4432 |
||
4433 |
lemma path_connected_punctured_convex: |
|
4434 |
assumes "convex S" and aff: "aff_dim S \<noteq> 1" |
|
4435 |
shows "path_connected(S - {a})" |
|
4436 |
proof - |
|
4437 |
consider "aff_dim S = -1" | "aff_dim S = 0" | "aff_dim S \<ge> 2" |
|
4438 |
using assms aff_dim_geq [of S] by linarith |
|
4439 |
then show ?thesis |
|
4440 |
proof cases |
|
4441 |
assume "aff_dim S = -1" |
|
4442 |
then show ?thesis |
|
4443 |
by (metis aff_dim_empty empty_Diff path_connected_empty) |
|
4444 |
next |
|
4445 |
assume "aff_dim S = 0" |
|
4446 |
then show ?thesis |
|
4447 |
by (metis aff_dim_eq_0 Diff_cancel Diff_empty Diff_insert0 convex_empty convex_imp_path_connected path_connected_singleton singletonD) |
|
4448 |
next |
|
4449 |
assume ge2: "aff_dim S \<ge> 2" |
|
4450 |
then have "\<not> collinear S" |
|
4451 |
proof (clarsimp simp add: collinear_affine_hull) |
|
4452 |
fix u v |
|
4453 |
assume "S \<subseteq> affine hull {u, v}" |
|
4454 |
then have "aff_dim S \<le> aff_dim {u, v}" |
|
4455 |
by (metis (no_types) aff_dim_affine_hull aff_dim_subset) |
|
4456 |
with ge2 show False |
|
4457 |
by (metis (no_types) aff_dim_2 antisym aff not_numeral_le_zero one_le_numeral order_trans) |
|
4458 |
qed |
|
4459 |
then show ?thesis |
|
4460 |
apply (rule path_connected_convex_diff_countable [OF \<open>convex S\<close>]) |
|
4461 |
by simp |
|
4462 |
qed |
|
4463 |
qed |
|
4464 |
||
4465 |
lemma connected_punctured_convex: |
|
4466 |
shows "\<lbrakk>convex S; aff_dim S \<noteq> 1\<rbrakk> \<Longrightarrow> connected(S - {a})" |
|
4467 |
using path_connected_imp_connected path_connected_punctured_convex by blast |
|
4468 |
||
4469 |
lemma path_connected_complement_countable: |
|
4470 |
fixes S :: "'a::euclidean_space set" |
|
4471 |
assumes "2 \<le> DIM('a)" "countable S" |
|
4472 |
shows "path_connected(- S)" |
|
4473 |
proof - |
|
4474 |
have "path_connected(UNIV - S)" |
|
4475 |
apply (rule path_connected_convex_diff_countable) |
|
4476 |
using assms by (auto simp: collinear_aff_dim [of "UNIV :: 'a set"]) |
|
4477 |
then show ?thesis |
|
4478 |
by (simp add: Compl_eq_Diff_UNIV) |
|
4479 |
qed |
|
4480 |
||
4481 |
proposition path_connected_openin_diff_countable: |
|
4482 |
fixes S :: "'a::euclidean_space set" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4483 |
assumes "connected S" and ope: "openin (top_of_set (affine hull S)) S" |
69620 | 4484 |
and "\<not> collinear S" "countable T" |
4485 |
shows "path_connected(S - T)" |
|
4486 |
proof (clarsimp simp add: path_connected_component) |
|
4487 |
fix x y |
|
4488 |
assume xy: "x \<in> S" "x \<notin> T" "y \<in> S" "y \<notin> T" |
|
4489 |
show "path_component (S - T) x y" |
|
4490 |
proof (rule connected_equivalence_relation_gen [OF \<open>connected S\<close>, where P = "\<lambda>x. x \<notin> T"]) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4491 |
show "\<exists>z. z \<in> U \<and> z \<notin> T" if opeU: "openin (top_of_set S) U" and "x \<in> U" for U x |
69620 | 4492 |
proof - |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4493 |
have "openin (top_of_set (affine hull S)) U" |
69620 | 4494 |
using opeU ope openin_trans by blast |
4495 |
with \<open>x \<in> U\<close> obtain r where Usub: "U \<subseteq> affine hull S" and "r > 0" |
|
4496 |
and subU: "ball x r \<inter> affine hull S \<subseteq> U" |
|
4497 |
by (auto simp: openin_contains_ball) |
|
4498 |
with \<open>x \<in> U\<close> have x: "x \<in> ball x r \<inter> affine hull S" |
|
4499 |
by auto |
|
4500 |
have "\<not> S \<subseteq> {x}" |
|
4501 |
using \<open>\<not> collinear S\<close> collinear_subset by blast |
|
4502 |
then obtain x' where "x' \<noteq> x" "x' \<in> S" |
|
4503 |
by blast |
|
4504 |
obtain y where y: "y \<noteq> x" "y \<in> ball x r \<inter> affine hull S" |
|
4505 |
proof |
|
4506 |
show "x + (r / 2 / norm(x' - x)) *\<^sub>R (x' - x) \<noteq> x" |
|
4507 |
using \<open>x' \<noteq> x\<close> \<open>r > 0\<close> by auto |
|
4508 |
show "x + (r / 2 / norm (x' - x)) *\<^sub>R (x' - x) \<in> ball x r \<inter> affine hull S" |
|
4509 |
using \<open>x' \<noteq> x\<close> \<open>r > 0\<close> \<open>x' \<in> S\<close> x |
|
4510 |
by (simp add: dist_norm mem_affine_3_minus hull_inc) |
|
4511 |
qed |
|
4512 |
have "convex (ball x r \<inter> affine hull S)" |
|
4513 |
by (simp add: affine_imp_convex convex_Int) |
|
4514 |
with x y subU have "uncountable U" |
|
4515 |
by (meson countable_subset uncountable_convex) |
|
4516 |
then have "\<not> U \<subseteq> T" |
|
4517 |
using \<open>countable T\<close> countable_subset by blast |
|
4518 |
then show ?thesis by blast |
|
4519 |
qed |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4520 |
show "\<exists>U. openin (top_of_set S) U \<and> x \<in> U \<and> |
69620 | 4521 |
(\<forall>x\<in>U. \<forall>y\<in>U. x \<notin> T \<and> y \<notin> T \<longrightarrow> path_component (S - T) x y)" |
4522 |
if "x \<in> S" for x |
|
4523 |
proof - |
|
4524 |
obtain r where Ssub: "S \<subseteq> affine hull S" and "r > 0" |
|
4525 |
and subS: "ball x r \<inter> affine hull S \<subseteq> S" |
|
4526 |
using ope \<open>x \<in> S\<close> by (auto simp: openin_contains_ball) |
|
4527 |
then have conv: "convex (ball x r \<inter> affine hull S)" |
|
4528 |
by (simp add: affine_imp_convex convex_Int) |
|
4529 |
have "\<not> aff_dim (affine hull S) \<le> 1" |
|
4530 |
using \<open>\<not> collinear S\<close> collinear_aff_dim by auto |
|
4531 |
then have "\<not> collinear (ball x r \<inter> affine hull S)" |
|
4532 |
apply (simp add: collinear_aff_dim) |
|
4533 |
by (metis (no_types, hide_lams) aff_dim_convex_Int_open IntI open_ball \<open>0 < r\<close> aff_dim_affine_hull affine_affine_hull affine_imp_convex centre_in_ball empty_iff hull_subset inf_commute subsetCE that) |
|
4534 |
then have *: "path_connected ((ball x r \<inter> affine hull S) - T)" |
|
4535 |
by (rule path_connected_convex_diff_countable [OF conv _ \<open>countable T\<close>]) |
|
4536 |
have ST: "ball x r \<inter> affine hull S - T \<subseteq> S - T" |
|
4537 |
using subS by auto |
|
4538 |
show ?thesis |
|
4539 |
proof (intro exI conjI) |
|
4540 |
show "x \<in> ball x r \<inter> affine hull S" |
|
4541 |
using \<open>x \<in> S\<close> \<open>r > 0\<close> by (simp add: hull_inc) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4542 |
have "openin (top_of_set (affine hull S)) (ball x r \<inter> affine hull S)" |
69620 | 4543 |
by (subst inf.commute) (simp add: openin_Int_open) |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4544 |
then show "openin (top_of_set S) (ball x r \<inter> affine hull S)" |
69620 | 4545 |
by (rule openin_subset_trans [OF _ subS Ssub]) |
4546 |
qed (use * path_component_trans in \<open>auto simp: path_connected_component path_component_of_subset [OF ST]\<close>) |
|
4547 |
qed |
|
4548 |
qed (use xy path_component_trans in auto) |
|
4549 |
qed |
|
4550 |
||
4551 |
corollary connected_openin_diff_countable: |
|
4552 |
fixes S :: "'a::euclidean_space set" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4553 |
assumes "connected S" and ope: "openin (top_of_set (affine hull S)) S" |
69620 | 4554 |
and "\<not> collinear S" "countable T" |
4555 |
shows "connected(S - T)" |
|
4556 |
by (metis path_connected_imp_connected path_connected_openin_diff_countable [OF assms]) |
|
4557 |
||
4558 |
corollary path_connected_open_diff_countable: |
|
4559 |
fixes S :: "'a::euclidean_space set" |
|
4560 |
assumes "2 \<le> DIM('a)" "open S" "connected S" "countable T" |
|
4561 |
shows "path_connected(S - T)" |
|
4562 |
proof (cases "S = {}") |
|
4563 |
case True |
|
4564 |
then show ?thesis |
|
71172 | 4565 |
by (simp) |
69620 | 4566 |
next |
4567 |
case False |
|
4568 |
show ?thesis |
|
4569 |
proof (rule path_connected_openin_diff_countable) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4570 |
show "openin (top_of_set (affine hull S)) S" |
69620 | 4571 |
by (simp add: assms hull_subset open_subset) |
4572 |
show "\<not> collinear S" |
|
4573 |
using assms False by (simp add: collinear_aff_dim aff_dim_open) |
|
4574 |
qed (simp_all add: assms) |
|
4575 |
qed |
|
4576 |
||
4577 |
corollary connected_open_diff_countable: |
|
4578 |
fixes S :: "'a::euclidean_space set" |
|
4579 |
assumes "2 \<le> DIM('a)" "open S" "connected S" "countable T" |
|
4580 |
shows "connected(S - T)" |
|
4581 |
by (simp add: assms path_connected_imp_connected path_connected_open_diff_countable) |
|
4582 |
||
4583 |
||
4584 |
||
70136 | 4585 |
subsection\<^marker>\<open>tag unimportant\<close> \<open>Self-homeomorphisms shuffling points about\<close> |
4586 |
||
4587 |
subsubsection\<^marker>\<open>tag unimportant\<close>\<open>The theorem \<open>homeomorphism_moving_points_exists\<close>\<close> |
|
69620 | 4588 |
|
4589 |
lemma homeomorphism_moving_point_1: |
|
4590 |
fixes a :: "'a::euclidean_space" |
|
4591 |
assumes "affine T" "a \<in> T" and u: "u \<in> ball a r \<inter> T" |
|
4592 |
obtains f g where "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f g" |
|
4593 |
"f a = u" "\<And>x. x \<in> sphere a r \<Longrightarrow> f x = x" |
|
4594 |
proof - |
|
4595 |
have nou: "norm (u - a) < r" and "u \<in> T" |
|
4596 |
using u by (auto simp: dist_norm norm_minus_commute) |
|
4597 |
then have "0 < r" |
|
4598 |
by (metis DiffD1 Diff_Diff_Int ball_eq_empty centre_in_ball not_le u) |
|
4599 |
define f where "f \<equiv> \<lambda>x. (1 - norm(x - a) / r) *\<^sub>R (u - a) + x" |
|
4600 |
have *: "False" if eq: "x + (norm y / r) *\<^sub>R u = y + (norm x / r) *\<^sub>R u" |
|
4601 |
and nou: "norm u < r" and yx: "norm y < norm x" for x y and u::'a |
|
4602 |
proof - |
|
4603 |
have "x = y + (norm x / r - (norm y / r)) *\<^sub>R u" |
|
4604 |
using eq by (simp add: algebra_simps) |
|
4605 |
then have "norm x = norm (y + ((norm x - norm y) / r) *\<^sub>R u)" |
|
4606 |
by (metis diff_divide_distrib) |
|
4607 |
also have "\<dots> \<le> norm y + norm(((norm x - norm y) / r) *\<^sub>R u)" |
|
4608 |
using norm_triangle_ineq by blast |
|
4609 |
also have "\<dots> = norm y + (norm x - norm y) * (norm u / r)" |
|
4610 |
using yx \<open>r > 0\<close> |
|
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
4611 |
by (simp add: field_split_simps) |
69620 | 4612 |
also have "\<dots> < norm y + (norm x - norm y) * 1" |
4613 |
apply (subst add_less_cancel_left) |
|
4614 |
apply (rule mult_strict_left_mono) |
|
4615 |
using nou \<open>0 < r\<close> yx |
|
4616 |
apply (simp_all add: field_simps) |
|
4617 |
done |
|
4618 |
also have "\<dots> = norm x" |
|
4619 |
by simp |
|
4620 |
finally show False by simp |
|
4621 |
qed |
|
4622 |
have "inj f" |
|
4623 |
unfolding f_def |
|
4624 |
proof (clarsimp simp: inj_on_def) |
|
4625 |
fix x y |
|
4626 |
assume "(1 - norm (x - a) / r) *\<^sub>R (u - a) + x = |
|
4627 |
(1 - norm (y - a) / r) *\<^sub>R (u - a) + y" |
|
4628 |
then have eq: "(x - a) + (norm (y - a) / r) *\<^sub>R (u - a) = (y - a) + (norm (x - a) / r) *\<^sub>R (u - a)" |
|
4629 |
by (auto simp: algebra_simps) |
|
4630 |
show "x=y" |
|
4631 |
proof (cases "norm (x - a) = norm (y - a)") |
|
4632 |
case True |
|
4633 |
then show ?thesis |
|
4634 |
using eq by auto |
|
4635 |
next |
|
4636 |
case False |
|
4637 |
then consider "norm (x - a) < norm (y - a)" | "norm (x - a) > norm (y - a)" |
|
4638 |
by linarith |
|
4639 |
then have "False" |
|
4640 |
proof cases |
|
4641 |
case 1 show False |
|
4642 |
using * [OF _ nou 1] eq by simp |
|
4643 |
next |
|
4644 |
case 2 with * [OF eq nou] show False |
|
4645 |
by auto |
|
4646 |
qed |
|
4647 |
then show "x=y" .. |
|
4648 |
qed |
|
4649 |
qed |
|
4650 |
then have inj_onf: "inj_on f (cball a r \<inter> T)" |
|
4651 |
using inj_on_Int by fastforce |
|
4652 |
have contf: "continuous_on (cball a r \<inter> T) f" |
|
4653 |
unfolding f_def using \<open>0 < r\<close> by (intro continuous_intros) blast |
|
4654 |
have fim: "f ` (cball a r \<inter> T) = cball a r \<inter> T" |
|
4655 |
proof |
|
4656 |
have *: "norm (y + (1 - norm y / r) *\<^sub>R u) \<le> r" if "norm y \<le> r" "norm u < r" for y u::'a |
|
4657 |
proof - |
|
4658 |
have "norm (y + (1 - norm y / r) *\<^sub>R u) \<le> norm y + norm((1 - norm y / r) *\<^sub>R u)" |
|
4659 |
using norm_triangle_ineq by blast |
|
4660 |
also have "\<dots> = norm y + abs(1 - norm y / r) * norm u" |
|
4661 |
by simp |
|
4662 |
also have "\<dots> \<le> r" |
|
4663 |
proof - |
|
4664 |
have "(r - norm u) * (r - norm y) \<ge> 0" |
|
4665 |
using that by auto |
|
4666 |
then have "r * norm u + r * norm y \<le> r * r + norm u * norm y" |
|
4667 |
by (simp add: algebra_simps) |
|
4668 |
then show ?thesis |
|
4669 |
using that \<open>0 < r\<close> by (simp add: abs_if field_simps) |
|
4670 |
qed |
|
4671 |
finally show ?thesis . |
|
4672 |
qed |
|
4673 |
have "f ` (cball a r) \<subseteq> cball a r" |
|
4674 |
apply (clarsimp simp add: dist_norm norm_minus_commute f_def) |
|
4675 |
using * by (metis diff_add_eq diff_diff_add diff_diff_eq2 norm_minus_commute nou) |
|
4676 |
moreover have "f ` T \<subseteq> T" |
|
4677 |
unfolding f_def using \<open>affine T\<close> \<open>a \<in> T\<close> \<open>u \<in> T\<close> |
|
4678 |
by (force simp: add.commute mem_affine_3_minus) |
|
4679 |
ultimately show "f ` (cball a r \<inter> T) \<subseteq> cball a r \<inter> T" |
|
4680 |
by blast |
|
4681 |
next |
|
4682 |
show "cball a r \<inter> T \<subseteq> f ` (cball a r \<inter> T)" |
|
4683 |
proof (clarsimp simp add: dist_norm norm_minus_commute) |
|
4684 |
fix x |
|
4685 |
assume x: "norm (x - a) \<le> r" and "x \<in> T" |
|
4686 |
have "\<exists>v \<in> {0..1}. ((1 - v) * r - norm ((x - a) - v *\<^sub>R (u - a))) \<bullet> 1 = 0" |
|
4687 |
by (rule ivt_decreasing_component_on_1) (auto simp: x continuous_intros) |
|
70802
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4688 |
then obtain v where "0 \<le> v" "v \<le> 1" |
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4689 |
and v: "(1 - v) * r = norm ((x - a) - v *\<^sub>R (u - a))" |
69620 | 4690 |
by auto |
70802
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4691 |
then have n: "norm (a - (x - v *\<^sub>R (u - a))) = r - r * v" |
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4692 |
by (simp add: field_simps norm_minus_commute) |
69620 | 4693 |
show "x \<in> f ` (cball a r \<inter> T)" |
4694 |
proof (rule image_eqI) |
|
4695 |
show "x = f (x - v *\<^sub>R (u - a))" |
|
70802
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4696 |
using \<open>r > 0\<close> v by (simp add: f_def) (simp add: field_simps) |
69620 | 4697 |
have "x - v *\<^sub>R (u - a) \<in> cball a r" |
70802
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4698 |
using \<open>r > 0\<close>\<open>0 \<le> v\<close> |
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
4699 |
by (simp add: dist_norm n) |
69620 | 4700 |
moreover have "x - v *\<^sub>R (u - a) \<in> T" |
71172 | 4701 |
by (simp add: f_def \<open>u \<in> T\<close> \<open>x \<in> T\<close> assms mem_affine_3_minus2) |
69620 | 4702 |
ultimately show "x - v *\<^sub>R (u - a) \<in> cball a r \<inter> T" |
4703 |
by blast |
|
4704 |
qed |
|
4705 |
qed |
|
4706 |
qed |
|
4707 |
have "\<exists>g. homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f g" |
|
4708 |
apply (rule homeomorphism_compact [OF _ contf fim inj_onf]) |
|
4709 |
apply (simp add: affine_closed compact_Int_closed \<open>affine T\<close>) |
|
4710 |
done |
|
4711 |
then show ?thesis |
|
4712 |
apply (rule exE) |
|
4713 |
apply (erule_tac f=f in that) |
|
4714 |
using \<open>r > 0\<close> |
|
4715 |
apply (simp_all add: f_def dist_norm norm_minus_commute) |
|
4716 |
done |
|
4717 |
qed |
|
4718 |
||
70136 | 4719 |
corollary\<^marker>\<open>tag unimportant\<close> homeomorphism_moving_point_2: |
69620 | 4720 |
fixes a :: "'a::euclidean_space" |
4721 |
assumes "affine T" "a \<in> T" and u: "u \<in> ball a r \<inter> T" and v: "v \<in> ball a r \<inter> T" |
|
4722 |
obtains f g where "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f g" |
|
4723 |
"f u = v" "\<And>x. \<lbrakk>x \<in> sphere a r; x \<in> T\<rbrakk> \<Longrightarrow> f x = x" |
|
4724 |
proof - |
|
4725 |
have "0 < r" |
|
4726 |
by (metis DiffD1 Diff_Diff_Int ball_eq_empty centre_in_ball not_le u) |
|
4727 |
obtain f1 g1 where hom1: "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f1 g1" |
|
4728 |
and "f1 a = u" and f1: "\<And>x. x \<in> sphere a r \<Longrightarrow> f1 x = x" |
|
4729 |
using homeomorphism_moving_point_1 [OF \<open>affine T\<close> \<open>a \<in> T\<close> u] by blast |
|
4730 |
obtain f2 g2 where hom2: "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f2 g2" |
|
4731 |
and "f2 a = v" and f2: "\<And>x. x \<in> sphere a r \<Longrightarrow> f2 x = x" |
|
4732 |
using homeomorphism_moving_point_1 [OF \<open>affine T\<close> \<open>a \<in> T\<close> v] by blast |
|
4733 |
show ?thesis |
|
4734 |
proof |
|
4735 |
show "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) (f2 \<circ> g1) (f1 \<circ> g2)" |
|
4736 |
by (metis homeomorphism_compose homeomorphism_symD hom1 hom2) |
|
4737 |
have "g1 u = a" |
|
4738 |
using \<open>0 < r\<close> \<open>f1 a = u\<close> assms hom1 homeomorphism_apply1 by fastforce |
|
4739 |
then show "(f2 \<circ> g1) u = v" |
|
4740 |
by (simp add: \<open>f2 a = v\<close>) |
|
4741 |
show "\<And>x. \<lbrakk>x \<in> sphere a r; x \<in> T\<rbrakk> \<Longrightarrow> (f2 \<circ> g1) x = x" |
|
4742 |
using f1 f2 hom1 homeomorphism_apply1 by fastforce |
|
4743 |
qed |
|
4744 |
qed |
|
4745 |
||
4746 |
||
70136 | 4747 |
corollary\<^marker>\<open>tag unimportant\<close> homeomorphism_moving_point_3: |
69620 | 4748 |
fixes a :: "'a::euclidean_space" |
4749 |
assumes "affine T" "a \<in> T" and ST: "ball a r \<inter> T \<subseteq> S" "S \<subseteq> T" |
|
4750 |
and u: "u \<in> ball a r \<inter> T" and v: "v \<in> ball a r \<inter> T" |
|
4751 |
obtains f g where "homeomorphism S S f g" |
|
4752 |
"f u = v" "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> ball a r \<inter> T" |
|
4753 |
proof - |
|
4754 |
obtain f g where hom: "homeomorphism (cball a r \<inter> T) (cball a r \<inter> T) f g" |
|
4755 |
and "f u = v" and fid: "\<And>x. \<lbrakk>x \<in> sphere a r; x \<in> T\<rbrakk> \<Longrightarrow> f x = x" |
|
4756 |
using homeomorphism_moving_point_2 [OF \<open>affine T\<close> \<open>a \<in> T\<close> u v] by blast |
|
4757 |
have gid: "\<And>x. \<lbrakk>x \<in> sphere a r; x \<in> T\<rbrakk> \<Longrightarrow> g x = x" |
|
4758 |
using fid hom homeomorphism_apply1 by fastforce |
|
4759 |
define ff where "ff \<equiv> \<lambda>x. if x \<in> ball a r \<inter> T then f x else x" |
|
4760 |
define gg where "gg \<equiv> \<lambda>x. if x \<in> ball a r \<inter> T then g x else x" |
|
4761 |
show ?thesis |
|
4762 |
proof |
|
4763 |
show "homeomorphism S S ff gg" |
|
4764 |
proof (rule homeomorphismI) |
|
4765 |
have "continuous_on ((cball a r \<inter> T) \<union> (T - ball a r)) ff" |
|
4766 |
apply (simp add: ff_def) |
|
4767 |
apply (rule continuous_on_cases) |
|
4768 |
using homeomorphism_cont1 [OF hom] |
|
71172 | 4769 |
apply (auto simp: affine_closed \<open>affine T\<close> fid) |
69620 | 4770 |
done |
4771 |
then show "continuous_on S ff" |
|
4772 |
apply (rule continuous_on_subset) |
|
4773 |
using ST by auto |
|
4774 |
have "continuous_on ((cball a r \<inter> T) \<union> (T - ball a r)) gg" |
|
4775 |
apply (simp add: gg_def) |
|
4776 |
apply (rule continuous_on_cases) |
|
4777 |
using homeomorphism_cont2 [OF hom] |
|
71172 | 4778 |
apply (auto simp: affine_closed \<open>affine T\<close> gid) |
69620 | 4779 |
done |
4780 |
then show "continuous_on S gg" |
|
4781 |
apply (rule continuous_on_subset) |
|
4782 |
using ST by auto |
|
4783 |
show "ff ` S \<subseteq> S" |
|
4784 |
proof (clarsimp simp add: ff_def) |
|
4785 |
fix x |
|
4786 |
assume "x \<in> S" and x: "dist a x < r" and "x \<in> T" |
|
4787 |
then have "f x \<in> cball a r \<inter> T" |
|
4788 |
using homeomorphism_image1 [OF hom] by force |
|
4789 |
then show "f x \<in> S" |
|
4790 |
using ST(1) \<open>x \<in> T\<close> gid hom homeomorphism_def x by fastforce |
|
4791 |
qed |
|
4792 |
show "gg ` S \<subseteq> S" |
|
4793 |
proof (clarsimp simp add: gg_def) |
|
4794 |
fix x |
|
4795 |
assume "x \<in> S" and x: "dist a x < r" and "x \<in> T" |
|
4796 |
then have "g x \<in> cball a r \<inter> T" |
|
4797 |
using homeomorphism_image2 [OF hom] by force |
|
4798 |
then have "g x \<in> ball a r" |
|
4799 |
using homeomorphism_apply2 [OF hom] |
|
4800 |
by (metis Diff_Diff_Int Diff_iff \<open>x \<in> T\<close> cball_def fid le_less mem_Collect_eq mem_ball mem_sphere x) |
|
4801 |
then show "g x \<in> S" |
|
4802 |
using ST(1) \<open>g x \<in> cball a r \<inter> T\<close> by force |
|
4803 |
qed |
|
4804 |
show "\<And>x. x \<in> S \<Longrightarrow> gg (ff x) = x" |
|
4805 |
apply (simp add: ff_def gg_def) |
|
4806 |
using homeomorphism_apply1 [OF hom] homeomorphism_image1 [OF hom] |
|
4807 |
apply auto |
|
4808 |
apply (metis Int_iff homeomorphism_apply1 [OF hom] fid image_eqI less_eq_real_def mem_cball mem_sphere) |
|
4809 |
done |
|
4810 |
show "\<And>x. x \<in> S \<Longrightarrow> ff (gg x) = x" |
|
4811 |
apply (simp add: ff_def gg_def) |
|
4812 |
using homeomorphism_apply2 [OF hom] homeomorphism_image2 [OF hom] |
|
4813 |
apply auto |
|
4814 |
apply (metis Int_iff fid image_eqI less_eq_real_def mem_cball mem_sphere) |
|
4815 |
done |
|
4816 |
qed |
|
4817 |
show "ff u = v" |
|
4818 |
using u by (auto simp: ff_def \<open>f u = v\<close>) |
|
4819 |
show "{x. \<not> (ff x = x \<and> gg x = x)} \<subseteq> ball a r \<inter> T" |
|
4820 |
by (auto simp: ff_def gg_def) |
|
4821 |
qed |
|
4822 |
qed |
|
4823 |
||
4824 |
||
70136 | 4825 |
proposition\<^marker>\<open>tag unimportant\<close> homeomorphism_moving_point: |
69620 | 4826 |
fixes a :: "'a::euclidean_space" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4827 |
assumes ope: "openin (top_of_set (affine hull S)) S" |
69620 | 4828 |
and "S \<subseteq> T" |
4829 |
and TS: "T \<subseteq> affine hull S" |
|
4830 |
and S: "connected S" "a \<in> S" "b \<in> S" |
|
4831 |
obtains f g where "homeomorphism T T f g" "f a = b" |
|
4832 |
"{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S" |
|
4833 |
"bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4834 |
proof - |
|
4835 |
have 1: "\<exists>h k. homeomorphism T T h k \<and> h (f d) = d \<and> |
|
4836 |
{x. \<not> (h x = x \<and> k x = x)} \<subseteq> S \<and> bounded {x. \<not> (h x = x \<and> k x = x)}" |
|
4837 |
if "d \<in> S" "f d \<in> S" and homfg: "homeomorphism T T f g" |
|
4838 |
and S: "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S" |
|
4839 |
and bo: "bounded {x. \<not> (f x = x \<and> g x = x)}" for d f g |
|
4840 |
proof (intro exI conjI) |
|
4841 |
show homgf: "homeomorphism T T g f" |
|
4842 |
by (metis homeomorphism_symD homfg) |
|
4843 |
then show "g (f d) = d" |
|
4844 |
by (meson \<open>S \<subseteq> T\<close> homeomorphism_def subsetD \<open>d \<in> S\<close>) |
|
4845 |
show "{x. \<not> (g x = x \<and> f x = x)} \<subseteq> S" |
|
4846 |
using S by blast |
|
4847 |
show "bounded {x. \<not> (g x = x \<and> f x = x)}" |
|
4848 |
using bo by (simp add: conj_commute) |
|
4849 |
qed |
|
4850 |
have 2: "\<exists>f g. homeomorphism T T f g \<and> f x = f2 (f1 x) \<and> |
|
4851 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4852 |
if "x \<in> S" "f1 x \<in> S" "f2 (f1 x) \<in> S" |
|
4853 |
and hom: "homeomorphism T T f1 g1" "homeomorphism T T f2 g2" |
|
4854 |
and sub: "{x. \<not> (f1 x = x \<and> g1 x = x)} \<subseteq> S" "{x. \<not> (f2 x = x \<and> g2 x = x)} \<subseteq> S" |
|
4855 |
and bo: "bounded {x. \<not> (f1 x = x \<and> g1 x = x)}" "bounded {x. \<not> (f2 x = x \<and> g2 x = x)}" |
|
4856 |
for x f1 f2 g1 g2 |
|
4857 |
proof (intro exI conjI) |
|
4858 |
show homgf: "homeomorphism T T (f2 \<circ> f1) (g1 \<circ> g2)" |
|
4859 |
by (metis homeomorphism_compose hom) |
|
4860 |
then show "(f2 \<circ> f1) x = f2 (f1 x)" |
|
4861 |
by force |
|
4862 |
show "{x. \<not> ((f2 \<circ> f1) x = x \<and> (g1 \<circ> g2) x = x)} \<subseteq> S" |
|
4863 |
using sub by force |
|
4864 |
have "bounded ({x. \<not>(f1 x = x \<and> g1 x = x)} \<union> {x. \<not>(f2 x = x \<and> g2 x = x)})" |
|
4865 |
using bo by simp |
|
4866 |
then show "bounded {x. \<not> ((f2 \<circ> f1) x = x \<and> (g1 \<circ> g2) x = x)}" |
|
4867 |
by (rule bounded_subset) auto |
|
4868 |
qed |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4869 |
have 3: "\<exists>U. openin (top_of_set S) U \<and> |
69620 | 4870 |
d \<in> U \<and> |
4871 |
(\<forall>x\<in>U. |
|
4872 |
\<exists>f g. homeomorphism T T f g \<and> f d = x \<and> |
|
4873 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> |
|
4874 |
bounded {x. \<not> (f x = x \<and> g x = x)})" |
|
4875 |
if "d \<in> S" for d |
|
4876 |
proof - |
|
4877 |
obtain r where "r > 0" and r: "ball d r \<inter> affine hull S \<subseteq> S" |
|
4878 |
by (metis \<open>d \<in> S\<close> ope openin_contains_ball) |
|
4879 |
have *: "\<exists>f g. homeomorphism T T f g \<and> f d = e \<and> |
|
4880 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> |
|
4881 |
bounded {x. \<not> (f x = x \<and> g x = x)}" if "e \<in> S" "e \<in> ball d r" for e |
|
4882 |
apply (rule homeomorphism_moving_point_3 [of "affine hull S" d r T d e]) |
|
4883 |
using r \<open>S \<subseteq> T\<close> TS that |
|
4884 |
apply (auto simp: \<open>d \<in> S\<close> \<open>0 < r\<close> hull_inc) |
|
4885 |
using bounded_subset by blast |
|
4886 |
show ?thesis |
|
4887 |
apply (rule_tac x="S \<inter> ball d r" in exI) |
|
4888 |
apply (intro conjI) |
|
4889 |
apply (simp add: openin_open_Int) |
|
4890 |
apply (simp add: \<open>0 < r\<close> that) |
|
4891 |
apply (blast intro: *) |
|
4892 |
done |
|
4893 |
qed |
|
4894 |
have "\<exists>f g. homeomorphism T T f g \<and> f a = b \<and> |
|
4895 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4896 |
apply (rule connected_equivalence_relation [OF S], safe) |
|
4897 |
apply (blast intro: 1 2 3)+ |
|
4898 |
done |
|
4899 |
then show ?thesis |
|
4900 |
using that by auto |
|
4901 |
qed |
|
4902 |
||
4903 |
||
4904 |
lemma homeomorphism_moving_points_exists_gen: |
|
4905 |
assumes K: "finite K" "\<And>i. i \<in> K \<Longrightarrow> x i \<in> S \<and> y i \<in> S" |
|
4906 |
"pairwise (\<lambda>i j. (x i \<noteq> x j) \<and> (y i \<noteq> y j)) K" |
|
4907 |
and "2 \<le> aff_dim S" |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4908 |
and ope: "openin (top_of_set (affine hull S)) S" |
69620 | 4909 |
and "S \<subseteq> T" "T \<subseteq> affine hull S" "connected S" |
4910 |
shows "\<exists>f g. homeomorphism T T f g \<and> (\<forall>i \<in> K. f(x i) = y i) \<and> |
|
4911 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4912 |
using assms |
|
4913 |
proof (induction K) |
|
4914 |
case empty |
|
4915 |
then show ?case |
|
4916 |
by (force simp: homeomorphism_ident) |
|
4917 |
next |
|
4918 |
case (insert i K) |
|
4919 |
then have xney: "\<And>j. \<lbrakk>j \<in> K; j \<noteq> i\<rbrakk> \<Longrightarrow> x i \<noteq> x j \<and> y i \<noteq> y j" |
|
4920 |
and pw: "pairwise (\<lambda>i j. x i \<noteq> x j \<and> y i \<noteq> y j) K" |
|
4921 |
and "x i \<in> S" "y i \<in> S" |
|
4922 |
and xyS: "\<And>i. i \<in> K \<Longrightarrow> x i \<in> S \<and> y i \<in> S" |
|
4923 |
by (simp_all add: pairwise_insert) |
|
4924 |
obtain f g where homfg: "homeomorphism T T f g" and feq: "\<And>i. i \<in> K \<Longrightarrow> f(x i) = y i" |
|
4925 |
and fg_sub: "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S" |
|
4926 |
and bo_fg: "bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4927 |
using insert.IH [OF xyS pw] insert.prems by (blast intro: that) |
|
4928 |
then have "\<exists>f g. homeomorphism T T f g \<and> (\<forall>i \<in> K. f(x i) = y i) \<and> |
|
4929 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
4930 |
using insert by blast |
|
4931 |
have aff_eq: "affine hull (S - y ` K) = affine hull S" |
|
4932 |
apply (rule affine_hull_Diff) |
|
4933 |
apply (auto simp: insert) |
|
4934 |
using \<open>y i \<in> S\<close> insert.hyps(2) xney xyS by fastforce |
|
4935 |
have f_in_S: "f x \<in> S" if "x \<in> S" for x |
|
4936 |
using homfg fg_sub homeomorphism_apply1 \<open>S \<subseteq> T\<close> |
|
4937 |
proof - |
|
4938 |
have "(f (f x) \<noteq> f x \<or> g (f x) \<noteq> f x) \<or> f x \<in> S" |
|
4939 |
by (metis \<open>S \<subseteq> T\<close> homfg subsetD homeomorphism_apply1 that) |
|
4940 |
then show ?thesis |
|
4941 |
using fg_sub by force |
|
4942 |
qed |
|
4943 |
obtain h k where homhk: "homeomorphism T T h k" and heq: "h (f (x i)) = y i" |
|
4944 |
and hk_sub: "{x. \<not> (h x = x \<and> k x = x)} \<subseteq> S - y ` K" |
|
4945 |
and bo_hk: "bounded {x. \<not> (h x = x \<and> k x = x)}" |
|
4946 |
proof (rule homeomorphism_moving_point [of "S - y`K" T "f(x i)" "y i"]) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4947 |
show "openin (top_of_set (affine hull (S - y ` K))) (S - y ` K)" |
69620 | 4948 |
by (simp add: aff_eq openin_diff finite_imp_closedin image_subset_iff hull_inc insert xyS) |
4949 |
show "S - y ` K \<subseteq> T" |
|
4950 |
using \<open>S \<subseteq> T\<close> by auto |
|
4951 |
show "T \<subseteq> affine hull (S - y ` K)" |
|
4952 |
using insert by (simp add: aff_eq) |
|
4953 |
show "connected (S - y ` K)" |
|
4954 |
proof (rule connected_openin_diff_countable [OF \<open>connected S\<close> ope]) |
|
4955 |
show "\<not> collinear S" |
|
4956 |
using collinear_aff_dim \<open>2 \<le> aff_dim S\<close> by force |
|
4957 |
show "countable (y ` K)" |
|
4958 |
using countable_finite insert.hyps(1) by blast |
|
4959 |
qed |
|
4960 |
show "f (x i) \<in> S - y ` K" |
|
4961 |
apply (auto simp: f_in_S \<open>x i \<in> S\<close>) |
|
4962 |
by (metis feq homfg \<open>x i \<in> S\<close> homeomorphism_def \<open>S \<subseteq> T\<close> \<open>i \<notin> K\<close> subsetCE xney xyS) |
|
4963 |
show "y i \<in> S - y ` K" |
|
4964 |
using insert.hyps xney by (auto simp: \<open>y i \<in> S\<close>) |
|
4965 |
qed blast |
|
4966 |
show ?case |
|
4967 |
proof (intro exI conjI) |
|
4968 |
show "homeomorphism T T (h \<circ> f) (g \<circ> k)" |
|
4969 |
using homfg homhk homeomorphism_compose by blast |
|
4970 |
show "\<forall>i \<in> insert i K. (h \<circ> f) (x i) = y i" |
|
4971 |
using feq hk_sub by (auto simp: heq) |
|
4972 |
show "{x. \<not> ((h \<circ> f) x = x \<and> (g \<circ> k) x = x)} \<subseteq> S" |
|
4973 |
using fg_sub hk_sub by force |
|
4974 |
have "bounded ({x. \<not>(f x = x \<and> g x = x)} \<union> {x. \<not>(h x = x \<and> k x = x)})" |
|
4975 |
using bo_fg bo_hk bounded_Un by blast |
|
4976 |
then show "bounded {x. \<not> ((h \<circ> f) x = x \<and> (g \<circ> k) x = x)}" |
|
4977 |
by (rule bounded_subset) auto |
|
4978 |
qed |
|
4979 |
qed |
|
4980 |
||
70136 | 4981 |
proposition\<^marker>\<open>tag unimportant\<close> homeomorphism_moving_points_exists: |
69620 | 4982 |
fixes S :: "'a::euclidean_space set" |
4983 |
assumes 2: "2 \<le> DIM('a)" "open S" "connected S" "S \<subseteq> T" "finite K" |
|
4984 |
and KS: "\<And>i. i \<in> K \<Longrightarrow> x i \<in> S \<and> y i \<in> S" |
|
4985 |
and pw: "pairwise (\<lambda>i j. (x i \<noteq> x j) \<and> (y i \<noteq> y j)) K" |
|
4986 |
and S: "S \<subseteq> T" "T \<subseteq> affine hull S" "connected S" |
|
4987 |
obtains f g where "homeomorphism T T f g" "\<And>i. i \<in> K \<Longrightarrow> f(x i) = y i" |
|
4988 |
"{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S" "bounded {x. (\<not> (f x = x \<and> g x = x))}" |
|
4989 |
proof (cases "S = {}") |
|
4990 |
case True |
|
4991 |
then show ?thesis |
|
4992 |
using KS homeomorphism_ident that by fastforce |
|
4993 |
next |
|
4994 |
case False |
|
4995 |
then have affS: "affine hull S = UNIV" |
|
4996 |
by (simp add: affine_hull_open \<open>open S\<close>) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
4997 |
then have ope: "openin (top_of_set (affine hull S)) S" |
69620 | 4998 |
using \<open>open S\<close> open_openin by auto |
4999 |
have "2 \<le> DIM('a)" by (rule 2) |
|
5000 |
also have "\<dots> = aff_dim (UNIV :: 'a set)" |
|
5001 |
by simp |
|
5002 |
also have "\<dots> \<le> aff_dim S" |
|
5003 |
by (metis aff_dim_UNIV aff_dim_affine_hull aff_dim_le_DIM affS) |
|
5004 |
finally have "2 \<le> aff_dim S" |
|
5005 |
by linarith |
|
5006 |
then show ?thesis |
|
5007 |
using homeomorphism_moving_points_exists_gen [OF \<open>finite K\<close> KS pw _ ope S] that by fastforce |
|
5008 |
qed |
|
5009 |
||
70136 | 5010 |
subsubsection\<^marker>\<open>tag unimportant\<close>\<open>The theorem \<open>homeomorphism_grouping_points_exists\<close>\<close> |
69620 | 5011 |
|
5012 |
lemma homeomorphism_grouping_point_1: |
|
5013 |
fixes a::real and c::real |
|
5014 |
assumes "a < b" "c < d" |
|
5015 |
obtains f g where "homeomorphism (cbox a b) (cbox c d) f g" "f a = c" "f b = d" |
|
5016 |
proof - |
|
5017 |
define f where "f \<equiv> \<lambda>x. ((d - c) / (b - a)) * x + (c - a * ((d - c) / (b - a)))" |
|
5018 |
have "\<exists>g. homeomorphism (cbox a b) (cbox c d) f g" |
|
5019 |
proof (rule homeomorphism_compact) |
|
5020 |
show "continuous_on (cbox a b) f" |
|
5021 |
apply (simp add: f_def) |
|
5022 |
apply (intro continuous_intros) |
|
5023 |
using assms by auto |
|
5024 |
have "f ` {a..b} = {c..d}" |
|
5025 |
unfolding f_def image_affinity_atLeastAtMost |
|
71172 | 5026 |
using assms sum_sqs_eq by (auto simp: field_split_simps) |
69620 | 5027 |
then show "f ` cbox a b = cbox c d" |
5028 |
by auto |
|
5029 |
show "inj_on f (cbox a b)" |
|
5030 |
unfolding f_def inj_on_def using assms by auto |
|
5031 |
qed auto |
|
5032 |
then obtain g where "homeomorphism (cbox a b) (cbox c d) f g" .. |
|
5033 |
then show ?thesis |
|
5034 |
proof |
|
5035 |
show "f a = c" |
|
5036 |
by (simp add: f_def) |
|
5037 |
show "f b = d" |
|
71172 | 5038 |
using assms sum_sqs_eq [of a b] by (auto simp: f_def field_split_simps) |
69620 | 5039 |
qed |
5040 |
qed |
|
5041 |
||
5042 |
lemma homeomorphism_grouping_point_2: |
|
5043 |
fixes a::real and w::real |
|
5044 |
assumes hom_ab: "homeomorphism (cbox a b) (cbox u v) f1 g1" |
|
5045 |
and hom_bc: "homeomorphism (cbox b c) (cbox v w) f2 g2" |
|
5046 |
and "b \<in> cbox a c" "v \<in> cbox u w" |
|
5047 |
and eq: "f1 a = u" "f1 b = v" "f2 b = v" "f2 c = w" |
|
5048 |
obtains f g where "homeomorphism (cbox a c) (cbox u w) f g" "f a = u" "f c = w" |
|
5049 |
"\<And>x. x \<in> cbox a b \<Longrightarrow> f x = f1 x" "\<And>x. x \<in> cbox b c \<Longrightarrow> f x = f2 x" |
|
5050 |
proof - |
|
5051 |
have le: "a \<le> b" "b \<le> c" "u \<le> v" "v \<le> w" |
|
5052 |
using assms by simp_all |
|
5053 |
then have ac: "cbox a c = cbox a b \<union> cbox b c" and uw: "cbox u w = cbox u v \<union> cbox v w" |
|
5054 |
by auto |
|
5055 |
define f where "f \<equiv> \<lambda>x. if x \<le> b then f1 x else f2 x" |
|
5056 |
have "\<exists>g. homeomorphism (cbox a c) (cbox u w) f g" |
|
5057 |
proof (rule homeomorphism_compact) |
|
5058 |
have cf1: "continuous_on (cbox a b) f1" |
|
5059 |
using hom_ab homeomorphism_cont1 by blast |
|
5060 |
have cf2: "continuous_on (cbox b c) f2" |
|
5061 |
using hom_bc homeomorphism_cont1 by blast |
|
5062 |
show "continuous_on (cbox a c) f" |
|
5063 |
apply (simp add: f_def) |
|
5064 |
apply (rule continuous_on_cases_le [OF continuous_on_subset [OF cf1] continuous_on_subset [OF cf2]]) |
|
71172 | 5065 |
using le eq apply (force)+ |
69620 | 5066 |
done |
5067 |
have "f ` cbox a b = f1 ` cbox a b" "f ` cbox b c = f2 ` cbox b c" |
|
5068 |
unfolding f_def using eq by force+ |
|
5069 |
then show "f ` cbox a c = cbox u w" |
|
5070 |
apply (simp only: ac uw image_Un) |
|
5071 |
by (metis hom_ab hom_bc homeomorphism_def) |
|
5072 |
have neq12: "f1 x \<noteq> f2 y" if x: "a \<le> x" "x \<le> b" and y: "b < y" "y \<le> c" for x y |
|
5073 |
proof - |
|
5074 |
have "f1 x \<in> cbox u v" |
|
5075 |
by (metis hom_ab homeomorphism_def image_eqI mem_box_real(2) x) |
|
5076 |
moreover have "f2 y \<in> cbox v w" |
|
5077 |
by (metis (full_types) hom_bc homeomorphism_def image_subset_iff mem_box_real(2) not_le not_less_iff_gr_or_eq order_refl y) |
|
5078 |
moreover have "f2 y \<noteq> f2 b" |
|
5079 |
by (metis cancel_comm_monoid_add_class.diff_cancel diff_gt_0_iff_gt hom_bc homeomorphism_def le(2) less_imp_le less_numeral_extra(3) mem_box_real(2) order_refl y) |
|
5080 |
ultimately show ?thesis |
|
5081 |
using le eq by simp |
|
5082 |
qed |
|
5083 |
have "inj_on f1 (cbox a b)" |
|
5084 |
by (metis (full_types) hom_ab homeomorphism_def inj_onI) |
|
5085 |
moreover have "inj_on f2 (cbox b c)" |
|
5086 |
by (metis (full_types) hom_bc homeomorphism_def inj_onI) |
|
5087 |
ultimately show "inj_on f (cbox a c)" |
|
5088 |
apply (simp (no_asm) add: inj_on_def) |
|
5089 |
apply (simp add: f_def inj_on_eq_iff) |
|
5090 |
using neq12 apply force |
|
5091 |
done |
|
5092 |
qed auto |
|
5093 |
then obtain g where "homeomorphism (cbox a c) (cbox u w) f g" .. |
|
5094 |
then show ?thesis |
|
5095 |
apply (rule that) |
|
5096 |
using eq le by (auto simp: f_def) |
|
5097 |
qed |
|
5098 |
||
5099 |
lemma homeomorphism_grouping_point_3: |
|
5100 |
fixes a::real |
|
5101 |
assumes cbox_sub: "cbox c d \<subseteq> box a b" "cbox u v \<subseteq> box a b" |
|
5102 |
and box_ne: "box c d \<noteq> {}" "box u v \<noteq> {}" |
|
5103 |
obtains f g where "homeomorphism (cbox a b) (cbox a b) f g" "f a = a" "f b = b" |
|
5104 |
"\<And>x. x \<in> cbox c d \<Longrightarrow> f x \<in> cbox u v" |
|
5105 |
proof - |
|
5106 |
have less: "a < c" "a < u" "d < b" "v < b" "c < d" "u < v" "cbox c d \<noteq> {}" |
|
5107 |
using assms |
|
5108 |
by (simp_all add: cbox_sub subset_eq) |
|
5109 |
obtain f1 g1 where 1: "homeomorphism (cbox a c) (cbox a u) f1 g1" |
|
5110 |
and f1_eq: "f1 a = a" "f1 c = u" |
|
5111 |
using homeomorphism_grouping_point_1 [OF \<open>a < c\<close> \<open>a < u\<close>] . |
|
5112 |
obtain f2 g2 where 2: "homeomorphism (cbox c d) (cbox u v) f2 g2" |
|
5113 |
and f2_eq: "f2 c = u" "f2 d = v" |
|
5114 |
using homeomorphism_grouping_point_1 [OF \<open>c < d\<close> \<open>u < v\<close>] . |
|
5115 |
obtain f3 g3 where 3: "homeomorphism (cbox d b) (cbox v b) f3 g3" |
|
5116 |
and f3_eq: "f3 d = v" "f3 b = b" |
|
5117 |
using homeomorphism_grouping_point_1 [OF \<open>d < b\<close> \<open>v < b\<close>] . |
|
5118 |
obtain f4 g4 where 4: "homeomorphism (cbox a d) (cbox a v) f4 g4" and "f4 a = a" "f4 d = v" |
|
5119 |
and f4_eq: "\<And>x. x \<in> cbox a c \<Longrightarrow> f4 x = f1 x" "\<And>x. x \<in> cbox c d \<Longrightarrow> f4 x = f2 x" |
|
5120 |
using homeomorphism_grouping_point_2 [OF 1 2] less by (auto simp: f1_eq f2_eq) |
|
5121 |
obtain f g where fg: "homeomorphism (cbox a b) (cbox a b) f g" "f a = a" "f b = b" |
|
5122 |
and f_eq: "\<And>x. x \<in> cbox a d \<Longrightarrow> f x = f4 x" "\<And>x. x \<in> cbox d b \<Longrightarrow> f x = f3 x" |
|
5123 |
using homeomorphism_grouping_point_2 [OF 4 3] less by (auto simp: f4_eq f3_eq f2_eq f1_eq) |
|
5124 |
show ?thesis |
|
5125 |
apply (rule that [OF fg]) |
|
5126 |
using f4_eq f_eq homeomorphism_image1 [OF 2] |
|
5127 |
apply simp |
|
5128 |
by (metis atLeastAtMost_iff box_real(1) box_real(2) cbox_sub(1) greaterThanLessThan_iff imageI less_eq_real_def subset_eq) |
|
5129 |
qed |
|
5130 |
||
5131 |
||
5132 |
lemma homeomorphism_grouping_point_4: |
|
5133 |
fixes T :: "real set" |
|
5134 |
assumes "open U" "open S" "connected S" "U \<noteq> {}" "finite K" "K \<subseteq> S" "U \<subseteq> S" "S \<subseteq> T" |
|
5135 |
obtains f g where "homeomorphism T T f g" |
|
5136 |
"\<And>x. x \<in> K \<Longrightarrow> f x \<in> U" "{x. (\<not> (f x = x \<and> g x = x))} \<subseteq> S" |
|
5137 |
"bounded {x. (\<not> (f x = x \<and> g x = x))}" |
|
5138 |
proof - |
|
5139 |
obtain c d where "box c d \<noteq> {}" "cbox c d \<subseteq> U" |
|
5140 |
proof - |
|
5141 |
obtain u where "u \<in> U" |
|
5142 |
using \<open>U \<noteq> {}\<close> by blast |
|
5143 |
then obtain e where "e > 0" "cball u e \<subseteq> U" |
|
5144 |
using \<open>open U\<close> open_contains_cball by blast |
|
5145 |
then show ?thesis |
|
5146 |
by (rule_tac c=u and d="u+e" in that) (auto simp: dist_norm subset_iff) |
|
5147 |
qed |
|
5148 |
have "compact K" |
|
5149 |
by (simp add: \<open>finite K\<close> finite_imp_compact) |
|
5150 |
obtain a b where "box a b \<noteq> {}" "K \<subseteq> cbox a b" "cbox a b \<subseteq> S" |
|
5151 |
proof (cases "K = {}") |
|
5152 |
case True then show ?thesis |
|
5153 |
using \<open>box c d \<noteq> {}\<close> \<open>cbox c d \<subseteq> U\<close> \<open>U \<subseteq> S\<close> that by blast |
|
5154 |
next |
|
5155 |
case False |
|
5156 |
then obtain a b where "a \<in> K" "b \<in> K" |
|
5157 |
and a: "\<And>x. x \<in> K \<Longrightarrow> a \<le> x" and b: "\<And>x. x \<in> K \<Longrightarrow> x \<le> b" |
|
5158 |
using compact_attains_inf compact_attains_sup by (metis \<open>compact K\<close>)+ |
|
5159 |
obtain e where "e > 0" "cball b e \<subseteq> S" |
|
5160 |
using \<open>open S\<close> open_contains_cball |
|
5161 |
by (metis \<open>b \<in> K\<close> \<open>K \<subseteq> S\<close> subsetD) |
|
5162 |
show ?thesis |
|
5163 |
proof |
|
5164 |
show "box a (b + e) \<noteq> {}" |
|
5165 |
using \<open>0 < e\<close> \<open>b \<in> K\<close> a by force |
|
5166 |
show "K \<subseteq> cbox a (b + e)" |
|
5167 |
using \<open>0 < e\<close> a b by fastforce |
|
5168 |
have "a \<in> S" |
|
5169 |
using \<open>a \<in> K\<close> assms(6) by blast |
|
5170 |
have "b + e \<in> S" |
|
5171 |
using \<open>0 < e\<close> \<open>cball b e \<subseteq> S\<close> by (force simp: dist_norm) |
|
5172 |
show "cbox a (b + e) \<subseteq> S" |
|
5173 |
using \<open>a \<in> S\<close> \<open>b + e \<in> S\<close> \<open>connected S\<close> connected_contains_Icc by auto |
|
5174 |
qed |
|
5175 |
qed |
|
5176 |
obtain w z where "cbox w z \<subseteq> S" and sub_wz: "cbox a b \<union> cbox c d \<subseteq> box w z" |
|
5177 |
proof - |
|
5178 |
have "a \<in> S" "b \<in> S" |
|
5179 |
using \<open>box a b \<noteq> {}\<close> \<open>cbox a b \<subseteq> S\<close> by auto |
|
5180 |
moreover have "c \<in> S" "d \<in> S" |
|
5181 |
using \<open>box c d \<noteq> {}\<close> \<open>cbox c d \<subseteq> U\<close> \<open>U \<subseteq> S\<close> by force+ |
|
5182 |
ultimately have "min a c \<in> S" "max b d \<in> S" |
|
5183 |
by linarith+ |
|
5184 |
then obtain e1 e2 where "e1 > 0" "cball (min a c) e1 \<subseteq> S" "e2 > 0" "cball (max b d) e2 \<subseteq> S" |
|
5185 |
using \<open>open S\<close> open_contains_cball by metis |
|
5186 |
then have *: "min a c - e1 \<in> S" "max b d + e2 \<in> S" |
|
5187 |
by (auto simp: dist_norm) |
|
5188 |
show ?thesis |
|
5189 |
proof |
|
5190 |
show "cbox (min a c - e1) (max b d+ e2) \<subseteq> S" |
|
5191 |
using * \<open>connected S\<close> connected_contains_Icc by auto |
|
5192 |
show "cbox a b \<union> cbox c d \<subseteq> box (min a c - e1) (max b d + e2)" |
|
5193 |
using \<open>0 < e1\<close> \<open>0 < e2\<close> by auto |
|
5194 |
qed |
|
5195 |
qed |
|
5196 |
then |
|
5197 |
obtain f g where hom: "homeomorphism (cbox w z) (cbox w z) f g" |
|
5198 |
and "f w = w" "f z = z" |
|
5199 |
and fin: "\<And>x. x \<in> cbox a b \<Longrightarrow> f x \<in> cbox c d" |
|
5200 |
using homeomorphism_grouping_point_3 [of a b w z c d] |
|
5201 |
using \<open>box a b \<noteq> {}\<close> \<open>box c d \<noteq> {}\<close> by blast |
|
5202 |
have contfg: "continuous_on (cbox w z) f" "continuous_on (cbox w z) g" |
|
5203 |
using hom homeomorphism_def by blast+ |
|
5204 |
define f' where "f' \<equiv> \<lambda>x. if x \<in> cbox w z then f x else x" |
|
5205 |
define g' where "g' \<equiv> \<lambda>x. if x \<in> cbox w z then g x else x" |
|
5206 |
show ?thesis |
|
5207 |
proof |
|
5208 |
have T: "cbox w z \<union> (T - box w z) = T" |
|
5209 |
using \<open>cbox w z \<subseteq> S\<close> \<open>S \<subseteq> T\<close> by auto |
|
5210 |
show "homeomorphism T T f' g'" |
|
5211 |
proof |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
5212 |
have clo: "closedin (top_of_set (cbox w z \<union> (T - box w z))) (T - box w z)" |
69620 | 5213 |
by (metis Diff_Diff_Int Diff_subset T closedin_def open_box openin_open_Int topspace_euclidean_subtopology) |
5214 |
have "continuous_on (cbox w z \<union> (T - box w z)) f'" "continuous_on (cbox w z \<union> (T - box w z)) g'" |
|
5215 |
unfolding f'_def g'_def |
|
5216 |
apply (safe intro!: continuous_on_cases_local contfg continuous_on_id clo) |
|
5217 |
apply (simp_all add: closed_subset) |
|
5218 |
using \<open>f w = w\<close> \<open>f z = z\<close> apply force |
|
5219 |
by (metis \<open>f w = w\<close> \<open>f z = z\<close> hom homeomorphism_def less_eq_real_def mem_box_real(2)) |
|
5220 |
then show "continuous_on T f'" "continuous_on T g'" |
|
5221 |
by (simp_all only: T) |
|
5222 |
show "f' ` T \<subseteq> T" |
|
5223 |
unfolding f'_def |
|
5224 |
by clarsimp (metis \<open>cbox w z \<subseteq> S\<close> \<open>S \<subseteq> T\<close> subsetD hom homeomorphism_def imageI mem_box_real(2)) |
|
5225 |
show "g' ` T \<subseteq> T" |
|
5226 |
unfolding g'_def |
|
5227 |
by clarsimp (metis \<open>cbox w z \<subseteq> S\<close> \<open>S \<subseteq> T\<close> subsetD hom homeomorphism_def imageI mem_box_real(2)) |
|
5228 |
show "\<And>x. x \<in> T \<Longrightarrow> g' (f' x) = x" |
|
5229 |
unfolding f'_def g'_def |
|
5230 |
using homeomorphism_apply1 [OF hom] homeomorphism_image1 [OF hom] by fastforce |
|
5231 |
show "\<And>y. y \<in> T \<Longrightarrow> f' (g' y) = y" |
|
5232 |
unfolding f'_def g'_def |
|
5233 |
using homeomorphism_apply2 [OF hom] homeomorphism_image2 [OF hom] by fastforce |
|
5234 |
qed |
|
5235 |
show "\<And>x. x \<in> K \<Longrightarrow> f' x \<in> U" |
|
5236 |
using fin sub_wz \<open>K \<subseteq> cbox a b\<close> \<open>cbox c d \<subseteq> U\<close> by (force simp: f'_def) |
|
5237 |
show "{x. \<not> (f' x = x \<and> g' x = x)} \<subseteq> S" |
|
5238 |
using \<open>cbox w z \<subseteq> S\<close> by (auto simp: f'_def g'_def) |
|
5239 |
show "bounded {x. \<not> (f' x = x \<and> g' x = x)}" |
|
5240 |
apply (rule bounded_subset [of "cbox w z"]) |
|
5241 |
using bounded_cbox apply blast |
|
5242 |
apply (auto simp: f'_def g'_def) |
|
5243 |
done |
|
5244 |
qed |
|
5245 |
qed |
|
5246 |
||
70136 | 5247 |
proposition\<^marker>\<open>tag unimportant\<close> homeomorphism_grouping_points_exists: |
69620 | 5248 |
fixes S :: "'a::euclidean_space set" |
5249 |
assumes "open U" "open S" "connected S" "U \<noteq> {}" "finite K" "K \<subseteq> S" "U \<subseteq> S" "S \<subseteq> T" |
|
5250 |
obtains f g where "homeomorphism T T f g" "{x. (\<not> (f x = x \<and> g x = x))} \<subseteq> S" |
|
5251 |
"bounded {x. (\<not> (f x = x \<and> g x = x))}" "\<And>x. x \<in> K \<Longrightarrow> f x \<in> U" |
|
5252 |
proof (cases "2 \<le> DIM('a)") |
|
5253 |
case True |
|
5254 |
have TS: "T \<subseteq> affine hull S" |
|
5255 |
using affine_hull_open assms by blast |
|
5256 |
have "infinite U" |
|
5257 |
using \<open>open U\<close> \<open>U \<noteq> {}\<close> finite_imp_not_open by blast |
|
5258 |
then obtain P where "P \<subseteq> U" "finite P" "card K = card P" |
|
5259 |
using infinite_arbitrarily_large by metis |
|
5260 |
then obtain \<gamma> where \<gamma>: "bij_betw \<gamma> K P" |
|
5261 |
using \<open>finite K\<close> finite_same_card_bij by blast |
|
5262 |
obtain f g where "homeomorphism T T f g" "\<And>i. i \<in> K \<Longrightarrow> f (id i) = \<gamma> i" "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S" "bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
5263 |
proof (rule homeomorphism_moving_points_exists [OF True \<open>open S\<close> \<open>connected S\<close> \<open>S \<subseteq> T\<close> \<open>finite K\<close>]) |
|
5264 |
show "\<And>i. i \<in> K \<Longrightarrow> id i \<in> S \<and> \<gamma> i \<in> S" |
|
5265 |
using \<open>P \<subseteq> U\<close> \<open>bij_betw \<gamma> K P\<close> \<open>K \<subseteq> S\<close> \<open>U \<subseteq> S\<close> bij_betwE by blast |
|
5266 |
show "pairwise (\<lambda>i j. id i \<noteq> id j \<and> \<gamma> i \<noteq> \<gamma> j) K" |
|
5267 |
using \<gamma> by (auto simp: pairwise_def bij_betw_def inj_on_def) |
|
5268 |
qed (use affine_hull_open assms that in auto) |
|
5269 |
then show ?thesis |
|
5270 |
using \<gamma> \<open>P \<subseteq> U\<close> bij_betwE by (fastforce simp add: intro!: that) |
|
5271 |
next |
|
5272 |
case False |
|
5273 |
with DIM_positive have "DIM('a) = 1" |
|
5274 |
by (simp add: dual_order.antisym) |
|
5275 |
then obtain h::"'a \<Rightarrow>real" and j |
|
5276 |
where "linear h" "linear j" |
|
5277 |
and noh: "\<And>x. norm(h x) = norm x" and noj: "\<And>y. norm(j y) = norm y" |
|
5278 |
and hj: "\<And>x. j(h x) = x" "\<And>y. h(j y) = y" |
|
5279 |
and ranh: "surj h" |
|
5280 |
using isomorphisms_UNIV_UNIV |
|
5281 |
by (metis (mono_tags, hide_lams) DIM_real UNIV_eq_I range_eqI) |
|
5282 |
obtain f g where hom: "homeomorphism (h ` T) (h ` T) f g" |
|
5283 |
and f: "\<And>x. x \<in> h ` K \<Longrightarrow> f x \<in> h ` U" |
|
5284 |
and sub: "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> h ` S" |
|
5285 |
and bou: "bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
5286 |
apply (rule homeomorphism_grouping_point_4 [of "h ` U" "h ` S" "h ` K" "h ` T"]) |
|
5287 |
by (simp_all add: assms image_mono \<open>linear h\<close> open_surjective_linear_image connected_linear_image ranh) |
|
5288 |
have jf: "j (f (h x)) = x \<longleftrightarrow> f (h x) = h x" for x |
|
5289 |
by (metis hj) |
|
5290 |
have jg: "j (g (h x)) = x \<longleftrightarrow> g (h x) = h x" for x |
|
5291 |
by (metis hj) |
|
5292 |
have cont_hj: "continuous_on X h" "continuous_on Y j" for X Y |
|
5293 |
by (simp_all add: \<open>linear h\<close> \<open>linear j\<close> linear_linear linear_continuous_on) |
|
5294 |
show ?thesis |
|
5295 |
proof |
|
5296 |
show "homeomorphism T T (j \<circ> f \<circ> h) (j \<circ> g \<circ> h)" |
|
5297 |
proof |
|
5298 |
show "continuous_on T (j \<circ> f \<circ> h)" "continuous_on T (j \<circ> g \<circ> h)" |
|
5299 |
using hom homeomorphism_def |
|
5300 |
by (blast intro: continuous_on_compose cont_hj)+ |
|
5301 |
show "(j \<circ> f \<circ> h) ` T \<subseteq> T" "(j \<circ> g \<circ> h) ` T \<subseteq> T" |
|
5302 |
by auto (metis (mono_tags, hide_lams) hj(1) hom homeomorphism_def imageE imageI)+ |
|
5303 |
show "\<And>x. x \<in> T \<Longrightarrow> (j \<circ> g \<circ> h) ((j \<circ> f \<circ> h) x) = x" |
|
5304 |
using hj hom homeomorphism_apply1 by fastforce |
|
5305 |
show "\<And>y. y \<in> T \<Longrightarrow> (j \<circ> f \<circ> h) ((j \<circ> g \<circ> h) y) = y" |
|
5306 |
using hj hom homeomorphism_apply2 by fastforce |
|
5307 |
qed |
|
5308 |
show "{x. \<not> ((j \<circ> f \<circ> h) x = x \<and> (j \<circ> g \<circ> h) x = x)} \<subseteq> S" |
|
5309 |
apply (clarsimp simp: jf jg hj) |
|
5310 |
using sub hj |
|
5311 |
apply (drule_tac c="h x" in subsetD, force) |
|
5312 |
by (metis imageE) |
|
5313 |
have "bounded (j ` {x. (\<not> (f x = x \<and> g x = x))})" |
|
5314 |
by (rule bounded_linear_image [OF bou]) (use \<open>linear j\<close> linear_conv_bounded_linear in auto) |
|
5315 |
moreover |
|
5316 |
have *: "{x. \<not>((j \<circ> f \<circ> h) x = x \<and> (j \<circ> g \<circ> h) x = x)} = j ` {x. (\<not> (f x = x \<and> g x = x))}" |
|
5317 |
using hj by (auto simp: jf jg image_iff, metis+) |
|
5318 |
ultimately show "bounded {x. \<not> ((j \<circ> f \<circ> h) x = x \<and> (j \<circ> g \<circ> h) x = x)}" |
|
5319 |
by metis |
|
5320 |
show "\<And>x. x \<in> K \<Longrightarrow> (j \<circ> f \<circ> h) x \<in> U" |
|
5321 |
using f hj by fastforce |
|
5322 |
qed |
|
5323 |
qed |
|
5324 |
||
5325 |
||
70136 | 5326 |
proposition\<^marker>\<open>tag unimportant\<close> homeomorphism_grouping_points_exists_gen: |
69620 | 5327 |
fixes S :: "'a::euclidean_space set" |
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
5328 |
assumes opeU: "openin (top_of_set S) U" |
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
5329 |
and opeS: "openin (top_of_set (affine hull S)) S" |
69620 | 5330 |
and "U \<noteq> {}" "finite K" "K \<subseteq> S" and S: "S \<subseteq> T" "T \<subseteq> affine hull S" "connected S" |
5331 |
obtains f g where "homeomorphism T T f g" "{x. (\<not> (f x = x \<and> g x = x))} \<subseteq> S" |
|
5332 |
"bounded {x. (\<not> (f x = x \<and> g x = x))}" "\<And>x. x \<in> K \<Longrightarrow> f x \<in> U" |
|
5333 |
proof (cases "2 \<le> aff_dim S") |
|
5334 |
case True |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
5335 |
have opeU': "openin (top_of_set (affine hull S)) U" |
69620 | 5336 |
using opeS opeU openin_trans by blast |
5337 |
obtain u where "u \<in> U" "u \<in> S" |
|
5338 |
using \<open>U \<noteq> {}\<close> opeU openin_imp_subset by fastforce+ |
|
5339 |
have "infinite U" |
|
5340 |
apply (rule infinite_openin [OF opeU \<open>u \<in> U\<close>]) |
|
5341 |
apply (rule connected_imp_perfect_aff_dim [OF \<open>connected S\<close> _ \<open>u \<in> S\<close>]) |
|
5342 |
using True apply simp |
|
5343 |
done |
|
5344 |
then obtain P where "P \<subseteq> U" "finite P" "card K = card P" |
|
5345 |
using infinite_arbitrarily_large by metis |
|
5346 |
then obtain \<gamma> where \<gamma>: "bij_betw \<gamma> K P" |
|
5347 |
using \<open>finite K\<close> finite_same_card_bij by blast |
|
5348 |
have "\<exists>f g. homeomorphism T T f g \<and> (\<forall>i \<in> K. f(id i) = \<gamma> i) \<and> |
|
5349 |
{x. \<not> (f x = x \<and> g x = x)} \<subseteq> S \<and> bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
5350 |
proof (rule homeomorphism_moving_points_exists_gen [OF \<open>finite K\<close> _ _ True opeS S]) |
|
5351 |
show "\<And>i. i \<in> K \<Longrightarrow> id i \<in> S \<and> \<gamma> i \<in> S" |
|
5352 |
by (metis id_apply opeU openin_contains_cball subsetCE \<open>P \<subseteq> U\<close> \<open>bij_betw \<gamma> K P\<close> \<open>K \<subseteq> S\<close> bij_betwE) |
|
5353 |
show "pairwise (\<lambda>i j. id i \<noteq> id j \<and> \<gamma> i \<noteq> \<gamma> j) K" |
|
5354 |
using \<gamma> by (auto simp: pairwise_def bij_betw_def inj_on_def) |
|
5355 |
qed |
|
5356 |
then show ?thesis |
|
5357 |
using \<gamma> \<open>P \<subseteq> U\<close> bij_betwE by (fastforce simp add: intro!: that) |
|
5358 |
next |
|
5359 |
case False |
|
5360 |
with aff_dim_geq [of S] consider "aff_dim S = -1" | "aff_dim S = 0" | "aff_dim S = 1" by linarith |
|
5361 |
then show ?thesis |
|
5362 |
proof cases |
|
5363 |
assume "aff_dim S = -1" |
|
5364 |
then have "S = {}" |
|
5365 |
using aff_dim_empty by blast |
|
5366 |
then have "False" |
|
5367 |
using \<open>U \<noteq> {}\<close> \<open>K \<subseteq> S\<close> openin_imp_subset [OF opeU] by blast |
|
5368 |
then show ?thesis .. |
|
5369 |
next |
|
5370 |
assume "aff_dim S = 0" |
|
5371 |
then obtain a where "S = {a}" |
|
5372 |
using aff_dim_eq_0 by blast |
|
5373 |
then have "K \<subseteq> U" |
|
5374 |
using \<open>U \<noteq> {}\<close> \<open>K \<subseteq> S\<close> openin_imp_subset [OF opeU] by blast |
|
5375 |
show ?thesis |
|
5376 |
apply (rule that [of id id]) |
|
71172 | 5377 |
using \<open>K \<subseteq> U\<close> by (auto intro: homeomorphismI) |
69620 | 5378 |
next |
5379 |
assume "aff_dim S = 1" |
|
5380 |
then have "affine hull S homeomorphic (UNIV :: real set)" |
|
5381 |
by (auto simp: homeomorphic_affine_sets) |
|
5382 |
then obtain h::"'a\<Rightarrow>real" and j where homhj: "homeomorphism (affine hull S) UNIV h j" |
|
5383 |
using homeomorphic_def by blast |
|
5384 |
then have h: "\<And>x. x \<in> affine hull S \<Longrightarrow> j(h(x)) = x" and j: "\<And>y. j y \<in> affine hull S \<and> h(j y) = y" |
|
5385 |
by (auto simp: homeomorphism_def) |
|
5386 |
have connh: "connected (h ` S)" |
|
5387 |
by (meson Topological_Spaces.connected_continuous_image \<open>connected S\<close> homeomorphism_cont1 homeomorphism_of_subsets homhj hull_subset top_greatest) |
|
5388 |
have hUS: "h ` U \<subseteq> h ` S" |
|
5389 |
by (meson homeomorphism_imp_open_map homeomorphism_of_subsets homhj hull_subset opeS opeU open_UNIV openin_open_eq) |
|
69922
4a9167f377b0
new material about topology, etc.; also fixes for yesterday's
paulson <lp15@cam.ac.uk>
parents:
69918
diff
changeset
|
5390 |
have opn: "openin (top_of_set (affine hull S)) U \<Longrightarrow> open (h ` U)" for U |
69620 | 5391 |
using homeomorphism_imp_open_map [OF homhj] by simp |
5392 |
have "open (h ` U)" "open (h ` S)" |
|
5393 |
by (auto intro: opeS opeU openin_trans opn) |
|
5394 |
then obtain f g where hom: "homeomorphism (h ` T) (h ` T) f g" |
|
5395 |
and f: "\<And>x. x \<in> h ` K \<Longrightarrow> f x \<in> h ` U" |
|
5396 |
and sub: "{x. \<not> (f x = x \<and> g x = x)} \<subseteq> h ` S" |
|
5397 |
and bou: "bounded {x. \<not> (f x = x \<and> g x = x)}" |
|
5398 |
apply (rule homeomorphism_grouping_points_exists [of "h ` U" "h ` S" "h ` K" "h ` T"]) |
|
5399 |
using assms by (auto simp: connh hUS) |
|
5400 |
have jf: "\<And>x. x \<in> affine hull S \<Longrightarrow> j (f (h x)) = x \<longleftrightarrow> f (h x) = h x" |
|
5401 |
by (metis h j) |
|
5402 |
have jg: "\<And>x. x \<in> affine hull S \<Longrightarrow> j (g (h x)) = x \<longleftrightarrow> g (h x) = h x" |
|
5403 |
by (metis h j) |
|
5404 |
have cont_hj: "continuous_on T h" "continuous_on Y j" for Y |
|
5405 |
apply (rule continuous_on_subset [OF _ \<open>T \<subseteq> affine hull S\<close>]) |
|
5406 |
using homeomorphism_def homhj apply blast |
|
5407 |
by (meson continuous_on_subset homeomorphism_def homhj top_greatest) |
|
5408 |
define f' where "f' \<equiv> \<lambda>x. if x \<in> affine hull S then (j \<circ> f \<circ> h) x else x" |
|
5409 |
define g' where "g' \<equiv> \<lambda>x. if x \<in> affine hull S then (j \<circ> g \<circ> h) x else x" |
|
5410 |
show ?thesis |
|
5411 |
proof |
|
5412 |
show "homeomorphism T T f' g'" |
|
5413 |
proof |
|
5414 |
have "continuous_on T (j \<circ> f \<circ> h)" |
|
5415 |
apply (intro continuous_on_compose cont_hj) |
|
5416 |
using hom homeomorphism_def by blast |
|
5417 |
then show "continuous_on T f'" |
|
5418 |
apply (rule continuous_on_eq) |
|
5419 |
using \<open>T \<subseteq> affine hull S\<close> f'_def by auto |
|
5420 |
have "continuous_on T (j \<circ> g \<circ> h)" |
|
5421 |
apply (intro continuous_on_compose cont_hj) |
|
5422 |
using hom homeomorphism_def by blast |
|
5423 |
then show "continuous_on T g'" |
|
5424 |
apply (rule continuous_on_eq) |
|
5425 |
using \<open>T \<subseteq> affine hull S\<close> g'_def by auto |
|
5426 |
show "f' ` T \<subseteq> T" |
|
5427 |
proof (clarsimp simp: f'_def) |
|
5428 |
fix x assume "x \<in> T" |
|
5429 |
then have "f (h x) \<in> h ` T" |
|
5430 |
by (metis (no_types) hom homeomorphism_def image_subset_iff subset_refl) |
|
5431 |
then show "j (f (h x)) \<in> T" |
|
5432 |
using \<open>T \<subseteq> affine hull S\<close> h by auto |
|
5433 |
qed |
|
5434 |
show "g' ` T \<subseteq> T" |
|
5435 |
proof (clarsimp simp: g'_def) |
|
5436 |
fix x assume "x \<in> T" |
|
5437 |
then have "g (h x) \<in> h ` T" |
|
5438 |
by (metis (no_types) hom homeomorphism_def image_subset_iff subset_refl) |
|
5439 |
then show "j (g (h x)) \<in> T" |
|
5440 |
using \<open>T \<subseteq> affine hull S\<close> h by auto |
|
5441 |
qed |
|
5442 |
show "\<And>x. x \<in> T \<Longrightarrow> g' (f' x) = x" |
|
5443 |
using h j hom homeomorphism_apply1 by (fastforce simp add: f'_def g'_def) |
|
5444 |
show "\<And>y. y \<in> T \<Longrightarrow> f' (g' y) = y" |
|
5445 |
using h j hom homeomorphism_apply2 by (fastforce simp add: f'_def g'_def) |
|
5446 |
qed |
|
5447 |
next |
|
5448 |
show "{x. \<not> (f' x = x \<and> g' x = x)} \<subseteq> S" |
|
5449 |
apply (clarsimp simp: f'_def g'_def jf jg) |
|
5450 |
apply (rule imageE [OF subsetD [OF sub]], force) |
|
5451 |
by (metis h hull_inc) |
|
5452 |
next |
|
5453 |
have "compact (j ` closure {x. \<not> (f x = x \<and> g x = x)})" |
|
5454 |
using bou by (auto simp: compact_continuous_image cont_hj) |
|
5455 |
then have "bounded (j ` {x. \<not> (f x = x \<and> g x = x)})" |
|
5456 |
by (rule bounded_closure_image [OF compact_imp_bounded]) |
|
5457 |
moreover |
|
5458 |
have *: "{x \<in> affine hull S. j (f (h x)) \<noteq> x \<or> j (g (h x)) \<noteq> x} = j ` {x. (\<not> (f x = x \<and> g x = x))}" |
|
5459 |
using h j by (auto simp: image_iff; metis) |
|
5460 |
ultimately have "bounded {x \<in> affine hull S. j (f (h x)) \<noteq> x \<or> j (g (h x)) \<noteq> x}" |
|
5461 |
by metis |
|
5462 |
then show "bounded {x. \<not> (f' x = x \<and> g' x = x)}" |
|
5463 |
by (simp add: f'_def g'_def Collect_mono bounded_subset) |
|
5464 |
next |
|
5465 |
show "f' x \<in> U" if "x \<in> K" for x |
|
5466 |
proof - |
|
5467 |
have "U \<subseteq> S" |
|
5468 |
using opeU openin_imp_subset by blast |
|
5469 |
then have "j (f (h x)) \<in> U" |
|
5470 |
using f h hull_subset that by fastforce |
|
5471 |
then show "f' x \<in> U" |
|
5472 |
using \<open>K \<subseteq> S\<close> S f'_def that by auto |
|
5473 |
qed |
|
5474 |
qed |
|
5475 |
qed |
|
5476 |
qed |
|
5477 |
||
5478 |
||
5479 |
subsection\<open>Nullhomotopic mappings\<close> |
|
5480 |
||
5481 |
text\<open> A mapping out of a sphere is nullhomotopic iff it extends to the ball. |
|
5482 |
This even works out in the degenerate cases when the radius is \<open>\<le>\<close> 0, and |
|
5483 |
we also don't need to explicitly assume continuity since it's already implicit |
|
5484 |
in both sides of the equivalence.\<close> |
|
5485 |
||
5486 |
lemma nullhomotopic_from_lemma: |
|
5487 |
assumes contg: "continuous_on (cball a r - {a}) g" |
|
5488 |
and fa: "\<And>e. 0 < e |
|
5489 |
\<Longrightarrow> \<exists>d. 0 < d \<and> (\<forall>x. x \<noteq> a \<and> norm(x - a) < d \<longrightarrow> norm(g x - f a) < e)" |
|
5490 |
and r: "\<And>x. x \<in> cball a r \<and> x \<noteq> a \<Longrightarrow> f x = g x" |
|
5491 |
shows "continuous_on (cball a r) f" |
|
5492 |
proof (clarsimp simp: continuous_on_eq_continuous_within Ball_def) |
|
5493 |
fix x |
|
5494 |
assume x: "dist a x \<le> r" |
|
5495 |
show "continuous (at x within cball a r) f" |
|
5496 |
proof (cases "x=a") |
|
5497 |
case True |
|
5498 |
then show ?thesis |
|
5499 |
by (metis continuous_within_eps_delta fa dist_norm dist_self r) |
|
5500 |
next |
|
5501 |
case False |
|
5502 |
show ?thesis |
|
5503 |
proof (rule continuous_transform_within [where f=g and d = "norm(x-a)"]) |
|
5504 |
have "\<exists>d>0. \<forall>x'\<in>cball a r. |
|
5505 |
dist x' x < d \<longrightarrow> dist (g x') (g x) < e" if "e>0" for e |
|
5506 |
proof - |
|
5507 |
obtain d where "d > 0" |
|
5508 |
and d: "\<And>x'. \<lbrakk>dist x' a \<le> r; x' \<noteq> a; dist x' x < d\<rbrakk> \<Longrightarrow> |
|
5509 |
dist (g x') (g x) < e" |
|
5510 |
using contg False x \<open>e>0\<close> |
|
5511 |
unfolding continuous_on_iff by (fastforce simp add: dist_commute intro: that) |
|
5512 |
show ?thesis |
|
5513 |
using \<open>d > 0\<close> \<open>x \<noteq> a\<close> |
|
5514 |
by (rule_tac x="min d (norm(x - a))" in exI) |
|
5515 |
(auto simp: dist_commute dist_norm [symmetric] intro!: d) |
|
5516 |
qed |
|
5517 |
then show "continuous (at x within cball a r) g" |
|
5518 |
using contg False by (auto simp: continuous_within_eps_delta) |
|
5519 |
show "0 < norm (x - a)" |
|
5520 |
using False by force |
|
5521 |
show "x \<in> cball a r" |
|
5522 |
by (simp add: x) |
|
5523 |
show "\<And>x'. \<lbrakk>x' \<in> cball a r; dist x' x < norm (x - a)\<rbrakk> |
|
5524 |
\<Longrightarrow> g x' = f x'" |
|
5525 |
by (metis dist_commute dist_norm less_le r) |
|
5526 |
qed |
|
5527 |
qed |
|
5528 |
qed |
|
5529 |
||
5530 |
proposition nullhomotopic_from_sphere_extension: |
|
5531 |
fixes f :: "'M::euclidean_space \<Rightarrow> 'a::real_normed_vector" |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5532 |
shows "(\<exists>c. homotopic_with_canon (\<lambda>x. True) (sphere a r) S f (\<lambda>x. c)) \<longleftrightarrow> |
69620 | 5533 |
(\<exists>g. continuous_on (cball a r) g \<and> g ` (cball a r) \<subseteq> S \<and> |
5534 |
(\<forall>x \<in> sphere a r. g x = f x))" |
|
5535 |
(is "?lhs = ?rhs") |
|
5536 |
proof (cases r "0::real" rule: linorder_cases) |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5537 |
case less |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5538 |
then show ?thesis |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5539 |
by (simp add: homotopic_on_emptyI) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5540 |
next |
69620 | 5541 |
case equal |
5542 |
then show ?thesis |
|
5543 |
apply (auto simp: homotopic_with) |
|
5544 |
apply (rule_tac x="\<lambda>x. h (0, a)" in exI) |
|
5545 |
apply (fastforce simp add:) |
|
5546 |
using continuous_on_const by blast |
|
5547 |
next |
|
5548 |
case greater |
|
5549 |
let ?P = "continuous_on {x. norm(x - a) = r} f \<and> f ` {x. norm(x - a) = r} \<subseteq> S" |
|
5550 |
have ?P if ?lhs using that |
|
5551 |
proof |
|
5552 |
fix c |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5553 |
assume c: "homotopic_with_canon (\<lambda>x. True) (sphere a r) S f (\<lambda>x. c)" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5554 |
then have contf: "continuous_on (sphere a r) f" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5555 |
by (metis homotopic_with_imp_continuous) |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5556 |
moreover have fim: "f ` sphere a r \<subseteq> S" |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5557 |
by (meson continuous_map_subtopology_eu c homotopic_with_imp_continuous_maps) |
69620 | 5558 |
show ?P |
5559 |
using contf fim by (auto simp: sphere_def dist_norm norm_minus_commute) |
|
5560 |
qed |
|
5561 |
moreover have ?P if ?rhs using that |
|
5562 |
proof |
|
5563 |
fix g |
|
5564 |
assume g: "continuous_on (cball a r) g \<and> g ` cball a r \<subseteq> S \<and> (\<forall>xa\<in>sphere a r. g xa = f xa)" |
|
5565 |
then |
|
5566 |
show ?P |
|
5567 |
apply (safe elim!: continuous_on_eq [OF continuous_on_subset]) |
|
5568 |
apply (auto simp: dist_norm norm_minus_commute) |
|
5569 |
by (metis dist_norm image_subset_iff mem_sphere norm_minus_commute sphere_cball subsetCE) |
|
5570 |
qed |
|
5571 |
moreover have ?thesis if ?P |
|
5572 |
proof |
|
5573 |
assume ?lhs |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5574 |
then obtain c where "homotopic_with_canon (\<lambda>x. True) (sphere a r) S (\<lambda>x. c) f" |
69620 | 5575 |
using homotopic_with_sym by blast |
5576 |
then obtain h where conth: "continuous_on ({0..1::real} \<times> sphere a r) h" |
|
5577 |
and him: "h ` ({0..1} \<times> sphere a r) \<subseteq> S" |
|
5578 |
and h: "\<And>x. h(0, x) = c" "\<And>x. h(1, x) = f x" |
|
5579 |
by (auto simp: homotopic_with_def) |
|
5580 |
obtain b1::'M where "b1 \<in> Basis" |
|
5581 |
using SOME_Basis by auto |
|
5582 |
have "c \<in> S" |
|
5583 |
apply (rule him [THEN subsetD]) |
|
5584 |
apply (rule_tac x = "(0, a + r *\<^sub>R b1)" in image_eqI) |
|
5585 |
using h greater \<open>b1 \<in> Basis\<close> |
|
5586 |
apply (auto simp: dist_norm) |
|
5587 |
done |
|
5588 |
have uconth: "uniformly_continuous_on ({0..1::real} \<times> (sphere a r)) h" |
|
5589 |
by (force intro: compact_Times conth compact_uniformly_continuous) |
|
5590 |
let ?g = "\<lambda>x. h (norm (x - a)/r, |
|
5591 |
a + (if x = a then r *\<^sub>R b1 else (r / norm(x - a)) *\<^sub>R (x - a)))" |
|
5592 |
let ?g' = "\<lambda>x. h (norm (x - a)/r, a + (r / norm(x - a)) *\<^sub>R (x - a))" |
|
5593 |
show ?rhs |
|
5594 |
proof (intro exI conjI) |
|
5595 |
have "continuous_on (cball a r - {a}) ?g'" |
|
5596 |
apply (rule continuous_on_compose2 [OF conth]) |
|
5597 |
apply (intro continuous_intros) |
|
5598 |
using greater apply (auto simp: dist_norm norm_minus_commute) |
|
5599 |
done |
|
5600 |
then show "continuous_on (cball a r) ?g" |
|
5601 |
proof (rule nullhomotopic_from_lemma) |
|
5602 |
show "\<exists>d>0. \<forall>x. x \<noteq> a \<and> norm (x - a) < d \<longrightarrow> norm (?g' x - ?g a) < e" if "0 < e" for e |
|
5603 |
proof - |
|
5604 |
obtain d where "0 < d" |
|
5605 |
and d: "\<And>x x'. \<lbrakk>x \<in> {0..1} \<times> sphere a r; x' \<in> {0..1} \<times> sphere a r; dist x' x < d\<rbrakk> |
|
5606 |
\<Longrightarrow> dist (h x') (h x) < e" |
|
5607 |
using uniformly_continuous_onE [OF uconth \<open>0 < e\<close>] by auto |
|
5608 |
have *: "norm (h (norm (x - a) / r, |
|
5609 |
a + (r / norm (x - a)) *\<^sub>R (x - a)) - h (0, a + r *\<^sub>R b1)) < e" |
|
5610 |
if "x \<noteq> a" "norm (x - a) < r" "norm (x - a) < d * r" for x |
|
5611 |
proof - |
|
5612 |
have "norm (h (norm (x - a) / r, a + (r / norm (x - a)) *\<^sub>R (x - a)) - h (0, a + r *\<^sub>R b1)) = |
|
5613 |
norm (h (norm (x - a) / r, a + (r / norm (x - a)) *\<^sub>R (x - a)) - h (0, a + (r / norm (x - a)) *\<^sub>R (x - a)))" |
|
5614 |
by (simp add: h) |
|
5615 |
also have "\<dots> < e" |
|
5616 |
apply (rule d [unfolded dist_norm]) |
|
5617 |
using greater \<open>0 < d\<close> \<open>b1 \<in> Basis\<close> that |
|
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
5618 |
by (simp_all add: dist_norm) (simp add: field_simps) |
69620 | 5619 |
finally show ?thesis . |
5620 |
qed |
|
5621 |
show ?thesis |
|
5622 |
apply (rule_tac x = "min r (d * r)" in exI) |
|
5623 |
using greater \<open>0 < d\<close> by (auto simp: *) |
|
5624 |
qed |
|
5625 |
show "\<And>x. x \<in> cball a r \<and> x \<noteq> a \<Longrightarrow> ?g x = ?g' x" |
|
5626 |
by auto |
|
5627 |
qed |
|
5628 |
next |
|
5629 |
show "?g ` cball a r \<subseteq> S" |
|
5630 |
using greater him \<open>c \<in> S\<close> |
|
5631 |
by (force simp: h dist_norm norm_minus_commute) |
|
5632 |
next |
|
5633 |
show "\<forall>x\<in>sphere a r. ?g x = f x" |
|
5634 |
using greater by (auto simp: h dist_norm norm_minus_commute) |
|
5635 |
qed |
|
5636 |
next |
|
5637 |
assume ?rhs |
|
5638 |
then obtain g where contg: "continuous_on (cball a r) g" |
|
5639 |
and gim: "g ` cball a r \<subseteq> S" |
|
5640 |
and gf: "\<forall>x \<in> sphere a r. g x = f x" |
|
5641 |
by auto |
|
5642 |
let ?h = "\<lambda>y. g (a + (fst y) *\<^sub>R (snd y - a))" |
|
5643 |
have "continuous_on ({0..1} \<times> sphere a r) ?h" |
|
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5644 |
proof (rule continuous_on_compose2 [OF contg]) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5645 |
show "continuous_on ({0..1} \<times> sphere a r) (\<lambda>x. a + fst x *\<^sub>R (snd x - a))" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5646 |
by (intro continuous_intros) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5647 |
qed (auto simp: dist_norm norm_minus_commute mult_left_le_one_le) |
69620 | 5648 |
moreover |
5649 |
have "?h ` ({0..1} \<times> sphere a r) \<subseteq> S" |
|
5650 |
by (auto simp: dist_norm norm_minus_commute mult_left_le_one_le gim [THEN subsetD]) |
|
5651 |
moreover |
|
5652 |
have "\<forall>x\<in>sphere a r. ?h (0, x) = g a" "\<forall>x\<in>sphere a r. ?h (1, x) = f x" |
|
5653 |
by (auto simp: dist_norm norm_minus_commute mult_left_le_one_le gf) |
|
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5654 |
ultimately have "homotopic_with_canon (\<lambda>x. True) (sphere a r) S (\<lambda>x. g a) f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5655 |
by (auto simp: homotopic_with) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5656 |
then show ?lhs |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
5657 |
using homotopic_with_symD by blast |
69620 | 5658 |
qed |
5659 |
ultimately |
|
5660 |
show ?thesis by meson |
|
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69922
diff
changeset
|
5661 |
qed |
69620 | 5662 |
|
5663 |
end |