| author | nipkow |
| Wed, 16 Jan 2019 17:03:31 +0100 | |
| changeset 69669 | de2f0a24b0f0 |
| parent 69661 | a03a63b81f44 |
| child 69712 | dc85b5b3a532 |
| permissions | -rw-r--r-- |
| 63627 | 1 |
(* Title: HOL/Analysis/Path_Connected.thy |
|
61806
d2e62ae01cd8
Cauchy's integral formula for circles. Starting to fix eventually_mono.
paulson <lp15@cam.ac.uk>
parents:
61762
diff
changeset
|
2 |
Authors: LC Paulson and Robert Himmelmann (TU Muenchen), based on material from HOL Light |
| 36583 | 3 |
*) |
4 |
||
| 69620 | 5 |
section \<open>Path-Connectedness\<close> |
| 36583 | 6 |
|
7 |
theory Path_Connected |
|
| 69620 | 8 |
imports Starlike |
| 36583 | 9 |
begin |
10 |
||
| 60420 | 11 |
subsection \<open>Paths and Arcs\<close> |
| 36583 | 12 |
|
| 67962 | 13 |
definition%important path :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> bool" |
| 53640 | 14 |
where "path g \<longleftrightarrow> continuous_on {0..1} g"
|
| 36583 | 15 |
|
| 67962 | 16 |
definition%important pathstart :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a" |
| 36583 | 17 |
where "pathstart g = g 0" |
18 |
||
| 67962 | 19 |
definition%important pathfinish :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a" |
| 36583 | 20 |
where "pathfinish g = g 1" |
21 |
||
| 67962 | 22 |
definition%important path_image :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a set" |
| 36583 | 23 |
where "path_image g = g ` {0 .. 1}"
|
24 |
||
| 67962 | 25 |
definition%important reversepath :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> real \<Rightarrow> 'a" |
| 36583 | 26 |
where "reversepath g = (\<lambda>x. g(1 - x))" |
27 |
||
| 67962 | 28 |
definition%important joinpaths :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> real \<Rightarrow> 'a" |
| 36583 | 29 |
(infixr "+++" 75) |
30 |
where "g1 +++ g2 = (\<lambda>x. if x \<le> 1/2 then g1 (2 * x) else g2 (2 * x - 1))" |
|
31 |
||
| 67962 | 32 |
definition%important simple_path :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> bool" |
| 36583 | 33 |
where "simple_path g \<longleftrightarrow> |
| 60303 | 34 |
path g \<and> (\<forall>x\<in>{0..1}. \<forall>y\<in>{0..1}. g x = g y \<longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0)"
|
| 36583 | 35 |
|
| 67962 | 36 |
definition%important arc :: "(real \<Rightarrow> 'a :: topological_space) \<Rightarrow> bool" |
| 60303 | 37 |
where "arc g \<longleftrightarrow> path g \<and> inj_on g {0..1}"
|
| 36583 | 38 |
|
| 49653 | 39 |
|
| 67962 | 40 |
subsection%unimportant\<open>Invariance theorems\<close> |
| 60303 | 41 |
|
42 |
lemma path_eq: "path p \<Longrightarrow> (\<And>t. t \<in> {0..1} \<Longrightarrow> p t = q t) \<Longrightarrow> path q"
|
|
43 |
using continuous_on_eq path_def by blast |
|
44 |
||
| 68096 | 45 |
lemma path_continuous_image: "path g \<Longrightarrow> continuous_on (path_image g) f \<Longrightarrow> path(f \<circ> g)" |
| 60303 | 46 |
unfolding path_def path_image_def |
47 |
using continuous_on_compose by blast |
|
48 |
||
49 |
lemma path_translation_eq: |
|
50 |
fixes g :: "real \<Rightarrow> 'a :: real_normed_vector" |
|
| 68096 | 51 |
shows "path((\<lambda>x. a + x) \<circ> g) = path g" |
| 60303 | 52 |
proof - |
| 68096 | 53 |
have g: "g = (\<lambda>x. -a + x) \<circ> ((\<lambda>x. a + x) \<circ> g)" |
| 60303 | 54 |
by (rule ext) simp |
55 |
show ?thesis |
|
56 |
unfolding path_def |
|
57 |
apply safe |
|
58 |
apply (subst g) |
|
59 |
apply (rule continuous_on_compose) |
|
60 |
apply (auto intro: continuous_intros) |
|
61 |
done |
|
62 |
qed |
|
63 |
||
64 |
lemma path_linear_image_eq: |
|
65 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
66 |
assumes "linear f" "inj f" |
|
| 68096 | 67 |
shows "path(f \<circ> g) = path g" |
| 60303 | 68 |
proof - |
69 |
from linear_injective_left_inverse [OF assms] |
|
70 |
obtain h where h: "linear h" "h \<circ> f = id" |
|
71 |
by blast |
|
| 68096 | 72 |
then have g: "g = h \<circ> (f \<circ> g)" |
| 60303 | 73 |
by (metis comp_assoc id_comp) |
74 |
show ?thesis |
|
75 |
unfolding path_def |
|
76 |
using h assms |
|
77 |
by (metis g continuous_on_compose linear_continuous_on linear_conv_bounded_linear) |
|
78 |
qed |
|
79 |
||
| 68096 | 80 |
lemma pathstart_translation: "pathstart((\<lambda>x. a + x) \<circ> g) = a + pathstart g" |
| 60303 | 81 |
by (simp add: pathstart_def) |
82 |
||
| 68096 | 83 |
lemma pathstart_linear_image_eq: "linear f \<Longrightarrow> pathstart(f \<circ> g) = f(pathstart g)" |
| 60303 | 84 |
by (simp add: pathstart_def) |
85 |
||
| 68096 | 86 |
lemma pathfinish_translation: "pathfinish((\<lambda>x. a + x) \<circ> g) = a + pathfinish g" |
| 60303 | 87 |
by (simp add: pathfinish_def) |
88 |
||
| 68096 | 89 |
lemma pathfinish_linear_image: "linear f \<Longrightarrow> pathfinish(f \<circ> g) = f(pathfinish g)" |
| 60303 | 90 |
by (simp add: pathfinish_def) |
91 |
||
| 68096 | 92 |
lemma path_image_translation: "path_image((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) ` (path_image g)" |
| 60303 | 93 |
by (simp add: image_comp path_image_def) |
94 |
||
| 68096 | 95 |
lemma path_image_linear_image: "linear f \<Longrightarrow> path_image(f \<circ> g) = f ` (path_image g)" |
| 60303 | 96 |
by (simp add: image_comp path_image_def) |
97 |
||
| 68096 | 98 |
lemma reversepath_translation: "reversepath((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) \<circ> reversepath g" |
| 60303 | 99 |
by (rule ext) (simp add: reversepath_def) |
| 36583 | 100 |
|
| 68096 | 101 |
lemma reversepath_linear_image: "linear f \<Longrightarrow> reversepath(f \<circ> g) = f \<circ> reversepath g" |
| 60303 | 102 |
by (rule ext) (simp add: reversepath_def) |
103 |
||
104 |
lemma joinpaths_translation: |
|
| 68096 | 105 |
"((\<lambda>x. a + x) \<circ> g1) +++ ((\<lambda>x. a + x) \<circ> g2) = (\<lambda>x. a + x) \<circ> (g1 +++ g2)" |
| 60303 | 106 |
by (rule ext) (simp add: joinpaths_def) |
107 |
||
| 68096 | 108 |
lemma joinpaths_linear_image: "linear f \<Longrightarrow> (f \<circ> g1) +++ (f \<circ> g2) = f \<circ> (g1 +++ g2)" |
| 60303 | 109 |
by (rule ext) (simp add: joinpaths_def) |
110 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
111 |
lemma simple_path_translation_eq: |
| 60303 | 112 |
fixes g :: "real \<Rightarrow> 'a::euclidean_space" |
| 68096 | 113 |
shows "simple_path((\<lambda>x. a + x) \<circ> g) = simple_path g" |
| 60303 | 114 |
by (simp add: simple_path_def path_translation_eq) |
115 |
||
116 |
lemma simple_path_linear_image_eq: |
|
117 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
118 |
assumes "linear f" "inj f" |
|
| 68096 | 119 |
shows "simple_path(f \<circ> g) = simple_path g" |
| 60303 | 120 |
using assms inj_on_eq_iff [of f] |
121 |
by (auto simp: path_linear_image_eq simple_path_def path_translation_eq) |
|
122 |
||
123 |
lemma arc_translation_eq: |
|
124 |
fixes g :: "real \<Rightarrow> 'a::euclidean_space" |
|
| 68096 | 125 |
shows "arc((\<lambda>x. a + x) \<circ> g) = arc g" |
| 60303 | 126 |
by (auto simp: arc_def inj_on_def path_translation_eq) |
127 |
||
128 |
lemma arc_linear_image_eq: |
|
129 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
130 |
assumes "linear f" "inj f" |
|
| 68096 | 131 |
shows "arc(f \<circ> g) = arc g" |
| 60303 | 132 |
using assms inj_on_eq_iff [of f] |
133 |
by (auto simp: arc_def inj_on_def path_linear_image_eq) |
|
134 |
||
| 69514 | 135 |
|
| 67962 | 136 |
subsection%unimportant\<open>Basic lemmas about paths\<close> |
| 60303 | 137 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
138 |
lemma continuous_on_path: "path f \<Longrightarrow> t \<subseteq> {0..1} \<Longrightarrow> continuous_on t f"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
139 |
using continuous_on_subset path_def by blast |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
140 |
|
| 60303 | 141 |
lemma arc_imp_simple_path: "arc g \<Longrightarrow> simple_path g" |
142 |
by (simp add: arc_def inj_on_def simple_path_def) |
|
143 |
||
144 |
lemma arc_imp_path: "arc g \<Longrightarrow> path g" |
|
145 |
using arc_def by blast |
|
146 |
||
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
147 |
lemma arc_imp_inj_on: "arc g \<Longrightarrow> inj_on g {0..1}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
148 |
by (auto simp: arc_def) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
149 |
|
| 60303 | 150 |
lemma simple_path_imp_path: "simple_path g \<Longrightarrow> path g" |
151 |
using simple_path_def by blast |
|
152 |
||
153 |
lemma simple_path_cases: "simple_path g \<Longrightarrow> arc g \<or> pathfinish g = pathstart g" |
|
154 |
unfolding simple_path_def arc_def inj_on_def pathfinish_def pathstart_def |
|
| 68096 | 155 |
by force |
| 60303 | 156 |
|
157 |
lemma simple_path_imp_arc: "simple_path g \<Longrightarrow> pathfinish g \<noteq> pathstart g \<Longrightarrow> arc g" |
|
158 |
using simple_path_cases by auto |
|
159 |
||
160 |
lemma arc_distinct_ends: "arc g \<Longrightarrow> pathfinish g \<noteq> pathstart g" |
|
161 |
unfolding arc_def inj_on_def pathfinish_def pathstart_def |
|
162 |
by fastforce |
|
163 |
||
164 |
lemma arc_simple_path: "arc g \<longleftrightarrow> simple_path g \<and> pathfinish g \<noteq> pathstart g" |
|
165 |
using arc_distinct_ends arc_imp_simple_path simple_path_cases by blast |
|
166 |
||
167 |
lemma simple_path_eq_arc: "pathfinish g \<noteq> pathstart g \<Longrightarrow> (simple_path g = arc g)" |
|
168 |
by (simp add: arc_simple_path) |
|
| 36583 | 169 |
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
170 |
lemma path_image_const [simp]: "path_image (\<lambda>t. a) = {a}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
171 |
by (force simp: path_image_def) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
172 |
|
|
60974
6a6f15d8fbc4
New material and fixes related to the forthcoming Stone-Weierstrass development
paulson <lp15@cam.ac.uk>
parents:
60809
diff
changeset
|
173 |
lemma path_image_nonempty [simp]: "path_image g \<noteq> {}"
|
| 56188 | 174 |
unfolding path_image_def image_is_empty box_eq_empty |
| 53640 | 175 |
by auto |
| 36583 | 176 |
|
| 53640 | 177 |
lemma pathstart_in_path_image[intro]: "pathstart g \<in> path_image g" |
178 |
unfolding pathstart_def path_image_def |
|
179 |
by auto |
|
| 36583 | 180 |
|
| 53640 | 181 |
lemma pathfinish_in_path_image[intro]: "pathfinish g \<in> path_image g" |
182 |
unfolding pathfinish_def path_image_def |
|
183 |
by auto |
|
184 |
||
185 |
lemma connected_path_image[intro]: "path g \<Longrightarrow> connected (path_image g)" |
|
| 36583 | 186 |
unfolding path_def path_image_def |
| 60303 | 187 |
using connected_continuous_image connected_Icc by blast |
| 36583 | 188 |
|
| 53640 | 189 |
lemma compact_path_image[intro]: "path g \<Longrightarrow> compact (path_image g)" |
| 36583 | 190 |
unfolding path_def path_image_def |
| 60303 | 191 |
using compact_continuous_image connected_Icc by blast |
| 36583 | 192 |
|
| 53640 | 193 |
lemma reversepath_reversepath[simp]: "reversepath (reversepath g) = g" |
194 |
unfolding reversepath_def |
|
195 |
by auto |
|
| 36583 | 196 |
|
| 53640 | 197 |
lemma pathstart_reversepath[simp]: "pathstart (reversepath g) = pathfinish g" |
198 |
unfolding pathstart_def reversepath_def pathfinish_def |
|
199 |
by auto |
|
| 36583 | 200 |
|
| 53640 | 201 |
lemma pathfinish_reversepath[simp]: "pathfinish (reversepath g) = pathstart g" |
202 |
unfolding pathstart_def reversepath_def pathfinish_def |
|
203 |
by auto |
|
| 36583 | 204 |
|
| 49653 | 205 |
lemma pathstart_join[simp]: "pathstart (g1 +++ g2) = pathstart g1" |
| 53640 | 206 |
unfolding pathstart_def joinpaths_def pathfinish_def |
207 |
by auto |
|
| 36583 | 208 |
|
| 49653 | 209 |
lemma pathfinish_join[simp]: "pathfinish (g1 +++ g2) = pathfinish g2" |
| 53640 | 210 |
unfolding pathstart_def joinpaths_def pathfinish_def |
211 |
by auto |
|
| 36583 | 212 |
|
| 53640 | 213 |
lemma path_image_reversepath[simp]: "path_image (reversepath g) = path_image g" |
| 49653 | 214 |
proof - |
| 53640 | 215 |
have *: "\<And>g. path_image (reversepath g) \<subseteq> path_image g" |
| 49653 | 216 |
unfolding path_image_def subset_eq reversepath_def Ball_def image_iff |
| 60303 | 217 |
by force |
| 49653 | 218 |
show ?thesis |
219 |
using *[of g] *[of "reversepath g"] |
|
| 53640 | 220 |
unfolding reversepath_reversepath |
221 |
by auto |
|
| 49653 | 222 |
qed |
| 36583 | 223 |
|
| 53640 | 224 |
lemma path_reversepath [simp]: "path (reversepath g) \<longleftrightarrow> path g" |
| 49653 | 225 |
proof - |
226 |
have *: "\<And>g. path g \<Longrightarrow> path (reversepath g)" |
|
227 |
unfolding path_def reversepath_def |
|
228 |
apply (rule continuous_on_compose[unfolded o_def, of _ "\<lambda>x. 1 - x"]) |
|
| 68096 | 229 |
apply (auto intro: continuous_intros continuous_on_subset[of "{0..1}"])
|
| 49653 | 230 |
done |
231 |
show ?thesis |
|
232 |
using *[of "reversepath g"] *[of g] |
|
233 |
unfolding reversepath_reversepath |
|
234 |
by (rule iffI) |
|
235 |
qed |
|
236 |
||
| 60303 | 237 |
lemma arc_reversepath: |
238 |
assumes "arc g" shows "arc(reversepath g)" |
|
239 |
proof - |
|
240 |
have injg: "inj_on g {0..1}"
|
|
241 |
using assms |
|
242 |
by (simp add: arc_def) |
|
243 |
have **: "\<And>x y::real. 1-x = 1-y \<Longrightarrow> x = y" |
|
244 |
by simp |
|
245 |
show ?thesis |
|
| 68096 | 246 |
using assms by (clarsimp simp: arc_def intro!: inj_onI) (simp add: inj_onD reversepath_def **) |
| 60303 | 247 |
qed |
248 |
||
249 |
lemma simple_path_reversepath: "simple_path g \<Longrightarrow> simple_path (reversepath g)" |
|
250 |
apply (simp add: simple_path_def) |
|
251 |
apply (force simp: reversepath_def) |
|
252 |
done |
|
253 |
||
| 49653 | 254 |
lemmas reversepath_simps = |
255 |
path_reversepath path_image_reversepath pathstart_reversepath pathfinish_reversepath |
|
| 36583 | 256 |
|
| 49653 | 257 |
lemma path_join[simp]: |
258 |
assumes "pathfinish g1 = pathstart g2" |
|
259 |
shows "path (g1 +++ g2) \<longleftrightarrow> path g1 \<and> path g2" |
|
260 |
unfolding path_def pathfinish_def pathstart_def |
|
|
51478
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
261 |
proof safe |
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
262 |
assume cont: "continuous_on {0..1} (g1 +++ g2)"
|
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
263 |
have g1: "continuous_on {0..1} g1 \<longleftrightarrow> continuous_on {0..1} ((g1 +++ g2) \<circ> (\<lambda>x. x / 2))"
|
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
264 |
by (intro continuous_on_cong refl) (auto simp: joinpaths_def) |
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
265 |
have g2: "continuous_on {0..1} g2 \<longleftrightarrow> continuous_on {0..1} ((g1 +++ g2) \<circ> (\<lambda>x. x / 2 + 1/2))"
|
| 53640 | 266 |
using assms |
267 |
by (intro continuous_on_cong refl) (auto simp: joinpaths_def pathfinish_def pathstart_def) |
|
268 |
show "continuous_on {0..1} g1" and "continuous_on {0..1} g2"
|
|
|
51481
ef949192e5d6
move continuous_on_inv to HOL image (simplifies isCont_inverse_function)
hoelzl
parents:
51478
diff
changeset
|
269 |
unfolding g1 g2 |
|
56371
fb9ae0727548
extend continuous_intros; remove continuous_on_intros and isCont_intros
hoelzl
parents:
56188
diff
changeset
|
270 |
by (auto intro!: continuous_intros continuous_on_subset[OF cont] simp del: o_apply) |
|
51478
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
271 |
next |
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
272 |
assume g1g2: "continuous_on {0..1} g1" "continuous_on {0..1} g2"
|
|
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
273 |
have 01: "{0 .. 1} = {0..1/2} \<union> {1/2 .. 1::real}"
|
| 36583 | 274 |
by auto |
| 53640 | 275 |
{
|
276 |
fix x :: real |
|
277 |
assume "0 \<le> x" and "x \<le> 1" |
|
278 |
then have "x \<in> (\<lambda>x. x * 2) ` {0..1 / 2}"
|
|
279 |
by (intro image_eqI[where x="x/2"]) auto |
|
280 |
} |
|
|
51478
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
281 |
note 1 = this |
| 53640 | 282 |
{
|
283 |
fix x :: real |
|
284 |
assume "0 \<le> x" and "x \<le> 1" |
|
285 |
then have "x \<in> (\<lambda>x. x * 2 - 1) ` {1 / 2..1}"
|
|
286 |
by (intro image_eqI[where x="x/2 + 1/2"]) auto |
|
287 |
} |
|
|
51478
270b21f3ae0a
move continuous and continuous_on to the HOL image; isCont is an abbreviation for continuous (at x) (isCont is now restricted to a T2 space)
hoelzl
parents:
50935
diff
changeset
|
288 |
note 2 = this |
| 49653 | 289 |
show "continuous_on {0..1} (g1 +++ g2)"
|
| 53640 | 290 |
using assms |
291 |
unfolding joinpaths_def 01 |
|
|
56371
fb9ae0727548
extend continuous_intros; remove continuous_on_intros and isCont_intros
hoelzl
parents:
56188
diff
changeset
|
292 |
apply (intro continuous_on_cases closed_atLeastAtMost g1g2[THEN continuous_on_compose2] continuous_intros) |
| 53640 | 293 |
apply (auto simp: field_simps pathfinish_def pathstart_def intro!: 1 2) |
294 |
done |
|
| 49653 | 295 |
qed |
| 36583 | 296 |
|
| 69514 | 297 |
|
| 69620 | 298 |
subsection%unimportant \<open>Path Images\<close> |
| 60303 | 299 |
|
300 |
lemma bounded_path_image: "path g \<Longrightarrow> bounded(path_image g)" |
|
301 |
by (simp add: compact_imp_bounded compact_path_image) |
|
302 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
303 |
lemma closed_path_image: |
| 60303 | 304 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
305 |
shows "path g \<Longrightarrow> closed(path_image g)" |
|
306 |
by (metis compact_path_image compact_imp_closed) |
|
307 |
||
308 |
lemma connected_simple_path_image: "simple_path g \<Longrightarrow> connected(path_image g)" |
|
309 |
by (metis connected_path_image simple_path_imp_path) |
|
310 |
||
311 |
lemma compact_simple_path_image: "simple_path g \<Longrightarrow> compact(path_image g)" |
|
312 |
by (metis compact_path_image simple_path_imp_path) |
|
313 |
||
314 |
lemma bounded_simple_path_image: "simple_path g \<Longrightarrow> bounded(path_image g)" |
|
315 |
by (metis bounded_path_image simple_path_imp_path) |
|
316 |
||
317 |
lemma closed_simple_path_image: |
|
318 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
|
319 |
shows "simple_path g \<Longrightarrow> closed(path_image g)" |
|
320 |
by (metis closed_path_image simple_path_imp_path) |
|
321 |
||
322 |
lemma connected_arc_image: "arc g \<Longrightarrow> connected(path_image g)" |
|
323 |
by (metis connected_path_image arc_imp_path) |
|
324 |
||
325 |
lemma compact_arc_image: "arc g \<Longrightarrow> compact(path_image g)" |
|
326 |
by (metis compact_path_image arc_imp_path) |
|
327 |
||
328 |
lemma bounded_arc_image: "arc g \<Longrightarrow> bounded(path_image g)" |
|
329 |
by (metis bounded_path_image arc_imp_path) |
|
330 |
||
331 |
lemma closed_arc_image: |
|
332 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
|
333 |
shows "arc g \<Longrightarrow> closed(path_image g)" |
|
334 |
by (metis closed_path_image arc_imp_path) |
|
335 |
||
| 53640 | 336 |
lemma path_image_join_subset: "path_image (g1 +++ g2) \<subseteq> path_image g1 \<union> path_image g2" |
337 |
unfolding path_image_def joinpaths_def |
|
338 |
by auto |
|
| 36583 | 339 |
|
340 |
lemma subset_path_image_join: |
|
| 53640 | 341 |
assumes "path_image g1 \<subseteq> s" |
342 |
and "path_image g2 \<subseteq> s" |
|
343 |
shows "path_image (g1 +++ g2) \<subseteq> s" |
|
344 |
using path_image_join_subset[of g1 g2] and assms |
|
345 |
by auto |
|
| 36583 | 346 |
|
347 |
lemma path_image_join: |
|
| 60303 | 348 |
"pathfinish g1 = pathstart g2 \<Longrightarrow> path_image(g1 +++ g2) = path_image g1 \<union> path_image g2" |
349 |
apply (rule subset_antisym [OF path_image_join_subset]) |
|
350 |
apply (auto simp: pathfinish_def pathstart_def path_image_def joinpaths_def image_def) |
|
351 |
apply (drule sym) |
|
352 |
apply (rule_tac x="xa/2" in bexI, auto) |
|
353 |
apply (rule ccontr) |
|
354 |
apply (drule_tac x="(xa+1)/2" in bspec) |
|
355 |
apply (auto simp: field_simps) |
|
356 |
apply (drule_tac x="1/2" in bspec, auto) |
|
357 |
done |
|
| 36583 | 358 |
|
359 |
lemma not_in_path_image_join: |
|
| 53640 | 360 |
assumes "x \<notin> path_image g1" |
361 |
and "x \<notin> path_image g2" |
|
362 |
shows "x \<notin> path_image (g1 +++ g2)" |
|
363 |
using assms and path_image_join_subset[of g1 g2] |
|
364 |
by auto |
|
| 36583 | 365 |
|
| 68096 | 366 |
lemma pathstart_compose: "pathstart(f \<circ> p) = f(pathstart p)" |
| 60303 | 367 |
by (simp add: pathstart_def) |
368 |
||
| 68096 | 369 |
lemma pathfinish_compose: "pathfinish(f \<circ> p) = f(pathfinish p)" |
| 60303 | 370 |
by (simp add: pathfinish_def) |
371 |
||
| 68096 | 372 |
lemma path_image_compose: "path_image (f \<circ> p) = f ` (path_image p)" |
| 60303 | 373 |
by (simp add: image_comp path_image_def) |
374 |
||
| 68096 | 375 |
lemma path_compose_join: "f \<circ> (p +++ q) = (f \<circ> p) +++ (f \<circ> q)" |
| 60303 | 376 |
by (rule ext) (simp add: joinpaths_def) |
377 |
||
| 68096 | 378 |
lemma path_compose_reversepath: "f \<circ> reversepath p = reversepath(f \<circ> p)" |
| 60303 | 379 |
by (rule ext) (simp add: reversepath_def) |
380 |
||
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
381 |
lemma joinpaths_eq: |
| 60303 | 382 |
"(\<And>t. t \<in> {0..1} \<Longrightarrow> p t = p' t) \<Longrightarrow>
|
383 |
(\<And>t. t \<in> {0..1} \<Longrightarrow> q t = q' t)
|
|
384 |
\<Longrightarrow> t \<in> {0..1} \<Longrightarrow> (p +++ q) t = (p' +++ q') t"
|
|
385 |
by (auto simp: joinpaths_def) |
|
386 |
||
387 |
lemma simple_path_inj_on: "simple_path g \<Longrightarrow> inj_on g {0<..<1}"
|
|
388 |
by (auto simp: simple_path_def path_image_def inj_on_def less_eq_real_def Ball_def) |
|
389 |
||
390 |
||
| 67962 | 391 |
subsection%unimportant\<open>Simple paths with the endpoints removed\<close> |
| 60303 | 392 |
|
393 |
lemma simple_path_endless: |
|
394 |
"simple_path c \<Longrightarrow> path_image c - {pathstart c,pathfinish c} = c ` {0<..<1}"
|
|
395 |
apply (auto simp: simple_path_def path_image_def pathstart_def pathfinish_def Ball_def Bex_def image_def) |
|
396 |
apply (metis eq_iff le_less_linear) |
|
397 |
apply (metis leD linear) |
|
398 |
using less_eq_real_def zero_le_one apply blast |
|
399 |
using less_eq_real_def zero_le_one apply blast |
|
| 49653 | 400 |
done |
| 36583 | 401 |
|
| 60303 | 402 |
lemma connected_simple_path_endless: |
403 |
"simple_path c \<Longrightarrow> connected(path_image c - {pathstart c,pathfinish c})"
|
|
404 |
apply (simp add: simple_path_endless) |
|
405 |
apply (rule connected_continuous_image) |
|
406 |
apply (meson continuous_on_subset greaterThanLessThan_subseteq_atLeastAtMost_iff le_numeral_extra(3) le_numeral_extra(4) path_def simple_path_imp_path) |
|
407 |
by auto |
|
408 |
||
409 |
lemma nonempty_simple_path_endless: |
|
410 |
"simple_path c \<Longrightarrow> path_image c - {pathstart c,pathfinish c} \<noteq> {}"
|
|
411 |
by (simp add: simple_path_endless) |
|
412 |
||
413 |
||
| 67962 | 414 |
subsection%unimportant\<open>The operations on paths\<close> |
| 60303 | 415 |
|
416 |
lemma path_image_subset_reversepath: "path_image(reversepath g) \<le> path_image g" |
|
417 |
by (auto simp: path_image_def reversepath_def) |
|
418 |
||
419 |
lemma path_imp_reversepath: "path g \<Longrightarrow> path(reversepath g)" |
|
420 |
apply (auto simp: path_def reversepath_def) |
|
421 |
using continuous_on_compose [of "{0..1}" "\<lambda>x. 1 - x" g]
|
|
422 |
apply (auto simp: continuous_on_op_minus) |
|
423 |
done |
|
424 |
||
| 61204 | 425 |
lemma half_bounded_equal: "1 \<le> x * 2 \<Longrightarrow> x * 2 \<le> 1 \<longleftrightarrow> x = (1/2::real)" |
426 |
by simp |
|
| 60303 | 427 |
|
428 |
lemma continuous_on_joinpaths: |
|
429 |
assumes "continuous_on {0..1} g1" "continuous_on {0..1} g2" "pathfinish g1 = pathstart g2"
|
|
430 |
shows "continuous_on {0..1} (g1 +++ g2)"
|
|
431 |
proof - |
|
432 |
have *: "{0..1::real} = {0..1/2} \<union> {1/2..1}"
|
|
433 |
by auto |
|
434 |
have gg: "g2 0 = g1 1" |
|
435 |
by (metis assms(3) pathfinish_def pathstart_def) |
|
| 61204 | 436 |
have 1: "continuous_on {0..1/2} (g1 +++ g2)"
|
| 68096 | 437 |
apply (rule continuous_on_eq [of _ "g1 \<circ> (\<lambda>x. 2*x)"]) |
| 61204 | 438 |
apply (rule continuous_intros | simp add: joinpaths_def assms)+ |
| 60303 | 439 |
done |
| 68096 | 440 |
have "continuous_on {1/2..1} (g2 \<circ> (\<lambda>x. 2*x-1))"
|
| 61204 | 441 |
apply (rule continuous_on_subset [of "{1/2..1}"])
|
442 |
apply (rule continuous_intros | simp add: image_affinity_atLeastAtMost_diff assms)+ |
|
443 |
done |
|
444 |
then have 2: "continuous_on {1/2..1} (g1 +++ g2)"
|
|
| 68096 | 445 |
apply (rule continuous_on_eq [of "{1/2..1}" "g2 \<circ> (\<lambda>x. 2*x-1)"])
|
| 61204 | 446 |
apply (rule assms continuous_intros | simp add: joinpaths_def mult.commute half_bounded_equal gg)+ |
| 60303 | 447 |
done |
448 |
show ?thesis |
|
449 |
apply (subst *) |
|
|
62397
5ae24f33d343
Substantial new material for multivariate analysis. Also removal of some duplicates.
paulson <lp15@cam.ac.uk>
parents:
62381
diff
changeset
|
450 |
apply (rule continuous_on_closed_Un) |
| 60303 | 451 |
using 1 2 |
452 |
apply auto |
|
453 |
done |
|
454 |
qed |
|
455 |
||
456 |
lemma path_join_imp: "\<lbrakk>path g1; path g2; pathfinish g1 = pathstart g2\<rbrakk> \<Longrightarrow> path(g1 +++ g2)" |
|
457 |
by (simp add: path_join) |
|
458 |
||
| 36583 | 459 |
lemma simple_path_join_loop: |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
460 |
assumes "arc g1" "arc g2" |
|
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
461 |
"pathfinish g1 = pathstart g2" "pathfinish g2 = pathstart g1" |
| 60303 | 462 |
"path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}"
|
463 |
shows "simple_path(g1 +++ g2)" |
|
464 |
proof - |
|
465 |
have injg1: "inj_on g1 {0..1}"
|
|
466 |
using assms |
|
467 |
by (simp add: arc_def) |
|
468 |
have injg2: "inj_on g2 {0..1}"
|
|
469 |
using assms |
|
470 |
by (simp add: arc_def) |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
471 |
have g12: "g1 1 = g2 0" |
|
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
472 |
and g21: "g2 1 = g1 0" |
| 60303 | 473 |
and sb: "g1 ` {0..1} \<inter> g2 ` {0..1} \<subseteq> {g1 0, g2 0}"
|
474 |
using assms |
|
475 |
by (simp_all add: arc_def pathfinish_def pathstart_def path_image_def) |
|
476 |
{ fix x and y::real
|
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
477 |
assume xyI: "x = 1 \<longrightarrow> y \<noteq> 0" |
| 60303 | 478 |
and xy: "x \<le> 1" "0 \<le> y" " y * 2 \<le> 1" "\<not> x * 2 \<le> 1" "g2 (2 * x - 1) = g1 (2 * y)" |
479 |
have g1im: "g1 (2 * y) \<in> g1 ` {0..1} \<inter> g2 ` {0..1}"
|
|
480 |
using xy |
|
481 |
apply simp |
|
482 |
apply (rule_tac x="2 * x - 1" in image_eqI, auto) |
|
483 |
done |
|
484 |
have False |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
485 |
using subsetD [OF sb g1im] xy |
| 60303 | 486 |
apply auto |
487 |
apply (drule inj_onD [OF injg1]) |
|
488 |
using g21 [symmetric] xyI |
|
489 |
apply (auto dest: inj_onD [OF injg2]) |
|
490 |
done |
|
491 |
} note * = this |
|
492 |
{ fix x and y::real
|
|
493 |
assume xy: "y \<le> 1" "0 \<le> x" "\<not> y * 2 \<le> 1" "x * 2 \<le> 1" "g1 (2 * x) = g2 (2 * y - 1)" |
|
494 |
have g1im: "g1 (2 * x) \<in> g1 ` {0..1} \<inter> g2 ` {0..1}"
|
|
495 |
using xy |
|
496 |
apply simp |
|
497 |
apply (rule_tac x="2 * x" in image_eqI, auto) |
|
498 |
done |
|
499 |
have "x = 0 \<and> y = 1" |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
500 |
using subsetD [OF sb g1im] xy |
| 60303 | 501 |
apply auto |
502 |
apply (force dest: inj_onD [OF injg1]) |
|
503 |
using g21 [symmetric] |
|
504 |
apply (auto dest: inj_onD [OF injg2]) |
|
505 |
done |
|
506 |
} note ** = this |
|
507 |
show ?thesis |
|
508 |
using assms |
|
509 |
apply (simp add: arc_def simple_path_def path_join, clarify) |
|
| 62390 | 510 |
apply (simp add: joinpaths_def split: if_split_asm) |
| 60303 | 511 |
apply (force dest: inj_onD [OF injg1]) |
512 |
apply (metis *) |
|
513 |
apply (metis **) |
|
514 |
apply (force dest: inj_onD [OF injg2]) |
|
515 |
done |
|
516 |
qed |
|
517 |
||
518 |
lemma arc_join: |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
519 |
assumes "arc g1" "arc g2" |
| 60303 | 520 |
"pathfinish g1 = pathstart g2" |
521 |
"path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g2}"
|
|
522 |
shows "arc(g1 +++ g2)" |
|
523 |
proof - |
|
524 |
have injg1: "inj_on g1 {0..1}"
|
|
525 |
using assms |
|
526 |
by (simp add: arc_def) |
|
527 |
have injg2: "inj_on g2 {0..1}"
|
|
528 |
using assms |
|
529 |
by (simp add: arc_def) |
|
530 |
have g11: "g1 1 = g2 0" |
|
531 |
and sb: "g1 ` {0..1} \<inter> g2 ` {0..1} \<subseteq> {g2 0}"
|
|
532 |
using assms |
|
533 |
by (simp_all add: arc_def pathfinish_def pathstart_def path_image_def) |
|
534 |
{ fix x and y::real
|
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
535 |
assume xy: "x \<le> 1" "0 \<le> y" " y * 2 \<le> 1" "\<not> x * 2 \<le> 1" "g2 (2 * x - 1) = g1 (2 * y)" |
| 60303 | 536 |
have g1im: "g1 (2 * y) \<in> g1 ` {0..1} \<inter> g2 ` {0..1}"
|
537 |
using xy |
|
538 |
apply simp |
|
539 |
apply (rule_tac x="2 * x - 1" in image_eqI, auto) |
|
540 |
done |
|
541 |
have False |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
542 |
using subsetD [OF sb g1im] xy |
| 60303 | 543 |
by (auto dest: inj_onD [OF injg2]) |
544 |
} note * = this |
|
545 |
show ?thesis |
|
546 |
apply (simp add: arc_def inj_on_def) |
|
547 |
apply (clarsimp simp add: arc_imp_path assms path_join) |
|
| 62390 | 548 |
apply (simp add: joinpaths_def split: if_split_asm) |
| 60303 | 549 |
apply (force dest: inj_onD [OF injg1]) |
550 |
apply (metis *) |
|
551 |
apply (metis *) |
|
552 |
apply (force dest: inj_onD [OF injg2]) |
|
553 |
done |
|
554 |
qed |
|
555 |
||
556 |
lemma reversepath_joinpaths: |
|
557 |
"pathfinish g1 = pathstart g2 \<Longrightarrow> reversepath(g1 +++ g2) = reversepath g2 +++ reversepath g1" |
|
558 |
unfolding reversepath_def pathfinish_def pathstart_def joinpaths_def |
|
559 |
by (rule ext) (auto simp: mult.commute) |
|
560 |
||
561 |
||
| 67962 | 562 |
subsection%unimportant\<open>Some reversed and "if and only if" versions of joining theorems\<close> |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
563 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
564 |
lemma path_join_path_ends: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
565 |
fixes g1 :: "real \<Rightarrow> 'a::metric_space" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
566 |
assumes "path(g1 +++ g2)" "path g2" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
567 |
shows "pathfinish g1 = pathstart g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
568 |
proof (rule ccontr) |
| 63040 | 569 |
define e where "e = dist (g1 1) (g2 0)" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
570 |
assume Neg: "pathfinish g1 \<noteq> pathstart g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
571 |
then have "0 < dist (pathfinish g1) (pathstart g2)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
572 |
by auto |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
573 |
then have "e > 0" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
574 |
by (metis e_def pathfinish_def pathstart_def) |
|
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
575 |
then obtain d1 where "d1 > 0" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
576 |
and d1: "\<And>x'. \<lbrakk>x'\<in>{0..1}; norm x' < d1\<rbrakk> \<Longrightarrow> dist (g2 x') (g2 0) < e/2"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
577 |
using assms(2) unfolding path_def continuous_on_iff |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
578 |
apply (drule_tac x=0 in bspec, simp) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
579 |
by (metis half_gt_zero_iff norm_conv_dist) |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
580 |
obtain d2 where "d2 > 0" |
|
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
581 |
and d2: "\<And>x'. \<lbrakk>x'\<in>{0..1}; dist x' (1/2) < d2\<rbrakk>
|
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
582 |
\<Longrightarrow> dist ((g1 +++ g2) x') (g1 1) < e/2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
583 |
using assms(1) \<open>e > 0\<close> unfolding path_def continuous_on_iff |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
584 |
apply (drule_tac x="1/2" in bspec, simp) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
585 |
apply (drule_tac x="e/2" in spec) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
586 |
apply (force simp: joinpaths_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
587 |
done |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
588 |
have int01_1: "min (1/2) (min d1 d2) / 2 \<in> {0..1}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
589 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
590 |
have dist1: "norm (min (1 / 2) (min d1 d2) / 2) < d1" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
591 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def dist_norm) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
592 |
have int01_2: "1/2 + min (1/2) (min d1 d2) / 4 \<in> {0..1}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
593 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
594 |
have dist2: "dist (1 / 2 + min (1 / 2) (min d1 d2) / 4) (1 / 2) < d2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
595 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def dist_norm) |
| 69508 | 596 |
have [simp]: "\<not> min (1 / 2) (min d1 d2) \<le> 0" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
597 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
598 |
have "dist (g2 (min (1 / 2) (min d1 d2) / 2)) (g1 1) < e/2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
599 |
"dist (g2 (min (1 / 2) (min d1 d2) / 2)) (g2 0) < e/2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
600 |
using d1 [OF int01_1 dist1] d2 [OF int01_2 dist2] by (simp_all add: joinpaths_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
601 |
then have "dist (g1 1) (g2 0) < e/2 + e/2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
602 |
using dist_triangle_half_r e_def by blast |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
603 |
then show False |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
604 |
by (simp add: e_def [symmetric]) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
605 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
606 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
607 |
lemma path_join_eq [simp]: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
608 |
fixes g1 :: "real \<Rightarrow> 'a::metric_space" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
609 |
assumes "path g1" "path g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
610 |
shows "path(g1 +++ g2) \<longleftrightarrow> pathfinish g1 = pathstart g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
611 |
using assms by (metis path_join_path_ends path_join_imp) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
612 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
613 |
lemma simple_path_joinE: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
614 |
assumes "simple_path(g1 +++ g2)" and "pathfinish g1 = pathstart g2" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
615 |
obtains "arc g1" "arc g2" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
616 |
"path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
617 |
proof - |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
618 |
have *: "\<And>x y. \<lbrakk>0 \<le> x; x \<le> 1; 0 \<le> y; y \<le> 1; (g1 +++ g2) x = (g1 +++ g2) y\<rbrakk> |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
619 |
\<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
620 |
using assms by (simp add: simple_path_def) |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
621 |
have "path g1" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
622 |
using assms path_join simple_path_imp_path by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
623 |
moreover have "inj_on g1 {0..1}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
624 |
proof (clarsimp simp: inj_on_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
625 |
fix x y |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
626 |
assume "g1 x = g1 y" "0 \<le> x" "x \<le> 1" "0 \<le> y" "y \<le> 1" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
627 |
then show "x = y" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
628 |
using * [of "x/2" "y/2"] by (simp add: joinpaths_def split_ifs) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
629 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
630 |
ultimately have "arc g1" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
631 |
using assms by (simp add: arc_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
632 |
have [simp]: "g2 0 = g1 1" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
633 |
using assms by (metis pathfinish_def pathstart_def) |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
634 |
have "path g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
635 |
using assms path_join simple_path_imp_path by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
636 |
moreover have "inj_on g2 {0..1}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
637 |
proof (clarsimp simp: inj_on_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
638 |
fix x y |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
639 |
assume "g2 x = g2 y" "0 \<le> x" "x \<le> 1" "0 \<le> y" "y \<le> 1" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
640 |
then show "x = y" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
641 |
using * [of "(x + 1) / 2" "(y + 1) / 2"] |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
642 |
by (force simp: joinpaths_def split_ifs divide_simps) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
643 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
644 |
ultimately have "arc g2" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
645 |
using assms by (simp add: arc_def) |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
646 |
have "g2 y = g1 0 \<or> g2 y = g1 1" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
647 |
if "g1 x = g2 y" "0 \<le> x" "x \<le> 1" "0 \<le> y" "y \<le> 1" for x y |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
648 |
using * [of "x / 2" "(y + 1) / 2"] that |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
649 |
by (auto simp: joinpaths_def split_ifs divide_simps) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
650 |
then have "path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
651 |
by (fastforce simp: pathstart_def pathfinish_def path_image_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
652 |
with \<open>arc g1\<close> \<open>arc g2\<close> show ?thesis using that by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
653 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
654 |
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
655 |
lemma simple_path_join_loop_eq: |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
656 |
assumes "pathfinish g2 = pathstart g1" "pathfinish g1 = pathstart g2" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
657 |
shows "simple_path(g1 +++ g2) \<longleftrightarrow> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
658 |
arc g1 \<and> arc g2 \<and> path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
659 |
by (metis assms simple_path_joinE simple_path_join_loop) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
660 |
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
661 |
lemma arc_join_eq: |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
662 |
assumes "pathfinish g1 = pathstart g2" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
663 |
shows "arc(g1 +++ g2) \<longleftrightarrow> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
664 |
arc g1 \<and> arc g2 \<and> path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g2}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
665 |
(is "?lhs = ?rhs") |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
666 |
proof |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
667 |
assume ?lhs |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
668 |
then have "simple_path(g1 +++ g2)" by (rule arc_imp_simple_path) |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
669 |
then have *: "\<And>x y. \<lbrakk>0 \<le> x; x \<le> 1; 0 \<le> y; y \<le> 1; (g1 +++ g2) x = (g1 +++ g2) y\<rbrakk> |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
670 |
\<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
671 |
using assms by (simp add: simple_path_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
672 |
have False if "g1 0 = g2 u" "0 \<le> u" "u \<le> 1" for u |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
673 |
using * [of 0 "(u + 1) / 2"] that assms arc_distinct_ends [OF \<open>?lhs\<close>] |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
674 |
by (auto simp: joinpaths_def pathstart_def pathfinish_def split_ifs divide_simps) |
| 69508 | 675 |
then have n1: "pathstart g1 \<notin> path_image g2" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
676 |
unfolding pathstart_def path_image_def |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
677 |
using atLeastAtMost_iff by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
678 |
show ?rhs using \<open>?lhs\<close> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
679 |
apply (rule simple_path_joinE [OF arc_imp_simple_path assms]) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
680 |
using n1 by force |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
681 |
next |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
682 |
assume ?rhs then show ?lhs |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
683 |
using assms |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
684 |
by (fastforce simp: pathfinish_def pathstart_def intro!: arc_join) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
685 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
686 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
687 |
lemma arc_join_eq_alt: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
688 |
"pathfinish g1 = pathstart g2 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
689 |
\<Longrightarrow> (arc(g1 +++ g2) \<longleftrightarrow> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
690 |
arc g1 \<and> arc g2 \<and> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
691 |
path_image g1 \<inter> path_image g2 = {pathstart g2})"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
692 |
using pathfinish_in_path_image by (fastforce simp: arc_join_eq) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
693 |
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
694 |
|
| 67962 | 695 |
subsection%unimportant\<open>The joining of paths is associative\<close> |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
696 |
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
697 |
lemma path_assoc: |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
698 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart r\<rbrakk> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
699 |
\<Longrightarrow> path(p +++ (q +++ r)) \<longleftrightarrow> path((p +++ q) +++ r)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
700 |
by simp |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
701 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
702 |
lemma simple_path_assoc: |
|
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
703 |
assumes "pathfinish p = pathstart q" "pathfinish q = pathstart r" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
704 |
shows "simple_path (p +++ (q +++ r)) \<longleftrightarrow> simple_path ((p +++ q) +++ r)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
705 |
proof (cases "pathstart p = pathfinish r") |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
706 |
case True show ?thesis |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
707 |
proof |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
708 |
assume "simple_path (p +++ q +++ r)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
709 |
with assms True show "simple_path ((p +++ q) +++ r)" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
710 |
by (fastforce simp add: simple_path_join_loop_eq arc_join_eq path_image_join |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
711 |
dest: arc_distinct_ends [of r]) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
712 |
next |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
713 |
assume 0: "simple_path ((p +++ q) +++ r)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
714 |
with assms True have q: "pathfinish r \<notin> path_image q" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
715 |
using arc_distinct_ends |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
716 |
by (fastforce simp add: simple_path_join_loop_eq arc_join_eq path_image_join) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
717 |
have "pathstart r \<notin> path_image p" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
718 |
using assms |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
719 |
by (metis 0 IntI arc_distinct_ends arc_join_eq_alt empty_iff insert_iff |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
720 |
pathfinish_in_path_image pathfinish_join simple_path_joinE) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
721 |
with assms 0 q True show "simple_path (p +++ q +++ r)" |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
722 |
by (auto simp: simple_path_join_loop_eq arc_join_eq path_image_join |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
723 |
dest!: subsetD [OF _ IntI]) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
724 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
725 |
next |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
726 |
case False |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
727 |
{ fix x :: 'a
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
728 |
assume a: "path_image p \<inter> path_image q \<subseteq> {pathstart q}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
729 |
"(path_image p \<union> path_image q) \<inter> path_image r \<subseteq> {pathstart r}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
730 |
"x \<in> path_image p" "x \<in> path_image r" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
731 |
have "pathstart r \<in> path_image q" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
732 |
by (metis assms(2) pathfinish_in_path_image) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
733 |
with a have "x = pathstart q" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
734 |
by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
735 |
} |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
736 |
with False assms show ?thesis |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
737 |
by (auto simp: simple_path_eq_arc simple_path_join_loop_eq arc_join_eq path_image_join) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
738 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
739 |
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
740 |
lemma arc_assoc: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
741 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart r\<rbrakk> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
742 |
\<Longrightarrow> arc(p +++ (q +++ r)) \<longleftrightarrow> arc((p +++ q) +++ r)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
743 |
by (simp add: arc_simple_path simple_path_assoc) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
744 |
|
| 67962 | 745 |
subsubsection%unimportant\<open>Symmetry and loops\<close> |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
746 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
747 |
lemma path_sym: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
748 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> \<Longrightarrow> path(p +++ q) \<longleftrightarrow> path(q +++ p)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
749 |
by auto |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
750 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
751 |
lemma simple_path_sym: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
752 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
753 |
\<Longrightarrow> simple_path(p +++ q) \<longleftrightarrow> simple_path(q +++ p)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
754 |
by (metis (full_types) inf_commute insert_commute simple_path_joinE simple_path_join_loop) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
755 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
756 |
lemma path_image_sym: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
757 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
758 |
\<Longrightarrow> path_image(p +++ q) = path_image(q +++ p)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
759 |
by (simp add: path_image_join sup_commute) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
760 |
|
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
761 |
|
| 69518 | 762 |
subsection\<open>Subpath\<close> |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
763 |
|
| 67962 | 764 |
definition%important subpath :: "real \<Rightarrow> real \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> real \<Rightarrow> 'a::real_normed_vector" |
| 60303 | 765 |
where "subpath a b g \<equiv> \<lambda>x. g((b - a) * x + a)" |
766 |
||
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
767 |
lemma path_image_subpath_gen: |
|
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
768 |
fixes g :: "_ \<Rightarrow> 'a::real_normed_vector" |
| 60303 | 769 |
shows "path_image(subpath u v g) = g ` (closed_segment u v)" |
| 69661 | 770 |
by (auto simp add: closed_segment_real_eq path_image_def subpath_def) |
| 60303 | 771 |
|
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
772 |
lemma path_image_subpath: |
| 60303 | 773 |
fixes g :: "real \<Rightarrow> 'a::real_normed_vector" |
774 |
shows "path_image(subpath u v g) = (if u \<le> v then g ` {u..v} else g ` {v..u})"
|
|
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
775 |
by (simp add: path_image_subpath_gen closed_segment_eq_real_ivl) |
| 60303 | 776 |
|
|
65038
9391ea7daa17
new lemmas about segments, etc. Also recast some theorems to use Union rather than general set comprehensions
paulson <lp15@cam.ac.uk>
parents:
64911
diff
changeset
|
777 |
lemma path_image_subpath_commute: |
|
9391ea7daa17
new lemmas about segments, etc. Also recast some theorems to use Union rather than general set comprehensions
paulson <lp15@cam.ac.uk>
parents:
64911
diff
changeset
|
778 |
fixes g :: "real \<Rightarrow> 'a::real_normed_vector" |
|
9391ea7daa17
new lemmas about segments, etc. Also recast some theorems to use Union rather than general set comprehensions
paulson <lp15@cam.ac.uk>
parents:
64911
diff
changeset
|
779 |
shows "path_image(subpath u v g) = path_image(subpath v u g)" |
|
9391ea7daa17
new lemmas about segments, etc. Also recast some theorems to use Union rather than general set comprehensions
paulson <lp15@cam.ac.uk>
parents:
64911
diff
changeset
|
780 |
by (simp add: path_image_subpath_gen closed_segment_eq_real_ivl) |
|
9391ea7daa17
new lemmas about segments, etc. Also recast some theorems to use Union rather than general set comprehensions
paulson <lp15@cam.ac.uk>
parents:
64911
diff
changeset
|
781 |
|
| 60303 | 782 |
lemma path_subpath [simp]: |
783 |
fixes g :: "real \<Rightarrow> 'a::real_normed_vector" |
|
784 |
assumes "path g" "u \<in> {0..1}" "v \<in> {0..1}"
|
|
785 |
shows "path(subpath u v g)" |
|
786 |
proof - |
|
| 68096 | 787 |
have "continuous_on {0..1} (g \<circ> (\<lambda>x. ((v-u) * x+ u)))"
|
| 60303 | 788 |
apply (rule continuous_intros | simp)+ |
789 |
apply (simp add: image_affinity_atLeastAtMost [where c=u]) |
|
790 |
using assms |
|
791 |
apply (auto simp: path_def continuous_on_subset) |
|
792 |
done |
|
793 |
then show ?thesis |
|
794 |
by (simp add: path_def subpath_def) |
|
| 49653 | 795 |
qed |
| 36583 | 796 |
|
| 60303 | 797 |
lemma pathstart_subpath [simp]: "pathstart(subpath u v g) = g(u)" |
798 |
by (simp add: pathstart_def subpath_def) |
|
799 |
||
800 |
lemma pathfinish_subpath [simp]: "pathfinish(subpath u v g) = g(v)" |
|
801 |
by (simp add: pathfinish_def subpath_def) |
|
802 |
||
803 |
lemma subpath_trivial [simp]: "subpath 0 1 g = g" |
|
804 |
by (simp add: subpath_def) |
|
805 |
||
806 |
lemma subpath_reversepath: "subpath 1 0 g = reversepath g" |
|
807 |
by (simp add: reversepath_def subpath_def) |
|
808 |
||
809 |
lemma reversepath_subpath: "reversepath(subpath u v g) = subpath v u g" |
|
810 |
by (simp add: reversepath_def subpath_def algebra_simps) |
|
811 |
||
| 68096 | 812 |
lemma subpath_translation: "subpath u v ((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) \<circ> subpath u v g" |
| 60303 | 813 |
by (rule ext) (simp add: subpath_def) |
814 |
||
| 68096 | 815 |
lemma subpath_linear_image: "linear f \<Longrightarrow> subpath u v (f \<circ> g) = f \<circ> subpath u v g" |
| 60303 | 816 |
by (rule ext) (simp add: subpath_def) |
817 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
818 |
lemma affine_ineq: |
|
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
819 |
fixes x :: "'a::linordered_idom" |
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
820 |
assumes "x \<le> 1" "v \<le> u" |
| 60303 | 821 |
shows "v + x * u \<le> u + x * v" |
822 |
proof - |
|
823 |
have "(1-x)*(u-v) \<ge> 0" |
|
824 |
using assms by auto |
|
825 |
then show ?thesis |
|
826 |
by (simp add: algebra_simps) |
|
| 49653 | 827 |
qed |
| 36583 | 828 |
|
|
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
829 |
lemma sum_le_prod1: |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
830 |
fixes a::real shows "\<lbrakk>a \<le> 1; b \<le> 1\<rbrakk> \<Longrightarrow> a + b \<le> 1 + a * b" |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
831 |
by (metis add.commute affine_ineq less_eq_real_def mult.right_neutral) |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
832 |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
833 |
lemma simple_path_subpath_eq: |
| 60303 | 834 |
"simple_path(subpath u v g) \<longleftrightarrow> |
835 |
path(subpath u v g) \<and> u\<noteq>v \<and> |
|
836 |
(\<forall>x y. x \<in> closed_segment u v \<and> y \<in> closed_segment u v \<and> g x = g y |
|
837 |
\<longrightarrow> x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u)" |
|
838 |
(is "?lhs = ?rhs") |
|
839 |
proof (rule iffI) |
|
840 |
assume ?lhs |
|
841 |
then have p: "path (\<lambda>x. g ((v - u) * x + u))" |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
842 |
and sim: "(\<And>x y. \<lbrakk>x\<in>{0..1}; y\<in>{0..1}; g ((v - u) * x + u) = g ((v - u) * y + u)\<rbrakk>
|
| 60303 | 843 |
\<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0)" |
844 |
by (auto simp: simple_path_def subpath_def) |
|
845 |
{ fix x y
|
|
846 |
assume "x \<in> closed_segment u v" "y \<in> closed_segment u v" "g x = g y" |
|
847 |
then have "x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u" |
|
848 |
using sim [of "(x-u)/(v-u)" "(y-u)/(v-u)"] p |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
849 |
by (auto simp: closed_segment_real_eq image_affinity_atLeastAtMost divide_simps |
| 62390 | 850 |
split: if_split_asm) |
| 60303 | 851 |
} moreover |
852 |
have "path(subpath u v g) \<and> u\<noteq>v" |
|
853 |
using sim [of "1/3" "2/3"] p |
|
854 |
by (auto simp: subpath_def) |
|
855 |
ultimately show ?rhs |
|
856 |
by metis |
|
857 |
next |
|
858 |
assume ?rhs |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
859 |
then |
| 60303 | 860 |
have d1: "\<And>x y. \<lbrakk>g x = g y; u \<le> x; x \<le> v; u \<le> y; y \<le> v\<rbrakk> \<Longrightarrow> x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u" |
861 |
and d2: "\<And>x y. \<lbrakk>g x = g y; v \<le> x; x \<le> u; v \<le> y; y \<le> u\<rbrakk> \<Longrightarrow> x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u" |
|
862 |
and ne: "u < v \<or> v < u" |
|
863 |
and psp: "path (subpath u v g)" |
|
864 |
by (auto simp: closed_segment_real_eq image_affinity_atLeastAtMost) |
|
865 |
have [simp]: "\<And>x. u + x * v = v + x * u \<longleftrightarrow> u=v \<or> x=1" |
|
866 |
by algebra |
|
867 |
show ?lhs using psp ne |
|
868 |
unfolding simple_path_def subpath_def |
|
869 |
by (fastforce simp add: algebra_simps affine_ineq mult_left_mono crossproduct_eq dest: d1 d2) |
|
870 |
qed |
|
871 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
872 |
lemma arc_subpath_eq: |
| 60303 | 873 |
"arc(subpath u v g) \<longleftrightarrow> path(subpath u v g) \<and> u\<noteq>v \<and> inj_on g (closed_segment u v)" |
874 |
(is "?lhs = ?rhs") |
|
875 |
proof (rule iffI) |
|
876 |
assume ?lhs |
|
877 |
then have p: "path (\<lambda>x. g ((v - u) * x + u))" |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
878 |
and sim: "(\<And>x y. \<lbrakk>x\<in>{0..1}; y\<in>{0..1}; g ((v - u) * x + u) = g ((v - u) * y + u)\<rbrakk>
|
| 60303 | 879 |
\<Longrightarrow> x = y)" |
880 |
by (auto simp: arc_def inj_on_def subpath_def) |
|
881 |
{ fix x y
|
|
882 |
assume "x \<in> closed_segment u v" "y \<in> closed_segment u v" "g x = g y" |
|
883 |
then have "x = y" |
|
884 |
using sim [of "(x-u)/(v-u)" "(y-u)/(v-u)"] p |
|
| 68096 | 885 |
by (force simp: inj_on_def closed_segment_real_eq image_affinity_atLeastAtMost divide_simps |
| 62390 | 886 |
split: if_split_asm) |
| 60303 | 887 |
} moreover |
888 |
have "path(subpath u v g) \<and> u\<noteq>v" |
|
889 |
using sim [of "1/3" "2/3"] p |
|
890 |
by (auto simp: subpath_def) |
|
891 |
ultimately show ?rhs |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
892 |
unfolding inj_on_def |
| 60303 | 893 |
by metis |
894 |
next |
|
895 |
assume ?rhs |
|
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
896 |
then |
| 60303 | 897 |
have d1: "\<And>x y. \<lbrakk>g x = g y; u \<le> x; x \<le> v; u \<le> y; y \<le> v\<rbrakk> \<Longrightarrow> x = y" |
898 |
and d2: "\<And>x y. \<lbrakk>g x = g y; v \<le> x; x \<le> u; v \<le> y; y \<le> u\<rbrakk> \<Longrightarrow> x = y" |
|
899 |
and ne: "u < v \<or> v < u" |
|
900 |
and psp: "path (subpath u v g)" |
|
901 |
by (auto simp: inj_on_def closed_segment_real_eq image_affinity_atLeastAtMost) |
|
902 |
show ?lhs using psp ne |
|
903 |
unfolding arc_def subpath_def inj_on_def |
|
904 |
by (auto simp: algebra_simps affine_ineq mult_left_mono crossproduct_eq dest: d1 d2) |
|
905 |
qed |
|
906 |
||
907 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
908 |
lemma simple_path_subpath: |
| 60303 | 909 |
assumes "simple_path g" "u \<in> {0..1}" "v \<in> {0..1}" "u \<noteq> v"
|
910 |
shows "simple_path(subpath u v g)" |
|
911 |
using assms |
|
912 |
apply (simp add: simple_path_subpath_eq simple_path_imp_path) |
|
913 |
apply (simp add: simple_path_def closed_segment_real_eq image_affinity_atLeastAtMost, fastforce) |
|
914 |
done |
|
915 |
||
916 |
lemma arc_simple_path_subpath: |
|
917 |
"\<lbrakk>simple_path g; u \<in> {0..1}; v \<in> {0..1}; g u \<noteq> g v\<rbrakk> \<Longrightarrow> arc(subpath u v g)"
|
|
918 |
by (force intro: simple_path_subpath simple_path_imp_arc) |
|
919 |
||
920 |
lemma arc_subpath_arc: |
|
921 |
"\<lbrakk>arc g; u \<in> {0..1}; v \<in> {0..1}; u \<noteq> v\<rbrakk> \<Longrightarrow> arc(subpath u v g)"
|
|
922 |
by (meson arc_def arc_imp_simple_path arc_simple_path_subpath inj_onD) |
|
923 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
924 |
lemma arc_simple_path_subpath_interior: |
| 60303 | 925 |
"\<lbrakk>simple_path g; u \<in> {0..1}; v \<in> {0..1}; u \<noteq> v; \<bar>u-v\<bar> < 1\<rbrakk> \<Longrightarrow> arc(subpath u v g)"
|
926 |
apply (rule arc_simple_path_subpath) |
|
927 |
apply (force simp: simple_path_def)+ |
|
928 |
done |
|
929 |
||
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
930 |
lemma path_image_subpath_subset: |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
931 |
"\<lbrakk>u \<in> {0..1}; v \<in> {0..1}\<rbrakk> \<Longrightarrow> path_image(subpath u v g) \<subseteq> path_image g"
|
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
932 |
apply (simp add: closed_segment_real_eq image_affinity_atLeastAtMost path_image_subpath) |
| 60303 | 933 |
apply (auto simp: path_image_def) |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
934 |
done |
| 60303 | 935 |
|
936 |
lemma join_subpaths_middle: "subpath (0) ((1 / 2)) p +++ subpath ((1 / 2)) 1 p = p" |
|
937 |
by (rule ext) (simp add: joinpaths_def subpath_def divide_simps) |
|
| 53640 | 938 |
|
| 69514 | 939 |
|
| 67962 | 940 |
subsection%unimportant\<open>There is a subpath to the frontier\<close> |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
941 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
942 |
lemma subpath_to_frontier_explicit: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
943 |
fixes S :: "'a::metric_space set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
944 |
assumes g: "path g" and "pathfinish g \<notin> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
945 |
obtains u where "0 \<le> u" "u \<le> 1" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
946 |
"\<And>x. 0 \<le> x \<and> x < u \<Longrightarrow> g x \<in> interior S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
947 |
"(g u \<notin> interior S)" "(u = 0 \<or> g u \<in> closure S)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
948 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
949 |
have gcon: "continuous_on {0..1} g" using g by (simp add: path_def)
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
950 |
then have com: "compact ({0..1} \<inter> {u. g u \<in> closure (- S)})"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
951 |
apply (simp add: Int_commute [of "{0..1}"] compact_eq_bounded_closed closed_vimage_Int [unfolded vimage_def])
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
952 |
using compact_eq_bounded_closed apply fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
953 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
954 |
have "1 \<in> {u. g u \<in> closure (- S)}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
955 |
using assms by (simp add: pathfinish_def closure_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
956 |
then have dis: "{0..1} \<inter> {u. g u \<in> closure (- S)} \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
957 |
using atLeastAtMost_iff zero_le_one by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
958 |
then obtain u where "0 \<le> u" "u \<le> 1" and gu: "g u \<in> closure (- S)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
959 |
and umin: "\<And>t. \<lbrakk>0 \<le> t; t \<le> 1; g t \<in> closure (- S)\<rbrakk> \<Longrightarrow> u \<le> t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
960 |
using compact_attains_inf [OF com dis] by fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
961 |
then have umin': "\<And>t. \<lbrakk>0 \<le> t; t \<le> 1; t < u\<rbrakk> \<Longrightarrow> g t \<in> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
962 |
using closure_def by fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
963 |
{ assume "u \<noteq> 0"
|
| 61808 | 964 |
then have "u > 0" using \<open>0 \<le> u\<close> by auto |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
965 |
{ fix e::real assume "e > 0"
|
|
62397
5ae24f33d343
Substantial new material for multivariate analysis. Also removal of some duplicates.
paulson <lp15@cam.ac.uk>
parents:
62381
diff
changeset
|
966 |
obtain d where "d>0" and d: "\<And>x'. \<lbrakk>x' \<in> {0..1}; dist x' u \<le> d\<rbrakk> \<Longrightarrow> dist (g x') (g u) < e"
|
|
5ae24f33d343
Substantial new material for multivariate analysis. Also removal of some duplicates.
paulson <lp15@cam.ac.uk>
parents:
62381
diff
changeset
|
967 |
using continuous_onE [OF gcon _ \<open>e > 0\<close>] \<open>0 \<le> _\<close> \<open>_ \<le> 1\<close> atLeastAtMost_iff by auto |
|
5ae24f33d343
Substantial new material for multivariate analysis. Also removal of some duplicates.
paulson <lp15@cam.ac.uk>
parents:
62381
diff
changeset
|
968 |
have *: "dist (max 0 (u - d / 2)) u \<le> d" |
| 61808 | 969 |
using \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> \<open>d > 0\<close> by (simp add: dist_real_def) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
970 |
have "\<exists>y\<in>S. dist y (g u) < e" |
| 61808 | 971 |
using \<open>0 < u\<close> \<open>u \<le> 1\<close> \<open>d > 0\<close> |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
972 |
by (force intro: d [OF _ *] umin') |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
973 |
} |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
974 |
then have "g u \<in> closure S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
975 |
by (simp add: frontier_def closure_approachable) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
976 |
} |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
977 |
then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
978 |
apply (rule_tac u=u in that) |
| 61808 | 979 |
apply (auto simp: \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> gu interior_closure umin) |
980 |
using \<open>_ \<le> 1\<close> interior_closure umin apply fastforce |
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
981 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
982 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
983 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
984 |
lemma subpath_to_frontier_strong: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
985 |
assumes g: "path g" and "pathfinish g \<notin> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
986 |
obtains u where "0 \<le> u" "u \<le> 1" "g u \<notin> interior S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
987 |
"u = 0 \<or> (\<forall>x. 0 \<le> x \<and> x < 1 \<longrightarrow> subpath 0 u g x \<in> interior S) \<and> g u \<in> closure S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
988 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
989 |
obtain u where "0 \<le> u" "u \<le> 1" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
990 |
and gxin: "\<And>x. 0 \<le> x \<and> x < u \<Longrightarrow> g x \<in> interior S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
991 |
and gunot: "(g u \<notin> interior S)" and u0: "(u = 0 \<or> g u \<in> closure S)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
992 |
using subpath_to_frontier_explicit [OF assms] by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
993 |
show ?thesis |
| 61808 | 994 |
apply (rule that [OF \<open>0 \<le> u\<close> \<open>u \<le> 1\<close>]) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
995 |
apply (simp add: gunot) |
| 61808 | 996 |
using \<open>0 \<le> u\<close> u0 by (force simp: subpath_def gxin) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
997 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
998 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
999 |
lemma subpath_to_frontier: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1000 |
assumes g: "path g" and g0: "pathstart g \<in> closure S" and g1: "pathfinish g \<notin> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1001 |
obtains u where "0 \<le> u" "u \<le> 1" "g u \<in> frontier S" "(path_image(subpath 0 u g) - {g u}) \<subseteq> interior S"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1002 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1003 |
obtain u where "0 \<le> u" "u \<le> 1" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1004 |
and notin: "g u \<notin> interior S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1005 |
and disj: "u = 0 \<or> |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1006 |
(\<forall>x. 0 \<le> x \<and> x < 1 \<longrightarrow> subpath 0 u g x \<in> interior S) \<and> g u \<in> closure S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1007 |
using subpath_to_frontier_strong [OF g g1] by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1008 |
show ?thesis |
| 61808 | 1009 |
apply (rule that [OF \<open>0 \<le> u\<close> \<open>u \<le> 1\<close>]) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1010 |
apply (metis DiffI disj frontier_def g0 notin pathstart_def) |
| 61808 | 1011 |
using \<open>0 \<le> u\<close> g0 disj |
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1012 |
apply (simp add: path_image_subpath_gen) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1013 |
apply (auto simp: closed_segment_eq_real_ivl pathstart_def pathfinish_def subpath_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1014 |
apply (rename_tac y) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1015 |
apply (drule_tac x="y/u" in spec) |
| 62390 | 1016 |
apply (auto split: if_split_asm) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1017 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1018 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1019 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1020 |
lemma exists_path_subpath_to_frontier: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1021 |
fixes S :: "'a::real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1022 |
assumes "path g" "pathstart g \<in> closure S" "pathfinish g \<notin> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1023 |
obtains h where "path h" "pathstart h = pathstart g" "path_image h \<subseteq> path_image g" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1024 |
"path_image h - {pathfinish h} \<subseteq> interior S"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1025 |
"pathfinish h \<in> frontier S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1026 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1027 |
obtain u where u: "0 \<le> u" "u \<le> 1" "g u \<in> frontier S" "(path_image(subpath 0 u g) - {g u}) \<subseteq> interior S"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1028 |
using subpath_to_frontier [OF assms] by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1029 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1030 |
apply (rule that [of "subpath 0 u g"]) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1031 |
using assms u |
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1032 |
apply (simp_all add: path_image_subpath) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1033 |
apply (simp add: pathstart_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1034 |
apply (force simp: closed_segment_eq_real_ivl path_image_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1035 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1036 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1037 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1038 |
lemma exists_path_subpath_to_frontier_closed: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1039 |
fixes S :: "'a::real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1040 |
assumes S: "closed S" and g: "path g" and g0: "pathstart g \<in> S" and g1: "pathfinish g \<notin> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1041 |
obtains h where "path h" "pathstart h = pathstart g" "path_image h \<subseteq> path_image g \<inter> S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1042 |
"pathfinish h \<in> frontier S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1043 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1044 |
obtain h where h: "path h" "pathstart h = pathstart g" "path_image h \<subseteq> path_image g" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1045 |
"path_image h - {pathfinish h} \<subseteq> interior S"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1046 |
"pathfinish h \<in> frontier S" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1047 |
using exists_path_subpath_to_frontier [OF g _ g1] closure_closed [OF S] g0 by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1048 |
show ?thesis |
| 61808 | 1049 |
apply (rule that [OF \<open>path h\<close>]) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1050 |
using assms h |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1051 |
apply auto |
|
62087
44841d07ef1d
revisions to limits and derivatives, plus new lemmas
paulson
parents:
61808
diff
changeset
|
1052 |
apply (metis Diff_single_insert frontier_subset_eq insert_iff interior_subset subset_iff) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1053 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1054 |
qed |
| 49653 | 1055 |
|
| 69514 | 1056 |
|
1057 |
subsection \<open>Shift Path to Start at Some Given Point\<close> |
|
| 36583 | 1058 |
|
| 67962 | 1059 |
definition%important shiftpath :: "real \<Rightarrow> (real \<Rightarrow> 'a::topological_space) \<Rightarrow> real \<Rightarrow> 'a" |
| 53640 | 1060 |
where "shiftpath a f = (\<lambda>x. if (a + x) \<le> 1 then f (a + x) else f (a + x - 1))" |
| 36583 | 1061 |
|
| 53640 | 1062 |
lemma pathstart_shiftpath: "a \<le> 1 \<Longrightarrow> pathstart (shiftpath a g) = g a" |
| 36583 | 1063 |
unfolding pathstart_def shiftpath_def by auto |
1064 |
||
| 49653 | 1065 |
lemma pathfinish_shiftpath: |
| 53640 | 1066 |
assumes "0 \<le> a" |
1067 |
and "pathfinish g = pathstart g" |
|
1068 |
shows "pathfinish (shiftpath a g) = g a" |
|
1069 |
using assms |
|
1070 |
unfolding pathstart_def pathfinish_def shiftpath_def |
|
| 36583 | 1071 |
by auto |
1072 |
||
1073 |
lemma endpoints_shiftpath: |
|
| 53640 | 1074 |
assumes "pathfinish g = pathstart g" |
1075 |
and "a \<in> {0 .. 1}"
|
|
1076 |
shows "pathfinish (shiftpath a g) = g a" |
|
1077 |
and "pathstart (shiftpath a g) = g a" |
|
1078 |
using assms |
|
1079 |
by (auto intro!: pathfinish_shiftpath pathstart_shiftpath) |
|
| 36583 | 1080 |
|
1081 |
lemma closed_shiftpath: |
|
| 53640 | 1082 |
assumes "pathfinish g = pathstart g" |
1083 |
and "a \<in> {0..1}"
|
|
1084 |
shows "pathfinish (shiftpath a g) = pathstart (shiftpath a g)" |
|
1085 |
using endpoints_shiftpath[OF assms] |
|
1086 |
by auto |
|
| 36583 | 1087 |
|
1088 |
lemma path_shiftpath: |
|
| 53640 | 1089 |
assumes "path g" |
1090 |
and "pathfinish g = pathstart g" |
|
1091 |
and "a \<in> {0..1}"
|
|
1092 |
shows "path (shiftpath a g)" |
|
| 49653 | 1093 |
proof - |
| 53640 | 1094 |
have *: "{0 .. 1} = {0 .. 1-a} \<union> {1-a .. 1}"
|
1095 |
using assms(3) by auto |
|
| 49653 | 1096 |
have **: "\<And>x. x + a = 1 \<Longrightarrow> g (x + a - 1) = g (x + a)" |
| 53640 | 1097 |
using assms(2)[unfolded pathfinish_def pathstart_def] |
1098 |
by auto |
|
| 49653 | 1099 |
show ?thesis |
1100 |
unfolding path_def shiftpath_def * |
|
| 68096 | 1101 |
proof (rule continuous_on_closed_Un) |
1102 |
have contg: "continuous_on {0..1} g"
|
|
1103 |
using \<open>path g\<close> path_def by blast |
|
1104 |
show "continuous_on {0..1-a} (\<lambda>x. if a + x \<le> 1 then g (a + x) else g (a + x - 1))"
|
|
1105 |
proof (rule continuous_on_eq) |
|
1106 |
show "continuous_on {0..1-a} (g \<circ> (+) a)"
|
|
1107 |
by (intro continuous_intros continuous_on_subset [OF contg]) (use \<open>a \<in> {0..1}\<close> in auto)
|
|
1108 |
qed auto |
|
1109 |
show "continuous_on {1-a..1} (\<lambda>x. if a + x \<le> 1 then g (a + x) else g (a + x - 1))"
|
|
1110 |
proof (rule continuous_on_eq) |
|
1111 |
show "continuous_on {1-a..1} (g \<circ> (+) (a - 1))"
|
|
1112 |
by (intro continuous_intros continuous_on_subset [OF contg]) (use \<open>a \<in> {0..1}\<close> in auto)
|
|
1113 |
qed (auto simp: "**" add.commute add_diff_eq) |
|
1114 |
qed auto |
|
| 49653 | 1115 |
qed |
| 36583 | 1116 |
|
| 49653 | 1117 |
lemma shiftpath_shiftpath: |
| 53640 | 1118 |
assumes "pathfinish g = pathstart g" |
1119 |
and "a \<in> {0..1}"
|
|
1120 |
and "x \<in> {0..1}"
|
|
| 36583 | 1121 |
shows "shiftpath (1 - a) (shiftpath a g) x = g x" |
| 53640 | 1122 |
using assms |
1123 |
unfolding pathfinish_def pathstart_def shiftpath_def |
|
1124 |
by auto |
|
| 36583 | 1125 |
|
1126 |
lemma path_image_shiftpath: |
|
| 68096 | 1127 |
assumes a: "a \<in> {0..1}"
|
| 53640 | 1128 |
and "pathfinish g = pathstart g" |
1129 |
shows "path_image (shiftpath a g) = path_image g" |
|
| 49653 | 1130 |
proof - |
1131 |
{ fix x
|
|
| 68096 | 1132 |
assume g: "g 1 = g 0" "x \<in> {0..1::real}" and gne: "\<And>y. y\<in>{0..1} \<inter> {x. \<not> a + x \<le> 1} \<Longrightarrow> g x \<noteq> g (a + y - 1)"
|
| 49654 | 1133 |
then have "\<exists>y\<in>{0..1} \<inter> {x. a + x \<le> 1}. g x = g (a + y)"
|
| 49653 | 1134 |
proof (cases "a \<le> x") |
1135 |
case False |
|
| 49654 | 1136 |
then show ?thesis |
| 49653 | 1137 |
apply (rule_tac x="1 + x - a" in bexI) |
| 68096 | 1138 |
using g gne[of "1 + x - a"] a |
1139 |
apply (force simp: field_simps)+ |
|
| 49653 | 1140 |
done |
1141 |
next |
|
1142 |
case True |
|
| 53640 | 1143 |
then show ?thesis |
| 68096 | 1144 |
using g a by (rule_tac x="x - a" in bexI) (auto simp: field_simps) |
| 49653 | 1145 |
qed |
1146 |
} |
|
| 49654 | 1147 |
then show ?thesis |
| 53640 | 1148 |
using assms |
1149 |
unfolding shiftpath_def path_image_def pathfinish_def pathstart_def |
|
| 68096 | 1150 |
by (auto simp: image_iff) |
| 49653 | 1151 |
qed |
1152 |
||
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1153 |
lemma simple_path_shiftpath: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1154 |
assumes "simple_path g" "pathfinish g = pathstart g" and a: "0 \<le> a" "a \<le> 1" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1155 |
shows "simple_path (shiftpath a g)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1156 |
unfolding simple_path_def |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1157 |
proof (intro conjI impI ballI) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1158 |
show "path (shiftpath a g)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1159 |
by (simp add: assms path_shiftpath simple_path_imp_path) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1160 |
have *: "\<And>x y. \<lbrakk>g x = g y; x \<in> {0..1}; y \<in> {0..1}\<rbrakk> \<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1161 |
using assms by (simp add: simple_path_def) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1162 |
show "x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1163 |
if "x \<in> {0..1}" "y \<in> {0..1}" "shiftpath a g x = shiftpath a g y" for x y
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1164 |
using that a unfolding shiftpath_def |
| 68096 | 1165 |
by (force split: if_split_asm dest!: *) |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1166 |
qed |
| 36583 | 1167 |
|
| 69514 | 1168 |
|
1169 |
subsection \<open>Straight-Line Paths\<close> |
|
| 36583 | 1170 |
|
| 67962 | 1171 |
definition%important linepath :: "'a::real_normed_vector \<Rightarrow> 'a \<Rightarrow> real \<Rightarrow> 'a" |
| 49653 | 1172 |
where "linepath a b = (\<lambda>x. (1 - x) *\<^sub>R a + x *\<^sub>R b)" |
| 36583 | 1173 |
|
| 53640 | 1174 |
lemma pathstart_linepath[simp]: "pathstart (linepath a b) = a" |
1175 |
unfolding pathstart_def linepath_def |
|
1176 |
by auto |
|
| 36583 | 1177 |
|
| 53640 | 1178 |
lemma pathfinish_linepath[simp]: "pathfinish (linepath a b) = b" |
1179 |
unfolding pathfinish_def linepath_def |
|
1180 |
by auto |
|
| 36583 | 1181 |
|
| 68721 | 1182 |
lemma linepath_inner: "linepath a b x \<bullet> v = linepath (a \<bullet> v) (b \<bullet> v) x" |
1183 |
by (simp add: linepath_def algebra_simps) |
|
1184 |
||
1185 |
lemma Re_linepath': "Re (linepath a b x) = linepath (Re a) (Re b) x" |
|
1186 |
by (simp add: linepath_def) |
|
1187 |
||
1188 |
lemma Im_linepath': "Im (linepath a b x) = linepath (Im a) (Im b) x" |
|
1189 |
by (simp add: linepath_def) |
|
1190 |
||
1191 |
lemma linepath_0': "linepath a b 0 = a" |
|
1192 |
by (simp add: linepath_def) |
|
1193 |
||
1194 |
lemma linepath_1': "linepath a b 1 = b" |
|
1195 |
by (simp add: linepath_def) |
|
1196 |
||
| 36583 | 1197 |
lemma continuous_linepath_at[intro]: "continuous (at x) (linepath a b)" |
| 53640 | 1198 |
unfolding linepath_def |
1199 |
by (intro continuous_intros) |
|
| 36583 | 1200 |
|
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1201 |
lemma continuous_on_linepath [intro,continuous_intros]: "continuous_on s (linepath a b)" |
| 53640 | 1202 |
using continuous_linepath_at |
1203 |
by (auto intro!: continuous_at_imp_continuous_on) |
|
| 36583 | 1204 |
|
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1205 |
lemma path_linepath[iff]: "path (linepath a b)" |
| 53640 | 1206 |
unfolding path_def |
1207 |
by (rule continuous_on_linepath) |
|
| 36583 | 1208 |
|
| 53640 | 1209 |
lemma path_image_linepath[simp]: "path_image (linepath a b) = closed_segment a b" |
| 49653 | 1210 |
unfolding path_image_def segment linepath_def |
| 60303 | 1211 |
by auto |
| 49653 | 1212 |
|
| 53640 | 1213 |
lemma reversepath_linepath[simp]: "reversepath (linepath a b) = linepath b a" |
| 49653 | 1214 |
unfolding reversepath_def linepath_def |
| 36583 | 1215 |
by auto |
1216 |
||
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1217 |
lemma linepath_0 [simp]: "linepath 0 b x = x *\<^sub>R b" |
|
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1218 |
by (simp add: linepath_def) |
|
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
1219 |
|
| 68721 | 1220 |
lemma linepath_cnj: "cnj (linepath a b x) = linepath (cnj a) (cnj b) x" |
1221 |
by (simp add: linepath_def) |
|
1222 |
||
| 60303 | 1223 |
lemma arc_linepath: |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1224 |
assumes "a \<noteq> b" shows [simp]: "arc (linepath a b)" |
| 36583 | 1225 |
proof - |
| 53640 | 1226 |
{
|
1227 |
fix x y :: "real" |
|
| 36583 | 1228 |
assume "x *\<^sub>R b + y *\<^sub>R a = x *\<^sub>R a + y *\<^sub>R b" |
| 53640 | 1229 |
then have "(x - y) *\<^sub>R a = (x - y) *\<^sub>R b" |
1230 |
by (simp add: algebra_simps) |
|
1231 |
with assms have "x = y" |
|
1232 |
by simp |
|
1233 |
} |
|
| 49654 | 1234 |
then show ?thesis |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
1235 |
unfolding arc_def inj_on_def |
| 68096 | 1236 |
by (fastforce simp: algebra_simps linepath_def) |
| 49653 | 1237 |
qed |
| 36583 | 1238 |
|
| 53640 | 1239 |
lemma simple_path_linepath[intro]: "a \<noteq> b \<Longrightarrow> simple_path (linepath a b)" |
| 68096 | 1240 |
by (simp add: arc_imp_simple_path) |
| 49653 | 1241 |
|
|
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1242 |
lemma linepath_trivial [simp]: "linepath a a x = a" |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1243 |
by (simp add: linepath_def real_vector.scale_left_diff_distrib) |
|
61738
c4f6031f1310
New material about paths, winding numbers, etc. Added lemmas to divide_const_simps. Misc tuning.
paulson <lp15@cam.ac.uk>
parents:
61711
diff
changeset
|
1244 |
|
| 64394 | 1245 |
lemma linepath_refl: "linepath a a = (\<lambda>x. a)" |
1246 |
by auto |
|
1247 |
||
|
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1248 |
lemma subpath_refl: "subpath a a g = linepath (g a) (g a)" |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1249 |
by (simp add: subpath_def linepath_def algebra_simps) |
|
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1250 |
|
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1251 |
lemma linepath_of_real: "(linepath (of_real a) (of_real b) x) = of_real ((1 - x)*a + x*b)" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1252 |
by (simp add: scaleR_conv_of_real linepath_def) |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1253 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1254 |
lemma of_real_linepath: "of_real (linepath a b x) = linepath (of_real a) (of_real b) x" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1255 |
by (metis linepath_of_real mult.right_neutral of_real_def real_scaleR_def) |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1256 |
|
|
63881
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1257 |
lemma inj_on_linepath: |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1258 |
assumes "a \<noteq> b" shows "inj_on (linepath a b) {0..1}"
|
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1259 |
proof (clarsimp simp: inj_on_def linepath_def) |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1260 |
fix x y |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1261 |
assume "(1 - x) *\<^sub>R a + x *\<^sub>R b = (1 - y) *\<^sub>R a + y *\<^sub>R b" "0 \<le> x" "x \<le> 1" "0 \<le> y" "y \<le> 1" |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1262 |
then have "x *\<^sub>R (a - b) = y *\<^sub>R (a - b)" |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1263 |
by (auto simp: algebra_simps) |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1264 |
then show "x=y" |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1265 |
using assms by auto |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1266 |
qed |
|
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1267 |
|
|
69144
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
paulson <lp15@cam.ac.uk>
parents:
69064
diff
changeset
|
1268 |
lemma linepath_le_1: |
|
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
paulson <lp15@cam.ac.uk>
parents:
69064
diff
changeset
|
1269 |
fixes a::"'a::linordered_idom" shows "\<lbrakk>a \<le> 1; b \<le> 1; 0 \<le> u; u \<le> 1\<rbrakk> \<Longrightarrow> (1 - u) * a + u * b \<le> 1" |
|
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
paulson <lp15@cam.ac.uk>
parents:
69064
diff
changeset
|
1270 |
using mult_left_le [of a "1-u"] mult_left_le [of b u] by auto |
|
f13b82281715
new theory Abstract_Topology with lots of stuff from HOL Light's metric.sml
paulson <lp15@cam.ac.uk>
parents:
69064
diff
changeset
|
1271 |
|
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1272 |
|
| 67962 | 1273 |
subsection%unimportant\<open>Segments via convex hulls\<close> |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1274 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1275 |
lemma segments_subset_convex_hull: |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1276 |
"closed_segment a b \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1277 |
"closed_segment a c \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1278 |
"closed_segment b c \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1279 |
"closed_segment b a \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1280 |
"closed_segment c a \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1281 |
"closed_segment c b \<subseteq> (convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1282 |
by (auto simp: segment_convex_hull linepath_of_real elim!: rev_subsetD [OF _ hull_mono]) |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1283 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1284 |
lemma midpoints_in_convex_hull: |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1285 |
assumes "x \<in> convex hull s" "y \<in> convex hull s" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1286 |
shows "midpoint x y \<in> convex hull s" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1287 |
proof - |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1288 |
have "(1 - inverse(2)) *\<^sub>R x + inverse(2) *\<^sub>R y \<in> convex hull s" |
| 68096 | 1289 |
by (rule convexD_alt) (use assms in auto) |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1290 |
then show ?thesis |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1291 |
by (simp add: midpoint_def algebra_simps) |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1292 |
qed |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1293 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1294 |
lemma not_in_interior_convex_hull_3: |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1295 |
fixes a :: "complex" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1296 |
shows "a \<notin> interior(convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1297 |
"b \<notin> interior(convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1298 |
"c \<notin> interior(convex hull {a,b,c})"
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1299 |
by (auto simp: card_insert_le_m1 not_in_interior_convex_hull) |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1300 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1301 |
lemma midpoint_in_closed_segment [simp]: "midpoint a b \<in> closed_segment a b" |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1302 |
using midpoints_in_convex_hull segment_convex_hull by blast |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1303 |
|
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1304 |
lemma midpoint_in_open_segment [simp]: "midpoint a b \<in> open_segment a b \<longleftrightarrow> a \<noteq> b" |
| 64122 | 1305 |
by (simp add: open_segment_def) |
1306 |
||
1307 |
lemma continuous_IVT_local_extremum: |
|
1308 |
fixes f :: "'a::euclidean_space \<Rightarrow> real" |
|
1309 |
assumes contf: "continuous_on (closed_segment a b) f" |
|
1310 |
and "a \<noteq> b" "f a = f b" |
|
1311 |
obtains z where "z \<in> open_segment a b" |
|
1312 |
"(\<forall>w \<in> closed_segment a b. (f w) \<le> (f z)) \<or> |
|
1313 |
(\<forall>w \<in> closed_segment a b. (f z) \<le> (f w))" |
|
1314 |
proof - |
|
1315 |
obtain c where "c \<in> closed_segment a b" and c: "\<And>y. y \<in> closed_segment a b \<Longrightarrow> f y \<le> f c" |
|
1316 |
using continuous_attains_sup [of "closed_segment a b" f] contf by auto |
|
1317 |
obtain d where "d \<in> closed_segment a b" and d: "\<And>y. y \<in> closed_segment a b \<Longrightarrow> f d \<le> f y" |
|
1318 |
using continuous_attains_inf [of "closed_segment a b" f] contf by auto |
|
1319 |
show ?thesis |
|
1320 |
proof (cases "c \<in> open_segment a b \<or> d \<in> open_segment a b") |
|
1321 |
case True |
|
1322 |
then show ?thesis |
|
1323 |
using c d that by blast |
|
1324 |
next |
|
1325 |
case False |
|
1326 |
then have "(c = a \<or> c = b) \<and> (d = a \<or> d = b)" |
|
1327 |
by (simp add: \<open>c \<in> closed_segment a b\<close> \<open>d \<in> closed_segment a b\<close> open_segment_def) |
|
1328 |
with \<open>a \<noteq> b\<close> \<open>f a = f b\<close> c d show ?thesis |
|
1329 |
by (rule_tac z = "midpoint a b" in that) (fastforce+) |
|
1330 |
qed |
|
1331 |
qed |
|
1332 |
||
1333 |
text\<open>An injective map into R is also an open map w.r.T. the universe, and conversely. \<close> |
|
1334 |
proposition injective_eq_1d_open_map_UNIV: |
|
1335 |
fixes f :: "real \<Rightarrow> real" |
|
1336 |
assumes contf: "continuous_on S f" and S: "is_interval S" |
|
1337 |
shows "inj_on f S \<longleftrightarrow> (\<forall>T. open T \<and> T \<subseteq> S \<longrightarrow> open(f ` T))" |
|
1338 |
(is "?lhs = ?rhs") |
|
1339 |
proof safe |
|
1340 |
fix T |
|
1341 |
assume injf: ?lhs and "open T" and "T \<subseteq> S" |
|
1342 |
have "\<exists>U. open U \<and> f x \<in> U \<and> U \<subseteq> f ` T" if "x \<in> T" for x |
|
1343 |
proof - |
|
1344 |
obtain \<delta> where "\<delta> > 0" and \<delta>: "cball x \<delta> \<subseteq> T" |
|
1345 |
using \<open>open T\<close> \<open>x \<in> T\<close> open_contains_cball_eq by blast |
|
1346 |
show ?thesis |
|
1347 |
proof (intro exI conjI) |
|
1348 |
have "closed_segment (x-\<delta>) (x+\<delta>) = {x-\<delta>..x+\<delta>}"
|
|
1349 |
using \<open>0 < \<delta>\<close> by (auto simp: closed_segment_eq_real_ivl) |
|
| 68096 | 1350 |
also have "\<dots> \<subseteq> S" |
| 64122 | 1351 |
using \<delta> \<open>T \<subseteq> S\<close> by (auto simp: dist_norm subset_eq) |
1352 |
finally have "f ` (open_segment (x-\<delta>) (x+\<delta>)) = open_segment (f (x-\<delta>)) (f (x+\<delta>))" |
|
1353 |
using continuous_injective_image_open_segment_1 |
|
1354 |
by (metis continuous_on_subset [OF contf] inj_on_subset [OF injf]) |
|
1355 |
then show "open (f ` {x-\<delta><..<x+\<delta>})"
|
|
1356 |
using \<open>0 < \<delta>\<close> by (simp add: open_segment_eq_real_ivl) |
|
1357 |
show "f x \<in> f ` {x - \<delta><..<x + \<delta>}"
|
|
1358 |
by (auto simp: \<open>\<delta> > 0\<close>) |
|
1359 |
show "f ` {x - \<delta><..<x + \<delta>} \<subseteq> f ` T"
|
|
1360 |
using \<delta> by (auto simp: dist_norm subset_iff) |
|
1361 |
qed |
|
1362 |
qed |
|
1363 |
with open_subopen show "open (f ` T)" |
|
1364 |
by blast |
|
1365 |
next |
|
1366 |
assume R: ?rhs |
|
1367 |
have False if xy: "x \<in> S" "y \<in> S" and "f x = f y" "x \<noteq> y" for x y |
|
1368 |
proof - |
|
1369 |
have "open (f ` open_segment x y)" |
|
1370 |
using R |
|
1371 |
by (metis S convex_contains_open_segment is_interval_convex open_greaterThanLessThan open_segment_eq_real_ivl xy) |
|
1372 |
moreover |
|
1373 |
have "continuous_on (closed_segment x y) f" |
|
1374 |
by (meson S closed_segment_subset contf continuous_on_subset is_interval_convex that) |
|
1375 |
then obtain \<xi> where "\<xi> \<in> open_segment x y" |
|
1376 |
and \<xi>: "(\<forall>w \<in> closed_segment x y. (f w) \<le> (f \<xi>)) \<or> |
|
1377 |
(\<forall>w \<in> closed_segment x y. (f \<xi>) \<le> (f w))" |
|
1378 |
using continuous_IVT_local_extremum [of x y f] \<open>f x = f y\<close> \<open>x \<noteq> y\<close> by blast |
|
1379 |
ultimately obtain e where "e>0" and e: "\<And>u. dist u (f \<xi>) < e \<Longrightarrow> u \<in> f ` open_segment x y" |
|
1380 |
using open_dist by (metis image_eqI) |
|
1381 |
have fin: "f \<xi> + (e/2) \<in> f ` open_segment x y" "f \<xi> - (e/2) \<in> f ` open_segment x y" |
|
1382 |
using e [of "f \<xi> + (e/2)"] e [of "f \<xi> - (e/2)"] \<open>e > 0\<close> by (auto simp: dist_norm) |
|
1383 |
show ?thesis |
|
1384 |
using \<xi> \<open>0 < e\<close> fin open_closed_segment by fastforce |
|
1385 |
qed |
|
1386 |
then show ?lhs |
|
1387 |
by (force simp: inj_on_def) |
|
1388 |
qed |
|
| 36583 | 1389 |
|
| 69514 | 1390 |
|
| 67962 | 1391 |
subsection%unimportant \<open>Bounding a point away from a path\<close> |
| 36583 | 1392 |
|
1393 |
lemma not_on_path_ball: |
|
1394 |
fixes g :: "real \<Rightarrow> 'a::heine_borel" |
|
| 53640 | 1395 |
assumes "path g" |
| 68096 | 1396 |
and z: "z \<notin> path_image g" |
| 53640 | 1397 |
shows "\<exists>e > 0. ball z e \<inter> path_image g = {}"
|
| 49653 | 1398 |
proof - |
| 68096 | 1399 |
have "closed (path_image g)" |
1400 |
by (simp add: \<open>path g\<close> closed_path_image) |
|
1401 |
then obtain a where "a \<in> path_image g" "\<forall>y \<in> path_image g. dist z a \<le> dist z y" |
|
1402 |
by (auto intro: distance_attains_inf[OF _ path_image_nonempty, of g z]) |
|
| 49654 | 1403 |
then show ?thesis |
| 68096 | 1404 |
by (rule_tac x="dist z a" in exI) (use dist_commute z in auto) |
| 49653 | 1405 |
qed |
| 36583 | 1406 |
|
1407 |
lemma not_on_path_cball: |
|
1408 |
fixes g :: "real \<Rightarrow> 'a::heine_borel" |
|
| 53640 | 1409 |
assumes "path g" |
1410 |
and "z \<notin> path_image g" |
|
| 49653 | 1411 |
shows "\<exists>e>0. cball z e \<inter> (path_image g) = {}"
|
1412 |
proof - |
|
| 53640 | 1413 |
obtain e where "ball z e \<inter> path_image g = {}" "e > 0"
|
| 49653 | 1414 |
using not_on_path_ball[OF assms] by auto |
| 53640 | 1415 |
moreover have "cball z (e/2) \<subseteq> ball z e" |
| 60420 | 1416 |
using \<open>e > 0\<close> by auto |
| 53640 | 1417 |
ultimately show ?thesis |
| 68096 | 1418 |
by (rule_tac x="e/2" in exI) auto |
| 49653 | 1419 |
qed |
1420 |
||
| 69518 | 1421 |
subsection \<open>Path component\<close> |
1422 |
||
1423 |
text \<open>Original formalization by Tom Hales\<close> |
|
| 36583 | 1424 |
|
| 67962 | 1425 |
definition%important "path_component s x y \<longleftrightarrow> |
| 49653 | 1426 |
(\<exists>g. path g \<and> path_image g \<subseteq> s \<and> pathstart g = x \<and> pathfinish g = y)" |
| 36583 | 1427 |
|
| 67962 | 1428 |
abbreviation%important |
| 69518 | 1429 |
"path_component_set s x \<equiv> Collect (path_component s x)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1430 |
|
| 53640 | 1431 |
lemmas path_defs = path_def pathstart_def pathfinish_def path_image_def path_component_def |
| 36583 | 1432 |
|
| 49653 | 1433 |
lemma path_component_mem: |
1434 |
assumes "path_component s x y" |
|
| 53640 | 1435 |
shows "x \<in> s" and "y \<in> s" |
1436 |
using assms |
|
1437 |
unfolding path_defs |
|
1438 |
by auto |
|
| 36583 | 1439 |
|
| 49653 | 1440 |
lemma path_component_refl: |
1441 |
assumes "x \<in> s" |
|
1442 |
shows "path_component s x x" |
|
1443 |
unfolding path_defs |
|
1444 |
apply (rule_tac x="\<lambda>u. x" in exI) |
|
| 53640 | 1445 |
using assms |
|
56371
fb9ae0727548
extend continuous_intros; remove continuous_on_intros and isCont_intros
hoelzl
parents:
56188
diff
changeset
|
1446 |
apply (auto intro!: continuous_intros) |
| 53640 | 1447 |
done |
| 36583 | 1448 |
|
1449 |
lemma path_component_refl_eq: "path_component s x x \<longleftrightarrow> x \<in> s" |
|
| 49653 | 1450 |
by (auto intro!: path_component_mem path_component_refl) |
| 36583 | 1451 |
|
1452 |
lemma path_component_sym: "path_component s x y \<Longrightarrow> path_component s y x" |
|
| 49653 | 1453 |
unfolding path_component_def |
1454 |
apply (erule exE) |
|
| 68096 | 1455 |
apply (rule_tac x="reversepath g" in exI, auto) |
| 49653 | 1456 |
done |
| 36583 | 1457 |
|
| 49653 | 1458 |
lemma path_component_trans: |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1459 |
assumes "path_component s x y" and "path_component s y z" |
| 49653 | 1460 |
shows "path_component s x z" |
1461 |
using assms |
|
1462 |
unfolding path_component_def |
|
| 53640 | 1463 |
apply (elim exE) |
| 49653 | 1464 |
apply (rule_tac x="g +++ ga" in exI) |
| 68096 | 1465 |
apply (auto simp: path_image_join) |
| 49653 | 1466 |
done |
| 36583 | 1467 |
|
| 53640 | 1468 |
lemma path_component_of_subset: "s \<subseteq> t \<Longrightarrow> path_component s x y \<Longrightarrow> path_component t x y" |
| 36583 | 1469 |
unfolding path_component_def by auto |
1470 |
||
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1471 |
lemma path_connected_linepath: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1472 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1473 |
shows "closed_segment a b \<subseteq> s \<Longrightarrow> path_component s a b" |
| 68096 | 1474 |
unfolding path_component_def |
1475 |
by (rule_tac x="linepath a b" in exI, auto) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1476 |
|
| 67962 | 1477 |
subsubsection%unimportant \<open>Path components as sets\<close> |
| 36583 | 1478 |
|
| 49653 | 1479 |
lemma path_component_set: |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1480 |
"path_component_set s x = |
| 49653 | 1481 |
{y. (\<exists>g. path g \<and> path_image g \<subseteq> s \<and> pathstart g = x \<and> pathfinish g = y)}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1482 |
by (auto simp: path_component_def) |
| 36583 | 1483 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1484 |
lemma path_component_subset: "path_component_set s x \<subseteq> s" |
| 68096 | 1485 |
by (auto simp: path_component_mem(2)) |
| 36583 | 1486 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1487 |
lemma path_component_eq_empty: "path_component_set s x = {} \<longleftrightarrow> x \<notin> s"
|
| 60303 | 1488 |
using path_component_mem path_component_refl_eq |
1489 |
by fastforce |
|
| 36583 | 1490 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1491 |
lemma path_component_mono: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1492 |
"s \<subseteq> t \<Longrightarrow> (path_component_set s x) \<subseteq> (path_component_set t x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1493 |
by (simp add: Collect_mono path_component_of_subset) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1494 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1495 |
lemma path_component_eq: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1496 |
"y \<in> path_component_set s x \<Longrightarrow> path_component_set s y = path_component_set s x" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1497 |
by (metis (no_types, lifting) Collect_cong mem_Collect_eq path_component_sym path_component_trans) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1498 |
|
| 69514 | 1499 |
|
| 60420 | 1500 |
subsection \<open>Path connectedness of a space\<close> |
| 36583 | 1501 |
|
| 67962 | 1502 |
definition%important "path_connected s \<longleftrightarrow> |
| 53640 | 1503 |
(\<forall>x\<in>s. \<forall>y\<in>s. \<exists>g. path g \<and> path_image g \<subseteq> s \<and> pathstart g = x \<and> pathfinish g = y)" |
| 36583 | 1504 |
|
1505 |
lemma path_connected_component: "path_connected s \<longleftrightarrow> (\<forall>x\<in>s. \<forall>y\<in>s. path_component s x y)" |
|
1506 |
unfolding path_connected_def path_component_def by auto |
|
1507 |
||
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1508 |
lemma path_connected_component_set: "path_connected s \<longleftrightarrow> (\<forall>x\<in>s. path_component_set s x = s)" |
|
61694
6571c78c9667
Removed some legacy theorems; minor adjustments to simplification rules; new material on homotopic paths
paulson <lp15@cam.ac.uk>
parents:
61518
diff
changeset
|
1509 |
unfolding path_connected_component path_component_subset |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1510 |
using path_component_mem by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1511 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1512 |
lemma path_component_maximal: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1513 |
"\<lbrakk>x \<in> t; path_connected t; t \<subseteq> s\<rbrakk> \<Longrightarrow> t \<subseteq> (path_component_set s x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1514 |
by (metis path_component_mono path_connected_component_set) |
| 36583 | 1515 |
|
1516 |
lemma convex_imp_path_connected: |
|
1517 |
fixes s :: "'a::real_normed_vector set" |
|
| 53640 | 1518 |
assumes "convex s" |
1519 |
shows "path_connected s" |
|
| 49653 | 1520 |
unfolding path_connected_def |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1521 |
using assms convex_contains_segment by fastforce |
| 36583 | 1522 |
|
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1523 |
lemma path_connected_UNIV [iff]: "path_connected (UNIV :: 'a::real_normed_vector set)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1524 |
by (simp add: convex_imp_path_connected) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1525 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1526 |
lemma path_component_UNIV: "path_component_set UNIV x = (UNIV :: 'a::real_normed_vector set)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1527 |
using path_connected_component_set by auto |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1528 |
|
| 49653 | 1529 |
lemma path_connected_imp_connected: |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1530 |
assumes "path_connected S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1531 |
shows "connected S" |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1532 |
proof (rule connectedI) |
| 49653 | 1533 |
fix e1 e2 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1534 |
assume as: "open e1" "open e2" "S \<subseteq> e1 \<union> e2" "e1 \<inter> e2 \<inter> S = {}" "e1 \<inter> S \<noteq> {}" "e2 \<inter> S \<noteq> {}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1535 |
then obtain x1 x2 where obt:"x1 \<in> e1 \<inter> S" "x2 \<in> e2 \<inter> S" |
| 53640 | 1536 |
by auto |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1537 |
then obtain g where g: "path g" "path_image g \<subseteq> S" "pathstart g = x1" "pathfinish g = x2" |
| 36583 | 1538 |
using assms[unfolded path_connected_def,rule_format,of x1 x2] by auto |
| 49653 | 1539 |
have *: "connected {0..1::real}"
|
1540 |
by (auto intro!: convex_connected convex_real_interval) |
|
1541 |
have "{0..1} \<subseteq> {x \<in> {0..1}. g x \<in> e1} \<union> {x \<in> {0..1}. g x \<in> e2}"
|
|
1542 |
using as(3) g(2)[unfolded path_defs] by blast |
|
1543 |
moreover have "{x \<in> {0..1}. g x \<in> e1} \<inter> {x \<in> {0..1}. g x \<in> e2} = {}"
|
|
| 53640 | 1544 |
using as(4) g(2)[unfolded path_defs] |
1545 |
unfolding subset_eq |
|
1546 |
by auto |
|
| 49653 | 1547 |
moreover have "{x \<in> {0..1}. g x \<in> e1} \<noteq> {} \<and> {x \<in> {0..1}. g x \<in> e2} \<noteq> {}"
|
| 53640 | 1548 |
using g(3,4)[unfolded path_defs] |
1549 |
using obt |
|
| 36583 | 1550 |
by (simp add: ex_in_conv [symmetric], metis zero_le_one order_refl) |
| 49653 | 1551 |
ultimately show False |
| 53640 | 1552 |
using *[unfolded connected_local not_ex, rule_format, |
|
66884
c2128ab11f61
Switching to inverse image and constant_on, plus some new material
paulson <lp15@cam.ac.uk>
parents:
66827
diff
changeset
|
1553 |
of "{0..1} \<inter> g -` e1" "{0..1} \<inter> g -` e2"]
|
| 63301 | 1554 |
using continuous_openin_preimage_gen[OF g(1)[unfolded path_def] as(1)] |
1555 |
using continuous_openin_preimage_gen[OF g(1)[unfolded path_def] as(2)] |
|
| 49653 | 1556 |
by auto |
1557 |
qed |
|
| 36583 | 1558 |
|
1559 |
lemma open_path_component: |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1560 |
fixes S :: "'a::real_normed_vector set" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1561 |
assumes "open S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1562 |
shows "open (path_component_set S x)" |
| 49653 | 1563 |
unfolding open_contains_ball |
1564 |
proof |
|
1565 |
fix y |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1566 |
assume as: "y \<in> path_component_set S x" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1567 |
then have "y \<in> S" |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1568 |
by (simp add: path_component_mem(2)) |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1569 |
then obtain e where e: "e > 0" "ball y e \<subseteq> S" |
| 53640 | 1570 |
using assms[unfolded open_contains_ball] |
1571 |
by auto |
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1572 |
have "\<And>u. dist y u < e \<Longrightarrow> path_component S x u" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1573 |
by (metis (full_types) as centre_in_ball convex_ball convex_imp_path_connected e mem_Collect_eq mem_ball path_component_eq path_component_of_subset path_connected_component) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1574 |
then show "\<exists>e > 0. ball y e \<subseteq> path_component_set S x" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1575 |
using \<open>e>0\<close> by auto |
| 49653 | 1576 |
qed |
| 36583 | 1577 |
|
1578 |
lemma open_non_path_component: |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1579 |
fixes S :: "'a::real_normed_vector set" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1580 |
assumes "open S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1581 |
shows "open (S - path_component_set S x)" |
| 49653 | 1582 |
unfolding open_contains_ball |
1583 |
proof |
|
1584 |
fix y |
|
| 68096 | 1585 |
assume y: "y \<in> S - path_component_set S x" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1586 |
then obtain e where e: "e > 0" "ball y e \<subseteq> S" |
| 68096 | 1587 |
using assms openE by auto |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1588 |
show "\<exists>e>0. ball y e \<subseteq> S - path_component_set S x" |
| 68096 | 1589 |
proof (intro exI conjI subsetI DiffI notI) |
1590 |
show "\<And>x. x \<in> ball y e \<Longrightarrow> x \<in> S" |
|
1591 |
using e by blast |
|
1592 |
show False if "z \<in> ball y e" "z \<in> path_component_set S x" for z |
|
1593 |
proof - |
|
1594 |
have "y \<in> path_component_set S z" |
|
1595 |
by (meson assms convex_ball convex_imp_path_connected e open_contains_ball_eq open_path_component path_component_maximal that(1)) |
|
1596 |
then have "y \<in> path_component_set S x" |
|
1597 |
using path_component_eq that(2) by blast |
|
1598 |
then show False |
|
1599 |
using y by blast |
|
1600 |
qed |
|
1601 |
qed (use e in auto) |
|
| 49653 | 1602 |
qed |
| 36583 | 1603 |
|
1604 |
lemma connected_open_path_connected: |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1605 |
fixes S :: "'a::real_normed_vector set" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1606 |
assumes "open S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1607 |
and "connected S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1608 |
shows "path_connected S" |
| 49653 | 1609 |
unfolding path_connected_component_set |
1610 |
proof (rule, rule, rule path_component_subset, rule) |
|
1611 |
fix x y |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1612 |
assume "x \<in> S" and "y \<in> S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1613 |
show "y \<in> path_component_set S x" |
| 49653 | 1614 |
proof (rule ccontr) |
| 53640 | 1615 |
assume "\<not> ?thesis" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1616 |
moreover have "path_component_set S x \<inter> S \<noteq> {}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1617 |
using \<open>x \<in> S\<close> path_component_eq_empty path_component_subset[of S x] |
| 53640 | 1618 |
by auto |
| 49653 | 1619 |
ultimately |
1620 |
show False |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1621 |
using \<open>y \<in> S\<close> open_non_path_component[OF assms(1)] open_path_component[OF assms(1)] |
| 53640 | 1622 |
using assms(2)[unfolded connected_def not_ex, rule_format, |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1623 |
of "path_component_set S x" "S - path_component_set S x"] |
| 49653 | 1624 |
by auto |
1625 |
qed |
|
1626 |
qed |
|
| 36583 | 1627 |
|
1628 |
lemma path_connected_continuous_image: |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1629 |
assumes "continuous_on S f" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1630 |
and "path_connected S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1631 |
shows "path_connected (f ` S)" |
| 49653 | 1632 |
unfolding path_connected_def |
1633 |
proof (rule, rule) |
|
1634 |
fix x' y' |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1635 |
assume "x' \<in> f ` S" "y' \<in> f ` S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1636 |
then obtain x y where x: "x \<in> S" and y: "y \<in> S" and x': "x' = f x" and y': "y' = f y" |
| 53640 | 1637 |
by auto |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1638 |
from x y obtain g where "path g \<and> path_image g \<subseteq> S \<and> pathstart g = x \<and> pathfinish g = y" |
| 53640 | 1639 |
using assms(2)[unfolded path_connected_def] by fast |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1640 |
then show "\<exists>g. path g \<and> path_image g \<subseteq> f ` S \<and> pathstart g = x' \<and> pathfinish g = y'" |
| 53640 | 1641 |
unfolding x' y' |
| 49653 | 1642 |
apply (rule_tac x="f \<circ> g" in exI) |
1643 |
unfolding path_defs |
|
|
51481
ef949192e5d6
move continuous_on_inv to HOL image (simplifies isCont_inverse_function)
hoelzl
parents:
51478
diff
changeset
|
1644 |
apply (intro conjI continuous_on_compose continuous_on_subset[OF assms(1)]) |
|
ef949192e5d6
move continuous_on_inv to HOL image (simplifies isCont_inverse_function)
hoelzl
parents:
51478
diff
changeset
|
1645 |
apply auto |
| 49653 | 1646 |
done |
1647 |
qed |
|
| 36583 | 1648 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1649 |
lemma path_connected_translationI: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1650 |
fixes a :: "'a :: topological_group_add" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1651 |
assumes "path_connected S" shows "path_connected ((\<lambda>x. a + x) ` S)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1652 |
by (intro path_connected_continuous_image assms continuous_intros) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1653 |
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1654 |
lemma path_connected_translation: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1655 |
fixes a :: "'a :: topological_group_add" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1656 |
shows "path_connected ((\<lambda>x. a + x) ` S) = path_connected S" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1657 |
proof - |
| 67399 | 1658 |
have "\<forall>x y. (+) (x::'a) ` (+) (0 - x) ` y = y" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1659 |
by (simp add: image_image) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1660 |
then show ?thesis |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1661 |
by (metis (no_types) path_connected_translationI) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1662 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1663 |
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1664 |
lemma path_connected_segment [simp]: |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1665 |
fixes a :: "'a::real_normed_vector" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1666 |
shows "path_connected (closed_segment a b)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1667 |
by (simp add: convex_imp_path_connected) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1668 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1669 |
lemma path_connected_open_segment [simp]: |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1670 |
fixes a :: "'a::real_normed_vector" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1671 |
shows "path_connected (open_segment a b)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1672 |
by (simp add: convex_imp_path_connected) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1673 |
|
| 36583 | 1674 |
lemma homeomorphic_path_connectedness: |
| 68096 | 1675 |
"S homeomorphic T \<Longrightarrow> path_connected S \<longleftrightarrow> path_connected T" |
|
61738
c4f6031f1310
New material about paths, winding numbers, etc. Added lemmas to divide_const_simps. Misc tuning.
paulson <lp15@cam.ac.uk>
parents:
61711
diff
changeset
|
1676 |
unfolding homeomorphic_def homeomorphism_def by (metis path_connected_continuous_image) |
| 36583 | 1677 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1678 |
lemma path_connected_empty [simp]: "path_connected {}"
|
| 36583 | 1679 |
unfolding path_connected_def by auto |
1680 |
||
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1681 |
lemma path_connected_singleton [simp]: "path_connected {a}"
|
| 36583 | 1682 |
unfolding path_connected_def pathstart_def pathfinish_def path_image_def |
| 53640 | 1683 |
apply clarify |
1684 |
apply (rule_tac x="\<lambda>x. a" in exI) |
|
1685 |
apply (simp add: image_constant_conv) |
|
| 36583 | 1686 |
apply (simp add: path_def continuous_on_const) |
1687 |
done |
|
1688 |
||
| 49653 | 1689 |
lemma path_connected_Un: |
| 68096 | 1690 |
assumes "path_connected S" |
1691 |
and "path_connected T" |
|
1692 |
and "S \<inter> T \<noteq> {}"
|
|
1693 |
shows "path_connected (S \<union> T)" |
|
| 49653 | 1694 |
unfolding path_connected_component |
| 68096 | 1695 |
proof (intro ballI) |
| 49653 | 1696 |
fix x y |
| 68096 | 1697 |
assume x: "x \<in> S \<union> T" and y: "y \<in> S \<union> T" |
1698 |
from assms obtain z where z: "z \<in> S" "z \<in> T" |
|
| 53640 | 1699 |
by auto |
| 68096 | 1700 |
show "path_component (S \<union> T) x y" |
1701 |
using x y |
|
1702 |
proof safe |
|
1703 |
assume "x \<in> S" "y \<in> S" |
|
1704 |
then show "path_component (S \<union> T) x y" |
|
1705 |
by (meson Un_upper1 \<open>path_connected S\<close> path_component_of_subset path_connected_component) |
|
1706 |
next |
|
1707 |
assume "x \<in> S" "y \<in> T" |
|
1708 |
then show "path_component (S \<union> T) x y" |
|
1709 |
by (metis z assms(1-2) le_sup_iff order_refl path_component_of_subset path_component_trans path_connected_component) |
|
1710 |
next |
|
1711 |
assume "x \<in> T" "y \<in> S" |
|
1712 |
then show "path_component (S \<union> T) x y" |
|
1713 |
by (metis z assms(1-2) le_sup_iff order_refl path_component_of_subset path_component_trans path_connected_component) |
|
1714 |
next |
|
1715 |
assume "x \<in> T" "y \<in> T" |
|
1716 |
then show "path_component (S \<union> T) x y" |
|
1717 |
by (metis Un_upper1 assms(2) path_component_of_subset path_connected_component sup_commute) |
|
1718 |
qed |
|
| 49653 | 1719 |
qed |
| 36583 | 1720 |
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1721 |
lemma path_connected_UNION: |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1722 |
assumes "\<And>i. i \<in> A \<Longrightarrow> path_connected (S i)" |
| 49653 | 1723 |
and "\<And>i. i \<in> A \<Longrightarrow> z \<in> S i" |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1724 |
shows "path_connected (\<Union>i\<in>A. S i)" |
| 49653 | 1725 |
unfolding path_connected_component |
1726 |
proof clarify |
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1727 |
fix x i y j |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1728 |
assume *: "i \<in> A" "x \<in> S i" "j \<in> A" "y \<in> S j" |
| 49654 | 1729 |
then have "path_component (S i) x z" and "path_component (S j) z y" |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1730 |
using assms by (simp_all add: path_connected_component) |
| 49654 | 1731 |
then have "path_component (\<Union>i\<in>A. S i) x z" and "path_component (\<Union>i\<in>A. S i) z y" |
|
48125
602dc0215954
tuned proofs -- prefer direct "rotated" instead of old-style COMP;
wenzelm
parents:
44647
diff
changeset
|
1732 |
using *(1,3) by (auto elim!: path_component_of_subset [rotated]) |
| 49654 | 1733 |
then show "path_component (\<Union>i\<in>A. S i) x y" |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1734 |
by (rule path_component_trans) |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1735 |
qed |
| 36583 | 1736 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1737 |
lemma path_component_path_image_pathstart: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1738 |
assumes p: "path p" and x: "x \<in> path_image p" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1739 |
shows "path_component (path_image p) (pathstart p) x" |
| 68096 | 1740 |
proof - |
1741 |
obtain y where x: "x = p y" and y: "0 \<le> y" "y \<le> 1" |
|
1742 |
using x by (auto simp: path_image_def) |
|
1743 |
show ?thesis |
|
1744 |
unfolding path_component_def |
|
1745 |
proof (intro exI conjI) |
|
|
69064
5840724b1d71
Prefix form of infix with * on either side no longer needs special treatment
nipkow
parents:
68913
diff
changeset
|
1746 |
have "continuous_on {0..1} (p \<circ> ((*) y))"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1747 |
apply (rule continuous_intros)+ |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1748 |
using p [unfolded path_def] y |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1749 |
apply (auto simp: mult_le_one intro: continuous_on_subset [of _ p]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1750 |
done |
| 68096 | 1751 |
then show "path (\<lambda>u. p (y * u))" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1752 |
by (simp add: path_def) |
| 68096 | 1753 |
show "path_image (\<lambda>u. p (y * u)) \<subseteq> path_image p" |
1754 |
using y mult_le_one by (fastforce simp: path_image_def image_iff) |
|
1755 |
qed (auto simp: pathstart_def pathfinish_def x) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1756 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1757 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1758 |
lemma path_connected_path_image: "path p \<Longrightarrow> path_connected(path_image p)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1759 |
unfolding path_connected_component |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1760 |
by (meson path_component_path_image_pathstart path_component_sym path_component_trans) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1761 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1762 |
lemma path_connected_path_component [simp]: |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1763 |
"path_connected (path_component_set s x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1764 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1765 |
{ fix y z
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1766 |
assume pa: "path_component s x y" "path_component s x z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1767 |
then have pae: "path_component_set s x = path_component_set s y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1768 |
using path_component_eq by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1769 |
have yz: "path_component s y z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1770 |
using pa path_component_sym path_component_trans by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1771 |
then have "\<exists>g. path g \<and> path_image g \<subseteq> path_component_set s x \<and> pathstart g = y \<and> pathfinish g = z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1772 |
apply (simp add: path_component_def, clarify) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1773 |
apply (rule_tac x=g in exI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1774 |
by (simp add: pae path_component_maximal path_connected_path_image pathstart_in_path_image) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1775 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1776 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1777 |
by (simp add: path_connected_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1778 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1779 |
|
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1780 |
lemma path_component: "path_component S x y \<longleftrightarrow> (\<exists>t. path_connected t \<and> t \<subseteq> S \<and> x \<in> t \<and> y \<in> t)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1781 |
apply (intro iffI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1782 |
apply (metis path_connected_path_image path_defs(5) pathfinish_in_path_image pathstart_in_path_image) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1783 |
using path_component_of_subset path_connected_component by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1784 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1785 |
lemma path_component_path_component [simp]: |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1786 |
"path_component_set (path_component_set S x) x = path_component_set S x" |
|
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1787 |
proof (cases "x \<in> S") |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1788 |
case True show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1789 |
apply (rule subset_antisym) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1790 |
apply (simp add: path_component_subset) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1791 |
by (simp add: True path_component_maximal path_component_refl path_connected_path_component) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1792 |
next |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1793 |
case False then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1794 |
by (metis False empty_iff path_component_eq_empty) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1795 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1796 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1797 |
lemma path_component_subset_connected_component: |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1798 |
"(path_component_set S x) \<subseteq> (connected_component_set S x)" |
|
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1799 |
proof (cases "x \<in> S") |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1800 |
case True show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1801 |
apply (rule connected_component_maximal) |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1802 |
apply (auto simp: True path_component_subset path_component_refl path_connected_imp_connected) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1803 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1804 |
next |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1805 |
case False then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1806 |
using path_component_eq_empty by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1807 |
qed |
| 49653 | 1808 |
|
| 69514 | 1809 |
|
| 67962 | 1810 |
subsection%unimportant\<open>Lemmas about path-connectedness\<close> |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1811 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1812 |
lemma path_connected_linear_image: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1813 |
fixes f :: "'a::real_normed_vector \<Rightarrow> 'b::real_normed_vector" |
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1814 |
assumes "path_connected S" "bounded_linear f" |
|
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1815 |
shows "path_connected(f ` S)" |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1816 |
by (auto simp: linear_continuous_on assms path_connected_continuous_image) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1817 |
|
|
68532
f8b98d31ad45
Incorporating new/strengthened proofs from Library and AFP entries
paulson <lp15@cam.ac.uk>
parents:
68310
diff
changeset
|
1818 |
lemma is_interval_path_connected: "is_interval S \<Longrightarrow> path_connected S" |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1819 |
by (simp add: convex_imp_path_connected is_interval_convex) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1820 |
|
|
62843
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1821 |
lemma linear_homeomorphism_image: |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1822 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1823 |
assumes "linear f" "inj f" |
|
62843
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1824 |
obtains g where "homeomorphism (f ` S) S g f" |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1825 |
using linear_injective_left_inverse [OF assms] |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1826 |
apply clarify |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1827 |
apply (rule_tac g=g in that) |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1828 |
using assms |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1829 |
apply (auto simp: homeomorphism_def eq_id_iff [symmetric] image_comp comp_def linear_conv_bounded_linear linear_continuous_on) |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1830 |
done |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1831 |
|
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1832 |
lemma linear_homeomorphic_image: |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1833 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1834 |
assumes "linear f" "inj f" |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1835 |
shows "S homeomorphic f ` S" |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1836 |
by (meson homeomorphic_def homeomorphic_sym linear_homeomorphism_image [OF assms]) |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1837 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1838 |
lemma path_connected_Times: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1839 |
assumes "path_connected s" "path_connected t" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1840 |
shows "path_connected (s \<times> t)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1841 |
proof (simp add: path_connected_def Sigma_def, clarify) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1842 |
fix x1 y1 x2 y2 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1843 |
assume "x1 \<in> s" "y1 \<in> t" "x2 \<in> s" "y2 \<in> t" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1844 |
obtain g where "path g" and g: "path_image g \<subseteq> s" and gs: "pathstart g = x1" and gf: "pathfinish g = x2" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1845 |
using \<open>x1 \<in> s\<close> \<open>x2 \<in> s\<close> assms by (force simp: path_connected_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1846 |
obtain h where "path h" and h: "path_image h \<subseteq> t" and hs: "pathstart h = y1" and hf: "pathfinish h = y2" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1847 |
using \<open>y1 \<in> t\<close> \<open>y2 \<in> t\<close> assms by (force simp: path_connected_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1848 |
have "path (\<lambda>z. (x1, h z))" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1849 |
using \<open>path h\<close> |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1850 |
apply (simp add: path_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1851 |
apply (rule continuous_on_compose2 [where f = h]) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1852 |
apply (rule continuous_intros | force)+ |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1853 |
done |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1854 |
moreover have "path (\<lambda>z. (g z, y2))" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1855 |
using \<open>path g\<close> |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1856 |
apply (simp add: path_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1857 |
apply (rule continuous_on_compose2 [where f = g]) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1858 |
apply (rule continuous_intros | force)+ |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1859 |
done |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1860 |
ultimately have 1: "path ((\<lambda>z. (x1, h z)) +++ (\<lambda>z. (g z, y2)))" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1861 |
by (metis hf gs path_join_imp pathstart_def pathfinish_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1862 |
have "path_image ((\<lambda>z. (x1, h z)) +++ (\<lambda>z. (g z, y2))) \<subseteq> path_image (\<lambda>z. (x1, h z)) \<union> path_image (\<lambda>z. (g z, y2))" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1863 |
by (rule Path_Connected.path_image_join_subset) |
| 68096 | 1864 |
also have "\<dots> \<subseteq> (\<Union>x\<in>s. \<Union>x1\<in>t. {(x, x1)})"
|
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1865 |
using g h \<open>x1 \<in> s\<close> \<open>y2 \<in> t\<close> by (force simp: path_image_def) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1866 |
finally have 2: "path_image ((\<lambda>z. (x1, h z)) +++ (\<lambda>z. (g z, y2))) \<subseteq> (\<Union>x\<in>s. \<Union>x1\<in>t. {(x, x1)})" .
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1867 |
show "\<exists>g. path g \<and> path_image g \<subseteq> (\<Union>x\<in>s. \<Union>x1\<in>t. {(x, x1)}) \<and>
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1868 |
pathstart g = (x1, y1) \<and> pathfinish g = (x2, y2)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1869 |
apply (intro exI conjI) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1870 |
apply (rule 1) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1871 |
apply (rule 2) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1872 |
apply (metis hs pathstart_def pathstart_join) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1873 |
by (metis gf pathfinish_def pathfinish_join) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1874 |
qed |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1875 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1876 |
lemma is_interval_path_connected_1: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1877 |
fixes s :: "real set" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1878 |
shows "is_interval s \<longleftrightarrow> path_connected s" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1879 |
using is_interval_connected_1 is_interval_path_connected path_connected_imp_connected by blast |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1880 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1881 |
|
| 67962 | 1882 |
subsection%unimportant\<open>Path components\<close> |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1883 |
|
|
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1884 |
lemma Union_path_component [simp]: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1885 |
"Union {path_component_set S x |x. x \<in> S} = S"
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1886 |
apply (rule subset_antisym) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1887 |
using path_component_subset apply force |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1888 |
using path_component_refl by auto |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1889 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1890 |
lemma path_component_disjoint: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1891 |
"disjnt (path_component_set S a) (path_component_set S b) \<longleftrightarrow> |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1892 |
(a \<notin> path_component_set S b)" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1893 |
apply (auto simp: disjnt_def) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1894 |
using path_component_eq apply fastforce |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1895 |
using path_component_sym path_component_trans by blast |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1896 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1897 |
lemma path_component_eq_eq: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1898 |
"path_component S x = path_component S y \<longleftrightarrow> |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1899 |
(x \<notin> S) \<and> (y \<notin> S) \<or> x \<in> S \<and> y \<in> S \<and> path_component S x y" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1900 |
apply (rule iffI, metis (no_types) path_component_mem(1) path_component_refl) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1901 |
apply (erule disjE, metis Collect_empty_eq_bot path_component_eq_empty) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1902 |
apply (rule ext) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1903 |
apply (metis path_component_trans path_component_sym) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1904 |
done |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1905 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1906 |
lemma path_component_unique: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1907 |
assumes "x \<in> c" "c \<subseteq> S" "path_connected c" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1908 |
"\<And>c'. \<lbrakk>x \<in> c'; c' \<subseteq> S; path_connected c'\<rbrakk> \<Longrightarrow> c' \<subseteq> c" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1909 |
shows "path_component_set S x = c" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1910 |
apply (rule subset_antisym) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1911 |
using assms |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1912 |
apply (metis mem_Collect_eq subsetCE path_component_eq_eq path_component_subset path_connected_path_component) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1913 |
by (simp add: assms path_component_maximal) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1914 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1915 |
lemma path_component_intermediate_subset: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1916 |
"path_component_set u a \<subseteq> t \<and> t \<subseteq> u |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1917 |
\<Longrightarrow> path_component_set t a = path_component_set u a" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1918 |
by (metis (no_types) path_component_mono path_component_path_component subset_antisym) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1919 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1920 |
lemma complement_path_component_Union: |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1921 |
fixes x :: "'a :: topological_space" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1922 |
shows "S - path_component_set S x = |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1923 |
\<Union>({path_component_set S y| y. y \<in> S} - {path_component_set S x})"
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1924 |
proof - |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1925 |
have *: "(\<And>x. x \<in> S - {a} \<Longrightarrow> disjnt a x) \<Longrightarrow> \<Union>S - a = \<Union>(S - {a})"
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1926 |
for a::"'a set" and S |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1927 |
by (auto simp: disjnt_def) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1928 |
have "\<And>y. y \<in> {path_component_set S x |x. x \<in> S} - {path_component_set S x}
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1929 |
\<Longrightarrow> disjnt (path_component_set S x) y" |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1930 |
using path_component_disjoint path_component_eq by fastforce |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1931 |
then have "\<Union>{path_component_set S x |x. x \<in> S} - path_component_set S x =
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1932 |
\<Union>({path_component_set S y |y. y \<in> S} - {path_component_set S x})"
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1933 |
by (meson *) |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1934 |
then show ?thesis by simp |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1935 |
qed |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1936 |
|
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1937 |
|
| 60420 | 1938 |
subsection \<open>Sphere is path-connected\<close> |
|
37489
44e42d392c6e
Introduce a type class for euclidean spaces, port most lemmas from real^'n to this type class.
hoelzl
parents:
36583
diff
changeset
|
1939 |
|
| 36583 | 1940 |
lemma path_connected_punctured_universe: |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1941 |
assumes "2 \<le> DIM('a::euclidean_space)"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1942 |
shows "path_connected (- {a::'a})"
|
| 49653 | 1943 |
proof - |
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1944 |
let ?A = "{x::'a. \<exists>i\<in>Basis. x \<bullet> i < a \<bullet> i}"
|
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1945 |
let ?B = "{x::'a. \<exists>i\<in>Basis. a \<bullet> i < x \<bullet> i}"
|
| 36583 | 1946 |
|
| 49653 | 1947 |
have A: "path_connected ?A" |
1948 |
unfolding Collect_bex_eq |
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1949 |
proof (rule path_connected_UNION) |
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1950 |
fix i :: 'a |
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1951 |
assume "i \<in> Basis" |
| 53640 | 1952 |
then show "(\<Sum>i\<in>Basis. (a \<bullet> i - 1)*\<^sub>R i) \<in> {x::'a. x \<bullet> i < a \<bullet> i}"
|
1953 |
by simp |
|
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1954 |
show "path_connected {x. x \<bullet> i < a \<bullet> i}"
|
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1955 |
using convex_imp_path_connected [OF convex_halfspace_lt, of i "a \<bullet> i"] |
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1956 |
by (simp add: inner_commute) |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1957 |
qed |
| 53640 | 1958 |
have B: "path_connected ?B" |
1959 |
unfolding Collect_bex_eq |
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1960 |
proof (rule path_connected_UNION) |
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1961 |
fix i :: 'a |
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1962 |
assume "i \<in> Basis" |
| 53640 | 1963 |
then show "(\<Sum>i\<in>Basis. (a \<bullet> i + 1) *\<^sub>R i) \<in> {x::'a. a \<bullet> i < x \<bullet> i}"
|
1964 |
by simp |
|
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1965 |
show "path_connected {x. a \<bullet> i < x \<bullet> i}"
|
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1966 |
using convex_imp_path_connected [OF convex_halfspace_gt, of "a \<bullet> i" i] |
|
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1967 |
by (simp add: inner_commute) |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1968 |
qed |
| 53640 | 1969 |
obtain S :: "'a set" where "S \<subseteq> Basis" and "card S = Suc (Suc 0)" |
1970 |
using ex_card[OF assms] |
|
1971 |
by auto |
|
1972 |
then obtain b0 b1 :: 'a where "b0 \<in> Basis" and "b1 \<in> Basis" and "b0 \<noteq> b1" |
|
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1973 |
unfolding card_Suc_eq by auto |
| 53640 | 1974 |
then have "a + b0 - b1 \<in> ?A \<inter> ?B" |
1975 |
by (auto simp: inner_simps inner_Basis) |
|
1976 |
then have "?A \<inter> ?B \<noteq> {}"
|
|
1977 |
by fast |
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1978 |
with A B have "path_connected (?A \<union> ?B)" |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1979 |
by (rule path_connected_Un) |
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
49654
diff
changeset
|
1980 |
also have "?A \<union> ?B = {x. \<exists>i\<in>Basis. x \<bullet> i \<noteq> a \<bullet> i}"
|
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1981 |
unfolding neq_iff bex_disj_distrib Collect_disj_eq .. |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1982 |
also have "\<dots> = {x. x \<noteq> a}"
|
| 53640 | 1983 |
unfolding euclidean_eq_iff [where 'a='a] |
1984 |
by (simp add: Bex_def) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1985 |
also have "\<dots> = - {a}"
|
| 53640 | 1986 |
by auto |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1987 |
finally show ?thesis . |
|
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1988 |
qed |
| 36583 | 1989 |
|
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
1990 |
corollary connected_punctured_universe: |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
1991 |
"2 \<le> DIM('N::euclidean_space) \<Longrightarrow> connected(- {a::'N})"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
1992 |
by (simp add: path_connected_punctured_universe path_connected_imp_connected) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
1993 |
|
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
1994 |
proposition path_connected_sphere: |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1995 |
fixes a :: "'a :: euclidean_space" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1996 |
assumes "2 \<le> DIM('a)"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1997 |
shows "path_connected(sphere a r)" |
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
1998 |
proof (cases r "0::real" rule: linorder_cases) |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1999 |
case less |
| 53640 | 2000 |
then show ?thesis |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2001 |
by (simp add: path_connected_empty) |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2002 |
next |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2003 |
case equal |
| 53640 | 2004 |
then show ?thesis |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2005 |
by (simp add: path_connected_singleton) |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2006 |
next |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2007 |
case greater |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2008 |
then have eq: "(sphere (0::'a) r) = (\<lambda>x. (r / norm x) *\<^sub>R x) ` (- {0::'a})"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2009 |
by (force simp: image_iff split: if_split_asm) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2010 |
have "continuous_on (- {0::'a}) (\<lambda>x. (r / norm x) *\<^sub>R x)"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2011 |
by (intro continuous_intros) auto |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2012 |
then have "path_connected ((\<lambda>x. (r / norm x) *\<^sub>R x) ` (- {0::'a}))"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2013 |
by (intro path_connected_continuous_image path_connected_punctured_universe assms) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2014 |
with eq have "path_connected (sphere (0::'a) r)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2015 |
by auto |
| 67399 | 2016 |
then have "path_connected((+) a ` (sphere (0::'a) r))" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2017 |
by (simp add: path_connected_translation) |
| 53640 | 2018 |
then show ?thesis |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2019 |
by (metis add.right_neutral sphere_translation) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2020 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2021 |
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2022 |
lemma connected_sphere: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2023 |
fixes a :: "'a :: euclidean_space" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2024 |
assumes "2 \<le> DIM('a)"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2025 |
shows "connected(sphere a r)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2026 |
using path_connected_sphere [OF assms] |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2027 |
by (simp add: path_connected_imp_connected) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2028 |
|
| 36583 | 2029 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2030 |
corollary path_connected_complement_bounded_convex: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2031 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2032 |
assumes "bounded s" "convex s" and 2: "2 \<le> DIM('a)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2033 |
shows "path_connected (- s)" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2034 |
proof (cases "s = {}")
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2035 |
case True then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2036 |
using convex_imp_path_connected by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2037 |
next |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2038 |
case False |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2039 |
then obtain a where "a \<in> s" by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2040 |
{ fix x y assume "x \<notin> s" "y \<notin> s"
|
| 61808 | 2041 |
then have "x \<noteq> a" "y \<noteq> a" using \<open>a \<in> s\<close> by auto |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2042 |
then have bxy: "bounded(insert x (insert y s))" |
| 61808 | 2043 |
by (simp add: \<open>bounded s\<close>) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2044 |
then obtain B::real where B: "0 < B" and Bx: "norm (a - x) < B" and By: "norm (a - y) < B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2045 |
and "s \<subseteq> ball a B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2046 |
using bounded_subset_ballD [OF bxy, of a] by (auto simp: dist_norm) |
| 63040 | 2047 |
define C where "C = B / norm(x - a)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2048 |
{ fix u
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2049 |
assume u: "(1 - u) *\<^sub>R x + u *\<^sub>R (a + C *\<^sub>R (x - a)) \<in> s" and "0 \<le> u" "u \<le> 1" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2050 |
have CC: "1 \<le> 1 + (C - 1) * u" |
| 61808 | 2051 |
using \<open>x \<noteq> a\<close> \<open>0 \<le> u\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2052 |
apply (simp add: C_def divide_simps norm_minus_commute) |
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
2053 |
using Bx by auto |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2054 |
have *: "\<And>v. (1 - u) *\<^sub>R x + u *\<^sub>R (a + v *\<^sub>R (x - a)) = a + (1 + (v - 1) * u) *\<^sub>R (x - a)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2055 |
by (simp add: algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2056 |
have "a + ((1 / (1 + C * u - u)) *\<^sub>R x + ((u / (1 + C * u - u)) *\<^sub>R a + (C * u / (1 + C * u - u)) *\<^sub>R x)) = |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2057 |
(1 + (u / (1 + C * u - u))) *\<^sub>R a + ((1 / (1 + C * u - u)) + (C * u / (1 + C * u - u))) *\<^sub>R x" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2058 |
by (simp add: algebra_simps) |
| 68096 | 2059 |
also have "\<dots> = (1 + (u / (1 + C * u - u))) *\<^sub>R a + (1 + (u / (1 + C * u - u))) *\<^sub>R x" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2060 |
using CC by (simp add: field_simps) |
| 68096 | 2061 |
also have "\<dots> = x + (1 + (u / (1 + C * u - u))) *\<^sub>R a + (u / (1 + C * u - u)) *\<^sub>R x" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2062 |
by (simp add: algebra_simps) |
| 68096 | 2063 |
also have "\<dots> = x + ((1 / (1 + C * u - u)) *\<^sub>R a + |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2064 |
((u / (1 + C * u - u)) *\<^sub>R x + (C * u / (1 + C * u - u)) *\<^sub>R a))" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2065 |
using CC by (simp add: field_simps) (simp add: add_divide_distrib scaleR_add_left) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2066 |
finally have xeq: "(1 - 1 / (1 + (C - 1) * u)) *\<^sub>R a + (1 / (1 + (C - 1) * u)) *\<^sub>R (a + (1 + (C - 1) * u) *\<^sub>R (x - a)) = x" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2067 |
by (simp add: algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2068 |
have False |
| 61808 | 2069 |
using \<open>convex s\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2070 |
apply (simp add: convex_alt) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2071 |
apply (drule_tac x=a in bspec) |
| 61808 | 2072 |
apply (rule \<open>a \<in> s\<close>) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2073 |
apply (drule_tac x="a + (1 + (C - 1) * u) *\<^sub>R (x - a)" in bspec) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2074 |
using u apply (simp add: *) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2075 |
apply (drule_tac x="1 / (1 + (C - 1) * u)" in spec) |
| 61808 | 2076 |
using \<open>x \<noteq> a\<close> \<open>x \<notin> s\<close> \<open>0 \<le> u\<close> CC |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2077 |
apply (auto simp: xeq) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2078 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2079 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2080 |
then have pcx: "path_component (- s) x (a + C *\<^sub>R (x - a))" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2081 |
by (force simp: closed_segment_def intro!: path_connected_linepath) |
|
67443
3abf6a722518
standardized towards new-style formal comments: isabelle update_comments;
wenzelm
parents:
67399
diff
changeset
|
2082 |
define D where "D = B / norm(y - a)" \<comment> \<open>massive duplication with the proof above\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2083 |
{ fix u
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2084 |
assume u: "(1 - u) *\<^sub>R y + u *\<^sub>R (a + D *\<^sub>R (y - a)) \<in> s" and "0 \<le> u" "u \<le> 1" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2085 |
have DD: "1 \<le> 1 + (D - 1) * u" |
| 61808 | 2086 |
using \<open>y \<noteq> a\<close> \<open>0 \<le> u\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2087 |
apply (simp add: D_def divide_simps norm_minus_commute) |
|
61762
d50b993b4fb9
Removal of redundant lemmas (diff_less_iff, diff_le_iff) and of the abbreviation Exp. Addition of some new material.
paulson <lp15@cam.ac.uk>
parents:
61738
diff
changeset
|
2088 |
using By by auto |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2089 |
have *: "\<And>v. (1 - u) *\<^sub>R y + u *\<^sub>R (a + v *\<^sub>R (y - a)) = a + (1 + (v - 1) * u) *\<^sub>R (y - a)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2090 |
by (simp add: algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2091 |
have "a + ((1 / (1 + D * u - u)) *\<^sub>R y + ((u / (1 + D * u - u)) *\<^sub>R a + (D * u / (1 + D * u - u)) *\<^sub>R y)) = |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2092 |
(1 + (u / (1 + D * u - u))) *\<^sub>R a + ((1 / (1 + D * u - u)) + (D * u / (1 + D * u - u))) *\<^sub>R y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2093 |
by (simp add: algebra_simps) |
| 68096 | 2094 |
also have "\<dots> = (1 + (u / (1 + D * u - u))) *\<^sub>R a + (1 + (u / (1 + D * u - u))) *\<^sub>R y" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2095 |
using DD by (simp add: field_simps) |
| 68096 | 2096 |
also have "\<dots> = y + (1 + (u / (1 + D * u - u))) *\<^sub>R a + (u / (1 + D * u - u)) *\<^sub>R y" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2097 |
by (simp add: algebra_simps) |
| 68096 | 2098 |
also have "\<dots> = y + ((1 / (1 + D * u - u)) *\<^sub>R a + |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2099 |
((u / (1 + D * u - u)) *\<^sub>R y + (D * u / (1 + D * u - u)) *\<^sub>R a))" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2100 |
using DD by (simp add: field_simps) (simp add: add_divide_distrib scaleR_add_left) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2101 |
finally have xeq: "(1 - 1 / (1 + (D - 1) * u)) *\<^sub>R a + (1 / (1 + (D - 1) * u)) *\<^sub>R (a + (1 + (D - 1) * u) *\<^sub>R (y - a)) = y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2102 |
by (simp add: algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2103 |
have False |
| 61808 | 2104 |
using \<open>convex s\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2105 |
apply (simp add: convex_alt) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2106 |
apply (drule_tac x=a in bspec) |
| 61808 | 2107 |
apply (rule \<open>a \<in> s\<close>) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2108 |
apply (drule_tac x="a + (1 + (D - 1) * u) *\<^sub>R (y - a)" in bspec) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2109 |
using u apply (simp add: *) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2110 |
apply (drule_tac x="1 / (1 + (D - 1) * u)" in spec) |
| 61808 | 2111 |
using \<open>y \<noteq> a\<close> \<open>y \<notin> s\<close> \<open>0 \<le> u\<close> DD |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2112 |
apply (auto simp: xeq) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2113 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2114 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2115 |
then have pdy: "path_component (- s) y (a + D *\<^sub>R (y - a))" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2116 |
by (force simp: closed_segment_def intro!: path_connected_linepath) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2117 |
have pyx: "path_component (- s) (a + D *\<^sub>R (y - a)) (a + C *\<^sub>R (x - a))" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2118 |
apply (rule path_component_of_subset [of "sphere a B"]) |
| 61808 | 2119 |
using \<open>s \<subseteq> ball a B\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2120 |
apply (force simp: ball_def dist_norm norm_minus_commute) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2121 |
apply (rule path_connected_sphere [OF 2, of a B, simplified path_connected_component, rule_format]) |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2122 |
using \<open>x \<noteq> a\<close> using \<open>y \<noteq> a\<close> B apply (auto simp: dist_norm C_def D_def) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2123 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2124 |
have "path_component (- s) x y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2125 |
by (metis path_component_trans path_component_sym pcx pdy pyx) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2126 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2127 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2128 |
by (auto simp: path_connected_component) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2129 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2130 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2131 |
lemma connected_complement_bounded_convex: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2132 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2133 |
assumes "bounded s" "convex s" "2 \<le> DIM('a)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2134 |
shows "connected (- s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2135 |
using path_connected_complement_bounded_convex [OF assms] path_connected_imp_connected by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2136 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2137 |
lemma connected_diff_ball: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2138 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2139 |
assumes "connected s" "cball a r \<subseteq> s" "2 \<le> DIM('a)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2140 |
shows "connected (s - ball a r)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2141 |
apply (rule connected_diff_open_from_closed [OF ball_subset_cball]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2142 |
using assms connected_sphere |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2143 |
apply (auto simp: cball_diff_eq_sphere dist_norm) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2144 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2145 |
|
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2146 |
proposition connected_open_delete: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2147 |
assumes "open S" "connected S" and 2: "2 \<le> DIM('N::euclidean_space)"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2148 |
shows "connected(S - {a::'N})"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2149 |
proof (cases "a \<in> S") |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2150 |
case True |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2151 |
with \<open>open S\<close> obtain \<epsilon> where "\<epsilon> > 0" and \<epsilon>: "cball a \<epsilon> \<subseteq> S" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2152 |
using open_contains_cball_eq by blast |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2153 |
have "dist a (a + \<epsilon> *\<^sub>R (SOME i. i \<in> Basis)) = \<epsilon>" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2154 |
by (simp add: dist_norm SOME_Basis \<open>0 < \<epsilon>\<close> less_imp_le) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2155 |
with \<epsilon> have "\<Inter>{S - ball a r |r. 0 < r \<and> r < \<epsilon>} \<subseteq> {} \<Longrightarrow> False"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2156 |
apply (drule_tac c="a + scaleR (\<epsilon>) ((SOME i. i \<in> Basis))" in subsetD) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2157 |
by auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2158 |
then have nonemp: "(\<Inter>{S - ball a r |r. 0 < r \<and> r < \<epsilon>}) = {} \<Longrightarrow> False"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2159 |
by auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2160 |
have con: "\<And>r. r < \<epsilon> \<Longrightarrow> connected (S - ball a r)" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2161 |
using \<epsilon> by (force intro: connected_diff_ball [OF \<open>connected S\<close> _ 2]) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2162 |
have "x \<in> \<Union>{S - ball a r |r. 0 < r \<and> r < \<epsilon>}" if "x \<in> S - {a}" for x
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2163 |
apply (rule UnionI [of "S - ball a (min \<epsilon> (dist a x) / 2)"]) |
| 68096 | 2164 |
using that \<open>0 < \<epsilon>\<close> apply simp_all |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2165 |
apply (rule_tac x="min \<epsilon> (dist a x) / 2" in exI) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2166 |
apply auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2167 |
done |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2168 |
then have "S - {a} = \<Union>{S - ball a r | r. 0 < r \<and> r < \<epsilon>}"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2169 |
by auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2170 |
then show ?thesis |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2171 |
by (auto intro: connected_Union con dest!: nonemp) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2172 |
next |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2173 |
case False then show ?thesis |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2174 |
by (simp add: \<open>connected S\<close>) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2175 |
qed |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2176 |
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2177 |
corollary path_connected_open_delete: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2178 |
assumes "open S" "connected S" and 2: "2 \<le> DIM('N::euclidean_space)"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2179 |
shows "path_connected(S - {a::'N})"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2180 |
by (simp add: assms connected_open_delete connected_open_path_connected open_delete) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2181 |
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2182 |
corollary path_connected_punctured_ball: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2183 |
"2 \<le> DIM('N::euclidean_space) \<Longrightarrow> path_connected(ball a r - {a::'N})"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2184 |
by (simp add: path_connected_open_delete) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2185 |
|
|
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2186 |
corollary connected_punctured_ball: |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2187 |
"2 \<le> DIM('N::euclidean_space) \<Longrightarrow> connected(ball a r - {a::'N})"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2188 |
by (simp add: connected_open_delete) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2189 |
|
|
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2190 |
corollary connected_open_delete_finite: |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2191 |
fixes S T::"'a::euclidean_space set" |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2192 |
assumes S: "open S" "connected S" and 2: "2 \<le> DIM('a)" and "finite T"
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
2193 |
shows "connected(S - T)" |
|
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
2194 |
using \<open>finite T\<close> S |
|
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2195 |
proof (induct T) |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2196 |
case empty |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2197 |
show ?case using \<open>connected S\<close> by simp |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2198 |
next |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2199 |
case (insert x F) |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2200 |
then have "connected (S-F)" by auto |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2201 |
moreover have "open (S - F)" using finite_imp_closed[OF \<open>finite F\<close>] \<open>open S\<close> by auto |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2202 |
ultimately have "connected (S - F - {x})" using connected_open_delete[OF _ _ 2] by auto
|
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2203 |
thus ?case by (metis Diff_insert) |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2204 |
qed |
|
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2205 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2206 |
lemma sphere_1D_doubleton_zero: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2207 |
assumes 1: "DIM('a) = 1" and "r > 0"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2208 |
obtains x y::"'a::euclidean_space" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2209 |
where "sphere 0 r = {x,y} \<and> dist x y = 2*r"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2210 |
proof - |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2211 |
obtain b::'a where b: "Basis = {b}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2212 |
using 1 card_1_singletonE by blast |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2213 |
show ?thesis |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2214 |
proof (intro that conjI) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2215 |
have "x = norm x *\<^sub>R b \<or> x = - norm x *\<^sub>R b" if "r = norm x" for x |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2216 |
proof - |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2217 |
have xb: "(x \<bullet> b) *\<^sub>R b = x" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2218 |
using euclidean_representation [of x, unfolded b] by force |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2219 |
then have "norm ((x \<bullet> b) *\<^sub>R b) = norm x" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2220 |
by simp |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2221 |
with b have "\<bar>x \<bullet> b\<bar> = norm x" |
| 68310 | 2222 |
using norm_Basis by (simp add: b) |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2223 |
with xb show ?thesis |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2224 |
apply (simp add: abs_if split: if_split_asm) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2225 |
apply (metis add.inverse_inverse real_vector.scale_minus_left xb) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2226 |
done |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2227 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2228 |
with \<open>r > 0\<close> b show "sphere 0 r = {r *\<^sub>R b, - r *\<^sub>R b}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2229 |
by (force simp: sphere_def dist_norm) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2230 |
have "dist (r *\<^sub>R b) (- r *\<^sub>R b) = norm (r *\<^sub>R b + r *\<^sub>R b)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2231 |
by (simp add: dist_norm) |
| 68096 | 2232 |
also have "\<dots> = norm ((2*r) *\<^sub>R b)" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2233 |
by (metis mult_2 scaleR_add_left) |
| 68096 | 2234 |
also have "\<dots> = 2*r" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2235 |
using \<open>r > 0\<close> b norm_Basis by fastforce |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2236 |
finally show "dist (r *\<^sub>R b) (- r *\<^sub>R b) = 2*r" . |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2237 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2238 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2239 |
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2240 |
lemma sphere_1D_doubleton: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2241 |
fixes a :: "'a :: euclidean_space" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2242 |
assumes "DIM('a) = 1" and "r > 0"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2243 |
obtains x y where "sphere a r = {x,y} \<and> dist x y = 2*r"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2244 |
proof - |
| 67399 | 2245 |
have "sphere a r = (+) a ` sphere 0 r" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2246 |
by (metis add.right_neutral sphere_translation) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2247 |
then show ?thesis |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2248 |
using sphere_1D_doubleton_zero [OF assms] |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2249 |
by (metis (mono_tags, lifting) dist_add_cancel image_empty image_insert that) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2250 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2251 |
|
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2252 |
lemma psubset_sphere_Compl_connected: |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2253 |
fixes S :: "'a::euclidean_space set" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2254 |
assumes S: "S \<subset> sphere a r" and "0 < r" and 2: "2 \<le> DIM('a)"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2255 |
shows "connected(- S)" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2256 |
proof - |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2257 |
have "S \<subseteq> sphere a r" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2258 |
using S by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2259 |
obtain b where "dist a b = r" and "b \<notin> S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2260 |
using S mem_sphere by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2261 |
have CS: "- S = {x. dist a x \<le> r \<and> (x \<notin> S)} \<union> {x. r \<le> dist a x \<and> (x \<notin> S)}"
|
| 68096 | 2262 |
by auto |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2263 |
have "{x. dist a x \<le> r \<and> x \<notin> S} \<inter> {x. r \<le> dist a x \<and> x \<notin> S} \<noteq> {}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2264 |
using \<open>b \<notin> S\<close> \<open>dist a b = r\<close> by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2265 |
moreover have "connected {x. dist a x \<le> r \<and> x \<notin> S}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2266 |
apply (rule connected_intermediate_closure [of "ball a r"]) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2267 |
using assms by auto |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2268 |
moreover |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2269 |
have "connected {x. r \<le> dist a x \<and> x \<notin> S}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2270 |
apply (rule connected_intermediate_closure [of "- cball a r"]) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2271 |
using assms apply (auto intro: connected_complement_bounded_convex) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2272 |
apply (metis ComplI interior_cball interior_closure mem_ball not_less) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2273 |
done |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2274 |
ultimately show ?thesis |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2275 |
by (simp add: CS connected_Un) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2276 |
qed |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2277 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2278 |
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2279 |
subsection\<open>Every annulus is a connected set\<close> |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2280 |
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2281 |
lemma path_connected_2DIM_I: |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2282 |
fixes a :: "'N::euclidean_space" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2283 |
assumes 2: "2 \<le> DIM('N)" and pc: "path_connected {r. 0 \<le> r \<and> P r}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2284 |
shows "path_connected {x. P(norm(x - a))}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2285 |
proof - |
| 67399 | 2286 |
have "{x. P(norm(x - a))} = (+) a ` {x. P(norm x)}"
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2287 |
by force |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2288 |
moreover have "path_connected {x::'N. P(norm x)}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2289 |
proof - |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2290 |
let ?D = "{x. 0 \<le> x \<and> P x} \<times> sphere (0::'N) 1"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2291 |
have "x \<in> (\<lambda>z. fst z *\<^sub>R snd z) ` ?D" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2292 |
if "P (norm x)" for x::'N |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2293 |
proof (cases "x=0") |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2294 |
case True |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2295 |
with that show ?thesis |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2296 |
apply (simp add: image_iff) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2297 |
apply (rule_tac x=0 in exI, simp) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2298 |
using vector_choose_size zero_le_one by blast |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2299 |
next |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2300 |
case False |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2301 |
with that show ?thesis |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2302 |
by (rule_tac x="(norm x, x /\<^sub>R norm x)" in image_eqI) auto |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2303 |
qed |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2304 |
then have *: "{x::'N. P(norm x)} = (\<lambda>z. fst z *\<^sub>R snd z) ` ?D"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2305 |
by auto |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2306 |
have "continuous_on ?D (\<lambda>z:: real\<times>'N. fst z *\<^sub>R snd z)" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2307 |
by (intro continuous_intros) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2308 |
moreover have "path_connected ?D" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2309 |
by (metis path_connected_Times [OF pc] path_connected_sphere 2) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2310 |
ultimately show ?thesis |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2311 |
apply (subst *) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2312 |
apply (rule path_connected_continuous_image, auto) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2313 |
done |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2314 |
qed |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2315 |
ultimately show ?thesis |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2316 |
using path_connected_translation by metis |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2317 |
qed |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2318 |
|
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2319 |
proposition path_connected_annulus: |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2320 |
fixes a :: "'N::euclidean_space" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2321 |
assumes "2 \<le> DIM('N)"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2322 |
shows "path_connected {x. r1 < norm(x - a) \<and> norm(x - a) < r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2323 |
"path_connected {x. r1 < norm(x - a) \<and> norm(x - a) \<le> r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2324 |
"path_connected {x. r1 \<le> norm(x - a) \<and> norm(x - a) < r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2325 |
"path_connected {x. r1 \<le> norm(x - a) \<and> norm(x - a) \<le> r2}"
|
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2326 |
by (auto simp: is_interval_def intro!: is_interval_convex convex_imp_path_connected path_connected_2DIM_I [OF assms]) |
|
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2327 |
|
|
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2328 |
proposition connected_annulus: |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2329 |
fixes a :: "'N::euclidean_space" |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2330 |
assumes "2 \<le> DIM('N::euclidean_space)"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2331 |
shows "connected {x. r1 < norm(x - a) \<and> norm(x - a) < r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2332 |
"connected {x. r1 < norm(x - a) \<and> norm(x - a) \<le> r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2333 |
"connected {x. r1 \<le> norm(x - a) \<and> norm(x - a) < r2}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2334 |
"connected {x. r1 \<le> norm(x - a) \<and> norm(x - a) \<le> r2}"
|
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2335 |
by (auto simp: path_connected_annulus [OF assms] path_connected_imp_connected) |
| 67962 | 2336 |
|
2337 |
||
2338 |
subsection%unimportant\<open>Relations between components and path components\<close> |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2339 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2340 |
lemma open_connected_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2341 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2342 |
shows "open s \<Longrightarrow> open (connected_component_set s x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2343 |
apply (simp add: open_contains_ball, clarify) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2344 |
apply (rename_tac y) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2345 |
apply (drule_tac x=y in bspec) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2346 |
apply (simp add: connected_component_in, clarify) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2347 |
apply (rule_tac x=e in exI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2348 |
by (metis mem_Collect_eq connected_component_eq connected_component_maximal centre_in_ball connected_ball) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2349 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2350 |
corollary open_components: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2351 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2352 |
shows "\<lbrakk>open u; s \<in> components u\<rbrakk> \<Longrightarrow> open s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2353 |
by (simp add: components_iff) (metis open_connected_component) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2354 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2355 |
lemma in_closure_connected_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2356 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2357 |
assumes x: "x \<in> s" and s: "open s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2358 |
shows "x \<in> closure (connected_component_set s y) \<longleftrightarrow> x \<in> connected_component_set s y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2359 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2360 |
{ assume "x \<in> closure (connected_component_set s y)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2361 |
moreover have "x \<in> connected_component_set s x" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2362 |
using x by simp |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2363 |
ultimately have "x \<in> connected_component_set s y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2364 |
using s by (meson Compl_disjoint closure_iff_nhds_not_empty connected_component_disjoint disjoint_eq_subset_Compl open_connected_component) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2365 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2366 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2367 |
by (auto simp: closure_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2368 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2369 |
|
|
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2370 |
lemma connected_disjoint_Union_open_pick: |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2371 |
assumes "pairwise disjnt B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2372 |
"\<And>S. S \<in> A \<Longrightarrow> connected S \<and> S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2373 |
"\<And>S. S \<in> B \<Longrightarrow> open S" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2374 |
"\<Union>A \<subseteq> \<Union>B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2375 |
"S \<in> A" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2376 |
obtains T where "T \<in> B" "S \<subseteq> T" "S \<inter> \<Union>(B - {T}) = {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2377 |
proof - |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2378 |
have "S \<subseteq> \<Union>B" "connected S" "S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2379 |
using assms \<open>S \<in> A\<close> by blast+ |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2380 |
then obtain T where "T \<in> B" "S \<inter> T \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2381 |
by (metis Sup_inf_eq_bot_iff inf.absorb_iff2 inf_commute) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2382 |
have 1: "open T" by (simp add: \<open>T \<in> B\<close> assms) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2383 |
have 2: "open (\<Union>(B-{T}))" using assms by blast
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2384 |
have 3: "S \<subseteq> T \<union> \<Union>(B - {T})" using \<open>S \<subseteq> \<Union>B\<close> by blast
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2385 |
have "T \<inter> \<Union>(B - {T}) = {}" using \<open>T \<in> B\<close> \<open>pairwise disjnt B\<close>
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2386 |
by (auto simp: pairwise_def disjnt_def) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2387 |
then have 4: "T \<inter> \<Union>(B - {T}) \<inter> S = {}" by auto
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2388 |
from connectedD [OF \<open>connected S\<close> 1 2 3 4] |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2389 |
have "S \<inter> \<Union>(B-{T}) = {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2390 |
by (auto simp: Int_commute \<open>S \<inter> T \<noteq> {}\<close>)
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2391 |
with \<open>T \<in> B\<close> have "S \<subseteq> T" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2392 |
using "3" by auto |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2393 |
show ?thesis |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2394 |
using \<open>S \<inter> \<Union>(B - {T}) = {}\<close> \<open>S \<subseteq> T\<close> \<open>T \<in> B\<close> that by auto
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2395 |
qed |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2396 |
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2397 |
lemma connected_disjoint_Union_open_subset: |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2398 |
assumes A: "pairwise disjnt A" and B: "pairwise disjnt B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2399 |
and SA: "\<And>S. S \<in> A \<Longrightarrow> open S \<and> connected S \<and> S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2400 |
and SB: "\<And>S. S \<in> B \<Longrightarrow> open S \<and> connected S \<and> S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2401 |
and eq [simp]: "\<Union>A = \<Union>B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2402 |
shows "A \<subseteq> B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2403 |
proof |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2404 |
fix S |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2405 |
assume "S \<in> A" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2406 |
obtain T where "T \<in> B" "S \<subseteq> T" "S \<inter> \<Union>(B - {T}) = {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2407 |
apply (rule connected_disjoint_Union_open_pick [OF B, of A]) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2408 |
using SA SB \<open>S \<in> A\<close> by auto |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2409 |
moreover obtain S' where "S' \<in> A" "T \<subseteq> S'" "T \<inter> \<Union>(A - {S'}) = {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2410 |
apply (rule connected_disjoint_Union_open_pick [OF A, of B]) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2411 |
using SA SB \<open>T \<in> B\<close> by auto |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2412 |
ultimately have "S' = S" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2413 |
by (metis A Int_subset_iff SA \<open>S \<in> A\<close> disjnt_def inf.orderE pairwise_def) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2414 |
with \<open>T \<subseteq> S'\<close> have "T \<subseteq> S" by simp |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2415 |
with \<open>S \<subseteq> T\<close> have "S = T" by blast |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2416 |
with \<open>T \<in> B\<close> show "S \<in> B" by simp |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2417 |
qed |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2418 |
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2419 |
lemma connected_disjoint_Union_open_unique: |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2420 |
assumes A: "pairwise disjnt A" and B: "pairwise disjnt B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2421 |
and SA: "\<And>S. S \<in> A \<Longrightarrow> open S \<and> connected S \<and> S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2422 |
and SB: "\<And>S. S \<in> B \<Longrightarrow> open S \<and> connected S \<and> S \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2423 |
and eq [simp]: "\<Union>A = \<Union>B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2424 |
shows "A = B" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2425 |
by (rule subset_antisym; metis connected_disjoint_Union_open_subset assms) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2426 |
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2427 |
proposition components_open_unique: |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2428 |
fixes S :: "'a::real_normed_vector set" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2429 |
assumes "pairwise disjnt A" "\<Union>A = S" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2430 |
"\<And>X. X \<in> A \<Longrightarrow> open X \<and> connected X \<and> X \<noteq> {}"
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2431 |
shows "components S = A" |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2432 |
proof - |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2433 |
have "open S" using assms by blast |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2434 |
show ?thesis |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2435 |
apply (rule connected_disjoint_Union_open_unique) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2436 |
apply (simp add: components_eq disjnt_def pairwise_def) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2437 |
using \<open>open S\<close> |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2438 |
apply (simp_all add: assms open_components in_components_connected in_components_nonempty) |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2439 |
done |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2440 |
qed |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2441 |
|
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2442 |
|
| 67962 | 2443 |
subsection%unimportant\<open>Existence of unbounded components\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2444 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2445 |
lemma cobounded_unbounded_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2446 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2447 |
assumes "bounded (-s)" |
| 69508 | 2448 |
shows "\<exists>x. x \<in> s \<and> \<not> bounded (connected_component_set s x)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2449 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2450 |
obtain i::'a where i: "i \<in> Basis" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2451 |
using nonempty_Basis by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2452 |
obtain B where B: "B>0" "-s \<subseteq> ball 0 B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2453 |
using bounded_subset_ballD [OF assms, of 0] by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2454 |
then have *: "\<And>x. B \<le> norm x \<Longrightarrow> x \<in> s" |
| 68096 | 2455 |
by (force simp: ball_def dist_norm) |
| 69508 | 2456 |
have unbounded_inner: "\<not> bounded {x. inner i x \<ge> B}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2457 |
apply (auto simp: bounded_def dist_norm) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2458 |
apply (rule_tac x="x + (max B e + 1 + \<bar>i \<bullet> x\<bar>) *\<^sub>R i" in exI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2459 |
apply simp |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2460 |
using i |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2461 |
apply (auto simp: algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2462 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2463 |
have **: "{x. B \<le> i \<bullet> x} \<subseteq> connected_component_set s (B *\<^sub>R i)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2464 |
apply (rule connected_component_maximal) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2465 |
apply (auto simp: i intro: convex_connected convex_halfspace_ge [of B]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2466 |
apply (rule *) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2467 |
apply (rule order_trans [OF _ Basis_le_norm [OF i]]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2468 |
by (simp add: inner_commute) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2469 |
have "B *\<^sub>R i \<in> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2470 |
by (rule *) (simp add: norm_Basis [OF i]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2471 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2472 |
apply (rule_tac x="B *\<^sub>R i" in exI, clarify) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2473 |
apply (frule bounded_subset [of _ "{x. B \<le> i \<bullet> x}", OF _ **])
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2474 |
using unbounded_inner apply blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2475 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2476 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2477 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2478 |
lemma cobounded_unique_unbounded_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2479 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2480 |
assumes bs: "bounded (-s)" and "2 \<le> DIM('a)"
|
| 69508 | 2481 |
and bo: "\<not> bounded(connected_component_set s x)" |
2482 |
"\<not> bounded(connected_component_set s y)" |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2483 |
shows "connected_component_set s x = connected_component_set s y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2484 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2485 |
obtain i::'a where i: "i \<in> Basis" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2486 |
using nonempty_Basis by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2487 |
obtain B where B: "B>0" "-s \<subseteq> ball 0 B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2488 |
using bounded_subset_ballD [OF bs, of 0] by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2489 |
then have *: "\<And>x. B \<le> norm x \<Longrightarrow> x \<in> s" |
| 68096 | 2490 |
by (force simp: ball_def dist_norm) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2491 |
have ccb: "connected (- ball 0 B :: 'a set)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2492 |
using assms by (auto intro: connected_complement_bounded_convex) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2493 |
obtain x' where x': "connected_component s x x'" "norm x' > B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2494 |
using bo [unfolded bounded_def dist_norm, simplified, rule_format] |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2495 |
by (metis diff_zero norm_minus_commute not_less) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2496 |
obtain y' where y': "connected_component s y y'" "norm y' > B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2497 |
using bo [unfolded bounded_def dist_norm, simplified, rule_format] |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2498 |
by (metis diff_zero norm_minus_commute not_less) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2499 |
have x'y': "connected_component s x' y'" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2500 |
apply (simp add: connected_component_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2501 |
apply (rule_tac x="- ball 0 B" in exI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2502 |
using x' y' |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2503 |
apply (auto simp: ccb dist_norm *) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2504 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2505 |
show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2506 |
apply (rule connected_component_eq) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2507 |
using x' y' x'y' |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2508 |
by (metis (no_types, lifting) connected_component_eq_empty connected_component_eq_eq connected_component_idemp connected_component_in) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2509 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2510 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2511 |
lemma cobounded_unbounded_components: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2512 |
fixes s :: "'a :: euclidean_space set" |
| 69508 | 2513 |
shows "bounded (-s) \<Longrightarrow> \<exists>c. c \<in> components s \<and> \<not>bounded c" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2514 |
by (metis cobounded_unbounded_component components_def imageI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2515 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2516 |
lemma cobounded_unique_unbounded_components: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2517 |
fixes s :: "'a :: euclidean_space set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2518 |
shows "\<lbrakk>bounded (- s); c \<in> components s; \<not> bounded c; c' \<in> components s; \<not> bounded c'; 2 \<le> DIM('a)\<rbrakk> \<Longrightarrow> c' = c"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2519 |
unfolding components_iff |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2520 |
by (metis cobounded_unique_unbounded_component) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2521 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2522 |
lemma cobounded_has_bounded_component: |
| 64122 | 2523 |
fixes S :: "'a :: euclidean_space set" |
2524 |
assumes "bounded (- S)" "\<not> connected S" "2 \<le> DIM('a)"
|
|
2525 |
obtains C where "C \<in> components S" "bounded C" |
|
2526 |
by (meson cobounded_unique_unbounded_components connected_eq_connected_components_eq assms) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2527 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2528 |
|
| 69620 | 2529 |
subsection\<open>The \<open>inside\<close> and \<open>outside\<close> of a Set\<close> |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2530 |
|
| 67962 | 2531 |
text%important\<open>The inside comprises the points in a bounded connected component of the set's complement. |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2532 |
The outside comprises the points in unbounded connected component of the complement.\<close> |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2533 |
|
| 67962 | 2534 |
definition%important inside where |
| 68096 | 2535 |
"inside S \<equiv> {x. (x \<notin> S) \<and> bounded(connected_component_set ( - S) x)}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2536 |
|
| 67962 | 2537 |
definition%important outside where |
| 69508 | 2538 |
"outside S \<equiv> -S \<inter> {x. \<not> bounded(connected_component_set (- S) x)}"
|
2539 |
||
2540 |
lemma outside: "outside S = {x. \<not> bounded(connected_component_set (- S) x)}"
|
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2541 |
by (auto simp: outside_def) (metis Compl_iff bounded_empty connected_component_eq_empty) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2542 |
|
| 68096 | 2543 |
lemma inside_no_overlap [simp]: "inside S \<inter> S = {}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2544 |
by (auto simp: inside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2545 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2546 |
lemma outside_no_overlap [simp]: |
| 68096 | 2547 |
"outside S \<inter> S = {}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2548 |
by (auto simp: outside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2549 |
|
| 68096 | 2550 |
lemma inside_Int_outside [simp]: "inside S \<inter> outside S = {}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2551 |
by (auto simp: inside_def outside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2552 |
|
| 68096 | 2553 |
lemma inside_Un_outside [simp]: "inside S \<union> outside S = (- S)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2554 |
by (auto simp: inside_def outside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2555 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2556 |
lemma inside_eq_outside: |
| 68096 | 2557 |
"inside S = outside S \<longleftrightarrow> S = UNIV" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2558 |
by (auto simp: inside_def outside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2559 |
|
| 68096 | 2560 |
lemma inside_outside: "inside S = (- (S \<union> outside S))" |
2561 |
by (force simp: inside_def outside) |
|
2562 |
||
2563 |
lemma outside_inside: "outside S = (- (S \<union> inside S))" |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2564 |
by (auto simp: inside_outside) (metis IntI equals0D outside_no_overlap) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2565 |
|
| 68096 | 2566 |
lemma union_with_inside: "S \<union> inside S = - outside S" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2567 |
by (auto simp: inside_outside) (simp add: outside_inside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2568 |
|
| 68096 | 2569 |
lemma union_with_outside: "S \<union> outside S = - inside S" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2570 |
by (simp add: inside_outside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2571 |
|
| 68096 | 2572 |
lemma outside_mono: "S \<subseteq> T \<Longrightarrow> outside T \<subseteq> outside S" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2573 |
by (auto simp: outside bounded_subset connected_component_mono) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2574 |
|
| 68096 | 2575 |
lemma inside_mono: "S \<subseteq> T \<Longrightarrow> inside S - T \<subseteq> inside T" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2576 |
by (auto simp: inside_def bounded_subset connected_component_mono) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2577 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2578 |
lemma segment_bound_lemma: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2579 |
fixes u::real |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2580 |
assumes "x \<ge> B" "y \<ge> B" "0 \<le> u" "u \<le> 1" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2581 |
shows "(1 - u) * x + u * y \<ge> B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2582 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2583 |
obtain dx dy where "dx \<ge> 0" "dy \<ge> 0" "x = B + dx" "y = B + dy" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2584 |
using assms by auto (metis add.commute diff_add_cancel) |
| 61808 | 2585 |
with \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> show ?thesis |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2586 |
by (simp add: add_increasing2 mult_left_le field_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2587 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2588 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2589 |
lemma cobounded_outside: |
| 68096 | 2590 |
fixes S :: "'a :: real_normed_vector set" |
2591 |
assumes "bounded S" shows "bounded (- outside S)" |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2592 |
proof - |
| 68096 | 2593 |
obtain B where B: "B>0" "S \<subseteq> ball 0 B" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2594 |
using bounded_subset_ballD [OF assms, of 0] by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2595 |
{ fix x::'a and C::real
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2596 |
assume Bno: "B \<le> norm x" and C: "0 < C" |
| 68096 | 2597 |
have "\<exists>y. connected_component (- S) x y \<and> norm y > C" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2598 |
proof (cases "x = 0") |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2599 |
case True with B Bno show ?thesis by force |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2600 |
next |
| 68096 | 2601 |
case False |
2602 |
with B C |
|
2603 |
have "closed_segment x (((B + C) / norm x) *\<^sub>R x) \<subseteq> - ball 0 B" |
|
2604 |
apply (clarsimp simp add: closed_segment_def ball_def dist_norm real_vector_class.scaleR_add_left [symmetric] divide_simps) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2605 |
using segment_bound_lemma [of B "norm x" "B+C" ] Bno |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2606 |
by (meson le_add_same_cancel1 less_eq_real_def not_le) |
| 68096 | 2607 |
also have "... \<subseteq> -S" |
2608 |
by (simp add: B) |
|
2609 |
finally have "\<exists>T. connected T \<and> T \<subseteq> - S \<and> x \<in> T \<and> ((B + C) / norm x) *\<^sub>R x \<in> T" |
|
2610 |
by (rule_tac x="closed_segment x (((B+C)/norm x) *\<^sub>R x)" in exI) simp |
|
2611 |
with False B |
|
2612 |
show ?thesis |
|
2613 |
by (rule_tac x="((B+C)/norm x) *\<^sub>R x" in exI) (simp add: connected_component_def) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2614 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2615 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2616 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2617 |
apply (simp add: outside_def assms) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2618 |
apply (rule bounded_subset [OF bounded_ball [of 0 B]]) |
| 68096 | 2619 |
apply (force simp: dist_norm not_less bounded_pos) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2620 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2621 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2622 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2623 |
lemma unbounded_outside: |
| 68096 | 2624 |
fixes S :: "'a::{real_normed_vector, perfect_space} set"
|
| 69508 | 2625 |
shows "bounded S \<Longrightarrow> \<not> bounded(outside S)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2626 |
using cobounded_imp_unbounded cobounded_outside by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2627 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2628 |
lemma bounded_inside: |
| 68096 | 2629 |
fixes S :: "'a::{real_normed_vector, perfect_space} set"
|
2630 |
shows "bounded S \<Longrightarrow> bounded(inside S)" |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2631 |
by (simp add: bounded_Int cobounded_outside inside_outside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2632 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2633 |
lemma connected_outside: |
| 68096 | 2634 |
fixes S :: "'a::euclidean_space set" |
2635 |
assumes "bounded S" "2 \<le> DIM('a)"
|
|
2636 |
shows "connected(outside S)" |
|
2637 |
apply (clarsimp simp add: connected_iff_connected_component outside) |
|
2638 |
apply (rule_tac s="connected_component_set (- S) x" in connected_component_of_subset) |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2639 |
apply (metis (no_types) assms cobounded_unbounded_component cobounded_unique_unbounded_component connected_component_eq_eq connected_component_idemp double_complement mem_Collect_eq) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2640 |
apply clarify |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2641 |
apply (metis connected_component_eq_eq connected_component_in) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2642 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2643 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2644 |
lemma outside_connected_component_lt: |
| 68096 | 2645 |
"outside S = {x. \<forall>B. \<exists>y. B < norm(y) \<and> connected_component (- S) x y}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2646 |
apply (auto simp: outside bounded_def dist_norm) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2647 |
apply (metis diff_0 norm_minus_cancel not_less) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2648 |
by (metis less_diff_eq norm_minus_commute norm_triangle_ineq2 order.trans pinf(6)) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2649 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2650 |
lemma outside_connected_component_le: |
| 68096 | 2651 |
"outside S = |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2652 |
{x. \<forall>B. \<exists>y. B \<le> norm(y) \<and>
|
| 68096 | 2653 |
connected_component (- S) x y}" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2654 |
apply (simp add: outside_connected_component_lt) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2655 |
apply (simp add: Set.set_eq_iff) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2656 |
by (meson gt_ex leD le_less_linear less_imp_le order.trans) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2657 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2658 |
lemma not_outside_connected_component_lt: |
| 68096 | 2659 |
fixes S :: "'a::euclidean_space set" |
2660 |
assumes S: "bounded S" and "2 \<le> DIM('a)"
|
|
| 69508 | 2661 |
shows "- (outside S) = {x. \<forall>B. \<exists>y. B < norm(y) \<and> \<not> connected_component (- S) x y}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2662 |
proof - |
| 68096 | 2663 |
obtain B::real where B: "0 < B" and Bno: "\<And>x. x \<in> S \<Longrightarrow> norm x \<le> B" |
2664 |
using S [simplified bounded_pos] by auto |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2665 |
{ fix y::'a and z::'a
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2666 |
assume yz: "B < norm z" "B < norm y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2667 |
have "connected_component (- cball 0 B) y z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2668 |
apply (rule connected_componentI [OF _ subset_refl]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2669 |
apply (rule connected_complement_bounded_convex) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2670 |
using assms yz |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2671 |
by (auto simp: dist_norm) |
| 68096 | 2672 |
then have "connected_component (- S) y z" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2673 |
apply (rule connected_component_of_subset) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2674 |
apply (metis Bno Compl_anti_mono mem_cball_0 subset_iff) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2675 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2676 |
} note cyz = this |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2677 |
show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2678 |
apply (auto simp: outside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2679 |
apply (metis Compl_iff bounded_iff cobounded_imp_unbounded mem_Collect_eq not_le) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2680 |
apply (simp add: bounded_pos) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2681 |
by (metis B connected_component_trans cyz not_le) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2682 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2683 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2684 |
lemma not_outside_connected_component_le: |
| 68096 | 2685 |
fixes S :: "'a::euclidean_space set" |
2686 |
assumes S: "bounded S" "2 \<le> DIM('a)"
|
|
| 69508 | 2687 |
shows "- (outside S) = {x. \<forall>B. \<exists>y. B \<le> norm(y) \<and> \<not> connected_component (- S) x y}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2688 |
apply (auto intro: less_imp_le simp: not_outside_connected_component_lt [OF assms]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2689 |
by (meson gt_ex less_le_trans) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2690 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2691 |
lemma inside_connected_component_lt: |
| 68096 | 2692 |
fixes S :: "'a::euclidean_space set" |
2693 |
assumes S: "bounded S" "2 \<le> DIM('a)"
|
|
| 69508 | 2694 |
shows "inside S = {x. (x \<notin> S) \<and> (\<forall>B. \<exists>y. B < norm(y) \<and> \<not> connected_component (- S) x y)}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2695 |
by (auto simp: inside_outside not_outside_connected_component_lt [OF assms]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2696 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2697 |
lemma inside_connected_component_le: |
| 68096 | 2698 |
fixes S :: "'a::euclidean_space set" |
2699 |
assumes S: "bounded S" "2 \<le> DIM('a)"
|
|
| 69508 | 2700 |
shows "inside S = {x. (x \<notin> S) \<and> (\<forall>B. \<exists>y. B \<le> norm(y) \<and> \<not> connected_component (- S) x y)}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2701 |
by (auto simp: inside_outside not_outside_connected_component_le [OF assms]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2702 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2703 |
lemma inside_subset: |
| 69508 | 2704 |
assumes "connected U" and "\<not> bounded U" and "T \<union> U = - S" |
| 68096 | 2705 |
shows "inside S \<subseteq> T" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2706 |
apply (auto simp: inside_def) |
| 68096 | 2707 |
by (metis bounded_subset [of "connected_component_set (- S) _"] connected_component_maximal |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2708 |
Compl_iff Un_iff assms subsetI) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2709 |
|
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2710 |
lemma frontier_not_empty: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2711 |
fixes S :: "'a :: real_normed_vector set" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2712 |
shows "\<lbrakk>S \<noteq> {}; S \<noteq> UNIV\<rbrakk> \<Longrightarrow> frontier S \<noteq> {}"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2713 |
using connected_Int_frontier [of UNIV S] by auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2714 |
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2715 |
lemma frontier_eq_empty: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2716 |
fixes S :: "'a :: real_normed_vector set" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2717 |
shows "frontier S = {} \<longleftrightarrow> S = {} \<or> S = UNIV"
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2718 |
using frontier_UNIV frontier_empty frontier_not_empty by blast |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2719 |
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2720 |
lemma frontier_of_connected_component_subset: |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2721 |
fixes S :: "'a::real_normed_vector set" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2722 |
shows "frontier(connected_component_set S x) \<subseteq> frontier S" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2723 |
proof - |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2724 |
{ fix y
|
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2725 |
assume y1: "y \<in> closure (connected_component_set S x)" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2726 |
and y2: "y \<notin> interior (connected_component_set S x)" |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2727 |
have "y \<in> closure S" |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2728 |
using y1 closure_mono connected_component_subset by blast |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2729 |
moreover have "z \<in> interior (connected_component_set S x)" |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2730 |
if "0 < e" "ball y e \<subseteq> interior S" "dist y z < e" for e z |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2731 |
proof - |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2732 |
have "ball y e \<subseteq> connected_component_set S y" |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2733 |
apply (rule connected_component_maximal) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2734 |
using that interior_subset mem_ball apply auto |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2735 |
done |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2736 |
then show ?thesis |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2737 |
using y1 apply (simp add: closure_approachable open_contains_ball_eq [OF open_interior]) |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2738 |
by (metis connected_component_eq dist_commute mem_Collect_eq mem_ball mem_interior subsetD \<open>0 < e\<close> y2) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2739 |
qed |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2740 |
then have "y \<notin> interior S" |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2741 |
using y2 by (force simp: open_contains_ball_eq [OF open_interior]) |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2742 |
ultimately have "y \<in> frontier S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2743 |
by (auto simp: frontier_def) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2744 |
} |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2745 |
then show ?thesis by (auto simp: frontier_def) |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2746 |
qed |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2747 |
|
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2748 |
lemma frontier_Union_subset_closure: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2749 |
fixes F :: "'a::real_normed_vector set set" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2750 |
shows "frontier(\<Union>F) \<subseteq> closure(\<Union>t \<in> F. frontier t)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2751 |
proof - |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2752 |
have "\<exists>y\<in>F. \<exists>y\<in>frontier y. dist y x < e" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2753 |
if "T \<in> F" "y \<in> T" "dist y x < e" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2754 |
"x \<notin> interior (\<Union>F)" "0 < e" for x y e T |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2755 |
proof (cases "x \<in> T") |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2756 |
case True with that show ?thesis |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2757 |
by (metis Diff_iff Sup_upper closure_subset contra_subsetD dist_self frontier_def interior_mono) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2758 |
next |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2759 |
case False |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2760 |
have 1: "closed_segment x y \<inter> T \<noteq> {}" using \<open>y \<in> T\<close> by blast
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2761 |
have 2: "closed_segment x y - T \<noteq> {}"
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2762 |
using False by blast |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2763 |
obtain c where "c \<in> closed_segment x y" "c \<in> frontier T" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2764 |
using False connected_Int_frontier [OF connected_segment 1 2] by auto |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2765 |
then show ?thesis |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2766 |
proof - |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2767 |
have "norm (y - x) < e" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2768 |
by (metis dist_norm \<open>dist y x < e\<close>) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2769 |
moreover have "norm (c - x) \<le> norm (y - x)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2770 |
by (simp add: \<open>c \<in> closed_segment x y\<close> segment_bound(1)) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2771 |
ultimately have "norm (c - x) < e" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2772 |
by linarith |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2773 |
then show ?thesis |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2774 |
by (metis (no_types) \<open>c \<in> frontier T\<close> dist_norm that(1)) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2775 |
qed |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2776 |
qed |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2777 |
then show ?thesis |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2778 |
by (fastforce simp add: frontier_def closure_approachable) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2779 |
qed |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2780 |
|
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2781 |
lemma frontier_Union_subset: |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2782 |
fixes F :: "'a::real_normed_vector set set" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2783 |
shows "finite F \<Longrightarrow> frontier(\<Union>F) \<subseteq> (\<Union>t \<in> F. frontier t)" |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2784 |
by (rule order_trans [OF frontier_Union_subset_closure]) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2785 |
(auto simp: closure_subset_eq) |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
2786 |
|
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2787 |
lemma frontier_of_components_subset: |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2788 |
fixes S :: "'a::real_normed_vector set" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2789 |
shows "C \<in> components S \<Longrightarrow> frontier C \<subseteq> frontier S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2790 |
by (metis Path_Connected.frontier_of_connected_component_subset components_iff) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2791 |
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2792 |
lemma frontier_of_components_closed_complement: |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2793 |
fixes S :: "'a::real_normed_vector set" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2794 |
shows "\<lbrakk>closed S; C \<in> components (- S)\<rbrakk> \<Longrightarrow> frontier C \<subseteq> S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2795 |
using frontier_complement frontier_of_components_subset frontier_subset_eq by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2796 |
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2797 |
lemma frontier_minimal_separating_closed: |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2798 |
fixes S :: "'a::real_normed_vector set" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2799 |
assumes "closed S" |
| 69508 | 2800 |
and nconn: "\<not> connected(- S)" |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2801 |
and C: "C \<in> components (- S)" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2802 |
and conn: "\<And>T. \<lbrakk>closed T; T \<subset> S\<rbrakk> \<Longrightarrow> connected(- T)" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2803 |
shows "frontier C = S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2804 |
proof (rule ccontr) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2805 |
assume "frontier C \<noteq> S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2806 |
then have "frontier C \<subset> S" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2807 |
using frontier_of_components_closed_complement [OF \<open>closed S\<close> C] by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2808 |
then have "connected(- (frontier C))" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2809 |
by (simp add: conn) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2810 |
have "\<not> connected(- (frontier C))" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2811 |
unfolding connected_def not_not |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2812 |
proof (intro exI conjI) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2813 |
show "open C" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2814 |
using C \<open>closed S\<close> open_components by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2815 |
show "open (- closure C)" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2816 |
by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2817 |
show "C \<inter> - closure C \<inter> - frontier C = {}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2818 |
using closure_subset by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2819 |
show "C \<inter> - frontier C \<noteq> {}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2820 |
using C \<open>open C\<close> components_eq frontier_disjoint_eq by fastforce |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2821 |
show "- frontier C \<subseteq> C \<union> - closure C" |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2822 |
by (simp add: \<open>open C\<close> closed_Compl frontier_closures) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2823 |
then show "- closure C \<inter> - frontier C \<noteq> {}"
|
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2824 |
by (metis (no_types, lifting) C Compl_subset_Compl_iff \<open>frontier C \<subset> S\<close> compl_sup frontier_closures in_components_subset psubsetE sup.absorb_iff2 sup.boundedE sup_bot.right_neutral sup_inf_absorb) |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2825 |
qed |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2826 |
then show False |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2827 |
using \<open>connected (- frontier C)\<close> by blast |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2828 |
qed |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2829 |
|
|
62843
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
2830 |
lemma connected_component_UNIV [simp]: |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2831 |
fixes x :: "'a::real_normed_vector" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2832 |
shows "connected_component_set UNIV x = UNIV" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2833 |
using connected_iff_eq_connected_component_set [of "UNIV::'a set"] connected_UNIV |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2834 |
by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2835 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2836 |
lemma connected_component_eq_UNIV: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2837 |
fixes x :: "'a::real_normed_vector" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2838 |
shows "connected_component_set s x = UNIV \<longleftrightarrow> s = UNIV" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2839 |
using connected_component_in connected_component_UNIV by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2840 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2841 |
lemma components_UNIV [simp]: "components UNIV = {UNIV :: 'a::real_normed_vector set}"
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2842 |
by (auto simp: components_eq_sing_iff) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2843 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2844 |
lemma interior_inside_frontier: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2845 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2846 |
assumes "bounded s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2847 |
shows "interior s \<subseteq> inside (frontier s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2848 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2849 |
{ fix x y
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2850 |
assume x: "x \<in> interior s" and y: "y \<notin> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2851 |
and cc: "connected_component (- frontier s) x y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2852 |
have "connected_component_set (- frontier s) x \<inter> frontier s \<noteq> {}"
|
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2853 |
apply (rule connected_Int_frontier, simp) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2854 |
apply (metis IntI cc connected_component_in connected_component_refl empty_iff interiorE mem_Collect_eq set_rev_mp x) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2855 |
using y cc |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2856 |
by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2857 |
then have "bounded (connected_component_set (- frontier s) x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2858 |
using connected_component_in by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2859 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2860 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2861 |
apply (auto simp: inside_def frontier_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2862 |
apply (rule classical) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2863 |
apply (rule bounded_subset [OF assms], blast) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2864 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2865 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2866 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2867 |
lemma inside_empty [simp]: "inside {} = ({} :: 'a :: {real_normed_vector, perfect_space} set)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2868 |
by (simp add: inside_def connected_component_UNIV) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2869 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2870 |
lemma outside_empty [simp]: "outside {} = (UNIV :: 'a :: {real_normed_vector, perfect_space} set)"
|
| 63955 | 2871 |
using inside_empty inside_Un_outside by blast |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2872 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2873 |
lemma inside_same_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2874 |
"\<lbrakk>connected_component (- s) x y; x \<in> inside s\<rbrakk> \<Longrightarrow> y \<in> inside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2875 |
using connected_component_eq connected_component_in |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2876 |
by (fastforce simp add: inside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2877 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2878 |
lemma outside_same_component: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2879 |
"\<lbrakk>connected_component (- s) x y; x \<in> outside s\<rbrakk> \<Longrightarrow> y \<in> outside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2880 |
using connected_component_eq connected_component_in |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2881 |
by (fastforce simp add: outside_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2882 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2883 |
lemma convex_in_outside: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2884 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2885 |
assumes s: "convex s" and z: "z \<notin> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2886 |
shows "z \<in> outside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2887 |
proof (cases "s={}")
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2888 |
case True then show ?thesis by simp |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2889 |
next |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2890 |
case False then obtain a where "a \<in> s" by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2891 |
with z have zna: "z \<noteq> a" by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2892 |
{ assume "bounded (connected_component_set (- s) z)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2893 |
with bounded_pos_less obtain B where "B>0" and B: "\<And>x. connected_component (- s) z x \<Longrightarrow> norm x < B" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2894 |
by (metis mem_Collect_eq) |
| 63040 | 2895 |
define C where "C = (B + 1 + norm z) / norm (z-a)" |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2896 |
have "C > 0" |
| 61808 | 2897 |
using \<open>0 < B\<close> zna by (simp add: C_def divide_simps add_strict_increasing) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2898 |
have "\<bar>norm (z + C *\<^sub>R (z-a)) - norm (C *\<^sub>R (z-a))\<bar> \<le> norm z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2899 |
by (metis add_diff_cancel norm_triangle_ineq3) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2900 |
moreover have "norm (C *\<^sub>R (z-a)) > norm z + B" |
| 61808 | 2901 |
using zna \<open>B>0\<close> by (simp add: C_def le_max_iff_disj field_simps) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2902 |
ultimately have C: "norm (z + C *\<^sub>R (z-a)) > B" by linarith |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2903 |
{ fix u::real
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2904 |
assume u: "0\<le>u" "u\<le>1" and ins: "(1 - u) *\<^sub>R z + u *\<^sub>R (z + C *\<^sub>R (z - a)) \<in> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2905 |
then have Cpos: "1 + u * C > 0" |
| 61808 | 2906 |
by (meson \<open>0 < C\<close> add_pos_nonneg less_eq_real_def zero_le_mult_iff zero_less_one) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2907 |
then have *: "(1 / (1 + u * C)) *\<^sub>R z + (u * C / (1 + u * C)) *\<^sub>R z = z" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2908 |
by (simp add: scaleR_add_left [symmetric] divide_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2909 |
then have False |
| 61808 | 2910 |
using convexD_alt [OF s \<open>a \<in> s\<close> ins, of "1/(u*C + 1)"] \<open>C>0\<close> \<open>z \<notin> s\<close> Cpos u |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2911 |
by (simp add: * divide_simps algebra_simps) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2912 |
} note contra = this |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2913 |
have "connected_component (- s) z (z + C *\<^sub>R (z-a))" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2914 |
apply (rule connected_componentI [OF connected_segment [of z "z + C *\<^sub>R (z-a)"]]) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2915 |
apply (simp add: closed_segment_def) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2916 |
using contra |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2917 |
apply auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2918 |
done |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2919 |
then have False |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2920 |
using zna B [of "z + C *\<^sub>R (z-a)"] C |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2921 |
by (auto simp: divide_simps max_mult_distrib_right) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2922 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2923 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2924 |
by (auto simp: outside_def z) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2925 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2926 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2927 |
lemma outside_convex: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2928 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2929 |
assumes "convex s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2930 |
shows "outside s = - s" |
| 63955 | 2931 |
by (metis ComplD assms convex_in_outside equalityI inside_Un_outside subsetI sup.cobounded2) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2932 |
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2933 |
lemma outside_singleton [simp]: |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2934 |
fixes x :: "'a :: {real_normed_vector, perfect_space}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2935 |
shows "outside {x} = -{x}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2936 |
by (auto simp: outside_convex) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2937 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2938 |
lemma inside_convex: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2939 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2940 |
shows "convex s \<Longrightarrow> inside s = {}"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2941 |
by (simp add: inside_outside outside_convex) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2942 |
|
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2943 |
lemma inside_singleton [simp]: |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2944 |
fixes x :: "'a :: {real_normed_vector, perfect_space}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2945 |
shows "inside {x} = {}"
|
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2946 |
by (auto simp: inside_convex) |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2947 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2948 |
lemma outside_subset_convex: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2949 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2950 |
shows "\<lbrakk>convex t; s \<subseteq> t\<rbrakk> \<Longrightarrow> - t \<subseteq> outside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2951 |
using outside_convex outside_mono by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2952 |
|
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2953 |
lemma outside_Un_outside_Un: |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2954 |
fixes S :: "'a::real_normed_vector set" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2955 |
assumes "S \<inter> outside(T \<union> U) = {}"
|
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2956 |
shows "outside(T \<union> U) \<subseteq> outside(T \<union> S)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2957 |
proof |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2958 |
fix x |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2959 |
assume x: "x \<in> outside (T \<union> U)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2960 |
have "Y \<subseteq> - S" if "connected Y" "Y \<subseteq> - T" "Y \<subseteq> - U" "x \<in> Y" "u \<in> Y" for u Y |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2961 |
proof - |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2962 |
have "Y \<subseteq> connected_component_set (- (T \<union> U)) x" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2963 |
by (simp add: connected_component_maximal that) |
| 68096 | 2964 |
also have "\<dots> \<subseteq> outside(T \<union> U)" |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2965 |
by (metis (mono_tags, lifting) Collect_mono mem_Collect_eq outside outside_same_component x) |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2966 |
finally have "Y \<subseteq> outside(T \<union> U)" . |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2967 |
with assms show ?thesis by auto |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2968 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2969 |
with x show "x \<in> outside (T \<union> S)" |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2970 |
by (simp add: outside_connected_component_lt connected_component_def) meson |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2971 |
qed |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2972 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2973 |
lemma outside_frontier_misses_closure: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2974 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2975 |
assumes "bounded s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2976 |
shows "outside(frontier s) \<subseteq> - closure s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2977 |
unfolding outside_inside Lattices.boolean_algebra_class.compl_le_compl_iff |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2978 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2979 |
{ assume "interior s \<subseteq> inside (frontier s)"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2980 |
hence "interior s \<union> inside (frontier s) = inside (frontier s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2981 |
by (simp add: subset_Un_eq) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2982 |
then have "closure s \<subseteq> frontier s \<union> inside (frontier s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2983 |
using frontier_def by auto |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2984 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2985 |
then show "closure s \<subseteq> frontier s \<union> inside (frontier s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2986 |
using interior_inside_frontier [OF assms] by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2987 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2988 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2989 |
lemma outside_frontier_eq_complement_closure: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2990 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2991 |
assumes "bounded s" "convex s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2992 |
shows "outside(frontier s) = - closure s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2993 |
by (metis Diff_subset assms convex_closure frontier_def outside_frontier_misses_closure |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2994 |
outside_subset_convex subset_antisym) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2995 |
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
2996 |
lemma inside_frontier_eq_interior: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
2997 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
2998 |
shows "\<lbrakk>bounded s; convex s\<rbrakk> \<Longrightarrow> inside(frontier s) = interior s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
2999 |
apply (simp add: inside_outside outside_frontier_eq_complement_closure) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3000 |
using closure_subset interior_subset |
| 68096 | 3001 |
apply (auto simp: frontier_def) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3002 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3003 |
|
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3004 |
lemma open_inside: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3005 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3006 |
assumes "closed s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3007 |
shows "open (inside s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3008 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3009 |
{ fix x assume x: "x \<in> inside s"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3010 |
have "open (connected_component_set (- s) x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3011 |
using assms open_connected_component by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3012 |
then obtain e where e: "e>0" and e: "\<And>y. dist y x < e \<longrightarrow> connected_component (- s) x y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3013 |
using dist_not_less_zero |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3014 |
apply (simp add: open_dist) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3015 |
by (metis (no_types, lifting) Compl_iff connected_component_refl_eq inside_def mem_Collect_eq x) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3016 |
then have "\<exists>e>0. ball x e \<subseteq> inside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3017 |
by (metis e dist_commute inside_same_component mem_ball subsetI x) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3018 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3019 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3020 |
by (simp add: open_contains_ball) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3021 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3022 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3023 |
lemma open_outside: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3024 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3025 |
assumes "closed s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3026 |
shows "open (outside s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3027 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3028 |
{ fix x assume x: "x \<in> outside s"
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3029 |
have "open (connected_component_set (- s) x)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3030 |
using assms open_connected_component by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3031 |
then obtain e where e: "e>0" and e: "\<And>y. dist y x < e \<longrightarrow> connected_component (- s) x y" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3032 |
using dist_not_less_zero |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3033 |
apply (simp add: open_dist) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3034 |
by (metis Int_iff outside_def connected_component_refl_eq x) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3035 |
then have "\<exists>e>0. ball x e \<subseteq> outside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3036 |
by (metis e dist_commute outside_same_component mem_ball subsetI x) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3037 |
} |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3038 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3039 |
by (simp add: open_contains_ball) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3040 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3041 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3042 |
lemma closure_inside_subset: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3043 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3044 |
assumes "closed s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3045 |
shows "closure(inside s) \<subseteq> s \<union> inside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3046 |
by (metis assms closure_minimal open_closed open_outside sup.cobounded2 union_with_inside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3047 |
|
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3048 |
lemma frontier_inside_subset: |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3049 |
fixes s :: "'a::real_normed_vector set" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3050 |
assumes "closed s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3051 |
shows "frontier(inside s) \<subseteq> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3052 |
proof - |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3053 |
have "closure (inside s) \<inter> - inside s = closure (inside s) - interior (inside s)" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3054 |
by (metis (no_types) Diff_Compl assms closure_closed interior_closure open_closed open_inside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3055 |
moreover have "- inside s \<inter> - outside s = s" |
| 63955 | 3056 |
by (metis (no_types) compl_sup double_compl inside_Un_outside) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3057 |
moreover have "closure (inside s) \<subseteq> - outside s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3058 |
by (metis (no_types) assms closure_inside_subset union_with_inside) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3059 |
ultimately have "closure (inside s) - interior (inside s) \<subseteq> s" |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3060 |
by blast |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3061 |
then show ?thesis |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3062 |
by (simp add: frontier_def open_inside interior_open) |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3063 |
qed |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3064 |
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3065 |
lemma closure_outside_subset: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3066 |
fixes s :: "'a::real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3067 |
assumes "closed s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3068 |
shows "closure(outside s) \<subseteq> s \<union> outside s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3069 |
apply (rule closure_minimal, simp) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3070 |
by (metis assms closed_open inside_outside open_inside) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3071 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3072 |
lemma frontier_outside_subset: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3073 |
fixes s :: "'a::real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3074 |
assumes "closed s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3075 |
shows "frontier(outside s) \<subseteq> s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3076 |
apply (simp add: frontier_def open_outside interior_open) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3077 |
by (metis Diff_subset_conv assms closure_outside_subset interior_eq open_outside sup.commute) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3078 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3079 |
lemma inside_complement_unbounded_connected_empty: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3080 |
"\<lbrakk>connected (- s); \<not> bounded (- s)\<rbrakk> \<Longrightarrow> inside s = {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3081 |
apply (simp add: inside_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3082 |
by (meson Compl_iff bounded_subset connected_component_maximal order_refl) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3083 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3084 |
lemma inside_bounded_complement_connected_empty: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3085 |
fixes s :: "'a::{real_normed_vector, perfect_space} set"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3086 |
shows "\<lbrakk>connected (- s); bounded s\<rbrakk> \<Longrightarrow> inside s = {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3087 |
by (metis inside_complement_unbounded_connected_empty cobounded_imp_unbounded) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3088 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3089 |
lemma inside_inside: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3090 |
assumes "s \<subseteq> inside t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3091 |
shows "inside s - t \<subseteq> inside t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3092 |
unfolding inside_def |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3093 |
proof clarify |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3094 |
fix x |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3095 |
assume x: "x \<notin> t" "x \<notin> s" and bo: "bounded (connected_component_set (- s) x)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3096 |
show "bounded (connected_component_set (- t) x)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3097 |
proof (cases "s \<inter> connected_component_set (- t) x = {}")
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3098 |
case True show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3099 |
apply (rule bounded_subset [OF bo]) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3100 |
apply (rule connected_component_maximal) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3101 |
using x True apply auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3102 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3103 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3104 |
case False then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3105 |
using assms [unfolded inside_def] x |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3106 |
apply (simp add: disjoint_iff_not_equal, clarify) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3107 |
apply (drule subsetD, assumption, auto) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3108 |
by (metis (no_types, hide_lams) ComplI connected_component_eq_eq) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3109 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3110 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3111 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3112 |
lemma inside_inside_subset: "inside(inside s) \<subseteq> s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3113 |
using inside_inside union_with_outside by fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3114 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3115 |
lemma inside_outside_intersect_connected: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3116 |
"\<lbrakk>connected t; inside s \<inter> t \<noteq> {}; outside s \<inter> t \<noteq> {}\<rbrakk> \<Longrightarrow> s \<inter> t \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3117 |
apply (simp add: inside_def outside_def ex_in_conv [symmetric] disjoint_eq_subset_Compl, clarify) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3118 |
by (metis (no_types, hide_lams) Compl_anti_mono connected_component_eq connected_component_maximal contra_subsetD double_compl) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3119 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3120 |
lemma outside_bounded_nonempty: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3121 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3122 |
assumes "bounded s" shows "outside s \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3123 |
by (metis (no_types, lifting) Collect_empty_eq Collect_mem_eq Compl_eq_Diff_UNIV Diff_cancel |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3124 |
Diff_disjoint UNIV_I assms ball_eq_empty bounded_diff cobounded_outside convex_ball |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3125 |
double_complement order_refl outside_convex outside_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3126 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3127 |
lemma outside_compact_in_open: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3128 |
fixes s :: "'a :: {real_normed_vector,perfect_space} set"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3129 |
assumes s: "compact s" and t: "open t" and "s \<subseteq> t" "t \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3130 |
shows "outside s \<inter> t \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3131 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3132 |
have "outside s \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3133 |
by (simp add: compact_imp_bounded outside_bounded_nonempty s) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3134 |
with assms obtain a b where a: "a \<in> outside s" and b: "b \<in> t" by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3135 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3136 |
proof (cases "a \<in> t") |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3137 |
case True with a show ?thesis by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3138 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3139 |
case False |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3140 |
have front: "frontier t \<subseteq> - s" |
| 61808 | 3141 |
using \<open>s \<subseteq> t\<close> frontier_disjoint_eq t by auto |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3142 |
{ fix \<gamma>
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3143 |
assume "path \<gamma>" and pimg_sbs: "path_image \<gamma> - {pathfinish \<gamma>} \<subseteq> interior (- t)"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3144 |
and pf: "pathfinish \<gamma> \<in> frontier t" and ps: "pathstart \<gamma> = a" |
| 63040 | 3145 |
define c where "c = pathfinish \<gamma>" |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3146 |
have "c \<in> -s" unfolding c_def using front pf by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3147 |
moreover have "open (-s)" using s compact_imp_closed by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3148 |
ultimately obtain \<epsilon>::real where "\<epsilon> > 0" and \<epsilon>: "cball c \<epsilon> \<subseteq> -s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3149 |
using open_contains_cball[of "-s"] s by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3150 |
then obtain d where "d \<in> t" and d: "dist d c < \<epsilon>" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3151 |
using closure_approachable [of c t] pf unfolding c_def |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3152 |
by (metis Diff_iff frontier_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3153 |
then have "d \<in> -s" using \<epsilon> |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3154 |
using dist_commute by (metis contra_subsetD mem_cball not_le not_less_iff_gr_or_eq) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3155 |
have pimg_sbs_cos: "path_image \<gamma> \<subseteq> -s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3156 |
using pimg_sbs apply (auto simp: path_image_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3157 |
apply (drule subsetD) |
| 61808 | 3158 |
using \<open>c \<in> - s\<close> \<open>s \<subseteq> t\<close> interior_subset apply (auto simp: c_def) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3159 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3160 |
have "closed_segment c d \<le> cball c \<epsilon>" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3161 |
apply (simp add: segment_convex_hull) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3162 |
apply (rule hull_minimal) |
| 61808 | 3163 |
using \<open>\<epsilon> > 0\<close> d apply (auto simp: dist_commute) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3164 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3165 |
with \<epsilon> have "closed_segment c d \<subseteq> -s" by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3166 |
moreover have con_gcd: "connected (path_image \<gamma> \<union> closed_segment c d)" |
| 61808 | 3167 |
by (rule connected_Un) (auto simp: c_def \<open>path \<gamma>\<close> connected_path_image) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3168 |
ultimately have "connected_component (- s) a d" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3169 |
unfolding connected_component_def using pimg_sbs_cos ps by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3170 |
then have "outside s \<inter> t \<noteq> {}"
|
| 61808 | 3171 |
using outside_same_component [OF _ a] by (metis IntI \<open>d \<in> t\<close> empty_iff) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3172 |
} note * = this |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3173 |
have pal: "pathstart (linepath a b) \<in> closure (- t)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3174 |
by (auto simp: False closure_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3175 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3176 |
by (rule exists_path_subpath_to_frontier [OF path_linepath pal _ *]) (auto simp: b) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3177 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3178 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3179 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3180 |
lemma inside_inside_compact_connected: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3181 |
fixes s :: "'a :: euclidean_space set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3182 |
assumes s: "closed s" and t: "compact t" and "connected t" "s \<subseteq> inside t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3183 |
shows "inside s \<subseteq> inside t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3184 |
proof (cases "inside t = {}")
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3185 |
case True with assms show ?thesis by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3186 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3187 |
case False |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3188 |
consider "DIM('a) = 1" | "DIM('a) \<ge> 2"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3189 |
using antisym not_less_eq_eq by fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3190 |
then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3191 |
proof cases |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3192 |
case 1 then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3193 |
using connected_convex_1_gen assms False inside_convex by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3194 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3195 |
case 2 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3196 |
have coms: "compact s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3197 |
using assms apply (simp add: s compact_eq_bounded_closed) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3198 |
by (meson bounded_inside bounded_subset compact_imp_bounded) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3199 |
then have bst: "bounded (s \<union> t)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3200 |
by (simp add: compact_imp_bounded t) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3201 |
then obtain r where "0 < r" and r: "s \<union> t \<subseteq> ball 0 r" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3202 |
using bounded_subset_ballD by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3203 |
have outst: "outside s \<inter> outside t \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3204 |
proof - |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3205 |
have "- ball 0 r \<subseteq> outside s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3206 |
apply (rule outside_subset_convex) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3207 |
using r by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3208 |
moreover have "- ball 0 r \<subseteq> outside t" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3209 |
apply (rule outside_subset_convex) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3210 |
using r by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3211 |
ultimately show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3212 |
by (metis Compl_subset_Compl_iff Int_subset_iff bounded_ball inf.orderE outside_bounded_nonempty outside_no_overlap) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3213 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3214 |
have "s \<inter> t = {}" using assms
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3215 |
by (metis disjoint_iff_not_equal inside_no_overlap subsetCE) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3216 |
moreover have "outside s \<inter> inside t \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3217 |
by (meson False assms(4) compact_eq_bounded_closed coms open_inside outside_compact_in_open t) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3218 |
ultimately have "inside s \<inter> t = {}"
|
| 61808 | 3219 |
using inside_outside_intersect_connected [OF \<open>connected t\<close>, of s] |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3220 |
by (metis "2" compact_eq_bounded_closed coms connected_outside inf.commute inside_outside_intersect_connected outst) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3221 |
then show ?thesis |
| 61808 | 3222 |
using inside_inside [OF \<open>s \<subseteq> inside t\<close>] by blast |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3223 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3224 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3225 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3226 |
lemma connected_with_inside: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3227 |
fixes s :: "'a :: real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3228 |
assumes s: "closed s" and cons: "connected s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3229 |
shows "connected(s \<union> inside s)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3230 |
proof (cases "s \<union> inside s = UNIV") |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3231 |
case True with assms show ?thesis by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3232 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3233 |
case False |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3234 |
then obtain b where b: "b \<notin> s" "b \<notin> inside s" by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3235 |
have *: "\<exists>y t. y \<in> s \<and> connected t \<and> a \<in> t \<and> y \<in> t \<and> t \<subseteq> (s \<union> inside s)" if "a \<in> (s \<union> inside s)" for a |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3236 |
using that proof |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3237 |
assume "a \<in> s" then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3238 |
apply (rule_tac x=a in exI) |
| 68096 | 3239 |
apply (rule_tac x="{a}" in exI, simp)
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3240 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3241 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3242 |
assume a: "a \<in> inside s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3243 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3244 |
apply (rule exists_path_subpath_to_frontier [OF path_linepath [of a b], of "inside s"]) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3245 |
using a apply (simp add: closure_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3246 |
apply (simp add: b) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3247 |
apply (rule_tac x="pathfinish h" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3248 |
apply (rule_tac x="path_image h" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3249 |
apply (simp add: pathfinish_in_path_image connected_path_image, auto) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3250 |
using frontier_inside_subset s apply fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3251 |
by (metis (no_types, lifting) frontier_inside_subset insertE insert_Diff interior_eq open_inside pathfinish_in_path_image s subsetCE) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3252 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3253 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3254 |
apply (simp add: connected_iff_connected_component) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3255 |
apply (simp add: connected_component_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3256 |
apply (clarify dest!: *) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3257 |
apply (rename_tac u u' t t') |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3258 |
apply (rule_tac x="(s \<union> t \<union> t')" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3259 |
apply (auto simp: intro!: connected_Un cons) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3260 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3261 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3262 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3263 |
text\<open>The proof is virtually the same as that above.\<close> |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3264 |
lemma connected_with_outside: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3265 |
fixes s :: "'a :: real_normed_vector set" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3266 |
assumes s: "closed s" and cons: "connected s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3267 |
shows "connected(s \<union> outside s)" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3268 |
proof (cases "s \<union> outside s = UNIV") |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3269 |
case True with assms show ?thesis by auto |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3270 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3271 |
case False |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3272 |
then obtain b where b: "b \<notin> s" "b \<notin> outside s" by blast |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3273 |
have *: "\<exists>y t. y \<in> s \<and> connected t \<and> a \<in> t \<and> y \<in> t \<and> t \<subseteq> (s \<union> outside s)" if "a \<in> (s \<union> outside s)" for a |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3274 |
using that proof |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3275 |
assume "a \<in> s" then show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3276 |
apply (rule_tac x=a in exI) |
| 68096 | 3277 |
apply (rule_tac x="{a}" in exI, simp)
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3278 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3279 |
next |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3280 |
assume a: "a \<in> outside s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3281 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3282 |
apply (rule exists_path_subpath_to_frontier [OF path_linepath [of a b], of "outside s"]) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3283 |
using a apply (simp add: closure_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3284 |
apply (simp add: b) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3285 |
apply (rule_tac x="pathfinish h" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3286 |
apply (rule_tac x="path_image h" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3287 |
apply (simp add: pathfinish_in_path_image connected_path_image, auto) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3288 |
using frontier_outside_subset s apply fastforce |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3289 |
by (metis (no_types, lifting) frontier_outside_subset insertE insert_Diff interior_eq open_outside pathfinish_in_path_image s subsetCE) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3290 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3291 |
show ?thesis |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3292 |
apply (simp add: connected_iff_connected_component) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3293 |
apply (simp add: connected_component_def) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3294 |
apply (clarify dest!: *) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3295 |
apply (rename_tac u u' t t') |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3296 |
apply (rule_tac x="(s \<union> t \<union> t')" in exI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3297 |
apply (auto simp: intro!: connected_Un cons) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3298 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3299 |
qed |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3300 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3301 |
lemma inside_inside_eq_empty [simp]: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3302 |
fixes s :: "'a :: {real_normed_vector, perfect_space} set"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3303 |
assumes s: "closed s" and cons: "connected s" |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3304 |
shows "inside (inside s) = {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3305 |
by (metis (no_types) unbounded_outside connected_with_outside [OF assms] bounded_Un |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3306 |
inside_complement_unbounded_connected_empty unbounded_outside union_with_outside) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3307 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3308 |
lemma inside_in_components: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3309 |
"inside s \<in> components (- s) \<longleftrightarrow> connected(inside s) \<and> inside s \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3310 |
apply (simp add: in_components_maximal) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3311 |
apply (auto intro: inside_same_component connected_componentI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3312 |
apply (metis IntI empty_iff inside_no_overlap) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3313 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3314 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3315 |
text\<open>The proof is virtually the same as that above.\<close> |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3316 |
lemma outside_in_components: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3317 |
"outside s \<in> components (- s) \<longleftrightarrow> connected(outside s) \<and> outside s \<noteq> {}"
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3318 |
apply (simp add: in_components_maximal) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3319 |
apply (auto intro: outside_same_component connected_componentI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3320 |
apply (metis IntI empty_iff outside_no_overlap) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3321 |
done |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3322 |
|
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3323 |
lemma bounded_unique_outside: |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3324 |
fixes s :: "'a :: euclidean_space set" |
| 69508 | 3325 |
shows "\<lbrakk>bounded s; DIM('a) \<ge> 2\<rbrakk> \<Longrightarrow> (c \<in> components (- s) \<and> \<not> bounded c \<longleftrightarrow> c = outside s)"
|
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3326 |
apply (rule iffI) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3327 |
apply (metis cobounded_unique_unbounded_components connected_outside double_compl outside_bounded_nonempty outside_in_components unbounded_outside) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3328 |
by (simp add: connected_outside outside_bounded_nonempty outside_in_components unbounded_outside) |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3329 |
|
| 69514 | 3330 |
|
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3331 |
subsection\<open>Condition for an open map's image to contain a ball\<close> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3332 |
|
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
3333 |
proposition ball_subset_open_map_image: |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3334 |
fixes f :: "'a::heine_borel \<Rightarrow> 'b :: {real_normed_vector,heine_borel}"
|
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3335 |
assumes contf: "continuous_on (closure S) f" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3336 |
and oint: "open (f ` interior S)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3337 |
and le_no: "\<And>z. z \<in> frontier S \<Longrightarrow> r \<le> norm(f z - f a)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3338 |
and "bounded S" "a \<in> S" "0 < r" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3339 |
shows "ball (f a) r \<subseteq> f ` S" |
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
3340 |
proof (cases "f ` S = UNIV") |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3341 |
case True then show ?thesis by simp |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3342 |
next |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3343 |
case False |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3344 |
obtain w where w: "w \<in> frontier (f ` S)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3345 |
and dw_le: "\<And>y. y \<in> frontier (f ` S) \<Longrightarrow> norm (f a - w) \<le> norm (f a - y)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3346 |
apply (rule distance_attains_inf [of "frontier(f ` S)" "f a"]) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3347 |
using \<open>a \<in> S\<close> by (auto simp: frontier_eq_empty dist_norm False) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3348 |
then obtain \<xi> where \<xi>: "\<And>n. \<xi> n \<in> f ` S" and tendsw: "\<xi> \<longlonglongrightarrow> w" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3349 |
by (metis Diff_iff frontier_def closure_sequential) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3350 |
then have "\<And>n. \<exists>x \<in> S. \<xi> n = f x" by force |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3351 |
then obtain z where zs: "\<And>n. z n \<in> S" and fz: "\<And>n. \<xi> n = f (z n)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3352 |
by metis |
|
66447
a1f5c5c26fa6
Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents:
65038
diff
changeset
|
3353 |
then obtain y K where y: "y \<in> closure S" and "strict_mono (K :: nat \<Rightarrow> nat)" |
|
a1f5c5c26fa6
Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents:
65038
diff
changeset
|
3354 |
and Klim: "(z \<circ> K) \<longlonglongrightarrow> y" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3355 |
using \<open>bounded S\<close> |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3356 |
apply (simp add: compact_closure [symmetric] compact_def) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3357 |
apply (drule_tac x=z in spec) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3358 |
using closure_subset apply force |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3359 |
done |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3360 |
then have ftendsw: "((\<lambda>n. f (z n)) \<circ> K) \<longlonglongrightarrow> w" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3361 |
by (metis LIMSEQ_subseq_LIMSEQ fun.map_cong0 fz tendsw) |
| 68096 | 3362 |
have zKs: "\<And>n. (z \<circ> K) n \<in> S" by (simp add: zs) |
| 63540 | 3363 |
have fz: "f \<circ> z = \<xi>" "(\<lambda>n. f (z n)) = \<xi>" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3364 |
using fz by auto |
| 63540 | 3365 |
then have "(\<xi> \<circ> K) \<longlonglongrightarrow> f y" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3366 |
by (metis (no_types) Klim zKs y contf comp_assoc continuous_on_closure_sequentially) |
| 63540 | 3367 |
with fz have wy: "w = f y" using fz LIMSEQ_unique ftendsw by auto |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3368 |
have rle: "r \<le> norm (f y - f a)" |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3369 |
apply (rule le_no) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3370 |
using w wy oint |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3371 |
by (force simp: imageI image_mono interiorI interior_subset frontier_def y) |
| 69508 | 3372 |
have **: "(b \<inter> (- S) \<noteq> {} \<and> b - (- S) \<noteq> {} \<Longrightarrow> b \<inter> f \<noteq> {})
|
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3373 |
\<Longrightarrow> (b \<inter> S \<noteq> {}) \<Longrightarrow> b \<inter> f = {} \<Longrightarrow>
|
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
3374 |
b \<subseteq> S" for b f and S :: "'b set" |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3375 |
by blast |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3376 |
show ?thesis |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3377 |
apply (rule **) (*such a horrible mess*) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3378 |
apply (rule connected_Int_frontier [where t = "f`S", OF connected_ball]) |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
3379 |
using \<open>a \<in> S\<close> \<open>0 < r\<close> |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3380 |
apply (auto simp: disjoint_iff_not_equal dist_norm) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3381 |
by (metis dw_le norm_minus_commute not_less order_trans rle wy) |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3382 |
qed |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3383 |
|
| 36583 | 3384 |
end |