author | Manuel Eberl <manuel@pruvisto.org> |
Tue, 15 Apr 2025 17:38:20 +0200 | |
changeset 82518 | da14e77a48b2 |
parent 82400 | 24d09a911713 |
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 |
|
71236 | 8 |
imports |
9 |
Starlike |
|
10 |
T1_Spaces |
|
36583 | 11 |
begin |
12 |
||
60420 | 13 |
subsection \<open>Paths and Arcs\<close> |
36583 | 14 |
|
70136 | 15 |
definition\<^marker>\<open>tag important\<close> path :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> bool" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
16 |
where "path g \<equiv> continuous_on {0..1} g" |
36583 | 17 |
|
70136 | 18 |
definition\<^marker>\<open>tag important\<close> pathstart :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
19 |
where "pathstart g \<equiv> g 0" |
36583 | 20 |
|
70136 | 21 |
definition\<^marker>\<open>tag important\<close> pathfinish :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
22 |
where "pathfinish g \<equiv> g 1" |
36583 | 23 |
|
70136 | 24 |
definition\<^marker>\<open>tag important\<close> path_image :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> 'a set" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
25 |
where "path_image g \<equiv> g ` {0 .. 1}" |
36583 | 26 |
|
70136 | 27 |
definition\<^marker>\<open>tag important\<close> reversepath :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> real \<Rightarrow> 'a" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
28 |
where "reversepath g \<equiv> (\<lambda>x. g(1 - x))" |
36583 | 29 |
|
70136 | 30 |
definition\<^marker>\<open>tag important\<close> joinpaths :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> real \<Rightarrow> 'a" |
80914
d97fdabd9e2b
standardize mixfix annotations via "isabelle update -a -u mixfix_cartouches" --- to simplify systematic editing;
wenzelm
parents:
80052
diff
changeset
|
31 |
(infixr \<open>+++\<close> 75) |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
32 |
where "g1 +++ g2 \<equiv> (\<lambda>x. if x \<le> 1/2 then g1 (2 * x) else g2 (2 * x - 1))" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
33 |
|
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
34 |
definition\<^marker>\<open>tag important\<close> loop_free :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> bool" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
35 |
where "loop_free g \<equiv> \<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 | 36 |
|
70136 | 37 |
definition\<^marker>\<open>tag important\<close> simple_path :: "(real \<Rightarrow> 'a::topological_space) \<Rightarrow> bool" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
38 |
where "simple_path g \<equiv> path g \<and> loop_free g" |
36583 | 39 |
|
70136 | 40 |
definition\<^marker>\<open>tag important\<close> arc :: "(real \<Rightarrow> 'a :: topological_space) \<Rightarrow> bool" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
41 |
where "arc g \<equiv> path g \<and> inj_on g {0..1}" |
36583 | 42 |
|
49653 | 43 |
|
70136 | 44 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Invariance theorems\<close> |
60303 | 45 |
|
46 |
lemma path_eq: "path p \<Longrightarrow> (\<And>t. t \<in> {0..1} \<Longrightarrow> p t = q t) \<Longrightarrow> path q" |
|
47 |
using continuous_on_eq path_def by blast |
|
48 |
||
68096 | 49 |
lemma path_continuous_image: "path g \<Longrightarrow> continuous_on (path_image g) f \<Longrightarrow> path(f \<circ> g)" |
60303 | 50 |
unfolding path_def path_image_def |
51 |
using continuous_on_compose by blast |
|
52 |
||
72256 | 53 |
lemma path_translation_eq: |
54 |
fixes g :: "real \<Rightarrow> 'a :: real_normed_vector" |
|
55 |
shows "path((\<lambda>x. a + x) \<circ> g) = path g" |
|
56 |
using continuous_on_translation_eq path_def by blast |
|
57 |
||
60303 | 58 |
lemma path_linear_image_eq: |
59 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
60 |
assumes "linear f" "inj f" |
|
68096 | 61 |
shows "path(f \<circ> g) = path g" |
60303 | 62 |
proof - |
63 |
from linear_injective_left_inverse [OF assms] |
|
64 |
obtain h where h: "linear h" "h \<circ> f = id" |
|
65 |
by blast |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
66 |
with assms show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
67 |
by (metis comp_assoc id_comp linear_continuous_on linear_linear path_continuous_image) |
60303 | 68 |
qed |
69 |
||
68096 | 70 |
lemma pathstart_translation: "pathstart((\<lambda>x. a + x) \<circ> g) = a + pathstart g" |
60303 | 71 |
by (simp add: pathstart_def) |
72 |
||
68096 | 73 |
lemma pathstart_linear_image_eq: "linear f \<Longrightarrow> pathstart(f \<circ> g) = f(pathstart g)" |
60303 | 74 |
by (simp add: pathstart_def) |
75 |
||
68096 | 76 |
lemma pathfinish_translation: "pathfinish((\<lambda>x. a + x) \<circ> g) = a + pathfinish g" |
60303 | 77 |
by (simp add: pathfinish_def) |
78 |
||
68096 | 79 |
lemma pathfinish_linear_image: "linear f \<Longrightarrow> pathfinish(f \<circ> g) = f(pathfinish g)" |
60303 | 80 |
by (simp add: pathfinish_def) |
81 |
||
68096 | 82 |
lemma path_image_translation: "path_image((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) ` (path_image g)" |
60303 | 83 |
by (simp add: image_comp path_image_def) |
84 |
||
68096 | 85 |
lemma path_image_linear_image: "linear f \<Longrightarrow> path_image(f \<circ> g) = f ` (path_image g)" |
60303 | 86 |
by (simp add: image_comp path_image_def) |
87 |
||
68096 | 88 |
lemma reversepath_translation: "reversepath((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) \<circ> reversepath g" |
60303 | 89 |
by (rule ext) (simp add: reversepath_def) |
36583 | 90 |
|
68096 | 91 |
lemma reversepath_linear_image: "linear f \<Longrightarrow> reversepath(f \<circ> g) = f \<circ> reversepath g" |
60303 | 92 |
by (rule ext) (simp add: reversepath_def) |
93 |
||
94 |
lemma joinpaths_translation: |
|
68096 | 95 |
"((\<lambda>x. a + x) \<circ> g1) +++ ((\<lambda>x. a + x) \<circ> g2) = (\<lambda>x. a + x) \<circ> (g1 +++ g2)" |
60303 | 96 |
by (rule ext) (simp add: joinpaths_def) |
97 |
||
68096 | 98 |
lemma joinpaths_linear_image: "linear f \<Longrightarrow> (f \<circ> g1) +++ (f \<circ> g2) = f \<circ> (g1 +++ g2)" |
60303 | 99 |
by (rule ext) (simp add: joinpaths_def) |
100 |
||
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
101 |
lemma loop_free_translation_eq: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
102 |
fixes g :: "real \<Rightarrow> 'a::euclidean_space" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
103 |
shows "loop_free((\<lambda>x. a + x) \<circ> g) = loop_free g" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
104 |
by (simp add: loop_free_def) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
105 |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
106 |
lemma simple_path_translation_eq: |
60303 | 107 |
fixes g :: "real \<Rightarrow> 'a::euclidean_space" |
68096 | 108 |
shows "simple_path((\<lambda>x. a + x) \<circ> g) = simple_path g" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
109 |
by (simp add: simple_path_def loop_free_translation_eq path_translation_eq) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
110 |
|
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
111 |
lemma loop_free_linear_image_eq: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
112 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
113 |
assumes "linear f" "inj f" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
114 |
shows "loop_free(f \<circ> g) = loop_free g" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
115 |
using assms inj_on_eq_iff [of f] by (auto simp: loop_free_def) |
60303 | 116 |
|
117 |
lemma simple_path_linear_image_eq: |
|
118 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
119 |
assumes "linear f" "inj f" |
|
68096 | 120 |
shows "simple_path(f \<circ> g) = simple_path g" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
121 |
using assms |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
122 |
by (simp add: loop_free_linear_image_eq path_linear_image_eq simple_path_def) |
60303 | 123 |
|
80052
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
124 |
lemma simple_pathI [intro?]: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
125 |
assumes "path p" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
126 |
assumes "\<And>x y. 0 \<le> x \<Longrightarrow> x < y \<Longrightarrow> y \<le> 1 \<Longrightarrow> p x = p y \<Longrightarrow> x = 0 \<and> y = 1" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
127 |
shows "simple_path p" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
128 |
unfolding simple_path_def loop_free_def |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
129 |
proof (intro ballI conjI impI) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
130 |
fix x y assume "x \<in> {0..1}" "y \<in> {0..1}" "p x = p y" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
131 |
thus "x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
132 |
by (metis assms(2) atLeastAtMost_iff linorder_less_linear) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
133 |
qed fact+ |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
134 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
135 |
lemma arcD: "arc p \<Longrightarrow> p x = p y \<Longrightarrow> x \<in> {0..1} \<Longrightarrow> y \<in> {0..1} \<Longrightarrow> x = y" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
136 |
by (auto simp: arc_def inj_on_def) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
137 |
|
60303 | 138 |
lemma arc_translation_eq: |
139 |
fixes g :: "real \<Rightarrow> 'a::euclidean_space" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
140 |
shows "arc((\<lambda>x. a + x) \<circ> g) \<longleftrightarrow> arc g" |
60303 | 141 |
by (auto simp: arc_def inj_on_def path_translation_eq) |
142 |
||
143 |
lemma arc_linear_image_eq: |
|
144 |
fixes f :: "'a::euclidean_space \<Rightarrow> 'b::euclidean_space" |
|
145 |
assumes "linear f" "inj f" |
|
68096 | 146 |
shows "arc(f \<circ> g) = arc g" |
60303 | 147 |
using assms inj_on_eq_iff [of f] |
148 |
by (auto simp: arc_def inj_on_def path_linear_image_eq) |
|
149 |
||
69514 | 150 |
|
70136 | 151 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Basic lemmas about paths\<close> |
60303 | 152 |
|
74007
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
153 |
lemma path_of_real: "path complex_of_real" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
154 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
155 |
|
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
156 |
lemma path_const: "path (\<lambda>t. a)" for a::"'a::real_normed_vector" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
157 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
158 |
|
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
159 |
lemma path_minus: "path g \<Longrightarrow> path (\<lambda>t. - g t)" for g::"real\<Rightarrow>'a::real_normed_vector" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
160 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
161 |
|
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
162 |
lemma path_add: "\<lbrakk>path f; path g\<rbrakk> \<Longrightarrow> path (\<lambda>t. f t + g t)" for f::"real\<Rightarrow>'a::real_normed_vector" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
163 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
164 |
|
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
165 |
lemma path_diff: "\<lbrakk>path f; path g\<rbrakk> \<Longrightarrow> path (\<lambda>t. f t - g t)" for f::"real\<Rightarrow>'a::real_normed_vector" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
166 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
167 |
|
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
168 |
lemma path_mult: "\<lbrakk>path f; path g\<rbrakk> \<Longrightarrow> path (\<lambda>t. f t * g t)" for f::"real\<Rightarrow>'a::real_normed_field" |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
169 |
unfolding path_def by (intro continuous_intros) |
df976eefcba0
A few new lemmas and simplifications
paulson <lp15@cam.ac.uk>
parents:
73932
diff
changeset
|
170 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
171 |
lemma pathin_iff_path_real [simp]: "pathin euclideanreal g \<longleftrightarrow> path g" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
172 |
by (simp add: pathin_def path_def) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
173 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
174 |
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
|
175 |
using continuous_on_subset path_def by blast |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
176 |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
177 |
lemma inj_on_imp_loop_free: "inj_on g {0..1} \<Longrightarrow> loop_free g" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
178 |
by (simp add: inj_onD loop_free_def) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
179 |
|
60303 | 180 |
lemma arc_imp_simple_path: "arc g \<Longrightarrow> simple_path g" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
181 |
by (simp add: arc_def inj_on_imp_loop_free simple_path_def) |
60303 | 182 |
|
183 |
lemma arc_imp_path: "arc g \<Longrightarrow> path g" |
|
184 |
using arc_def by blast |
|
185 |
||
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
186 |
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
|
187 |
by (auto simp: arc_def) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
188 |
|
60303 | 189 |
lemma simple_path_imp_path: "simple_path g \<Longrightarrow> path g" |
190 |
using simple_path_def by blast |
|
191 |
||
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
192 |
lemma loop_free_cases: "loop_free g \<Longrightarrow> inj_on g {0..1} \<or> pathfinish g = pathstart g" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
193 |
by (force simp: inj_on_def loop_free_def pathfinish_def pathstart_def) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
194 |
|
60303 | 195 |
lemma simple_path_cases: "simple_path g \<Longrightarrow> arc g \<or> pathfinish g = pathstart g" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
196 |
using arc_def loop_free_cases simple_path_def by blast |
60303 | 197 |
|
198 |
lemma simple_path_imp_arc: "simple_path g \<Longrightarrow> pathfinish g \<noteq> pathstart g \<Longrightarrow> arc g" |
|
199 |
using simple_path_cases by auto |
|
200 |
||
201 |
lemma arc_distinct_ends: "arc g \<Longrightarrow> pathfinish g \<noteq> pathstart g" |
|
202 |
unfolding arc_def inj_on_def pathfinish_def pathstart_def |
|
203 |
by fastforce |
|
204 |
||
205 |
lemma arc_simple_path: "arc g \<longleftrightarrow> simple_path g \<and> pathfinish g \<noteq> pathstart g" |
|
206 |
using arc_distinct_ends arc_imp_simple_path simple_path_cases by blast |
|
207 |
||
208 |
lemma simple_path_eq_arc: "pathfinish g \<noteq> pathstart g \<Longrightarrow> (simple_path g = arc g)" |
|
209 |
by (simp add: arc_simple_path) |
|
36583 | 210 |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
211 |
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
|
212 |
by (force simp: path_image_def) |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
213 |
|
60974
6a6f15d8fbc4
New material and fixes related to the forthcoming Stone-Weierstrass development
paulson <lp15@cam.ac.uk>
parents:
60809
diff
changeset
|
214 |
lemma path_image_nonempty [simp]: "path_image g \<noteq> {}" |
56188 | 215 |
unfolding path_image_def image_is_empty box_eq_empty |
53640 | 216 |
by auto |
36583 | 217 |
|
53640 | 218 |
lemma pathstart_in_path_image[intro]: "pathstart g \<in> path_image g" |
219 |
unfolding pathstart_def path_image_def |
|
220 |
by auto |
|
36583 | 221 |
|
53640 | 222 |
lemma pathfinish_in_path_image[intro]: "pathfinish g \<in> path_image g" |
223 |
unfolding pathfinish_def path_image_def |
|
224 |
by auto |
|
225 |
||
226 |
lemma connected_path_image[intro]: "path g \<Longrightarrow> connected (path_image g)" |
|
36583 | 227 |
unfolding path_def path_image_def |
60303 | 228 |
using connected_continuous_image connected_Icc by blast |
36583 | 229 |
|
53640 | 230 |
lemma compact_path_image[intro]: "path g \<Longrightarrow> compact (path_image g)" |
36583 | 231 |
unfolding path_def path_image_def |
60303 | 232 |
using compact_continuous_image connected_Icc by blast |
36583 | 233 |
|
53640 | 234 |
lemma reversepath_reversepath[simp]: "reversepath (reversepath g) = g" |
235 |
unfolding reversepath_def |
|
236 |
by auto |
|
36583 | 237 |
|
53640 | 238 |
lemma pathstart_reversepath[simp]: "pathstart (reversepath g) = pathfinish g" |
239 |
unfolding pathstart_def reversepath_def pathfinish_def |
|
240 |
by auto |
|
36583 | 241 |
|
53640 | 242 |
lemma pathfinish_reversepath[simp]: "pathfinish (reversepath g) = pathstart g" |
243 |
unfolding pathstart_def reversepath_def pathfinish_def |
|
244 |
by auto |
|
36583 | 245 |
|
73795 | 246 |
lemma reversepath_o: "reversepath g = g \<circ> (-)1" |
247 |
by (auto simp: reversepath_def) |
|
248 |
||
49653 | 249 |
lemma pathstart_join[simp]: "pathstart (g1 +++ g2) = pathstart g1" |
53640 | 250 |
unfolding pathstart_def joinpaths_def pathfinish_def |
251 |
by auto |
|
36583 | 252 |
|
49653 | 253 |
lemma pathfinish_join[simp]: "pathfinish (g1 +++ g2) = pathfinish g2" |
53640 | 254 |
unfolding pathstart_def joinpaths_def pathfinish_def |
255 |
by auto |
|
36583 | 256 |
|
53640 | 257 |
lemma path_image_reversepath[simp]: "path_image (reversepath g) = path_image g" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
258 |
by (metis cancel_comm_monoid_add_class.diff_cancel diff_zero image_comp |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
259 |
image_diff_atLeastAtMost path_image_def reversepath_o) |
36583 | 260 |
|
53640 | 261 |
lemma path_reversepath [simp]: "path (reversepath g) \<longleftrightarrow> path g" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
262 |
by (metis continuous_on_compose continuous_on_op_minus image_comp image_ident path_def path_image_def path_image_reversepath reversepath_o reversepath_reversepath) |
49653 | 263 |
|
60303 | 264 |
lemma arc_reversepath: |
265 |
assumes "arc g" shows "arc(reversepath g)" |
|
266 |
proof - |
|
267 |
have injg: "inj_on g {0..1}" |
|
268 |
using assms |
|
269 |
by (simp add: arc_def) |
|
270 |
have **: "\<And>x y::real. 1-x = 1-y \<Longrightarrow> x = y" |
|
271 |
by simp |
|
272 |
show ?thesis |
|
68096 | 273 |
using assms by (clarsimp simp: arc_def intro!: inj_onI) (simp add: inj_onD reversepath_def **) |
60303 | 274 |
qed |
275 |
||
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
276 |
lemma loop_free_reversepath: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
277 |
assumes "loop_free g" shows "loop_free(reversepath g)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
278 |
using assms by (simp add: reversepath_def loop_free_def Ball_def) (smt (verit)) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
279 |
|
60303 | 280 |
lemma simple_path_reversepath: "simple_path g \<Longrightarrow> simple_path (reversepath g)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
281 |
by (simp add: loop_free_reversepath simple_path_def) |
60303 | 282 |
|
49653 | 283 |
lemmas reversepath_simps = |
284 |
path_reversepath path_image_reversepath pathstart_reversepath pathfinish_reversepath |
|
36583 | 285 |
|
49653 | 286 |
lemma path_join[simp]: |
287 |
assumes "pathfinish g1 = pathstart g2" |
|
288 |
shows "path (g1 +++ g2) \<longleftrightarrow> path g1 \<and> path g2" |
|
289 |
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
|
290 |
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
|
291 |
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
|
292 |
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
|
293 |
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
|
294 |
have g2: "continuous_on {0..1} g2 \<longleftrightarrow> continuous_on {0..1} ((g1 +++ g2) \<circ> (\<lambda>x. x / 2 + 1/2))" |
53640 | 295 |
using assms |
296 |
by (intro continuous_on_cong refl) (auto simp: joinpaths_def pathfinish_def pathstart_def) |
|
297 |
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
|
298 |
unfolding g1 g2 |
56371
fb9ae0727548
extend continuous_intros; remove continuous_on_intros and isCont_intros
hoelzl
parents:
56188
diff
changeset
|
299 |
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
|
300 |
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
|
301 |
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
|
302 |
have 01: "{0 .. 1} = {0..1/2} \<union> {1/2 .. 1::real}" |
36583 | 303 |
by auto |
53640 | 304 |
{ |
305 |
fix x :: real |
|
306 |
assume "0 \<le> x" and "x \<le> 1" |
|
307 |
then have "x \<in> (\<lambda>x. x * 2) ` {0..1 / 2}" |
|
308 |
by (intro image_eqI[where x="x/2"]) auto |
|
309 |
} |
|
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
|
310 |
note 1 = this |
53640 | 311 |
{ |
312 |
fix x :: real |
|
313 |
assume "0 \<le> x" and "x \<le> 1" |
|
314 |
then have "x \<in> (\<lambda>x. x * 2 - 1) ` {1 / 2..1}" |
|
315 |
by (intro image_eqI[where x="x/2 + 1/2"]) auto |
|
316 |
} |
|
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
|
317 |
note 2 = this |
49653 | 318 |
show "continuous_on {0..1} (g1 +++ g2)" |
53640 | 319 |
using assms |
320 |
unfolding joinpaths_def 01 |
|
56371
fb9ae0727548
extend continuous_intros; remove continuous_on_intros and isCont_intros
hoelzl
parents:
56188
diff
changeset
|
321 |
apply (intro continuous_on_cases closed_atLeastAtMost g1g2[THEN continuous_on_compose2] continuous_intros) |
53640 | 322 |
apply (auto simp: field_simps pathfinish_def pathstart_def intro!: 1 2) |
323 |
done |
|
49653 | 324 |
qed |
36583 | 325 |
|
69514 | 326 |
|
70136 | 327 |
subsection\<^marker>\<open>tag unimportant\<close> \<open>Path Images\<close> |
60303 | 328 |
|
329 |
lemma bounded_path_image: "path g \<Longrightarrow> bounded(path_image g)" |
|
330 |
by (simp add: compact_imp_bounded compact_path_image) |
|
331 |
||
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
332 |
lemma closed_path_image: |
60303 | 333 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
334 |
shows "path g \<Longrightarrow> closed(path_image g)" |
|
335 |
by (metis compact_path_image compact_imp_closed) |
|
336 |
||
337 |
lemma connected_simple_path_image: "simple_path g \<Longrightarrow> connected(path_image g)" |
|
338 |
by (metis connected_path_image simple_path_imp_path) |
|
339 |
||
340 |
lemma compact_simple_path_image: "simple_path g \<Longrightarrow> compact(path_image g)" |
|
341 |
by (metis compact_path_image simple_path_imp_path) |
|
342 |
||
343 |
lemma bounded_simple_path_image: "simple_path g \<Longrightarrow> bounded(path_image g)" |
|
344 |
by (metis bounded_path_image simple_path_imp_path) |
|
345 |
||
346 |
lemma closed_simple_path_image: |
|
347 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
|
348 |
shows "simple_path g \<Longrightarrow> closed(path_image g)" |
|
349 |
by (metis closed_path_image simple_path_imp_path) |
|
350 |
||
351 |
lemma connected_arc_image: "arc g \<Longrightarrow> connected(path_image g)" |
|
352 |
by (metis connected_path_image arc_imp_path) |
|
353 |
||
354 |
lemma compact_arc_image: "arc g \<Longrightarrow> compact(path_image g)" |
|
355 |
by (metis compact_path_image arc_imp_path) |
|
356 |
||
357 |
lemma bounded_arc_image: "arc g \<Longrightarrow> bounded(path_image g)" |
|
358 |
by (metis bounded_path_image arc_imp_path) |
|
359 |
||
360 |
lemma closed_arc_image: |
|
361 |
fixes g :: "real \<Rightarrow> 'a::t2_space" |
|
362 |
shows "arc g \<Longrightarrow> closed(path_image g)" |
|
363 |
by (metis closed_path_image arc_imp_path) |
|
364 |
||
53640 | 365 |
lemma path_image_join_subset: "path_image (g1 +++ g2) \<subseteq> path_image g1 \<union> path_image g2" |
366 |
unfolding path_image_def joinpaths_def |
|
367 |
by auto |
|
36583 | 368 |
|
369 |
lemma subset_path_image_join: |
|
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
370 |
assumes "path_image g1 \<subseteq> S" and "path_image g2 \<subseteq> S" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
371 |
shows "path_image (g1 +++ g2) \<subseteq> S" |
53640 | 372 |
using path_image_join_subset[of g1 g2] and assms |
373 |
by auto |
|
36583 | 374 |
|
375 |
lemma path_image_join: |
|
72256 | 376 |
assumes "pathfinish g1 = pathstart g2" |
377 |
shows "path_image(g1 +++ g2) = path_image g1 \<union> path_image g2" |
|
378 |
proof - |
|
379 |
have "path_image g1 \<subseteq> path_image (g1 +++ g2)" |
|
380 |
proof (clarsimp simp: path_image_def joinpaths_def) |
|
381 |
fix u::real |
|
382 |
assume "0 \<le> u" "u \<le> 1" |
|
383 |
then show "g1 u \<in> (\<lambda>x. g1 (2 * x)) ` ({0..1} \<inter> {x. x * 2 \<le> 1})" |
|
384 |
by (rule_tac x="u/2" in image_eqI) auto |
|
385 |
qed |
|
386 |
moreover |
|
387 |
have \<section>: "g2 u \<in> (\<lambda>x. g2 (2 * x - 1)) ` ({0..1} \<inter> {x. \<not> x * 2 \<le> 1})" |
|
388 |
if "0 < u" "u \<le> 1" for u |
|
389 |
using that assms |
|
390 |
by (rule_tac x="(u+1)/2" in image_eqI) (auto simp: field_simps pathfinish_def pathstart_def) |
|
391 |
have "g2 0 \<in> (\<lambda>x. g1 (2 * x)) ` ({0..1} \<inter> {x. x * 2 \<le> 1})" |
|
392 |
using assms |
|
393 |
by (rule_tac x="1/2" in image_eqI) (auto simp: pathfinish_def pathstart_def) |
|
394 |
then have "path_image g2 \<subseteq> path_image (g1 +++ g2)" |
|
395 |
by (auto simp: path_image_def joinpaths_def intro!: \<section>) |
|
396 |
ultimately show ?thesis |
|
397 |
using path_image_join_subset by blast |
|
398 |
qed |
|
36583 | 399 |
|
400 |
lemma not_in_path_image_join: |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
401 |
assumes "x \<notin> path_image g1" and "x \<notin> path_image g2" |
53640 | 402 |
shows "x \<notin> path_image (g1 +++ g2)" |
403 |
using assms and path_image_join_subset[of g1 g2] |
|
404 |
by auto |
|
36583 | 405 |
|
68096 | 406 |
lemma pathstart_compose: "pathstart(f \<circ> p) = f(pathstart p)" |
60303 | 407 |
by (simp add: pathstart_def) |
408 |
||
68096 | 409 |
lemma pathfinish_compose: "pathfinish(f \<circ> p) = f(pathfinish p)" |
60303 | 410 |
by (simp add: pathfinish_def) |
411 |
||
68096 | 412 |
lemma path_image_compose: "path_image (f \<circ> p) = f ` (path_image p)" |
60303 | 413 |
by (simp add: image_comp path_image_def) |
414 |
||
68096 | 415 |
lemma path_compose_join: "f \<circ> (p +++ q) = (f \<circ> p) +++ (f \<circ> q)" |
60303 | 416 |
by (rule ext) (simp add: joinpaths_def) |
417 |
||
68096 | 418 |
lemma path_compose_reversepath: "f \<circ> reversepath p = reversepath(f \<circ> p)" |
60303 | 419 |
by (rule ext) (simp add: reversepath_def) |
420 |
||
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
|
421 |
lemma joinpaths_eq: |
60303 | 422 |
"(\<And>t. t \<in> {0..1} \<Longrightarrow> p t = p' t) \<Longrightarrow> |
423 |
(\<And>t. t \<in> {0..1} \<Longrightarrow> q t = q' t) |
|
424 |
\<Longrightarrow> t \<in> {0..1} \<Longrightarrow> (p +++ q) t = (p' +++ q') t" |
|
425 |
by (auto simp: joinpaths_def) |
|
426 |
||
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
427 |
lemma loop_free_inj_on: "loop_free g \<Longrightarrow> inj_on g {0<..<1}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
428 |
by (force simp: inj_on_def loop_free_def) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
429 |
|
60303 | 430 |
lemma simple_path_inj_on: "simple_path g \<Longrightarrow> inj_on g {0<..<1}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
431 |
using loop_free_inj_on simple_path_def by auto |
60303 | 432 |
|
433 |
||
70136 | 434 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Simple paths with the endpoints removed\<close> |
60303 | 435 |
|
436 |
lemma simple_path_endless: |
|
72256 | 437 |
assumes "simple_path c" |
438 |
shows "path_image c - {pathstart c,pathfinish c} = c ` {0<..<1}" (is "?lhs = ?rhs") |
|
439 |
proof |
|
440 |
show "?lhs \<subseteq> ?rhs" |
|
441 |
using less_eq_real_def by (auto simp: path_image_def pathstart_def pathfinish_def) |
|
442 |
show "?rhs \<subseteq> ?lhs" |
|
443 |
using assms |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
444 |
apply (simp add: image_subset_iff path_image_def pathstart_def pathfinish_def simple_path_def loop_free_def Ball_def) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
445 |
by (smt (verit)) |
72256 | 446 |
qed |
36583 | 447 |
|
60303 | 448 |
lemma connected_simple_path_endless: |
72256 | 449 |
assumes "simple_path c" |
450 |
shows "connected(path_image c - {pathstart c,pathfinish c})" |
|
451 |
proof - |
|
452 |
have "continuous_on {0<..<1} c" |
|
453 |
using assms by (simp add: simple_path_def continuous_on_path path_def subset_iff) |
|
454 |
then have "connected (c ` {0<..<1})" |
|
455 |
using connected_Ioo connected_continuous_image by blast |
|
456 |
then show ?thesis |
|
457 |
using assms by (simp add: simple_path_endless) |
|
458 |
qed |
|
60303 | 459 |
|
460 |
lemma nonempty_simple_path_endless: |
|
461 |
"simple_path c \<Longrightarrow> path_image c - {pathstart c,pathfinish c} \<noteq> {}" |
|
462 |
by (simp add: simple_path_endless) |
|
463 |
||
78698 | 464 |
lemma simple_path_continuous_image: |
465 |
assumes "simple_path f" "continuous_on (path_image f) g" "inj_on g (path_image f)" |
|
466 |
shows "simple_path (g \<circ> f)" |
|
467 |
unfolding simple_path_def |
|
468 |
proof |
|
469 |
show "path (g \<circ> f)" |
|
470 |
using assms unfolding simple_path_def by (intro path_continuous_image) auto |
|
471 |
from assms have [simp]: "g (f x) = g (f y) \<longleftrightarrow> f x = f y" if "x \<in> {0..1}" "y \<in> {0..1}" for x y |
|
472 |
unfolding inj_on_def path_image_def using that by fastforce |
|
473 |
show "loop_free (g \<circ> f)" |
|
474 |
using assms(1) by (auto simp: loop_free_def simple_path_def) |
|
475 |
qed |
|
60303 | 476 |
|
70136 | 477 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>The operations on paths\<close> |
60303 | 478 |
|
479 |
lemma path_image_subset_reversepath: "path_image(reversepath g) \<le> path_image g" |
|
72256 | 480 |
by simp |
60303 | 481 |
|
482 |
lemma path_imp_reversepath: "path g \<Longrightarrow> path(reversepath g)" |
|
72256 | 483 |
by simp |
60303 | 484 |
|
61204 | 485 |
lemma half_bounded_equal: "1 \<le> x * 2 \<Longrightarrow> x * 2 \<le> 1 \<longleftrightarrow> x = (1/2::real)" |
486 |
by simp |
|
60303 | 487 |
|
488 |
lemma continuous_on_joinpaths: |
|
489 |
assumes "continuous_on {0..1} g1" "continuous_on {0..1} g2" "pathfinish g1 = pathstart g2" |
|
490 |
shows "continuous_on {0..1} (g1 +++ g2)" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
491 |
using assms path_def path_join by blast |
60303 | 492 |
|
493 |
lemma path_join_imp: "\<lbrakk>path g1; path g2; pathfinish g1 = pathstart g2\<rbrakk> \<Longrightarrow> path(g1 +++ g2)" |
|
72256 | 494 |
by simp |
60303 | 495 |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
496 |
lemma arc_join: |
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
497 |
assumes "arc g1" "arc g2" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
498 |
"pathfinish g1 = pathstart g2" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
499 |
"path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g2}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
500 |
shows "arc(g1 +++ g2)" |
60303 | 501 |
proof - |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
502 |
have injg1: "inj_on g1 {0..1}" and injg2: "inj_on g2 {0..1}" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
503 |
and g11: "g1 1 = g2 0" and sb: "g1 ` {0..1} \<inter> g2 ` {0..1} \<subseteq> {g2 0}" |
60303 | 504 |
using assms |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
505 |
by (auto simp: arc_def pathfinish_def pathstart_def path_image_def) |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
506 |
{ fix x and y::real |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
507 |
assume xy: "g2 (2 * x - 1) = g1 (2 * y)" "x \<le> 1" "0 \<le> y" " y * 2 \<le> 1" "\<not> x * 2 \<le> 1" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
508 |
then have "g1 (2 * y) = g2 0" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
509 |
using sb by force |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
510 |
then have False |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
511 |
using xy inj_onD injg2 by fastforce |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
512 |
} note * = this |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
513 |
have "inj_on (g1 +++ g2) {0..1}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
514 |
using inj_onD [OF injg1] inj_onD [OF injg2] * |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
515 |
by (simp add: inj_on_def joinpaths_def Ball_def) (smt (verit)) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
516 |
then show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
517 |
using arc_def assms path_join_imp by blast |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
518 |
qed |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
519 |
|
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
520 |
lemma simple_path_join_loop: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
521 |
assumes "arc g1" "arc g2" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
522 |
"pathfinish g1 = pathstart g2" "pathfinish g2 = pathstart g1" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
523 |
"path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
524 |
shows "simple_path(g1 +++ g2)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
525 |
proof - |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
526 |
have injg1: "inj_on g1 {0..1}" and injg2: "inj_on g2 {0..1}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
527 |
using assms by (auto simp add: arc_def) |
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
528 |
have g12: "g1 1 = g2 0" |
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
529 |
and g21: "g2 1 = g1 0" |
60303 | 530 |
and sb: "g1 ` {0..1} \<inter> g2 ` {0..1} \<subseteq> {g1 0, g2 0}" |
531 |
using assms |
|
532 |
by (simp_all add: arc_def pathfinish_def pathstart_def path_image_def) |
|
533 |
{ fix x and y::real |
|
72256 | 534 |
assume g2_eq: "g2 (2 * x - 1) = g1 (2 * y)" |
535 |
and xyI: "x \<noteq> 1 \<or> y \<noteq> 0" |
|
536 |
and xy: "x \<le> 1" "0 \<le> y" " y * 2 \<le> 1" "\<not> x * 2 \<le> 1" |
|
537 |
then consider "g1 (2 * y) = g1 0" | "g1 (2 * y) = g2 0" |
|
538 |
using sb by force |
|
539 |
then have False |
|
540 |
proof cases |
|
541 |
case 1 |
|
542 |
then have "y = 0" |
|
543 |
using xy g2_eq by (auto dest!: inj_onD [OF injg1]) |
|
544 |
then show ?thesis |
|
545 |
using xy g2_eq xyI by (auto dest: inj_onD [OF injg2] simp flip: g21) |
|
546 |
next |
|
547 |
case 2 |
|
548 |
then have "2*x = 1" |
|
549 |
using g2_eq g12 inj_onD [OF injg2] atLeastAtMost_iff xy(1) xy(4) by fastforce |
|
550 |
with xy show False by auto |
|
551 |
qed |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
552 |
} note * = this |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
553 |
have "loop_free(g1 +++ g2)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
554 |
using inj_onD [OF injg1] inj_onD [OF injg2] * |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
555 |
by (simp add: loop_free_def joinpaths_def Ball_def) (smt (verit)) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
556 |
then show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
557 |
by (simp add: arc_imp_path assms simple_path_def) |
60303 | 558 |
qed |
559 |
||
560 |
lemma reversepath_joinpaths: |
|
561 |
"pathfinish g1 = pathstart g2 \<Longrightarrow> reversepath(g1 +++ g2) = reversepath g2 +++ reversepath g1" |
|
562 |
unfolding reversepath_def pathfinish_def pathstart_def joinpaths_def |
|
563 |
by (rule ext) (auto simp: mult.commute) |
|
564 |
||
565 |
||
70136 | 566 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
567 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
568 |
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
|
569 |
fixes g1 :: "real \<Rightarrow> 'a::metric_space" |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
570 |
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
|
571 |
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
|
572 |
proof (rule ccontr) |
63040 | 573 |
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
|
574 |
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
|
575 |
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
|
576 |
by auto |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
577 |
then have "e > 0" |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
578 |
by (metis e_def pathfinish_def pathstart_def) |
72256 | 579 |
then have "\<forall>e>0. \<exists>d>0. \<forall>x'\<in>{0..1}. dist x' 0 < d \<longrightarrow> dist (g2 x') (g2 0) < e" |
580 |
using \<open>path g2\<close> atLeastAtMost_iff zero_le_one unfolding path_def continuous_on_iff |
|
581 |
by blast |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
582 |
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
|
583 |
and d1: "\<And>x'. \<lbrakk>x'\<in>{0..1}; norm x' < d1\<rbrakk> \<Longrightarrow> dist (g2 x') (g2 0) < e/2" |
72256 | 584 |
by (metis \<open>0 < e\<close> half_gt_zero_iff norm_conv_dist) |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
585 |
obtain d2 where "d2 > 0" |
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
586 |
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
|
587 |
\<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
|
588 |
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
|
589 |
apply (drule_tac x="1/2" in bspec, simp) |
72256 | 590 |
apply (drule_tac x="e/2" in spec, force simp: joinpaths_def) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
591 |
done |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
592 |
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
|
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 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
|
595 |
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
|
596 |
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
|
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 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
|
599 |
using \<open>d1 > 0\<close> \<open>d2 > 0\<close> by (simp add: min_def dist_norm) |
69508 | 600 |
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
|
601 |
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
|
602 |
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
|
603 |
"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
|
604 |
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
|
605 |
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
|
606 |
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
|
607 |
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
|
608 |
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
|
609 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
610 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
611 |
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
|
612 |
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
|
613 |
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
|
614 |
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
|
615 |
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
|
616 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
617 |
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
|
618 |
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
|
619 |
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
|
620 |
"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
|
621 |
proof - |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
622 |
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
|
623 |
\<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
624 |
using assms by (simp add: simple_path_def loop_free_def) |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
625 |
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
|
626 |
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
|
627 |
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
|
628 |
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
|
629 |
fix x y |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
630 |
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
|
631 |
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
|
632 |
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
|
633 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
634 |
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
|
635 |
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
|
636 |
have [simp]: "g2 0 = g1 1" |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
637 |
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
|
638 |
have "path g2" |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
639 |
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
|
640 |
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
|
641 |
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
|
642 |
fix x y |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
643 |
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
|
644 |
then show "x = y" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
645 |
using * [of "(x+1) / 2" "(y+1) / 2"] |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
646 |
by (force simp: joinpaths_def split_ifs field_split_simps) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
647 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
648 |
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
|
649 |
using assms by (simp add: arc_def) |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
650 |
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
|
651 |
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
|
652 |
using * [of "x / 2" "(y + 1) / 2"] that |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
653 |
by (auto simp: joinpaths_def split_ifs field_split_simps) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
654 |
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
|
655 |
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
|
656 |
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
|
657 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
658 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
659 |
lemma simple_path_join_loop_eq: |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
660 |
assumes "pathfinish g2 = pathstart g1" "pathfinish g1 = pathstart g2" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
661 |
shows "simple_path(g1 +++ g2) \<longleftrightarrow> |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
662 |
arc g1 \<and> arc g2 \<and> path_image g1 \<inter> path_image g2 \<subseteq> {pathstart g1, pathstart g2}" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
663 |
by (metis assms simple_path_joinE simple_path_join_loop) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
664 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
665 |
lemma arc_join_eq: |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
666 |
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
|
667 |
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
|
668 |
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
|
669 |
(is "?lhs = ?rhs") |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
670 |
proof |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
671 |
assume ?lhs then show ?rhs |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
672 |
using reversepath_simps assms |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
673 |
by (smt (verit, best) Int_commute arc_reversepath arc_simple_path in_mono insertE pathstart_join |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
674 |
reversepath_joinpaths simple_path_joinE subsetI) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
675 |
next |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
676 |
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
|
677 |
using assms |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
678 |
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
|
679 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
680 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
681 |
lemma arc_join_eq_alt: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
682 |
"pathfinish g1 = pathstart g2 |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
683 |
\<Longrightarrow> arc(g1 +++ g2) \<longleftrightarrow> arc g1 \<and> arc g2 \<and> path_image g1 \<inter> path_image g2 = {pathstart g2}" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
684 |
using pathfinish_in_path_image by (fastforce simp: arc_join_eq) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
685 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
686 |
|
80052
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
687 |
subsubsection\<^marker>\<open>tag unimportant\<close>\<open>Symmetry and loops\<close> |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
688 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
689 |
lemma path_sym: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
690 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> \<Longrightarrow> path(p +++ q) \<longleftrightarrow> path(q +++ p)" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
691 |
by auto |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
692 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
693 |
lemma simple_path_sym: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
694 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
695 |
\<Longrightarrow> simple_path(p +++ q) \<longleftrightarrow> simple_path(q +++ p)" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
696 |
by (metis (full_types) inf_commute insert_commute simple_path_joinE simple_path_join_loop) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
697 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
698 |
lemma path_image_sym: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
699 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart p\<rbrakk> |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
700 |
\<Longrightarrow> path_image(p +++ q) = path_image(q +++ p)" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
701 |
by (simp add: path_image_join sup_commute) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
702 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
703 |
lemma simple_path_joinI: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
704 |
assumes "arc p1" "arc p2" "pathfinish p1 = pathstart p2" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
705 |
assumes "path_image p1 \<inter> path_image p2 |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
706 |
\<subseteq> insert (pathstart p2) (if pathstart p1 = pathfinish p2 then {pathstart p1} else {})" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
707 |
shows "simple_path (p1 +++ p2)" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
708 |
by (smt (verit, best) Int_commute arc_imp_simple_path arc_join assms insert_commute simple_path_join_loop simple_path_sym) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
709 |
|
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
710 |
lemma simple_path_join3I: |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
711 |
assumes "arc p1" "arc p2" "arc p3" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
712 |
assumes "path_image p1 \<inter> path_image p2 \<subseteq> {pathstart p2}" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
713 |
assumes "path_image p2 \<inter> path_image p3 \<subseteq> {pathstart p3}" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
714 |
assumes "path_image p1 \<inter> path_image p3 \<subseteq> {pathstart p1} \<inter> {pathfinish p3}" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
715 |
assumes "pathfinish p1 = pathstart p2" "pathfinish p2 = pathstart p3" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
716 |
shows "simple_path (p1 +++ p2 +++ p3)" |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
717 |
using assms by (intro simple_path_joinI arc_join) (auto simp: path_image_join) |
35b2143aeec6
An assortment of new material, mostly due to Manuel
paulson <lp15@cam.ac.uk>
parents:
78698
diff
changeset
|
718 |
|
70136 | 719 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
720 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
721 |
lemma path_assoc: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
722 |
"\<lbrakk>pathfinish p = pathstart q; pathfinish q = pathstart r\<rbrakk> |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
723 |
\<Longrightarrow> path(p +++ (q +++ r)) \<longleftrightarrow> path((p +++ q) +++ r)" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
724 |
by simp |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
725 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
726 |
lemma simple_path_assoc: |
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
727 |
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
|
728 |
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
|
729 |
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
|
730 |
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
|
731 |
proof |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
732 |
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
|
733 |
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
|
734 |
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
|
735 |
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
|
736 |
next |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
737 |
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
|
738 |
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
|
739 |
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
|
740 |
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
|
741 |
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
|
742 |
using assms |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
743 |
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
|
744 |
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
|
745 |
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
|
746 |
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
|
747 |
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
|
748 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
749 |
next |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
750 |
case False |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
751 |
{ fix x :: 'a |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
752 |
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
|
753 |
"(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
|
754 |
"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
|
755 |
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
|
756 |
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
|
757 |
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
|
758 |
by blast |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
759 |
} |
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
760 |
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
|
761 |
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
|
762 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
763 |
|
63594
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
764 |
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
|
765 |
"\<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
|
766 |
\<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
|
767 |
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
|
768 |
|
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
769 |
|
69518 | 770 |
subsection\<open>Subpath\<close> |
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
771 |
|
70136 | 772 |
definition\<^marker>\<open>tag important\<close> subpath :: "real \<Rightarrow> real \<Rightarrow> (real \<Rightarrow> 'a) \<Rightarrow> real \<Rightarrow> 'a::real_normed_vector" |
60303 | 773 |
where "subpath a b g \<equiv> \<lambda>x. g((b - a) * x + a)" |
774 |
||
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 |
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
|
776 |
fixes g :: "_ \<Rightarrow> 'a::real_normed_vector" |
60303 | 777 |
shows "path_image(subpath u v g) = g ` (closed_segment u v)" |
69661 | 778 |
by (auto simp add: closed_segment_real_eq path_image_def subpath_def) |
60303 | 779 |
|
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
|
780 |
lemma path_image_subpath: |
60303 | 781 |
fixes g :: "real \<Rightarrow> 'a::real_normed_vector" |
782 |
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
|
783 |
by (simp add: path_image_subpath_gen closed_segment_eq_real_ivl) |
60303 | 784 |
|
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
|
785 |
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
|
786 |
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
|
787 |
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
|
788 |
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
|
789 |
|
60303 | 790 |
lemma path_subpath [simp]: |
791 |
fixes g :: "real \<Rightarrow> 'a::real_normed_vector" |
|
792 |
assumes "path g" "u \<in> {0..1}" "v \<in> {0..1}" |
|
793 |
shows "path(subpath u v g)" |
|
794 |
proof - |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
795 |
have "continuous_on {u..v} g" "continuous_on {v..u} g" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
796 |
using assms continuous_on_path by fastforce+ |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
797 |
then have "continuous_on {0..1} (g \<circ> (\<lambda>x. ((v-u) * x+ u)))" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
798 |
by (intro continuous_intros; simp add: image_affinity_atLeastAtMost [where c=u]) |
60303 | 799 |
then show ?thesis |
800 |
by (simp add: path_def subpath_def) |
|
49653 | 801 |
qed |
36583 | 802 |
|
60303 | 803 |
lemma pathstart_subpath [simp]: "pathstart(subpath u v g) = g(u)" |
804 |
by (simp add: pathstart_def subpath_def) |
|
805 |
||
806 |
lemma pathfinish_subpath [simp]: "pathfinish(subpath u v g) = g(v)" |
|
807 |
by (simp add: pathfinish_def subpath_def) |
|
808 |
||
809 |
lemma subpath_trivial [simp]: "subpath 0 1 g = g" |
|
810 |
by (simp add: subpath_def) |
|
811 |
||
812 |
lemma subpath_reversepath: "subpath 1 0 g = reversepath g" |
|
813 |
by (simp add: reversepath_def subpath_def) |
|
814 |
||
815 |
lemma reversepath_subpath: "reversepath(subpath u v g) = subpath v u g" |
|
816 |
by (simp add: reversepath_def subpath_def algebra_simps) |
|
817 |
||
68096 | 818 |
lemma subpath_translation: "subpath u v ((\<lambda>x. a + x) \<circ> g) = (\<lambda>x. a + x) \<circ> subpath u v g" |
60303 | 819 |
by (rule ext) (simp add: subpath_def) |
820 |
||
70971 | 821 |
lemma subpath_image: "subpath u v (f \<circ> g) = f \<circ> subpath u v g" |
60303 | 822 |
by (rule ext) (simp add: subpath_def) |
823 |
||
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
824 |
lemma affine_ineq: |
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
825 |
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
|
826 |
assumes "x \<le> 1" "v \<le> u" |
60303 | 827 |
shows "v + x * u \<le> u + x * v" |
828 |
proof - |
|
829 |
have "(1-x)*(u-v) \<ge> 0" |
|
830 |
using assms by auto |
|
831 |
then show ?thesis |
|
832 |
by (simp add: algebra_simps) |
|
49653 | 833 |
qed |
36583 | 834 |
|
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
835 |
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
|
836 |
fixes a::real shows "\<lbrakk>a \<le> 1; b \<le> 1\<rbrakk> \<Longrightarrow> a + b \<le> 1 + a * b" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
837 |
by (metis add.commute affine_ineq mult.right_neutral) |
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
838 |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
839 |
lemma simple_path_subpath_eq: |
60303 | 840 |
"simple_path(subpath u v g) \<longleftrightarrow> |
841 |
path(subpath u v g) \<and> u\<noteq>v \<and> |
|
842 |
(\<forall>x y. x \<in> closed_segment u v \<and> y \<in> closed_segment u v \<and> g x = g y |
|
843 |
\<longrightarrow> x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u)" |
|
844 |
(is "?lhs = ?rhs") |
|
72256 | 845 |
proof |
60303 | 846 |
assume ?lhs |
847 |
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
|
848 |
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 | 849 |
\<Longrightarrow> x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
850 |
by (auto simp: simple_path_def loop_free_def subpath_def) |
60303 | 851 |
{ fix x y |
852 |
assume "x \<in> closed_segment u v" "y \<in> closed_segment u v" "g x = g y" |
|
853 |
then have "x = y \<or> x = u \<and> y = v \<or> x = v \<and> y = u" |
|
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
854 |
using sim [of "(x-u)/(v-u)" "(y-u)/(v-u)"] p |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
855 |
by (auto split: if_split_asm simp add: closed_segment_real_eq image_affinity_atLeastAtMost) |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
856 |
(simp_all add: field_split_simps) |
60303 | 857 |
} moreover |
858 |
have "path(subpath u v g) \<and> u\<noteq>v" |
|
859 |
using sim [of "1/3" "2/3"] p |
|
860 |
by (auto simp: subpath_def) |
|
861 |
ultimately show ?rhs |
|
862 |
by metis |
|
863 |
next |
|
864 |
assume ?rhs |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
865 |
then |
60303 | 866 |
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" |
867 |
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" |
|
868 |
and ne: "u < v \<or> v < u" |
|
869 |
and psp: "path (subpath u v g)" |
|
870 |
by (auto simp: closed_segment_real_eq image_affinity_atLeastAtMost) |
|
871 |
have [simp]: "\<And>x. u + x * v = v + x * u \<longleftrightarrow> u=v \<or> x=1" |
|
872 |
by algebra |
|
873 |
show ?lhs using psp ne |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
874 |
unfolding simple_path_def loop_free_def subpath_def |
60303 | 875 |
by (fastforce simp add: algebra_simps affine_ineq mult_left_mono crossproduct_eq dest: d1 d2) |
876 |
qed |
|
877 |
||
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
878 |
lemma arc_subpath_eq: |
60303 | 879 |
"arc(subpath u v g) \<longleftrightarrow> path(subpath u v g) \<and> u\<noteq>v \<and> inj_on g (closed_segment u v)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
880 |
by (smt (verit, best) arc_simple_path closed_segment_commute ends_in_segment(2) inj_on_def pathfinish_subpath pathstart_subpath simple_path_subpath_eq) |
60303 | 881 |
|
882 |
||
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
883 |
lemma simple_path_subpath: |
60303 | 884 |
assumes "simple_path g" "u \<in> {0..1}" "v \<in> {0..1}" "u \<noteq> v" |
885 |
shows "simple_path(subpath u v g)" |
|
886 |
using assms |
|
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
887 |
unfolding simple_path_subpath_eq |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
888 |
by (force simp: simple_path_def loop_free_def closed_segment_real_eq image_affinity_atLeastAtMost) |
60303 | 889 |
|
890 |
lemma arc_simple_path_subpath: |
|
891 |
"\<lbrakk>simple_path g; u \<in> {0..1}; v \<in> {0..1}; g u \<noteq> g v\<rbrakk> \<Longrightarrow> arc(subpath u v g)" |
|
892 |
by (force intro: simple_path_subpath simple_path_imp_arc) |
|
893 |
||
894 |
lemma arc_subpath_arc: |
|
895 |
"\<lbrakk>arc g; u \<in> {0..1}; v \<in> {0..1}; u \<noteq> v\<rbrakk> \<Longrightarrow> arc(subpath u v g)" |
|
896 |
by (meson arc_def arc_imp_simple_path arc_simple_path_subpath inj_onD) |
|
897 |
||
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
898 |
lemma arc_simple_path_subpath_interior: |
60303 | 899 |
"\<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)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
900 |
by (force simp: simple_path_def loop_free_def intro: arc_simple_path_subpath) |
60303 | 901 |
|
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
902 |
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
|
903 |
"\<lbrakk>u \<in> {0..1}; v \<in> {0..1}\<rbrakk> \<Longrightarrow> path_image(subpath u v g) \<subseteq> path_image g" |
72256 | 904 |
by (metis atLeastAtMost_iff atLeastatMost_subset_iff path_image_def path_image_subpath subset_image_iff) |
60303 | 905 |
|
906 |
lemma join_subpaths_middle: "subpath (0) ((1 / 2)) p +++ subpath ((1 / 2)) 1 p = p" |
|
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
907 |
by (rule ext) (simp add: joinpaths_def subpath_def field_split_simps) |
53640 | 908 |
|
69514 | 909 |
|
70136 | 910 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
911 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
912 |
lemma subpath_to_frontier_explicit: |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
913 |
fixes S :: "'a::metric_space set" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
914 |
assumes g: "path g" and "pathfinish g \<notin> S" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
915 |
obtains u where "0 \<le> u" "u \<le> 1" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
916 |
"\<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
|
917 |
"(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
|
918 |
proof - |
72256 | 919 |
have gcon: "continuous_on {0..1} g" |
920 |
using g by (simp add: path_def) |
|
921 |
moreover have "bounded ({u. g u \<in> closure (- S)} \<inter> {0..1})" |
|
922 |
using compact_eq_bounded_closed by fastforce |
|
923 |
ultimately have com: "compact ({0..1} \<inter> {u. g u \<in> closure (- S)})" |
|
924 |
using closed_vimage_Int |
|
925 |
by (metis (full_types) Int_commute closed_atLeastAtMost closed_closure compact_eq_bounded_closed vimage_def) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
926 |
have "1 \<in> {u. g u \<in> closure (- S)}" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
927 |
using assms by (simp add: pathfinish_def closure_def) |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
928 |
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
|
929 |
using atLeastAtMost_iff zero_le_one by blast |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
930 |
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
|
931 |
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
|
932 |
using compact_attains_inf [OF com dis] by fastforce |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
933 |
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
|
934 |
using closure_def by fastforce |
72256 | 935 |
have \<section>: "g u \<in> closure S" if "u \<noteq> 0" |
936 |
proof - |
|
937 |
have "u > 0" using that \<open>0 \<le> u\<close> by auto |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
938 |
{ 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
|
939 |
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
|
940 |
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
|
941 |
have *: "dist (max 0 (u - d / 2)) u \<le> d" |
61808 | 942 |
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
|
943 |
have "\<exists>y\<in>S. dist y (g u) < e" |
61808 | 944 |
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
|
945 |
by (force intro: d [OF _ *] umin') |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
946 |
} |
72256 | 947 |
then show ?thesis |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
948 |
by (simp add: frontier_def closure_approachable) |
72256 | 949 |
qed |
950 |
show ?thesis |
|
951 |
proof |
|
952 |
show "\<And>x. 0 \<le> x \<and> x < u \<Longrightarrow> g x \<in> interior S" |
|
953 |
using \<open>u \<le> 1\<close> interior_closure umin by fastforce |
|
954 |
show "g u \<notin> interior S" |
|
955 |
by (simp add: gu interior_closure) |
|
956 |
qed (use \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> \<section> in auto) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
957 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
958 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
959 |
lemma subpath_to_frontier_strong: |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
960 |
assumes g: "path g" and "pathfinish g \<notin> S" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
961 |
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
|
962 |
"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
|
963 |
proof - |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
964 |
obtain u where "0 \<le> u" "u \<le> 1" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
965 |
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
|
966 |
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
|
967 |
using subpath_to_frontier_explicit [OF assms] by blast |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
968 |
show ?thesis |
72256 | 969 |
proof |
970 |
show "g u \<notin> interior S" |
|
971 |
using gunot by blast |
|
972 |
qed (use \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> u0 in \<open>(force simp: subpath_def gxin)+\<close>) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
973 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
974 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
975 |
lemma subpath_to_frontier: |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
976 |
assumes g: "path g" and g0: "pathstart g \<in> closure S" and g1: "pathfinish g \<notin> S" |
72256 | 977 |
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" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
978 |
proof - |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
979 |
obtain u where "0 \<le> u" "u \<le> 1" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
980 |
and notin: "g u \<notin> interior S" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
981 |
and disj: "u = 0 \<or> |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
982 |
(\<forall>x. 0 \<le> x \<and> x < 1 \<longrightarrow> subpath 0 u g x \<in> interior S) \<and> g u \<in> closure S" |
72256 | 983 |
(is "_ \<or> ?P") |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
984 |
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
|
985 |
show ?thesis |
72256 | 986 |
proof |
987 |
show "g u \<in> frontier S" |
|
988 |
by (metis DiffI disj frontier_def g0 notin pathstart_def) |
|
989 |
show "path_image (subpath 0 u g) - {g u} \<subseteq> interior S" |
|
990 |
using disj |
|
991 |
proof |
|
992 |
assume "u = 0" |
|
993 |
then show ?thesis |
|
994 |
by (simp add: path_image_subpath) |
|
995 |
next |
|
996 |
assume P: ?P |
|
997 |
show ?thesis |
|
998 |
proof (clarsimp simp add: path_image_subpath_gen) |
|
999 |
fix y |
|
1000 |
assume y: "y \<in> closed_segment 0 u" "g y \<notin> interior S" |
|
1001 |
with \<open>0 \<le> u\<close> have "0 \<le> y" "y \<le> u" |
|
1002 |
by (auto simp: closed_segment_eq_real_ivl split: if_split_asm) |
|
1003 |
then have "y=u \<or> subpath 0 u g (y/u) \<in> interior S" |
|
1004 |
using P less_eq_real_def by force |
|
1005 |
then show "g y = g u" |
|
1006 |
using y by (auto simp: subpath_def split: if_split_asm) |
|
1007 |
qed |
|
1008 |
qed |
|
1009 |
qed (use \<open>0 \<le> u\<close> \<open>u \<le> 1\<close> in auto) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1010 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1011 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1012 |
lemma exists_path_subpath_to_frontier: |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1013 |
fixes S :: "'a::real_normed_vector set" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1014 |
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
|
1015 |
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
|
1016 |
"path_image h - {pathfinish h} \<subseteq> interior S" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1017 |
"pathfinish h \<in> frontier S" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1018 |
proof - |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1019 |
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
|
1020 |
using subpath_to_frontier [OF assms] by blast |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1021 |
show ?thesis |
72256 | 1022 |
proof |
1023 |
show "path_image (subpath 0 u g) \<subseteq> path_image g" |
|
1024 |
by (simp add: path_image_subpath_subset u) |
|
1025 |
show "pathstart (subpath 0 u g) = pathstart g" |
|
1026 |
by (metis pathstart_def pathstart_subpath) |
|
1027 |
qed (use assms u in \<open>auto simp: path_image_subpath\<close>) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1028 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1029 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1030 |
lemma exists_path_subpath_to_frontier_closed: |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1031 |
fixes S :: "'a::real_normed_vector set" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1032 |
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
|
1033 |
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
|
1034 |
"pathfinish h \<in> frontier S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1035 |
by (smt (verit, del_insts) Diff_iff Int_iff S closure_closed exists_path_subpath_to_frontier |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1036 |
frontier_def g g0 g1 interior_subset singletonD subset_eq) |
49653 | 1037 |
|
69514 | 1038 |
|
1039 |
subsection \<open>Shift Path to Start at Some Given Point\<close> |
|
36583 | 1040 |
|
70136 | 1041 |
definition\<^marker>\<open>tag important\<close> shiftpath :: "real \<Rightarrow> (real \<Rightarrow> 'a::topological_space) \<Rightarrow> real \<Rightarrow> 'a" |
53640 | 1042 |
where "shiftpath a f = (\<lambda>x. if (a + x) \<le> 1 then f (a + x) else f (a + x - 1))" |
36583 | 1043 |
|
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1044 |
lemma shiftpath_alt_def: "shiftpath a f = (\<lambda>x. if x \<le> 1-a then f (a + x) else f (a + x - 1))" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1045 |
by (auto simp: shiftpath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1046 |
|
53640 | 1047 |
lemma pathstart_shiftpath: "a \<le> 1 \<Longrightarrow> pathstart (shiftpath a g) = g a" |
36583 | 1048 |
unfolding pathstart_def shiftpath_def by auto |
1049 |
||
49653 | 1050 |
lemma pathfinish_shiftpath: |
53640 | 1051 |
assumes "0 \<le> a" |
1052 |
and "pathfinish g = pathstart g" |
|
1053 |
shows "pathfinish (shiftpath a g) = g a" |
|
1054 |
using assms |
|
1055 |
unfolding pathstart_def pathfinish_def shiftpath_def |
|
36583 | 1056 |
by auto |
1057 |
||
1058 |
lemma endpoints_shiftpath: |
|
53640 | 1059 |
assumes "pathfinish g = pathstart g" |
1060 |
and "a \<in> {0 .. 1}" |
|
1061 |
shows "pathfinish (shiftpath a g) = g a" |
|
1062 |
and "pathstart (shiftpath a g) = g a" |
|
1063 |
using assms |
|
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1064 |
by (simp_all add: pathstart_shiftpath pathfinish_shiftpath) |
36583 | 1065 |
|
1066 |
lemma closed_shiftpath: |
|
53640 | 1067 |
assumes "pathfinish g = pathstart g" |
1068 |
and "a \<in> {0..1}" |
|
1069 |
shows "pathfinish (shiftpath a g) = pathstart (shiftpath a g)" |
|
1070 |
using endpoints_shiftpath[OF assms] |
|
1071 |
by auto |
|
36583 | 1072 |
|
1073 |
lemma path_shiftpath: |
|
53640 | 1074 |
assumes "path g" |
1075 |
and "pathfinish g = pathstart g" |
|
1076 |
and "a \<in> {0..1}" |
|
1077 |
shows "path (shiftpath a g)" |
|
49653 | 1078 |
proof - |
53640 | 1079 |
have *: "{0 .. 1} = {0 .. 1-a} \<union> {1-a .. 1}" |
1080 |
using assms(3) by auto |
|
49653 | 1081 |
have **: "\<And>x. x + a = 1 \<Longrightarrow> g (x + a - 1) = g (x + a)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1082 |
by (smt (verit, best) assms(2) pathfinish_def pathstart_def) |
49653 | 1083 |
show ?thesis |
1084 |
unfolding path_def shiftpath_def * |
|
68096 | 1085 |
proof (rule continuous_on_closed_Un) |
1086 |
have contg: "continuous_on {0..1} g" |
|
1087 |
using \<open>path g\<close> path_def by blast |
|
1088 |
show "continuous_on {0..1-a} (\<lambda>x. if a + x \<le> 1 then g (a + x) else g (a + x - 1))" |
|
1089 |
proof (rule continuous_on_eq) |
|
1090 |
show "continuous_on {0..1-a} (g \<circ> (+) a)" |
|
1091 |
by (intro continuous_intros continuous_on_subset [OF contg]) (use \<open>a \<in> {0..1}\<close> in auto) |
|
1092 |
qed auto |
|
1093 |
show "continuous_on {1-a..1} (\<lambda>x. if a + x \<le> 1 then g (a + x) else g (a + x - 1))" |
|
1094 |
proof (rule continuous_on_eq) |
|
1095 |
show "continuous_on {1-a..1} (g \<circ> (+) (a - 1))" |
|
1096 |
by (intro continuous_intros continuous_on_subset [OF contg]) (use \<open>a \<in> {0..1}\<close> in auto) |
|
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1097 |
qed (auto simp: "**" add.commute add_diff_eq) |
68096 | 1098 |
qed auto |
49653 | 1099 |
qed |
36583 | 1100 |
|
49653 | 1101 |
lemma shiftpath_shiftpath: |
53640 | 1102 |
assumes "pathfinish g = pathstart g" |
1103 |
and "a \<in> {0..1}" |
|
1104 |
and "x \<in> {0..1}" |
|
36583 | 1105 |
shows "shiftpath (1 - a) (shiftpath a g) x = g x" |
53640 | 1106 |
using assms |
1107 |
unfolding pathfinish_def pathstart_def shiftpath_def |
|
1108 |
by auto |
|
36583 | 1109 |
|
1110 |
lemma path_image_shiftpath: |
|
68096 | 1111 |
assumes a: "a \<in> {0..1}" |
53640 | 1112 |
and "pathfinish g = pathstart g" |
1113 |
shows "path_image (shiftpath a g) = path_image g" |
|
49653 | 1114 |
proof - |
1115 |
{ fix x |
|
68096 | 1116 |
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 | 1117 |
then have "\<exists>y\<in>{0..1} \<inter> {x. a + x \<le> 1}. g x = g (a + y)" |
49653 | 1118 |
proof (cases "a \<le> x") |
1119 |
case False |
|
49654 | 1120 |
then show ?thesis |
49653 | 1121 |
apply (rule_tac x="1 + x - a" in bexI) |
72256 | 1122 |
using g gne[of "1 + x - a"] a by (force simp: field_simps)+ |
49653 | 1123 |
next |
1124 |
case True |
|
53640 | 1125 |
then show ?thesis |
68096 | 1126 |
using g a by (rule_tac x="x - a" in bexI) (auto simp: field_simps) |
49653 | 1127 |
qed |
1128 |
} |
|
49654 | 1129 |
then show ?thesis |
53640 | 1130 |
using assms |
1131 |
unfolding shiftpath_def path_image_def pathfinish_def pathstart_def |
|
68096 | 1132 |
by (auto simp: image_iff) |
49653 | 1133 |
qed |
1134 |
||
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1135 |
lemma loop_free_shiftpath: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1136 |
assumes "loop_free g" "pathfinish g = pathstart g" and a: "0 \<le> a" "a \<le> 1" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1137 |
shows "loop_free (shiftpath a g)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1138 |
unfolding loop_free_def |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1139 |
proof (intro conjI impI ballI) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1140 |
show "x = y \<or> x = 0 \<and> y = 1 \<or> x = 1 \<and> y = 0" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1141 |
if "x \<in> {0..1}" "y \<in> {0..1}" "shiftpath a g x = shiftpath a g y" for x y |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1142 |
using that a assms unfolding shiftpath_def loop_free_def |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1143 |
by (smt (verit, ccfv_threshold) atLeastAtMost_iff) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1144 |
qed |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1145 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1146 |
lemma simple_path_shiftpath: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1147 |
assumes "simple_path g" "pathfinish g = pathstart g" and a: "0 \<le> a" "a \<le> 1" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1148 |
shows "simple_path (shiftpath a g)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1149 |
using assms loop_free_shiftpath path_shiftpath simple_path_def by fastforce |
36583 | 1150 |
|
69514 | 1151 |
|
1152 |
subsection \<open>Straight-Line Paths\<close> |
|
36583 | 1153 |
|
70136 | 1154 |
definition\<^marker>\<open>tag important\<close> linepath :: "'a::real_normed_vector \<Rightarrow> 'a \<Rightarrow> real \<Rightarrow> 'a" |
49653 | 1155 |
where "linepath a b = (\<lambda>x. (1 - x) *\<^sub>R a + x *\<^sub>R b)" |
36583 | 1156 |
|
53640 | 1157 |
lemma pathstart_linepath[simp]: "pathstart (linepath a b) = a" |
1158 |
unfolding pathstart_def linepath_def |
|
1159 |
by auto |
|
36583 | 1160 |
|
53640 | 1161 |
lemma pathfinish_linepath[simp]: "pathfinish (linepath a b) = b" |
1162 |
unfolding pathfinish_def linepath_def |
|
1163 |
by auto |
|
36583 | 1164 |
|
68721 | 1165 |
lemma linepath_inner: "linepath a b x \<bullet> v = linepath (a \<bullet> v) (b \<bullet> v) x" |
1166 |
by (simp add: linepath_def algebra_simps) |
|
1167 |
||
1168 |
lemma Re_linepath': "Re (linepath a b x) = linepath (Re a) (Re b) x" |
|
1169 |
by (simp add: linepath_def) |
|
1170 |
||
1171 |
lemma Im_linepath': "Im (linepath a b x) = linepath (Im a) (Im b) x" |
|
1172 |
by (simp add: linepath_def) |
|
1173 |
||
1174 |
lemma linepath_0': "linepath a b 0 = a" |
|
1175 |
by (simp add: linepath_def) |
|
1176 |
||
1177 |
lemma linepath_1': "linepath a b 1 = b" |
|
1178 |
by (simp add: linepath_def) |
|
1179 |
||
36583 | 1180 |
lemma continuous_linepath_at[intro]: "continuous (at x) (linepath a b)" |
53640 | 1181 |
unfolding linepath_def |
1182 |
by (intro continuous_intros) |
|
36583 | 1183 |
|
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
|
1184 |
lemma continuous_on_linepath [intro,continuous_intros]: "continuous_on s (linepath a b)" |
53640 | 1185 |
using continuous_linepath_at |
1186 |
by (auto intro!: continuous_at_imp_continuous_on) |
|
36583 | 1187 |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1188 |
lemma path_linepath[iff]: "path (linepath a b)" |
53640 | 1189 |
unfolding path_def |
1190 |
by (rule continuous_on_linepath) |
|
36583 | 1191 |
|
53640 | 1192 |
lemma path_image_linepath[simp]: "path_image (linepath a b) = closed_segment a b" |
49653 | 1193 |
unfolding path_image_def segment linepath_def |
60303 | 1194 |
by auto |
49653 | 1195 |
|
53640 | 1196 |
lemma reversepath_linepath[simp]: "reversepath (linepath a b) = linepath b a" |
49653 | 1197 |
unfolding reversepath_def linepath_def |
36583 | 1198 |
by auto |
1199 |
||
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
|
1200 |
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
|
1201 |
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
|
1202 |
|
68721 | 1203 |
lemma linepath_cnj: "cnj (linepath a b x) = linepath (cnj a) (cnj b) x" |
1204 |
by (simp add: linepath_def) |
|
1205 |
||
60303 | 1206 |
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
|
1207 |
assumes "a \<noteq> b" shows [simp]: "arc (linepath a b)" |
36583 | 1208 |
proof - |
53640 | 1209 |
{ |
1210 |
fix x y :: "real" |
|
36583 | 1211 |
assume "x *\<^sub>R b + y *\<^sub>R a = x *\<^sub>R a + y *\<^sub>R b" |
53640 | 1212 |
then have "(x - y) *\<^sub>R a = (x - y) *\<^sub>R b" |
1213 |
by (simp add: algebra_simps) |
|
1214 |
with assms have "x = y" |
|
1215 |
by simp |
|
1216 |
} |
|
49654 | 1217 |
then show ?thesis |
60809
457abb82fb9e
the Cauchy integral theorem and related material
paulson <lp15@cam.ac.uk>
parents:
60420
diff
changeset
|
1218 |
unfolding arc_def inj_on_def |
68096 | 1219 |
by (fastforce simp: algebra_simps linepath_def) |
49653 | 1220 |
qed |
36583 | 1221 |
|
53640 | 1222 |
lemma simple_path_linepath[intro]: "a \<noteq> b \<Longrightarrow> simple_path (linepath a b)" |
68096 | 1223 |
by (simp add: arc_imp_simple_path) |
49653 | 1224 |
|
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1225 |
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
|
1226 |
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
|
1227 |
|
64394 | 1228 |
lemma linepath_refl: "linepath a a = (\<lambda>x. a)" |
1229 |
by auto |
|
1230 |
||
61711
21d7910d6816
Theory of homotopic paths (from HOL Light), plus comments and minor refinements
paulson <lp15@cam.ac.uk>
parents:
61699
diff
changeset
|
1231 |
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
|
1232 |
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
|
1233 |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1234 |
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
|
1235 |
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
|
1236 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1237 |
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
|
1238 |
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
|
1239 |
|
63881
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1240 |
lemma inj_on_linepath: |
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1241 |
assumes "a \<noteq> b" shows "inj_on (linepath a b) {0..1}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1242 |
using arc_imp_inj_on arc_linepath assms by blast |
63881
b746b19197bd
lots of new results about topology, affine dimension etc
paulson <lp15@cam.ac.uk>
parents:
63627
diff
changeset
|
1243 |
|
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
|
1244 |
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
|
1245 |
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
|
1246 |
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
|
1247 |
|
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1248 |
lemma linepath_in_path: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1249 |
shows "x \<in> {0..1} \<Longrightarrow> linepath a b x \<in> closed_segment a b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1250 |
by (auto simp: segment linepath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1251 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1252 |
lemma linepath_image_01: "linepath a b ` {0..1} = closed_segment a b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1253 |
by (auto simp: segment linepath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1254 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1255 |
lemma linepath_in_convex_hull: |
72256 | 1256 |
fixes x::real |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1257 |
assumes "a \<in> convex hull S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1258 |
and "b \<in> convex hull S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1259 |
and "0\<le>x" "x\<le>1" |
72256 | 1260 |
shows "linepath a b x \<in> convex hull S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1261 |
by (meson assms atLeastAtMost_iff convex_contains_segment convex_convex_hull linepath_in_path subset_eq) |
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1262 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1263 |
lemma Re_linepath: "Re(linepath (of_real a) (of_real b) x) = (1 - x)*a + x*b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1264 |
by (simp add: linepath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1265 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1266 |
lemma Im_linepath: "Im(linepath (of_real a) (of_real b) x) = 0" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1267 |
by (simp add: linepath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1268 |
|
82400
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1269 |
lemma |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1270 |
assumes "x \<in> closed_segment y z" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1271 |
shows in_closed_segment_imp_Re_in_closed_segment: "Re x \<in> closed_segment (Re y) (Re z)" (is ?th1) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1272 |
and in_closed_segment_imp_Im_in_closed_segment: "Im x \<in> closed_segment (Im y) (Im z)" (is ?th2) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1273 |
proof - |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1274 |
from assms obtain t where t: "t \<in> {0..1}" "x = linepath y z t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1275 |
by (metis imageE linepath_image_01) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1276 |
have "Re x = linepath (Re y) (Re z) t" "Im x = linepath (Im y) (Im z) t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1277 |
by (simp_all add: t Re_linepath' Im_linepath') |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1278 |
with t(1) show ?th1 ?th2 |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1279 |
using linepath_in_path[of t "Re y" "Re z"] linepath_in_path[of t "Im y" "Im z"] by simp_all |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1280 |
qed |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1281 |
|
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1282 |
lemma linepath_in_open_segment: "t \<in> {0<..<1} \<Longrightarrow> x \<noteq> y \<Longrightarrow> linepath x y t \<in> open_segment x y" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1283 |
unfolding greaterThanLessThan_iff by (metis in_segment(2) linepath_def) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1284 |
|
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1285 |
lemma in_open_segment_imp_Re_in_open_segment: |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1286 |
assumes "x \<in> open_segment y z" "Re y \<noteq> Re z" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1287 |
shows "Re x \<in> open_segment (Re y) (Re z)" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1288 |
proof - |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1289 |
from assms obtain t where t: "t \<in> {0<..<1}" "x = linepath y z t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1290 |
by (metis greaterThanLessThan_iff in_segment(2) linepath_def) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1291 |
have "Re x = linepath (Re y) (Re z) t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1292 |
by (simp_all add: t Re_linepath') |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1293 |
with t(1) show ?thesis |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1294 |
using linepath_in_open_segment[of t "Re y" "Re z"] assms by auto |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1295 |
qed |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1296 |
|
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1297 |
lemma in_open_segment_imp_Im_in_open_segment: |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1298 |
assumes "x \<in> open_segment y z" "Im y \<noteq> Im z" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1299 |
shows "Im x \<in> open_segment (Im y) (Im z)" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1300 |
proof - |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1301 |
from assms obtain t where t: "t \<in> {0<..<1}" "x = linepath y z t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1302 |
by (metis greaterThanLessThan_iff in_segment(2) linepath_def) |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1303 |
have "Im x = linepath (Im y) (Im z) t" |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1304 |
by (simp_all add: t Im_linepath') |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1305 |
with t(1) show ?thesis |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1306 |
using linepath_in_open_segment[of t "Im y" "Im z"] assms by auto |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1307 |
qed |
24d09a911713
Inserted more of Manuel Eberl's material
paulson <lp15@cam.ac.uk>
parents:
80914
diff
changeset
|
1308 |
|
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1309 |
lemma bounded_linear_linepath: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1310 |
assumes "bounded_linear f" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1311 |
shows "f (linepath a b x) = linepath (f a) (f b) x" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1312 |
proof - |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1313 |
interpret f: bounded_linear f by fact |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1314 |
show ?thesis by (simp add: linepath_def f.add f.scale) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1315 |
qed |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1316 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1317 |
lemma bounded_linear_linepath': |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1318 |
assumes "bounded_linear f" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1319 |
shows "f \<circ> linepath a b = linepath (f a) (f b)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1320 |
using bounded_linear_linepath[OF assms] by (simp add: fun_eq_iff) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1321 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1322 |
lemma linepath_cnj': "cnj \<circ> linepath a b = linepath (cnj a) (cnj b)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1323 |
by (simp add: linepath_def fun_eq_iff) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1324 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1325 |
lemma differentiable_linepath [intro]: "linepath a b differentiable at x within A" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1326 |
by (auto simp: linepath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1327 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1328 |
lemma has_vector_derivative_linepath_within: |
72256 | 1329 |
"(linepath a b has_vector_derivative (b - a)) (at x within S)" |
1330 |
by (force intro: derivative_eq_intros simp add: linepath_def has_vector_derivative_def algebra_simps) |
|
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
1331 |
|
82518
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1332 |
lemma linepath_real_ge_left: |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1333 |
fixes x y :: real |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1334 |
assumes "x \<le> y" "t \<ge> 0" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1335 |
shows "linepath x y t \<ge> x" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1336 |
proof - |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1337 |
have "x + 0 \<le> x + t *\<^sub>R (y - x)" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1338 |
using assms by (intro add_left_mono) auto |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1339 |
also have "\<dots> = linepath x y t" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1340 |
by (simp add: linepath_def algebra_simps) |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1341 |
finally show ?thesis by simp |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1342 |
qed |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1343 |
|
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1344 |
lemma linepath_real_le_right: |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1345 |
fixes x y :: real |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1346 |
assumes "x \<le> y" "t \<le> 1" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1347 |
shows "linepath x y t \<le> y" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1348 |
proof - |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1349 |
have "y + 0 \<ge> y + (1 - t) *\<^sub>R (x - y)" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1350 |
using assms by (intro add_left_mono) (auto intro: mult_nonneg_nonpos) |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1351 |
also have "y + (1 - t) *\<^sub>R (x - y) = linepath x y t" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1352 |
by (simp add: linepath_def algebra_simps) |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1353 |
finally show ?thesis by simp |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1354 |
qed |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1355 |
|
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1356 |
lemma linepath_translate: "(+) c \<circ> linepath a b = linepath (a + c) (b + c)" |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1357 |
by (auto simp: linepath_def algebra_simps) |
da14e77a48b2
lots of lemmas for HOL, HOL-{Complex_}Analysis, HOL-Number_Theory
Manuel Eberl <manuel@pruvisto.org>
parents:
82400
diff
changeset
|
1358 |
|
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1359 |
|
70136 | 1360 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
1361 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1362 |
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
|
1363 |
"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
|
1364 |
"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
|
1365 |
"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
|
1366 |
"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
|
1367 |
"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
|
1368 |
"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
|
1369 |
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
|
1370 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1371 |
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
|
1372 |
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
|
1373 |
shows "midpoint x y \<in> convex hull s" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1374 |
using assms closed_segment_subset_convex_hull csegment_midpoint_subset by blast |
62618
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1375 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1376 |
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
|
1377 |
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
|
1378 |
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
|
1379 |
"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
|
1380 |
"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
|
1381 |
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
|
1382 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1383 |
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
|
1384 |
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
|
1385 |
|
f7f2467ab854
Refactoring (moving theorems into better locations), plus a bit of new material
paulson <lp15@cam.ac.uk>
parents:
62533
diff
changeset
|
1386 |
lemma midpoint_in_open_segment [simp]: "midpoint a b \<in> open_segment a b \<longleftrightarrow> a \<noteq> b" |
64122 | 1387 |
by (simp add: open_segment_def) |
1388 |
||
1389 |
lemma continuous_IVT_local_extremum: |
|
1390 |
fixes f :: "'a::euclidean_space \<Rightarrow> real" |
|
1391 |
assumes contf: "continuous_on (closed_segment a b) f" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1392 |
and ab: "a \<noteq> b" "f a = f b" |
64122 | 1393 |
obtains z where "z \<in> open_segment a b" |
1394 |
"(\<forall>w \<in> closed_segment a b. (f w) \<le> (f z)) \<or> |
|
1395 |
(\<forall>w \<in> closed_segment a b. (f z) \<le> (f w))" |
|
1396 |
proof - |
|
1397 |
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" |
|
1398 |
using continuous_attains_sup [of "closed_segment a b" f] contf by auto |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1399 |
moreover |
64122 | 1400 |
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" |
1401 |
using continuous_attains_inf [of "closed_segment a b" f] contf by auto |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1402 |
ultimately show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1403 |
by (smt (verit) UnE ab closed_segment_eq_open empty_iff insert_iff midpoint_in_open_segment that) |
64122 | 1404 |
qed |
1405 |
||
1406 |
text\<open>An injective map into R is also an open map w.r.T. the universe, and conversely. \<close> |
|
1407 |
proposition injective_eq_1d_open_map_UNIV: |
|
1408 |
fixes f :: "real \<Rightarrow> real" |
|
1409 |
assumes contf: "continuous_on S f" and S: "is_interval S" |
|
1410 |
shows "inj_on f S \<longleftrightarrow> (\<forall>T. open T \<and> T \<subseteq> S \<longrightarrow> open(f ` T))" |
|
1411 |
(is "?lhs = ?rhs") |
|
1412 |
proof safe |
|
1413 |
fix T |
|
1414 |
assume injf: ?lhs and "open T" and "T \<subseteq> S" |
|
1415 |
have "\<exists>U. open U \<and> f x \<in> U \<and> U \<subseteq> f ` T" if "x \<in> T" for x |
|
1416 |
proof - |
|
1417 |
obtain \<delta> where "\<delta> > 0" and \<delta>: "cball x \<delta> \<subseteq> T" |
|
1418 |
using \<open>open T\<close> \<open>x \<in> T\<close> open_contains_cball_eq by blast |
|
1419 |
show ?thesis |
|
1420 |
proof (intro exI conjI) |
|
1421 |
have "closed_segment (x-\<delta>) (x+\<delta>) = {x-\<delta>..x+\<delta>}" |
|
1422 |
using \<open>0 < \<delta>\<close> by (auto simp: closed_segment_eq_real_ivl) |
|
68096 | 1423 |
also have "\<dots> \<subseteq> S" |
64122 | 1424 |
using \<delta> \<open>T \<subseteq> S\<close> by (auto simp: dist_norm subset_eq) |
1425 |
finally have "f ` (open_segment (x-\<delta>) (x+\<delta>)) = open_segment (f (x-\<delta>)) (f (x+\<delta>))" |
|
1426 |
using continuous_injective_image_open_segment_1 |
|
1427 |
by (metis continuous_on_subset [OF contf] inj_on_subset [OF injf]) |
|
1428 |
then show "open (f ` {x-\<delta><..<x+\<delta>})" |
|
1429 |
using \<open>0 < \<delta>\<close> by (simp add: open_segment_eq_real_ivl) |
|
1430 |
show "f x \<in> f ` {x - \<delta><..<x + \<delta>}" |
|
1431 |
by (auto simp: \<open>\<delta> > 0\<close>) |
|
1432 |
show "f ` {x - \<delta><..<x + \<delta>} \<subseteq> f ` T" |
|
1433 |
using \<delta> by (auto simp: dist_norm subset_iff) |
|
1434 |
qed |
|
1435 |
qed |
|
1436 |
with open_subopen show "open (f ` T)" |
|
1437 |
by blast |
|
1438 |
next |
|
1439 |
assume R: ?rhs |
|
1440 |
have False if xy: "x \<in> S" "y \<in> S" and "f x = f y" "x \<noteq> y" for x y |
|
1441 |
proof - |
|
1442 |
have "open (f ` open_segment x y)" |
|
1443 |
using R |
|
1444 |
by (metis S convex_contains_open_segment is_interval_convex open_greaterThanLessThan open_segment_eq_real_ivl xy) |
|
1445 |
moreover |
|
1446 |
have "continuous_on (closed_segment x y) f" |
|
1447 |
by (meson S closed_segment_subset contf continuous_on_subset is_interval_convex that) |
|
1448 |
then obtain \<xi> where "\<xi> \<in> open_segment x y" |
|
1449 |
and \<xi>: "(\<forall>w \<in> closed_segment x y. (f w) \<le> (f \<xi>)) \<or> |
|
1450 |
(\<forall>w \<in> closed_segment x y. (f \<xi>) \<le> (f w))" |
|
1451 |
using continuous_IVT_local_extremum [of x y f] \<open>f x = f y\<close> \<open>x \<noteq> y\<close> by blast |
|
1452 |
ultimately obtain e where "e>0" and e: "\<And>u. dist u (f \<xi>) < e \<Longrightarrow> u \<in> f ` open_segment x y" |
|
1453 |
using open_dist by (metis image_eqI) |
|
1454 |
have fin: "f \<xi> + (e/2) \<in> f ` open_segment x y" "f \<xi> - (e/2) \<in> f ` open_segment x y" |
|
1455 |
using e [of "f \<xi> + (e/2)"] e [of "f \<xi> - (e/2)"] \<open>e > 0\<close> by (auto simp: dist_norm) |
|
1456 |
show ?thesis |
|
1457 |
using \<xi> \<open>0 < e\<close> fin open_closed_segment by fastforce |
|
1458 |
qed |
|
1459 |
then show ?lhs |
|
1460 |
by (force simp: inj_on_def) |
|
1461 |
qed |
|
36583 | 1462 |
|
69514 | 1463 |
|
70136 | 1464 |
subsection\<^marker>\<open>tag unimportant\<close> \<open>Bounding a point away from a path\<close> |
36583 | 1465 |
|
1466 |
lemma not_on_path_ball: |
|
1467 |
fixes g :: "real \<Rightarrow> 'a::heine_borel" |
|
53640 | 1468 |
assumes "path g" |
68096 | 1469 |
and z: "z \<notin> path_image g" |
53640 | 1470 |
shows "\<exists>e > 0. ball z e \<inter> path_image g = {}" |
49653 | 1471 |
proof - |
68096 | 1472 |
have "closed (path_image g)" |
1473 |
by (simp add: \<open>path g\<close> closed_path_image) |
|
1474 |
then obtain a where "a \<in> path_image g" "\<forall>y \<in> path_image g. dist z a \<le> dist z y" |
|
1475 |
by (auto intro: distance_attains_inf[OF _ path_image_nonempty, of g z]) |
|
49654 | 1476 |
then show ?thesis |
68096 | 1477 |
by (rule_tac x="dist z a" in exI) (use dist_commute z in auto) |
49653 | 1478 |
qed |
36583 | 1479 |
|
1480 |
lemma not_on_path_cball: |
|
1481 |
fixes g :: "real \<Rightarrow> 'a::heine_borel" |
|
53640 | 1482 |
assumes "path g" |
1483 |
and "z \<notin> path_image g" |
|
49653 | 1484 |
shows "\<exists>e>0. cball z e \<inter> (path_image g) = {}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1485 |
by (smt (verit, ccfv_threshold) open_ball assms centre_in_ball inf.orderE inf_assoc |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1486 |
inf_bot_right not_on_path_ball open_contains_cball_eq) |
49653 | 1487 |
|
69518 | 1488 |
subsection \<open>Path component\<close> |
1489 |
||
1490 |
text \<open>Original formalization by Tom Hales\<close> |
|
36583 | 1491 |
|
72256 | 1492 |
definition\<^marker>\<open>tag important\<close> "path_component S x y \<equiv> |
1493 |
(\<exists>g. path g \<and> path_image g \<subseteq> S \<and> pathstart g = x \<and> pathfinish g = y)" |
|
36583 | 1494 |
|
70136 | 1495 |
abbreviation\<^marker>\<open>tag important\<close> |
72256 | 1496 |
"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
|
1497 |
|
53640 | 1498 |
lemmas path_defs = path_def pathstart_def pathfinish_def path_image_def path_component_def |
36583 | 1499 |
|
49653 | 1500 |
lemma path_component_mem: |
72256 | 1501 |
assumes "path_component S x y" |
1502 |
shows "x \<in> S" and "y \<in> S" |
|
53640 | 1503 |
using assms |
1504 |
unfolding path_defs |
|
1505 |
by auto |
|
36583 | 1506 |
|
49653 | 1507 |
lemma path_component_refl: |
72256 | 1508 |
assumes "x \<in> S" |
1509 |
shows "path_component S x x" |
|
53640 | 1510 |
using assms |
72256 | 1511 |
unfolding path_defs |
1512 |
by (metis (full_types) assms continuous_on_const image_subset_iff path_image_def) |
|
1513 |
||
1514 |
lemma path_component_refl_eq: "path_component S x x \<longleftrightarrow> x \<in> S" |
|
49653 | 1515 |
by (auto intro!: path_component_mem path_component_refl) |
36583 | 1516 |
|
72256 | 1517 |
lemma path_component_sym: "path_component S x y \<Longrightarrow> path_component S y x" |
49653 | 1518 |
unfolding path_component_def |
72256 | 1519 |
by (metis (no_types) path_image_reversepath path_reversepath pathfinish_reversepath pathstart_reversepath) |
36583 | 1520 |
|
49653 | 1521 |
lemma path_component_trans: |
72256 | 1522 |
assumes "path_component S x y" and "path_component S y z" |
1523 |
shows "path_component S x z" |
|
49653 | 1524 |
using assms |
1525 |
unfolding path_component_def |
|
72256 | 1526 |
by (metis path_join pathfinish_join pathstart_join subset_path_image_join) |
1527 |
||
1528 |
lemma path_component_of_subset: "S \<subseteq> T \<Longrightarrow> path_component S x y \<Longrightarrow> path_component T x y" |
|
36583 | 1529 |
unfolding path_component_def by auto |
1530 |
||
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1531 |
lemma path_component_linepath: |
72256 | 1532 |
fixes S :: "'a::real_normed_vector set" |
1533 |
shows "closed_segment a b \<subseteq> S \<Longrightarrow> path_component S a b" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1534 |
unfolding path_component_def by fastforce |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1535 |
|
70136 | 1536 |
subsubsection\<^marker>\<open>tag unimportant\<close> \<open>Path components as sets\<close> |
36583 | 1537 |
|
49653 | 1538 |
lemma path_component_set: |
72256 | 1539 |
"path_component_set S x = |
1540 |
{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
|
1541 |
by (auto simp: path_component_def) |
36583 | 1542 |
|
72256 | 1543 |
lemma path_component_subset: "path_component_set S x \<subseteq> S" |
68096 | 1544 |
by (auto simp: path_component_mem(2)) |
36583 | 1545 |
|
72256 | 1546 |
lemma path_component_eq_empty: "path_component_set S x = {} \<longleftrightarrow> x \<notin> S" |
60303 | 1547 |
using path_component_mem path_component_refl_eq |
1548 |
by fastforce |
|
36583 | 1549 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1550 |
lemma path_component_mono: |
72256 | 1551 |
"S \<subseteq> T \<Longrightarrow> (path_component_set S x) \<subseteq> (path_component_set T 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
|
1552 |
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
|
1553 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1554 |
lemma path_component_eq: |
72256 | 1555 |
"y \<in> path_component_set S x \<Longrightarrow> path_component_set S y = path_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
|
1556 |
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
|
1557 |
|
69514 | 1558 |
|
60420 | 1559 |
subsection \<open>Path connectedness of a space\<close> |
36583 | 1560 |
|
72256 | 1561 |
definition\<^marker>\<open>tag important\<close> "path_connected S \<longleftrightarrow> |
1562 |
(\<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 | 1563 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1564 |
lemma path_connectedin_iff_path_connected_real [simp]: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1565 |
"path_connectedin euclideanreal S \<longleftrightarrow> path_connected S" |
78248
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
paulson <lp15@cam.ac.uk>
parents:
77943
diff
changeset
|
1566 |
by (simp add: path_connectedin path_connected_def path_defs image_subset_iff_funcset) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1567 |
|
72256 | 1568 |
lemma path_connected_component: "path_connected S \<longleftrightarrow> (\<forall>x\<in>S. \<forall>y\<in>S. path_component S x y)" |
36583 | 1569 |
unfolding path_connected_def path_component_def by auto |
1570 |
||
72256 | 1571 |
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
|
1572 |
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
|
1573 |
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
|
1574 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1575 |
lemma path_component_maximal: |
72256 | 1576 |
"\<lbrakk>x \<in> T; path_connected T; T \<subseteq> S\<rbrakk> \<Longrightarrow> T \<subseteq> (path_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
|
1577 |
by (metis path_component_mono path_connected_component_set) |
36583 | 1578 |
|
1579 |
lemma convex_imp_path_connected: |
|
72256 | 1580 |
fixes S :: "'a::real_normed_vector set" |
1581 |
assumes "convex S" |
|
1582 |
shows "path_connected S" |
|
49653 | 1583 |
unfolding path_connected_def |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1584 |
using assms convex_contains_segment by fastforce |
36583 | 1585 |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1586 |
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
|
1587 |
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
|
1588 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1589 |
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
|
1590 |
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
|
1591 |
|
49653 | 1592 |
lemma path_connected_imp_connected: |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1593 |
assumes "path_connected S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1594 |
shows "connected S" |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1595 |
proof (rule connectedI) |
49653 | 1596 |
fix e1 e2 |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1597 |
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
|
1598 |
then obtain x1 x2 where obt:"x1 \<in> e1 \<inter> S" "x2 \<in> e2 \<inter> S" |
53640 | 1599 |
by auto |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1600 |
then obtain g where g: "path g" "path_image g \<subseteq> S" and pg: "pathstart g = x1" "pathfinish g = x2" |
36583 | 1601 |
using assms[unfolded path_connected_def,rule_format,of x1 x2] by auto |
49653 | 1602 |
have *: "connected {0..1::real}" |
71172 | 1603 |
by (auto intro!: convex_connected) |
49653 | 1604 |
have "{0..1} \<subseteq> {x \<in> {0..1}. g x \<in> e1} \<union> {x \<in> {0..1}. g x \<in> e2}" |
1605 |
using as(3) g(2)[unfolded path_defs] by blast |
|
1606 |
moreover have "{x \<in> {0..1}. g x \<in> e1} \<inter> {x \<in> {0..1}. g x \<in> e2} = {}" |
|
53640 | 1607 |
using as(4) g(2)[unfolded path_defs] |
1608 |
unfolding subset_eq |
|
1609 |
by auto |
|
49653 | 1610 |
moreover have "{x \<in> {0..1}. g x \<in> e1} \<noteq> {} \<and> {x \<in> {0..1}. g x \<in> e2} \<noteq> {}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1611 |
by (smt (verit, ccfv_threshold) IntE atLeastAtMost_iff empty_iff pg mem_Collect_eq obt pathfinish_def pathstart_def) |
49653 | 1612 |
ultimately show False |
53640 | 1613 |
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
|
1614 |
of "{0..1} \<inter> g -` e1" "{0..1} \<inter> g -` e2"] |
63301 | 1615 |
using continuous_openin_preimage_gen[OF g(1)[unfolded path_def] as(1)] |
1616 |
using continuous_openin_preimage_gen[OF g(1)[unfolded path_def] as(2)] |
|
49653 | 1617 |
by auto |
1618 |
qed |
|
36583 | 1619 |
|
1620 |
lemma open_path_component: |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1621 |
fixes S :: "'a::real_normed_vector set" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1622 |
assumes "open S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1623 |
shows "open (path_component_set S x)" |
49653 | 1624 |
unfolding open_contains_ball |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1625 |
by (metis assms centre_in_ball convex_ball convex_imp_path_connected equals0D openE |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1626 |
path_component_eq path_component_eq_empty path_component_maximal) |
36583 | 1627 |
|
1628 |
lemma open_non_path_component: |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1629 |
fixes S :: "'a::real_normed_vector set" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1630 |
assumes "open S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1631 |
shows "open (S - path_component_set S x)" |
49653 | 1632 |
unfolding open_contains_ball |
1633 |
proof |
|
1634 |
fix y |
|
68096 | 1635 |
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
|
1636 |
then obtain e where e: "e > 0" "ball y e \<subseteq> S" |
68096 | 1637 |
using assms openE by auto |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1638 |
show "\<exists>e>0. ball y e \<subseteq> S - path_component_set S x" |
68096 | 1639 |
proof (intro exI conjI subsetI DiffI notI) |
1640 |
show "\<And>x. x \<in> ball y e \<Longrightarrow> x \<in> S" |
|
1641 |
using e by blast |
|
1642 |
show False if "z \<in> ball y e" "z \<in> path_component_set S x" for z |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1643 |
by (metis (no_types, lifting) Diff_iff centre_in_ball convex_ball convex_imp_path_connected |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1644 |
path_component_eq path_component_maximal subsetD that y e) |
68096 | 1645 |
qed (use e in auto) |
49653 | 1646 |
qed |
36583 | 1647 |
|
1648 |
lemma connected_open_path_connected: |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1649 |
fixes S :: "'a::real_normed_vector set" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1650 |
assumes "open S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1651 |
and "connected S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1652 |
shows "path_connected S" |
49653 | 1653 |
unfolding path_connected_component_set |
1654 |
proof (rule, rule, rule path_component_subset, rule) |
|
1655 |
fix x y |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1656 |
assume "x \<in> S" and "y \<in> S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1657 |
show "y \<in> path_component_set S x" |
49653 | 1658 |
proof (rule ccontr) |
53640 | 1659 |
assume "\<not> ?thesis" |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1660 |
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
|
1661 |
using \<open>x \<in> S\<close> path_component_eq_empty path_component_subset[of S x] |
53640 | 1662 |
by auto |
49653 | 1663 |
ultimately |
1664 |
show False |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1665 |
using \<open>y \<in> S\<close> open_non_path_component[OF \<open>open S\<close>] open_path_component[OF \<open>open S\<close>] |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1666 |
using \<open>connected S\<close>[unfolded connected_def not_ex, rule_format, |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1667 |
of "path_component_set S x" "S - path_component_set S x"] |
49653 | 1668 |
by auto |
1669 |
qed |
|
1670 |
qed |
|
36583 | 1671 |
|
1672 |
lemma path_connected_continuous_image: |
|
72256 | 1673 |
assumes contf: "continuous_on S f" |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1674 |
and "path_connected S" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1675 |
shows "path_connected (f ` S)" |
49653 | 1676 |
unfolding path_connected_def |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1677 |
proof clarsimp |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1678 |
fix x y |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1679 |
assume x: "x \<in> S" and y: "y \<in> S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1680 |
with \<open>path_connected S\<close> |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1681 |
show "\<exists>g. path g \<and> path_image g \<subseteq> f ` S \<and> pathstart g = f x \<and> pathfinish g = f y" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1682 |
unfolding path_defs path_connected_def |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1683 |
using continuous_on_subset[OF contf] |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1684 |
by (smt (verit, ccfv_threshold) continuous_on_compose2 image_eqI image_subset_iff) |
49653 | 1685 |
qed |
36583 | 1686 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1687 |
lemma path_connected_translationI: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1688 |
fixes a :: "'a :: topological_group_add" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1689 |
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
|
1690 |
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
|
1691 |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1692 |
lemma path_connected_translation: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1693 |
fixes a :: "'a :: topological_group_add" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1694 |
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
|
1695 |
proof - |
67399 | 1696 |
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
|
1697 |
by (simp add: image_image) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1698 |
then show ?thesis |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1699 |
by (metis (no_types) path_connected_translationI) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1700 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1701 |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1702 |
lemma path_connected_segment [simp]: |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1703 |
fixes a :: "'a::real_normed_vector" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1704 |
shows "path_connected (closed_segment a b)" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1705 |
by (simp add: convex_imp_path_connected) |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1706 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1707 |
lemma path_connected_open_segment [simp]: |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1708 |
fixes a :: "'a::real_normed_vector" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1709 |
shows "path_connected (open_segment a b)" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1710 |
by (simp add: convex_imp_path_connected) |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
1711 |
|
36583 | 1712 |
lemma homeomorphic_path_connectedness: |
68096 | 1713 |
"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
|
1714 |
unfolding homeomorphic_def homeomorphism_def by (metis path_connected_continuous_image) |
36583 | 1715 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1716 |
lemma path_connected_empty [simp]: "path_connected {}" |
36583 | 1717 |
unfolding path_connected_def by auto |
1718 |
||
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1719 |
lemma path_connected_singleton [simp]: "path_connected {a}" |
36583 | 1720 |
unfolding path_connected_def pathstart_def pathfinish_def path_image_def |
72256 | 1721 |
using path_def by fastforce |
36583 | 1722 |
|
49653 | 1723 |
lemma path_connected_Un: |
68096 | 1724 |
assumes "path_connected S" |
1725 |
and "path_connected T" |
|
1726 |
and "S \<inter> T \<noteq> {}" |
|
1727 |
shows "path_connected (S \<union> T)" |
|
49653 | 1728 |
unfolding path_connected_component |
68096 | 1729 |
proof (intro ballI) |
49653 | 1730 |
fix x y |
68096 | 1731 |
assume x: "x \<in> S \<union> T" and y: "y \<in> S \<union> T" |
1732 |
from assms obtain z where z: "z \<in> S" "z \<in> T" |
|
53640 | 1733 |
by auto |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1734 |
with x y show "path_component (S \<union> T) x y" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1735 |
by (smt (verit) assms(1,2) in_mono mem_Collect_eq path_component_eq path_component_maximal |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1736 |
sup.bounded_iff sup.cobounded2 sup_ge1) |
49653 | 1737 |
qed |
36583 | 1738 |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1739 |
lemma path_connected_UNION: |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1740 |
assumes "\<And>i. i \<in> A \<Longrightarrow> path_connected (S i)" |
49653 | 1741 |
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
|
1742 |
shows "path_connected (\<Union>i\<in>A. S i)" |
49653 | 1743 |
unfolding path_connected_component |
1744 |
proof clarify |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1745 |
fix x i y j |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1746 |
assume *: "i \<in> A" "x \<in> S i" "j \<in> A" "y \<in> S j" |
49654 | 1747 |
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
|
1748 |
using assms by (simp_all add: path_connected_component) |
49654 | 1749 |
then have "path_component (\<Union>i\<in>A. S i) x z" and "path_component (\<Union>i\<in>A. S i) z y" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1750 |
using *(1,3) by (meson SUP_upper path_component_of_subset)+ |
49654 | 1751 |
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
|
1752 |
by (rule path_component_trans) |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
1753 |
qed |
36583 | 1754 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1755 |
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
|
1756 |
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
|
1757 |
shows "path_component (path_image p) (pathstart p) x" |
68096 | 1758 |
proof - |
1759 |
obtain y where x: "x = p y" and y: "0 \<le> y" "y \<le> 1" |
|
1760 |
using x by (auto simp: path_image_def) |
|
1761 |
show ?thesis |
|
1762 |
unfolding path_component_def |
|
1763 |
proof (intro exI conjI) |
|
72256 | 1764 |
have "continuous_on ((*) y ` {0..1}) p" |
1765 |
by (simp add: continuous_on_path image_mult_atLeastAtMost_if p y) |
|
1766 |
then have "continuous_on {0..1} (p \<circ> ((*) y))" |
|
1767 |
using continuous_on_compose continuous_on_mult_const by blast |
|
68096 | 1768 |
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
|
1769 |
by (simp add: path_def) |
68096 | 1770 |
show "path_image (\<lambda>u. p (y * u)) \<subseteq> path_image p" |
1771 |
using y mult_le_one by (fastforce simp: path_image_def image_iff) |
|
1772 |
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
|
1773 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1774 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1775 |
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
|
1776 |
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
|
1777 |
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
|
1778 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
1779 |
lemma path_connected_path_component [simp]: |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1780 |
"path_connected (path_component_set S x)" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1781 |
by (smt (verit) mem_Collect_eq path_component_def path_component_eq path_component_maximal |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1782 |
path_connected_component path_connected_path_image pathstart_in_path_image) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1783 |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1784 |
lemma path_component: |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1785 |
"path_component S x y \<longleftrightarrow> (\<exists>t. path_connected t \<and> t \<subseteq> S \<and> x \<in> t \<and> y \<in> t)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1786 |
(is "?lhs = ?rhs") |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1787 |
proof |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1788 |
assume ?lhs then show ?rhs |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1789 |
by (metis path_component_def path_connected_path_image pathfinish_in_path_image pathstart_in_path_image) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1790 |
next |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1791 |
assume ?rhs then show ?lhs |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1792 |
by (meson path_component_of_subset path_connected_component) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1793 |
qed |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1794 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1795 |
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
|
1796 |
"path_component_set (path_component_set S x) x = path_component_set S x" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1797 |
by (metis (full_types) mem_Collect_eq path_component_eq_empty path_component_refl path_connected_component_set path_connected_path_component) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1798 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
1799 |
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
|
1800 |
"(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
|
1801 |
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
|
1802 |
case True show ?thesis |
72256 | 1803 |
by (simp add: True connected_component_maximal path_component_refl path_component_subset 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
|
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 |
|
70136 | 1810 |
subsection\<^marker>\<open>tag unimportant\<close>\<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" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1815 |
shows "path_connected(f ` S)" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1816 |
by (auto simp: linear_continuous_on assms path_connected_continuous_image) |
62620
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 |
|
71025
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1821 |
lemma path_connected_Ioi[simp]: "path_connected {a<..}" for a :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1822 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1823 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1824 |
lemma path_connected_Ici[simp]: "path_connected {a..}" for a :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1825 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1826 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1827 |
lemma path_connected_Iio[simp]: "path_connected {..<a}" for a :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1828 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1829 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1830 |
lemma path_connected_Iic[simp]: "path_connected {..a}" for a :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1831 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1832 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1833 |
lemma path_connected_Ioo[simp]: "path_connected {a<..<b}" for a b :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1834 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1835 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1836 |
lemma path_connected_Ioc[simp]: "path_connected {a<..b}" for a b :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1837 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1838 |
|
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1839 |
lemma path_connected_Ico[simp]: "path_connected {a..<b}" for a b :: real |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1840 |
by (simp add: convex_imp_path_connected) |
be8cec1abcbb
reduce dependencies of Ordered_Euclidean_Space; move more general material from Cartesian_Euclidean_Space
immler
parents:
70971
diff
changeset
|
1841 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1842 |
lemma path_connectedin_path_image: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1843 |
assumes "pathin X g" shows "path_connectedin X (g ` ({0..1}))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1844 |
unfolding pathin_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1845 |
proof (rule path_connectedin_continuous_map_image) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1846 |
show "continuous_map (subtopology euclideanreal {0..1}) X g" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1847 |
using assms pathin_def by blast |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1848 |
qed (auto simp: is_interval_1 is_interval_path_connected) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1849 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1850 |
lemma path_connected_space_subconnected: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1851 |
"path_connected_space X \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1852 |
(\<forall>x \<in> topspace X. \<forall>y \<in> topspace X. \<exists>S. path_connectedin X S \<and> x \<in> S \<and> y \<in> S)" |
72256 | 1853 |
by (metis path_connectedin path_connectedin_topspace path_connected_space_def) |
1854 |
||
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1855 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1856 |
lemma connectedin_path_image: "pathin X g \<Longrightarrow> connectedin X (g ` ({0..1}))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1857 |
by (simp add: path_connectedin_imp_connectedin path_connectedin_path_image) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1858 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1859 |
lemma compactin_path_image: "pathin X g \<Longrightarrow> compactin X (g ` ({0..1}))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1860 |
unfolding pathin_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1861 |
by (rule image_compactin [of "top_of_set {0..1}"]) auto |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1862 |
|
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
|
1863 |
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
|
1864 |
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
|
1865 |
assumes "linear f" "inj f" |
72256 | 1866 |
obtains g where "homeomorphism (f ` S) S g f" |
1867 |
proof - |
|
1868 |
obtain g where "linear g" "g \<circ> f = id" |
|
1869 |
using assms linear_injective_left_inverse by blast |
|
1870 |
then have "homeomorphism (f ` S) S g f" |
|
1871 |
using assms unfolding homeomorphism_def |
|
1872 |
by (auto simp: eq_id_iff [symmetric] image_comp linear_conv_bounded_linear linear_continuous_on) |
|
1873 |
then show thesis .. |
|
1874 |
qed |
|
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
|
1875 |
|
313d3b697c9a
Mostly renaming (from HOL Light to Isabelle conventions), with a couple of new results
paulson <lp15@cam.ac.uk>
parents:
62626
diff
changeset
|
1876 |
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
|
1877 |
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
|
1878 |
assumes "linear f" "inj f" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1879 |
shows "S homeomorphic f ` S" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1880 |
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
|
1881 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1882 |
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
|
1883 |
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
|
1884 |
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
|
1885 |
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
|
1886 |
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
|
1887 |
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
|
1888 |
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
|
1889 |
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
|
1890 |
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
|
1891 |
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
|
1892 |
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
|
1893 |
using \<open>path h\<close> |
72256 | 1894 |
unfolding path_def |
1895 |
by (intro continuous_intros continuous_on_compose2 [where g = "Pair _"]; force) |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1896 |
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
|
1897 |
using \<open>path g\<close> |
72256 | 1898 |
unfolding path_def |
1899 |
by (intro continuous_intros continuous_on_compose2 [where g = "Pair _"]; force) |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1900 |
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
|
1901 |
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
|
1902 |
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
|
1903 |
by (rule Path_Connected.path_image_join_subset) |
68096 | 1904 |
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
|
1905 |
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
|
1906 |
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
|
1907 |
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
|
1908 |
pathstart g = (x1, y1) \<and> pathfinish g = (x2, y2)" |
72256 | 1909 |
using 1 2 gf hs |
1910 |
by (metis (no_types, lifting) pathfinish_def pathfinish_join pathstart_def pathstart_join) |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1911 |
qed |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1912 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1913 |
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
|
1914 |
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
|
1915 |
shows "is_interval s \<longleftrightarrow> path_connected s" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1916 |
using is_interval_connected_1 is_interval_path_connected path_connected_imp_connected by blast |
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1917 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
1918 |
|
70136 | 1919 |
subsection\<^marker>\<open>tag unimportant\<close>\<open>Path components\<close> |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
1920 |
|
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1921 |
lemma Union_path_component [simp]: |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1922 |
"Union {path_component_set S x |x. x \<in> S} = S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
1923 |
using path_component_subset path_component_refl by blast |
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1924 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1925 |
lemma path_component_disjoint: |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1926 |
"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
|
1927 |
(a \<notin> path_component_set S b)" |
72256 | 1928 |
unfolding disjnt_iff |
1929 |
using path_component_sym path_component_trans by blast |
|
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1930 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1931 |
lemma path_component_eq_eq: |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1932 |
"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
|
1933 |
(x \<notin> S) \<and> (y \<notin> S) \<or> x \<in> S \<and> y \<in> S \<and> path_component S x y" |
72256 | 1934 |
(is "?lhs = ?rhs") |
1935 |
proof |
|
1936 |
assume ?lhs then show ?rhs |
|
1937 |
by (metis (no_types) path_component_mem(1) path_component_refl) |
|
1938 |
next |
|
1939 |
assume ?rhs then show ?lhs |
|
1940 |
proof |
|
1941 |
assume "x \<notin> S \<and> y \<notin> S" then show ?lhs |
|
1942 |
by (metis Collect_empty_eq_bot path_component_eq_empty) |
|
1943 |
next |
|
1944 |
assume S: "x \<in> S \<and> y \<in> S \<and> path_component S x y" show ?lhs |
|
1945 |
by (rule ext) (metis S path_component_trans path_component_sym) |
|
1946 |
qed |
|
1947 |
qed |
|
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1948 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1949 |
lemma path_component_unique: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1950 |
assumes "x \<in> C" "C \<subseteq> S" "path_connected C" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1951 |
"\<And>C'. \<lbrakk>x \<in> C'; C' \<subseteq> S; path_connected C'\<rbrakk> \<Longrightarrow> C' \<subseteq> C" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1952 |
shows "path_component_set S x = C" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1953 |
by (smt (verit, best) Collect_cong assms path_component path_component_of_subset path_connected_component_set) |
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1954 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1955 |
lemma path_component_intermediate_subset: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1956 |
"path_component_set U a \<subseteq> T \<and> T \<subseteq> U |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1957 |
\<Longrightarrow> path_component_set T a = path_component_set U a" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
1958 |
by (metis (no_types) path_component_mono path_component_path_component subset_antisym) |
62948
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1959 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1960 |
lemma complement_path_component_Union: |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1961 |
fixes x :: "'a :: topological_space" |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1962 |
shows "S - path_component_set S x = |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1963 |
\<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
|
1964 |
proof - |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1965 |
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
|
1966 |
for a::"'a set" and S |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1967 |
by (auto simp: disjnt_def) |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1968 |
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
|
1969 |
\<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
|
1970 |
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
|
1971 |
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
|
1972 |
\<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
|
1973 |
by (meson *) |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1974 |
then show ?thesis by simp |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1975 |
qed |
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1976 |
|
7700f467892b
lots of new theorems for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
62843
diff
changeset
|
1977 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1978 |
subsection\<open>Path components\<close> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1979 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1980 |
definition path_component_of |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1981 |
where "path_component_of X x y \<equiv> \<exists>g. pathin X g \<and> g 0 = x \<and> g 1 = y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1982 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1983 |
abbreviation path_component_of_set |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1984 |
where "path_component_of_set X x \<equiv> Collect (path_component_of X x)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1985 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1986 |
definition path_components_of :: "'a topology \<Rightarrow> 'a set set" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1987 |
where "path_components_of X \<equiv> path_component_of_set X ` topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1988 |
|
78248
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
paulson <lp15@cam.ac.uk>
parents:
77943
diff
changeset
|
1989 |
lemma pathin_canon_iff: "pathin (top_of_set T) g \<longleftrightarrow> path g \<and> g \<in> {0..1} \<rightarrow> T" |
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
paulson <lp15@cam.ac.uk>
parents:
77943
diff
changeset
|
1990 |
by (simp add: path_def pathin_def image_subset_iff_funcset) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69939
diff
changeset
|
1991 |
|
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69939
diff
changeset
|
1992 |
lemma path_component_of_canon_iff [simp]: |
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69939
diff
changeset
|
1993 |
"path_component_of (top_of_set T) a b \<longleftrightarrow> path_component T a b" |
78248
740b23f1138a
EXPERIMENTAL replacement of f ` A <= B by f : A -> B in Analysis
paulson <lp15@cam.ac.uk>
parents:
77943
diff
changeset
|
1994 |
by (simp add: path_component_of_def pathin_canon_iff path_defs image_subset_iff_funcset) |
69986
f2d327275065
generalised homotopic_with to topologies; homotopic_with_canon is the old version
paulson <lp15@cam.ac.uk>
parents:
69939
diff
changeset
|
1995 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1996 |
lemma path_component_in_topspace: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1997 |
"path_component_of X x y \<Longrightarrow> x \<in> topspace X \<and> y \<in> topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1998 |
by (auto simp: path_component_of_def pathin_def continuous_map_def) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
1999 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2000 |
lemma path_component_of_refl: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2001 |
"path_component_of X x x \<longleftrightarrow> x \<in> topspace X" |
72256 | 2002 |
by (metis path_component_in_topspace path_component_of_def pathin_const) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2003 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2004 |
lemma path_component_of_sym: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2005 |
assumes "path_component_of X x y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2006 |
shows "path_component_of X y x" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2007 |
using assms |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2008 |
apply (clarsimp simp: path_component_of_def pathin_def) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2009 |
apply (rule_tac x="g \<circ> (\<lambda>t. 1 - t)" in exI) |
72256 | 2010 |
apply (auto intro!: continuous_map_compose simp: continuous_map_in_subtopology continuous_on_op_minus) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2011 |
done |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2012 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2013 |
lemma path_component_of_sym_iff: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2014 |
"path_component_of X x y \<longleftrightarrow> path_component_of X y x" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2015 |
by (metis path_component_of_sym) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2016 |
|
71236 | 2017 |
lemma continuous_map_cases_le: |
2018 |
assumes contp: "continuous_map X euclideanreal p" |
|
2019 |
and contq: "continuous_map X euclideanreal q" |
|
2020 |
and contf: "continuous_map (subtopology X {x. x \<in> topspace X \<and> p x \<le> q x}) Y f" |
|
2021 |
and contg: "continuous_map (subtopology X {x. x \<in> topspace X \<and> q x \<le> p x}) Y g" |
|
2022 |
and fg: "\<And>x. \<lbrakk>x \<in> topspace X; p x = q x\<rbrakk> \<Longrightarrow> f x = g x" |
|
2023 |
shows "continuous_map X Y (\<lambda>x. if p x \<le> q x then f x else g x)" |
|
2024 |
proof - |
|
2025 |
have "continuous_map X Y (\<lambda>x. if q x - p x \<in> {0..} then f x else g x)" |
|
2026 |
proof (rule continuous_map_cases_function) |
|
2027 |
show "continuous_map X euclideanreal (\<lambda>x. q x - p x)" |
|
2028 |
by (intro contp contq continuous_intros) |
|
2029 |
show "continuous_map (subtopology X {x \<in> topspace X. q x - p x \<in> euclideanreal closure_of {0..}}) Y f" |
|
2030 |
by (simp add: contf) |
|
2031 |
show "continuous_map (subtopology X {x \<in> topspace X. q x - p x \<in> euclideanreal closure_of (topspace euclideanreal - {0..})}) Y g" |
|
2032 |
by (simp add: contg flip: Compl_eq_Diff_UNIV) |
|
2033 |
qed (auto simp: fg) |
|
2034 |
then show ?thesis |
|
2035 |
by simp |
|
2036 |
qed |
|
2037 |
||
2038 |
lemma continuous_map_cases_lt: |
|
2039 |
assumes contp: "continuous_map X euclideanreal p" |
|
2040 |
and contq: "continuous_map X euclideanreal q" |
|
2041 |
and contf: "continuous_map (subtopology X {x. x \<in> topspace X \<and> p x \<le> q x}) Y f" |
|
2042 |
and contg: "continuous_map (subtopology X {x. x \<in> topspace X \<and> q x \<le> p x}) Y g" |
|
2043 |
and fg: "\<And>x. \<lbrakk>x \<in> topspace X; p x = q x\<rbrakk> \<Longrightarrow> f x = g x" |
|
2044 |
shows "continuous_map X Y (\<lambda>x. if p x < q x then f x else g x)" |
|
2045 |
proof - |
|
2046 |
have "continuous_map X Y (\<lambda>x. if q x - p x \<in> {0<..} then f x else g x)" |
|
2047 |
proof (rule continuous_map_cases_function) |
|
2048 |
show "continuous_map X euclideanreal (\<lambda>x. q x - p x)" |
|
2049 |
by (intro contp contq continuous_intros) |
|
2050 |
show "continuous_map (subtopology X {x \<in> topspace X. q x - p x \<in> euclideanreal closure_of {0<..}}) Y f" |
|
2051 |
by (simp add: contf) |
|
2052 |
show "continuous_map (subtopology X {x \<in> topspace X. q x - p x \<in> euclideanreal closure_of (topspace euclideanreal - {0<..})}) Y g" |
|
2053 |
by (simp add: contg flip: Compl_eq_Diff_UNIV) |
|
2054 |
qed (auto simp: fg) |
|
2055 |
then show ?thesis |
|
2056 |
by simp |
|
2057 |
qed |
|
2058 |
||
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2059 |
lemma path_component_of_trans: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2060 |
assumes "path_component_of X x y" and "path_component_of X y z" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2061 |
shows "path_component_of X x z" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2062 |
unfolding path_component_of_def pathin_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2063 |
proof - |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2064 |
let ?T01 = "top_of_set {0..1::real}" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2065 |
obtain g1 g2 where g1: "continuous_map ?T01 X g1" "x = g1 0" "y = g1 1" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2066 |
and g2: "continuous_map ?T01 X g2" "g2 0 = g1 1" "z = g2 1" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2067 |
using assms unfolding path_component_of_def pathin_def by blast |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2068 |
let ?g = "\<lambda>x. if x \<le> 1/2 then (g1 \<circ> (\<lambda>t. 2 * t)) x else (g2 \<circ> (\<lambda>t. 2 * t -1)) x" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2069 |
show "\<exists>g. continuous_map ?T01 X g \<and> g 0 = x \<and> g 1 = z" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2070 |
proof (intro exI conjI) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2071 |
show "continuous_map (subtopology euclideanreal {0..1}) X ?g" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2072 |
proof (intro continuous_map_cases_le continuous_map_compose, force, force) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2073 |
show "continuous_map (subtopology ?T01 {x \<in> topspace ?T01. x \<le> 1/2}) ?T01 ((*) 2)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2074 |
by (auto simp: continuous_map_in_subtopology continuous_map_from_subtopology) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2075 |
have "continuous_map |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2076 |
(subtopology (top_of_set {0..1}) {x. 0 \<le> x \<and> x \<le> 1 \<and> 1 \<le> x * 2}) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2077 |
euclideanreal (\<lambda>t. 2 * t - 1)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2078 |
by (intro continuous_intros) (force intro: continuous_map_from_subtopology) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2079 |
then show "continuous_map (subtopology ?T01 {x \<in> topspace ?T01. 1/2 \<le> x}) ?T01 (\<lambda>t. 2 * t - 1)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2080 |
by (force simp: continuous_map_in_subtopology) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2081 |
show "(g1 \<circ> (*) 2) x = (g2 \<circ> (\<lambda>t. 2 * t - 1)) x" if "x \<in> topspace ?T01" "x = 1/2" for x |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2082 |
using that by (simp add: g2(2) mult.commute continuous_map_from_subtopology) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2083 |
qed (auto simp: g1 g2) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2084 |
qed (auto simp: g1 g2) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2085 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2086 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2087 |
lemma path_component_of_mono: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2088 |
"\<lbrakk>path_component_of (subtopology X S) x y; S \<subseteq> T\<rbrakk> \<Longrightarrow> path_component_of (subtopology X T) x y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2089 |
unfolding path_component_of_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2090 |
by (metis subsetD pathin_subtopology) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2091 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2092 |
lemma path_component_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2093 |
"path_component_of X x y \<longleftrightarrow> (\<exists>T. path_connectedin X T \<and> x \<in> T \<and> y \<in> T)" |
72256 | 2094 |
(is "?lhs = ?rhs") |
2095 |
proof |
|
2096 |
assume ?lhs then show ?rhs |
|
2097 |
by (metis atLeastAtMost_iff image_eqI order_refl path_component_of_def path_connectedin_path_image zero_le_one) |
|
2098 |
next |
|
2099 |
assume ?rhs then show ?lhs |
|
2100 |
by (metis path_component_of_def path_connectedin) |
|
2101 |
qed |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2102 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2103 |
lemma path_component_of_set: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2104 |
"path_component_of X x y \<longleftrightarrow> (\<exists>g. pathin X g \<and> g 0 = x \<and> g 1 = y)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2105 |
by (auto simp: path_component_of_def) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2106 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2107 |
lemma path_component_of_subset_topspace: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2108 |
"Collect(path_component_of X x) \<subseteq> topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2109 |
using path_component_in_topspace by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2110 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2111 |
lemma path_component_of_eq_empty: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2112 |
"Collect(path_component_of X x) = {} \<longleftrightarrow> (x \<notin> topspace X)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2113 |
using path_component_in_topspace path_component_of_refl by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2114 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2115 |
lemma path_connected_space_iff_path_component: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2116 |
"path_connected_space X \<longleftrightarrow> (\<forall>x \<in> topspace X. \<forall>y \<in> topspace X. path_component_of X x y)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2117 |
by (simp add: path_component_of path_connected_space_subconnected) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2118 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2119 |
lemma path_connected_space_imp_path_component_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2120 |
"\<lbrakk>path_connected_space X; a \<in> topspace X; b \<in> topspace X\<rbrakk> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2121 |
\<Longrightarrow> path_component_of X a b" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2122 |
by (simp add: path_connected_space_iff_path_component) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2123 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2124 |
lemma path_connected_space_path_component_set: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2125 |
"path_connected_space X \<longleftrightarrow> (\<forall>x \<in> topspace X. Collect(path_component_of X x) = topspace X)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2126 |
using path_component_of_subset_topspace path_connected_space_iff_path_component by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2127 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2128 |
lemma path_component_of_maximal: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2129 |
"\<lbrakk>path_connectedin X s; x \<in> s\<rbrakk> \<Longrightarrow> s \<subseteq> Collect(path_component_of X x)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2130 |
using path_component_of by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2131 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2132 |
lemma path_component_of_equiv: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2133 |
"path_component_of X x y \<longleftrightarrow> x \<in> topspace X \<and> y \<in> topspace X \<and> path_component_of X x = path_component_of X y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2134 |
(is "?lhs = ?rhs") |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2135 |
proof |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2136 |
assume ?lhs |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2137 |
then show ?rhs |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2138 |
unfolding fun_eq_iff path_component_in_topspace |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2139 |
by (metis path_component_in_topspace path_component_of_sym path_component_of_trans) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2140 |
qed (simp add: path_component_of_refl) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2141 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2142 |
lemma path_component_of_disjoint: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2143 |
"disjnt (Collect (path_component_of X x)) (Collect (path_component_of X y)) \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2144 |
~(path_component_of X x y)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2145 |
by (force simp: disjnt_def path_component_of_eq_empty path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2146 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2147 |
lemma path_component_of_eq: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2148 |
"path_component_of X x = path_component_of X y \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2149 |
(x \<notin> topspace X) \<and> (y \<notin> topspace X) \<or> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2150 |
x \<in> topspace X \<and> y \<in> topspace X \<and> path_component_of X x y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2151 |
by (metis Collect_empty_eq_bot path_component_of_eq_empty path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2152 |
|
72256 | 2153 |
lemma path_component_of_aux: |
2154 |
"path_component_of X x y |
|
2155 |
\<Longrightarrow> path_component_of (subtopology X (Collect (path_component_of X x))) x y" |
|
2156 |
by (meson path_component_of path_component_of_maximal path_connectedin_subtopology) |
|
2157 |
||
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2158 |
lemma path_connectedin_path_component_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2159 |
"path_connectedin X (Collect (path_component_of X x))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2160 |
proof - |
72256 | 2161 |
have "topspace (subtopology X (path_component_of_set X x)) = path_component_of_set X x" |
2162 |
by (meson path_component_of_subset_topspace topspace_subtopology_subset) |
|
2163 |
then have "path_connected_space (subtopology X (path_component_of_set X x))" |
|
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2164 |
by (metis mem_Collect_eq path_component_of_aux path_component_of_equiv path_connected_space_iff_path_component) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2165 |
then show ?thesis |
72256 | 2166 |
by (simp add: path_component_of_subset_topspace path_connectedin_def) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2167 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2168 |
|
70178
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2169 |
lemma path_connectedin_euclidean [simp]: |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2170 |
"path_connectedin euclidean S \<longleftrightarrow> path_connected S" |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2171 |
by (auto simp: path_connectedin_def path_connected_space_iff_path_component path_connected_component) |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2172 |
|
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2173 |
lemma path_connected_space_euclidean_subtopology [simp]: |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2174 |
"path_connected_space(subtopology euclidean S) \<longleftrightarrow> path_connected S" |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2175 |
using path_connectedin_topspace by force |
4900351361b0
Lindelöf spaces and supporting material
paulson <lp15@cam.ac.uk>
parents:
70136
diff
changeset
|
2176 |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2177 |
lemma Union_path_components_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2178 |
"\<Union>(path_components_of X) = topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2179 |
by (auto simp: path_components_of_def path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2180 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2181 |
lemma path_components_of_maximal: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2182 |
"\<lbrakk>C \<in> path_components_of X; path_connectedin X S; ~disjnt C S\<rbrakk> \<Longrightarrow> S \<subseteq> C" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2183 |
by (smt (verit, ccfv_SIG) disjnt_iff imageE mem_Collect_eq path_component_of_equiv |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2184 |
path_component_of_maximal path_components_of_def) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2185 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2186 |
lemma pairwise_disjoint_path_components_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2187 |
"pairwise disjnt (path_components_of X)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2188 |
by (auto simp: path_components_of_def pairwise_def path_component_of_disjoint path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2189 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2190 |
lemma complement_path_components_of_Union: |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2191 |
"C \<in> path_components_of X \<Longrightarrow> topspace X - C = \<Union>(path_components_of X - {C})" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2192 |
by (metis Union_path_components_of bot.extremum ccpo_Sup_singleton diff_Union_pairwise_disjoint |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2193 |
insert_subsetI pairwise_disjoint_path_components_of) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2194 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2195 |
lemma nonempty_path_components_of: |
72256 | 2196 |
assumes "C \<in> path_components_of X" shows "C \<noteq> {}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2197 |
by (metis assms imageE path_component_of_eq_empty path_components_of_def) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2198 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2199 |
lemma path_components_of_subset: "C \<in> path_components_of X \<Longrightarrow> C \<subseteq> topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2200 |
by (auto simp: path_components_of_def path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2201 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2202 |
lemma path_connectedin_path_components_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2203 |
"C \<in> path_components_of X \<Longrightarrow> path_connectedin X C" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2204 |
by (auto simp: path_components_of_def path_connectedin_path_component_of) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2205 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2206 |
lemma path_component_in_path_components_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2207 |
"Collect (path_component_of X a) \<in> path_components_of X \<longleftrightarrow> a \<in> topspace X" |
72256 | 2208 |
by (metis imageI nonempty_path_components_of path_component_of_eq_empty path_components_of_def) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2209 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2210 |
lemma path_connectedin_Union: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2211 |
assumes \<A>: "\<And>S. S \<in> \<A> \<Longrightarrow> path_connectedin X S" and "\<Inter>\<A> \<noteq> {}" |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2212 |
shows "path_connectedin X (\<Union>\<A>)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2213 |
proof - |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2214 |
obtain a where "\<And>S. S \<in> \<A> \<Longrightarrow> a \<in> S" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2215 |
using assms by blast |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2216 |
then have "\<And>x. x \<in> topspace (subtopology X (\<Union>\<A>)) \<Longrightarrow> path_component_of (subtopology X (\<Union>\<A>)) a x" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2217 |
unfolding topspace_subtopology path_component_of |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2218 |
by (metis (full_types) IntD2 Union_iff Union_upper \<A> path_connectedin_subtopology) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2219 |
then show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2220 |
using \<A> unfolding path_connectedin_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2221 |
by (metis Sup_le_iff path_component_of_equiv path_connected_space_iff_path_component) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2222 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2223 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2224 |
lemma path_connectedin_Un: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2225 |
"\<lbrakk>path_connectedin X S; path_connectedin X T; S \<inter> T \<noteq> {}\<rbrakk> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2226 |
\<Longrightarrow> path_connectedin X (S \<union> T)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2227 |
by (blast intro: path_connectedin_Union [of "{S,T}", simplified]) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2228 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2229 |
lemma path_connected_space_iff_components_eq: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2230 |
"path_connected_space X \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2231 |
(\<forall>C \<in> path_components_of X. \<forall>C' \<in> path_components_of X. C = C')" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2232 |
unfolding path_components_of_def |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2233 |
proof (intro iffI ballI) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2234 |
assume "\<forall>C \<in> path_component_of_set X ` topspace X. |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2235 |
\<forall>C' \<in> path_component_of_set X ` topspace X. C = C'" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2236 |
then show "path_connected_space X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2237 |
using path_component_of_refl path_connected_space_iff_path_component by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2238 |
qed (auto simp: path_connected_space_path_component_set) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2239 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2240 |
lemma path_components_of_eq_empty: |
78336 | 2241 |
"path_components_of X = {} \<longleftrightarrow> X = trivial_topology" |
2242 |
by (metis image_is_empty path_components_of_def subtopology_eq_discrete_topology_empty) |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2243 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2244 |
lemma path_components_of_empty_space: |
78336 | 2245 |
"path_components_of trivial_topology = {}" |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2246 |
by (simp add: path_components_of_eq_empty) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2247 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2248 |
lemma path_components_of_subset_singleton: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2249 |
"path_components_of X \<subseteq> {S} \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2250 |
path_connected_space X \<and> (topspace X = {} \<or> topspace X = S)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2251 |
proof (cases "topspace X = {}") |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2252 |
case True |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2253 |
then show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2254 |
by (auto simp: path_components_of_empty_space path_connected_space_topspace_empty) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2255 |
next |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2256 |
case False |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2257 |
have "(path_components_of X = {S}) \<longleftrightarrow> (path_connected_space X \<and> topspace X = S)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2258 |
by (metis False Set.set_insert ex_in_conv insert_iff path_component_in_path_components_of |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2259 |
path_connected_space_iff_components_eq path_connected_space_path_component_set) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2260 |
with False show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2261 |
by (simp add: path_components_of_eq_empty subset_singleton_iff) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2262 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2263 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2264 |
lemma path_connected_space_iff_components_subset_singleton: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2265 |
"path_connected_space X \<longleftrightarrow> (\<exists>a. path_components_of X \<subseteq> {a})" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2266 |
by (simp add: path_components_of_subset_singleton) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2267 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2268 |
lemma path_components_of_eq_singleton: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2269 |
"path_components_of X = {S} \<longleftrightarrow> path_connected_space X \<and> topspace X \<noteq> {} \<and> S = topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2270 |
by (metis cSup_singleton insert_not_empty path_components_of_subset_singleton subset_singleton_iff) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2271 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2272 |
lemma path_components_of_path_connected_space: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2273 |
"path_connected_space X \<Longrightarrow> path_components_of X = (if topspace X = {} then {} else {topspace X})" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2274 |
by (simp add: path_components_of_eq_empty path_components_of_eq_singleton) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2275 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2276 |
lemma path_component_subset_connected_component_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2277 |
"path_component_of_set X x \<subseteq> connected_component_of_set X x" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2278 |
proof (cases "x \<in> topspace X") |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2279 |
case True |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2280 |
then show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2281 |
by (simp add: connected_component_of_maximal path_component_of_refl path_connectedin_imp_connectedin path_connectedin_path_component_of) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2282 |
next |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2283 |
case False |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2284 |
then show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2285 |
using path_component_of_eq_empty by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2286 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2287 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2288 |
lemma exists_path_component_of_superset: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2289 |
assumes S: "path_connectedin X S" and ne: "topspace X \<noteq> {}" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2290 |
obtains C where "C \<in> path_components_of X" "S \<subseteq> C" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2291 |
by (metis S ne ex_in_conv path_component_in_path_components_of path_component_of_maximal path_component_of_subset_topspace subset_eq that) |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2292 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2293 |
lemma path_component_of_eq_overlap: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2294 |
"path_component_of X x = path_component_of X y \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2295 |
(x \<notin> topspace X) \<and> (y \<notin> topspace X) \<or> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2296 |
Collect (path_component_of X x) \<inter> Collect (path_component_of X y) \<noteq> {}" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2297 |
by (metis disjnt_def empty_iff inf_bot_right mem_Collect_eq path_component_of_disjoint path_component_of_eq path_component_of_eq_empty) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2298 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2299 |
lemma path_component_of_nonoverlap: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2300 |
"Collect (path_component_of X x) \<inter> Collect (path_component_of X y) = {} \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2301 |
(x \<notin> topspace X) \<or> (y \<notin> topspace X) \<or> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2302 |
path_component_of X x \<noteq> path_component_of X y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2303 |
by (metis inf.idem path_component_of_eq_empty path_component_of_eq_overlap) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2304 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2305 |
lemma path_component_of_overlap: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2306 |
"Collect (path_component_of X x) \<inter> Collect (path_component_of X y) \<noteq> {} \<longleftrightarrow> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2307 |
x \<in> topspace X \<and> y \<in> topspace X \<and> path_component_of X x = path_component_of X y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2308 |
by (meson path_component_of_nonoverlap) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2309 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2310 |
lemma path_components_of_disjoint: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2311 |
"\<lbrakk>C \<in> path_components_of X; C' \<in> path_components_of X\<rbrakk> \<Longrightarrow> disjnt C C' \<longleftrightarrow> C \<noteq> C'" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2312 |
by (auto simp: path_components_of_def path_component_of_disjoint path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2313 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2314 |
lemma path_components_of_overlap: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2315 |
"\<lbrakk>C \<in> path_components_of X; C' \<in> path_components_of X\<rbrakk> \<Longrightarrow> C \<inter> C' \<noteq> {} \<longleftrightarrow> C = C'" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2316 |
by (auto simp: path_components_of_def path_component_of_equiv) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2317 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2318 |
lemma path_component_of_unique: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2319 |
"\<lbrakk>x \<in> C; path_connectedin X C; \<And>C'. \<lbrakk>x \<in> C'; path_connectedin X C'\<rbrakk> \<Longrightarrow> C' \<subseteq> C\<rbrakk> |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2320 |
\<Longrightarrow> Collect (path_component_of X x) = C" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2321 |
by (meson subsetD eq_iff path_component_of_maximal path_connectedin_path_component_of) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2322 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2323 |
lemma path_component_of_discrete_topology [simp]: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2324 |
"Collect (path_component_of (discrete_topology U) x) = (if x \<in> U then {x} else {})" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2325 |
proof - |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2326 |
have "\<And>C'. \<lbrakk>x \<in> C'; path_connectedin (discrete_topology U) C'\<rbrakk> \<Longrightarrow> C' \<subseteq> {x}" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2327 |
by (metis path_connectedin_discrete_topology subsetD singletonD) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2328 |
then have "x \<in> U \<Longrightarrow> Collect (path_component_of (discrete_topology U) x) = {x}" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2329 |
by (simp add: path_component_of_unique) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2330 |
then show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2331 |
using path_component_in_topspace by fastforce |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2332 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2333 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2334 |
lemma path_component_of_discrete_topology_iff [simp]: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2335 |
"path_component_of (discrete_topology U) x y \<longleftrightarrow> x \<in> U \<and> y=x" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2336 |
by (metis empty_iff insertI1 mem_Collect_eq path_component_of_discrete_topology singletonD) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2337 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2338 |
lemma path_components_of_discrete_topology [simp]: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2339 |
"path_components_of (discrete_topology U) = (\<lambda>x. {x}) ` U" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2340 |
by (auto simp: path_components_of_def image_def fun_eq_iff) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2341 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2342 |
lemma homeomorphic_map_path_component_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2343 |
assumes f: "homeomorphic_map X Y f" and x: "x \<in> topspace X" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2344 |
shows "Collect (path_component_of Y (f x)) = f ` Collect(path_component_of X x)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2345 |
proof - |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2346 |
obtain g where g: "homeomorphic_maps X Y f g" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2347 |
using f homeomorphic_map_maps by blast |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2348 |
show ?thesis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2349 |
proof |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2350 |
have "Collect (path_component_of Y (f x)) \<subseteq> topspace Y" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2351 |
by (simp add: path_component_of_subset_topspace) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2352 |
moreover have "g ` Collect(path_component_of Y (f x)) \<subseteq> Collect (path_component_of X (g (f x)))" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2353 |
using f g x unfolding homeomorphic_maps_def |
78336 | 2354 |
by (metis image_Collect_subsetI image_eqI mem_Collect_eq path_component_of_equiv path_component_of_maximal |
2355 |
path_connectedin_continuous_map_image path_connectedin_path_component_of) |
|
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2356 |
ultimately show "Collect (path_component_of Y (f x)) \<subseteq> f ` Collect (path_component_of X x)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2357 |
using g x unfolding homeomorphic_maps_def continuous_map_def image_iff subset_iff |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2358 |
by metis |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2359 |
show "f ` Collect (path_component_of X x) \<subseteq> Collect (path_component_of Y (f x))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2360 |
proof (rule path_component_of_maximal) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2361 |
show "path_connectedin Y (f ` Collect (path_component_of X x))" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2362 |
by (meson f homeomorphic_map_path_connectedness_eq path_connectedin_path_component_of) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2363 |
qed (simp add: path_component_of_refl x) |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2364 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2365 |
qed |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2366 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2367 |
lemma homeomorphic_map_path_components_of: |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2368 |
assumes "homeomorphic_map X Y f" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2369 |
shows "path_components_of Y = (image f) ` (path_components_of X)" |
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2370 |
unfolding path_components_of_def homeomorphic_imp_surjective_map [OF assms, symmetric] |
72256 | 2371 |
using assms homeomorphic_map_path_component_of by fastforce |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2372 |
|
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2373 |
|
77943
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2374 |
subsection\<open>Paths and path-connectedness\<close> |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2375 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2376 |
lemma path_connected_space_quotient_map_image: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2377 |
"\<lbrakk>quotient_map X Y q; path_connected_space X\<rbrakk> \<Longrightarrow> path_connected_space Y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2378 |
by (metis path_connectedin_continuous_map_image path_connectedin_topspace quotient_imp_continuous_map quotient_imp_surjective_map) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2379 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2380 |
lemma path_connected_space_retraction_map_image: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2381 |
"\<lbrakk>retraction_map X Y r; path_connected_space X\<rbrakk> \<Longrightarrow> path_connected_space Y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2382 |
using path_connected_space_quotient_map_image retraction_imp_quotient_map by blast |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2383 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2384 |
lemma path_connected_space_prod_topology: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2385 |
"path_connected_space(prod_topology X Y) \<longleftrightarrow> |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2386 |
topspace(prod_topology X Y) = {} \<or> path_connected_space X \<and> path_connected_space Y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2387 |
proof (cases "topspace(prod_topology X Y) = {}") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2388 |
case True |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2389 |
then show ?thesis |
78336 | 2390 |
using path_connected_space_topspace_empty by force |
77943
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2391 |
next |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2392 |
case False |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2393 |
have "path_connected_space (prod_topology X Y)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2394 |
if X: "path_connected_space X" and Y: "path_connected_space Y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2395 |
proof (clarsimp simp: path_connected_space_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2396 |
fix x y x' y' |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2397 |
assume "x \<in> topspace X" and "y \<in> topspace Y" and "x' \<in> topspace X" and "y' \<in> topspace Y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2398 |
obtain f where "pathin X f" "f 0 = x" "f 1 = x'" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2399 |
by (meson X \<open>x \<in> topspace X\<close> \<open>x' \<in> topspace X\<close> path_connected_space_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2400 |
obtain g where "pathin Y g" "g 0 = y" "g 1 = y'" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2401 |
by (meson Y \<open>y \<in> topspace Y\<close> \<open>y' \<in> topspace Y\<close> path_connected_space_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2402 |
show "\<exists>h. pathin (prod_topology X Y) h \<and> h 0 = (x,y) \<and> h 1 = (x',y')" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2403 |
proof (intro exI conjI) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2404 |
show "pathin (prod_topology X Y) (\<lambda>t. (f t, g t))" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2405 |
using \<open>pathin X f\<close> \<open>pathin Y g\<close> by (simp add: continuous_map_paired pathin_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2406 |
show "(\<lambda>t. (f t, g t)) 0 = (x, y)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2407 |
using \<open>f 0 = x\<close> \<open>g 0 = y\<close> by blast |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2408 |
show "(\<lambda>t. (f t, g t)) 1 = (x', y')" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2409 |
using \<open>f 1 = x'\<close> \<open>g 1 = y'\<close> by blast |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2410 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2411 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2412 |
then show ?thesis |
78336 | 2413 |
by (metis False path_connected_space_quotient_map_image prod_topology_trivial1 prod_topology_trivial2 |
2414 |
quotient_map_fst quotient_map_snd topspace_discrete_topology) |
|
77943
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2415 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2416 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2417 |
lemma path_connectedin_Times: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2418 |
"path_connectedin (prod_topology X Y) (S \<times> T) \<longleftrightarrow> |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2419 |
S = {} \<or> T = {} \<or> path_connectedin X S \<and> path_connectedin Y T" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2420 |
by (auto simp add: path_connectedin_def subtopology_Times path_connected_space_prod_topology) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2421 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2422 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2423 |
subsection\<open>Path components\<close> |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2424 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2425 |
lemma path_component_of_subtopology_eq: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2426 |
"path_component_of (subtopology X U) x = path_component_of X x \<longleftrightarrow> path_component_of_set X x \<subseteq> U" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2427 |
(is "?lhs = ?rhs") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2428 |
proof |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2429 |
show "?lhs \<Longrightarrow> ?rhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2430 |
by (metis path_connectedin_path_component_of path_connectedin_subtopology) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2431 |
next |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2432 |
show "?rhs \<Longrightarrow> ?lhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2433 |
unfolding fun_eq_iff |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2434 |
by (metis path_connectedin_subtopology path_component_of path_component_of_aux path_component_of_mono) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2435 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2436 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2437 |
lemma path_components_of_subtopology: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2438 |
assumes "C \<in> path_components_of X" "C \<subseteq> U" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2439 |
shows "C \<in> path_components_of (subtopology X U)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2440 |
using assms path_component_of_refl path_component_of_subtopology_eq topspace_subtopology |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2441 |
by (smt (verit) imageE path_component_in_path_components_of path_components_of_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2442 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2443 |
lemma path_imp_connected_component_of: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2444 |
"path_component_of X x y \<Longrightarrow> connected_component_of X x y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2445 |
by (metis in_mono mem_Collect_eq path_component_subset_connected_component_of) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2446 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2447 |
lemma finite_path_components_of_finite: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2448 |
"finite(topspace X) \<Longrightarrow> finite(path_components_of X)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2449 |
by (simp add: Union_path_components_of finite_UnionD) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2450 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2451 |
lemma path_component_of_continuous_image: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2452 |
"\<lbrakk>continuous_map X X' f; path_component_of X x y\<rbrakk> \<Longrightarrow> path_component_of X' (f x) (f y)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2453 |
by (meson image_eqI path_component_of path_connectedin_continuous_map_image) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2454 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2455 |
lemma path_component_of_pair [simp]: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2456 |
"path_component_of_set (prod_topology X Y) (x,y) = |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2457 |
path_component_of_set X x \<times> path_component_of_set Y y" (is "?lhs = ?rhs") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2458 |
proof (cases "?lhs = {}") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2459 |
case True |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2460 |
then show ?thesis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2461 |
by (metis Sigma_empty1 Sigma_empty2 mem_Sigma_iff path_component_of_eq_empty topspace_prod_topology) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2462 |
next |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2463 |
case False |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2464 |
then have "path_component_of X x x" "path_component_of Y y y" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2465 |
using path_component_of_eq_empty path_component_of_refl by fastforce+ |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2466 |
moreover |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2467 |
have "path_connectedin (prod_topology X Y) (path_component_of_set X x \<times> path_component_of_set Y y)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2468 |
by (metis path_connectedin_Times path_connectedin_path_component_of) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2469 |
moreover have "path_component_of X x a" "path_component_of Y y b" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2470 |
if "(x, y) \<in> C'" "(a,b) \<in> C'" and "path_connectedin (prod_topology X Y) C'" for C' a b |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2471 |
by (smt (verit, best) that continuous_map_fst continuous_map_snd fst_conv snd_conv path_component_of path_component_of_continuous_image)+ |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2472 |
ultimately show ?thesis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2473 |
by (intro path_component_of_unique) auto |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2474 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2475 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2476 |
lemma path_components_of_prod_topology: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2477 |
"path_components_of (prod_topology X Y) = |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2478 |
(\<lambda>(C,D). C \<times> D) ` (path_components_of X \<times> path_components_of Y)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2479 |
by (force simp add: image_iff path_components_of_def) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2480 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2481 |
lemma path_components_of_prod_topology': |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2482 |
"path_components_of (prod_topology X Y) = |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2483 |
{C \<times> D |C D. C \<in> path_components_of X \<and> D \<in> path_components_of Y}" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2484 |
by (auto simp: path_components_of_prod_topology) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2485 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2486 |
lemma path_component_of_product_topology: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2487 |
"path_component_of_set (product_topology X I) f = |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2488 |
(if f \<in> extensional I then PiE I (\<lambda>i. path_component_of_set (X i) (f i)) else {})" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2489 |
(is "?lhs = ?rhs") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2490 |
proof (cases "path_component_of_set (product_topology X I) f = {}") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2491 |
case True |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2492 |
then show ?thesis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2493 |
by (smt (verit) PiE_eq_empty_iff PiE_iff path_component_of_eq_empty topspace_product_topology) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2494 |
next |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2495 |
case False |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2496 |
then have [simp]: "f \<in> extensional I" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2497 |
by (auto simp: path_component_of_eq_empty PiE_iff path_component_of_equiv) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2498 |
show ?thesis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2499 |
proof (intro path_component_of_unique) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2500 |
show "f \<in> ?rhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2501 |
using False path_component_of_eq_empty path_component_of_refl by force |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2502 |
show "path_connectedin (product_topology X I) (if f \<in> extensional I then \<Pi>\<^sub>E i\<in>I. path_component_of_set (X i) (f i) else {})" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2503 |
by (simp add: path_connectedin_PiE path_connectedin_path_component_of) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2504 |
fix C' |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2505 |
assume "f \<in> C'" and C': "path_connectedin (product_topology X I) C'" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2506 |
show "C' \<subseteq> ?rhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2507 |
proof - |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2508 |
have "C' \<subseteq> extensional I" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2509 |
using PiE_def C' path_connectedin_subset_topspace by fastforce |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2510 |
with \<open>f \<in> C'\<close> C' show ?thesis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2511 |
apply (clarsimp simp: PiE_iff subset_iff) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2512 |
by (smt (verit, ccfv_threshold) continuous_map_product_projection path_component_of path_component_of_continuous_image) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2513 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2514 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2515 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2516 |
|
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2517 |
lemma path_components_of_product_topology: |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2518 |
"path_components_of (product_topology X I) = |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2519 |
{PiE I B |B. \<forall>i \<in> I. B i \<in> path_components_of(X i)}" (is "?lhs=?rhs") |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2520 |
proof |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2521 |
show "?lhs \<subseteq> ?rhs" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2522 |
unfolding path_components_of_def image_subset_iff |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2523 |
by (smt (verit) image_iff mem_Collect_eq path_component_of_product_topology topspace_product_topology_alt) |
77943
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2524 |
next |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2525 |
show "?rhs \<subseteq> ?lhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2526 |
proof |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2527 |
fix F |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2528 |
assume "F \<in> ?rhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2529 |
then obtain B where B: "F = Pi\<^sub>E I B" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2530 |
and "\<forall>i\<in>I. \<exists>x\<in>topspace (X i). B i = path_component_of_set (X i) x" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2531 |
by (force simp add: path_components_of_def image_iff) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2532 |
then obtain f where ftop: "\<And>i. i \<in> I \<Longrightarrow> f i \<in> topspace (X i)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2533 |
and BF: "\<And>i. i \<in> I \<Longrightarrow> B i = path_component_of_set (X i) (f i)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2534 |
by metis |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2535 |
then have "F = path_component_of_set (product_topology X I) (restrict f I)" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2536 |
by (metis (mono_tags, lifting) B PiE_cong path_component_of_product_topology restrict_apply' restrict_extensional) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2537 |
then show "F \<in> ?lhs" |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2538 |
by (simp add: ftop path_component_in_path_components_of) |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2539 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2540 |
qed |
ffdad62bc235
Importation of additional lemmas from metric.ml
paulson <lp15@cam.ac.uk>
parents:
77221
diff
changeset
|
2541 |
|
60420 | 2542 |
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
|
2543 |
|
36583 | 2544 |
lemma path_connected_punctured_universe: |
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2545 |
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
|
2546 |
shows "path_connected (- {a::'a})" |
49653 | 2547 |
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
|
2548 |
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
|
2549 |
let ?B = "{x::'a. \<exists>i\<in>Basis. a \<bullet> i < x \<bullet> i}" |
36583 | 2550 |
|
49653 | 2551 |
have A: "path_connected ?A" |
2552 |
unfolding Collect_bex_eq |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2553 |
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
|
2554 |
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
|
2555 |
assume "i \<in> Basis" |
53640 | 2556 |
then show "(\<Sum>i\<in>Basis. (a \<bullet> i - 1)*\<^sub>R i) \<in> {x::'a. x \<bullet> i < a \<bullet> i}" |
2557 |
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
|
2558 |
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
|
2559 |
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
|
2560 |
by (simp add: inner_commute) |
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2561 |
qed |
53640 | 2562 |
have B: "path_connected ?B" |
2563 |
unfolding Collect_bex_eq |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2564 |
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
|
2565 |
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
|
2566 |
assume "i \<in> Basis" |
53640 | 2567 |
then show "(\<Sum>i\<in>Basis. (a \<bullet> i + 1) *\<^sub>R i) \<in> {x::'a. a \<bullet> i < x \<bullet> i}" |
2568 |
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
|
2569 |
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
|
2570 |
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
|
2571 |
by (simp add: inner_commute) |
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2572 |
qed |
53640 | 2573 |
obtain S :: "'a set" where "S \<subseteq> Basis" and "card S = Suc (Suc 0)" |
76837 | 2574 |
using obtain_subset_with_card_n[OF assms] by (force simp add: eval_nat_numeral) |
53640 | 2575 |
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
|
2576 |
unfolding card_Suc_eq by auto |
53640 | 2577 |
then have "a + b0 - b1 \<in> ?A \<inter> ?B" |
2578 |
by (auto simp: inner_simps inner_Basis) |
|
2579 |
then have "?A \<inter> ?B \<noteq> {}" |
|
2580 |
by fast |
|
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2581 |
with A B have "path_connected (?A \<union> ?B)" |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2582 |
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
|
2583 |
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
|
2584 |
unfolding neq_iff bex_disj_distrib Collect_disj_eq .. |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2585 |
also have "\<dots> = {x. x \<noteq> a}" |
53640 | 2586 |
unfolding euclidean_eq_iff [where 'a='a] |
2587 |
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
|
2588 |
also have "\<dots> = - {a}" |
53640 | 2589 |
by auto |
37674
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2590 |
finally show ?thesis . |
f86de9c00c47
convert theorem path_connected_sphere to euclidean_space class
huffman
parents:
37489
diff
changeset
|
2591 |
qed |
36583 | 2592 |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2593 |
corollary connected_punctured_universe: |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2594 |
"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
|
2595 |
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
|
2596 |
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2597 |
proposition path_connected_sphere: |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2598 |
fixes a :: "'a :: euclidean_space" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2599 |
assumes "2 \<le> DIM('a)" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2600 |
shows "path_connected(sphere a r)" |
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2601 |
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
|
2602 |
case greater |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2603 |
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
|
2604 |
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
|
2605 |
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
|
2606 |
by (intro continuous_intros) auto |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2607 |
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
|
2608 |
by (intro path_connected_continuous_image path_connected_punctured_universe assms) |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2609 |
with eq 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
|
2610 |
by (simp add: path_connected_translation) |
53640 | 2611 |
then show ?thesis |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2612 |
by (metis add.right_neutral sphere_translation) |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
2613 |
qed auto |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2614 |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2615 |
lemma connected_sphere: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2616 |
fixes a :: "'a :: euclidean_space" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2617 |
assumes "2 \<le> DIM('a)" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2618 |
shows "connected(sphere a r)" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2619 |
using path_connected_sphere [OF assms] |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2620 |
by (simp add: path_connected_imp_connected) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2621 |
|
36583 | 2622 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2623 |
corollary path_connected_complement_bounded_convex: |
72256 | 2624 |
fixes S :: "'a :: euclidean_space set" |
2625 |
assumes "bounded S" "convex S" and 2: "2 \<le> DIM('a)" |
|
2626 |
shows "path_connected (- S)" |
|
2627 |
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
|
2628 |
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
|
2629 |
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
|
2630 |
next |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2631 |
case False |
72256 | 2632 |
then obtain a where "a \<in> S" by auto |
2633 |
have \<section> [rule_format]: "\<forall>y\<in>S. \<forall>u. 0 \<le> u \<and> u \<le> 1 \<longrightarrow> (1 - u) *\<^sub>R a + u *\<^sub>R y \<in> S" |
|
2634 |
using \<open>convex S\<close> \<open>a \<in> S\<close> by (simp add: convex_alt) |
|
2635 |
{ fix x y assume "x \<notin> S" "y \<notin> S" |
|
2636 |
then have "x \<noteq> a" "y \<noteq> a" using \<open>a \<in> S\<close> by auto |
|
2637 |
then have bxy: "bounded(insert x (insert y S))" |
|
2638 |
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
|
2639 |
then obtain B::real where B: "0 < B" and Bx: "norm (a - x) < B" and By: "norm (a - y) < B" |
72256 | 2640 |
and "S \<subseteq> ball a 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
|
2641 |
using bounded_subset_ballD [OF bxy, of a] by (auto simp: dist_norm) |
63040 | 2642 |
define C where "C = B / norm(x - a)" |
72256 | 2643 |
let ?Cxa = "a + C *\<^sub>R (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
|
2644 |
{ fix u |
72256 | 2645 |
assume u: "(1 - u) *\<^sub>R x + u *\<^sub>R ?Cxa \<in> S" and "0 \<le> u" "u \<le> 1" |
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 |
have CC: "1 \<le> 1 + (C - 1) * u" |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
2647 |
using \<open>x \<noteq> a\<close> \<open>0 \<le> u\<close> Bx |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
2648 |
by (auto simp add: C_def norm_minus_commute) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2649 |
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
|
2650 |
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
|
2651 |
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
|
2652 |
(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
|
2653 |
by (simp add: algebra_simps) |
68096 | 2654 |
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
|
2655 |
using CC by (simp add: field_simps) |
68096 | 2656 |
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
|
2657 |
by (simp add: algebra_simps) |
68096 | 2658 |
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
|
2659 |
((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
|
2660 |
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
|
2661 |
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
|
2662 |
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
|
2663 |
have False |
72256 | 2664 |
using \<section> [of "a + (1 + (C - 1) * u) *\<^sub>R (x - a)" "1 / (1 + (C - 1) * u)"] |
2665 |
using u \<open>x \<noteq> a\<close> \<open>x \<notin> S\<close> \<open>0 \<le> u\<close> CC |
|
2666 |
by (auto simp: xeq *) |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2667 |
} |
72256 | 2668 |
then have pcx: "path_component (- S) x ?Cxa" |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2669 |
by (force simp: closed_segment_def intro!: path_component_linepath) |
67443
3abf6a722518
standardized towards new-style formal comments: isabelle update_comments;
wenzelm
parents:
67399
diff
changeset
|
2670 |
define D where "D = B / norm(y - a)" \<comment> \<open>massive duplication with the proof above\<close> |
72256 | 2671 |
let ?Dya = "a + D *\<^sub>R (y - 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
|
2672 |
{ fix u |
72256 | 2673 |
assume u: "(1 - u) *\<^sub>R y + u *\<^sub>R ?Dya \<in> S" and "0 \<le> u" "u \<le> 1" |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2674 |
have DD: "1 \<le> 1 + (D - 1) * u" |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
2675 |
using \<open>y \<noteq> a\<close> \<open>0 \<le> u\<close> By |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
2676 |
by (auto simp add: D_def norm_minus_commute) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2677 |
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
|
2678 |
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
|
2679 |
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
|
2680 |
(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
|
2681 |
by (simp add: algebra_simps) |
68096 | 2682 |
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
|
2683 |
using DD by (simp add: field_simps) |
68096 | 2684 |
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
|
2685 |
by (simp add: algebra_simps) |
68096 | 2686 |
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
|
2687 |
((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
|
2688 |
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
|
2689 |
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
|
2690 |
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
|
2691 |
have False |
72256 | 2692 |
using \<section> [of "a + (1 + (D - 1) * u) *\<^sub>R (y - a)" "1 / (1 + (D - 1) * u)"] |
2693 |
using u \<open>y \<noteq> a\<close> \<open>y \<notin> S\<close> \<open>0 \<le> u\<close> DD |
|
2694 |
by (auto simp: xeq *) |
|
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 |
} |
72256 | 2696 |
then have pdy: "path_component (- S) y ?Dya" |
69939
812ce526da33
new material on topology: products, etc. Some renamings, esp continuous_on_topo -> continuous_map
paulson <lp15@cam.ac.uk>
parents:
69712
diff
changeset
|
2697 |
by (force simp: closed_segment_def intro!: path_component_linepath) |
72256 | 2698 |
have pyx: "path_component (- S) ?Dya ?Cxa" |
2699 |
proof (rule path_component_of_subset) |
|
2700 |
show "sphere a B \<subseteq> - S" |
|
2701 |
using \<open>S \<subseteq> ball a B\<close> by (force simp: ball_def dist_norm norm_minus_commute) |
|
2702 |
have aB: "?Dya \<in> sphere a B" "?Cxa \<in> sphere a B" |
|
2703 |
using \<open>x \<noteq> a\<close> using \<open>y \<noteq> a\<close> B by (auto simp: dist_norm C_def D_def) |
|
2704 |
then show "path_component (sphere a B) ?Dya ?Cxa" |
|
2705 |
using path_connected_sphere [OF 2] path_connected_component by blast |
|
2706 |
qed |
|
2707 |
have "path_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
|
2708 |
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
|
2709 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2710 |
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
|
2711 |
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
|
2712 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2713 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2714 |
lemma connected_complement_bounded_convex: |
72256 | 2715 |
fixes S :: "'a :: euclidean_space set" |
2716 |
assumes "bounded S" "convex S" "2 \<le> DIM('a)" |
|
2717 |
shows "connected (- 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
|
2718 |
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
|
2719 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2720 |
lemma connected_diff_ball: |
72256 | 2721 |
fixes S :: "'a :: euclidean_space set" |
2722 |
assumes "connected S" "cball a r \<subseteq> S" "2 \<le> DIM('a)" |
|
2723 |
shows "connected (S - ball a r)" |
|
2724 |
proof (rule connected_diff_open_from_closed [OF ball_subset_cball]) |
|
2725 |
show "connected (cball a r - ball a r)" |
|
2726 |
using assms connected_sphere by (auto simp: cball_diff_eq_sphere) |
|
2727 |
qed (auto simp: assms 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
|
2728 |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2729 |
proposition connected_open_delete: |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2730 |
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
|
2731 |
shows "connected(S - {a::'N})" |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2732 |
proof (cases "a \<in> S") |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2733 |
case True |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2734 |
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
|
2735 |
using open_contains_cball_eq by blast |
72256 | 2736 |
define b where "b \<equiv> a + \<epsilon> *\<^sub>R (SOME i. i \<in> Basis)" |
2737 |
have "dist a b = \<epsilon>" |
|
2738 |
by (simp add: b_def dist_norm SOME_Basis \<open>0 < \<epsilon>\<close> less_imp_le) |
|
2739 |
with \<epsilon> have "b \<in> \<Inter>{S - ball a r |r. 0 < r \<and> r < \<epsilon>}" |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2740 |
by auto |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2741 |
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
|
2742 |
by auto |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2743 |
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
|
2744 |
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
|
2745 |
have "x \<in> \<Union>{S - ball a r |r. 0 < r \<and> r < \<epsilon>}" if "x \<in> S - {a}" for x |
72256 | 2746 |
using that \<open>0 < \<epsilon>\<close> |
2747 |
by (intro UnionI [of "S - ball a (min \<epsilon> (dist a x) / 2)"]) auto |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2748 |
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
|
2749 |
by auto |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2750 |
then show ?thesis |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2751 |
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
|
2752 |
next |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2753 |
case False then show ?thesis |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2754 |
by (simp add: \<open>connected S\<close>) |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2755 |
qed |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2756 |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2757 |
corollary path_connected_open_delete: |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2758 |
assumes "open S" "connected S" and 2: "2 \<le> DIM('N::euclidean_space)" |
72256 | 2759 |
shows "path_connected(S - {a::'N})" |
2760 |
by (simp add: assms connected_open_delete connected_open_path_connected open_delete) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2761 |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2762 |
corollary path_connected_punctured_ball: |
72256 | 2763 |
"2 \<le> DIM('N::euclidean_space) \<Longrightarrow> path_connected(ball a r - {a::'N})" |
2764 |
by (simp add: path_connected_open_delete) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2765 |
|
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2766 |
corollary connected_punctured_ball: |
72256 | 2767 |
"2 \<le> DIM('N::euclidean_space) \<Longrightarrow> connected(ball a r - {a::'N})" |
2768 |
by (simp add: connected_open_delete) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
2769 |
|
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2770 |
corollary connected_open_delete_finite: |
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2771 |
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
|
2772 |
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
|
2773 |
shows "connected(S - T)" |
bd218a9320b5
HOL-Multivariate_Analysis: rename theories for more descriptive names
hoelzl
parents:
63540
diff
changeset
|
2774 |
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
|
2775 |
proof (induct T) |
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2776 |
case empty |
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2777 |
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
|
2778 |
next |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2779 |
case (insert x T) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2780 |
then have "connected (S-T)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2781 |
by auto |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2782 |
moreover have "open (S - T)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2783 |
using finite_imp_closed[OF \<open>finite T\<close>] \<open>open S\<close> by auto |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2784 |
ultimately have "connected (S - T - {x})" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2785 |
using connected_open_delete[OF _ _ 2] by auto |
63151
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2786 |
thus ?case by (metis Diff_insert) |
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2787 |
qed |
82df5181d699
updated proof of Residue Theorem (form Wenda Li)
paulson <lp15@cam.ac.uk>
parents:
63126
diff
changeset
|
2788 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2789 |
lemma sphere_1D_doubleton_zero: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2790 |
assumes 1: "DIM('a) = 1" and "r > 0" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2791 |
obtains x y::"'a::euclidean_space" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2792 |
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
|
2793 |
proof - |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2794 |
obtain b::'a where b: "Basis = {b}" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2795 |
using 1 card_1_singletonE by blast |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2796 |
show ?thesis |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2797 |
proof (intro that conjI) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2798 |
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
|
2799 |
proof - |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2800 |
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
|
2801 |
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
|
2802 |
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
|
2803 |
by simp |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2804 |
with b have "\<bar>x \<bullet> b\<bar> = norm x" |
68310 | 2805 |
using norm_Basis by (simp add: b) |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2806 |
with xb show ?thesis |
73932
fd21b4a93043
added opaque_combs and renamed hide_lams to opaque_lifting
desharna
parents:
73795
diff
changeset
|
2807 |
by (metis (mono_tags, opaque_lifting) abs_eq_iff abs_norm_cancel) |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2808 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2809 |
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
|
2810 |
by (force simp: sphere_def dist_norm) |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2811 |
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
|
2812 |
by (simp add: dist_norm) |
68096 | 2813 |
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
|
2814 |
by (metis mult_2 scaleR_add_left) |
68096 | 2815 |
also have "\<dots> = 2*r" |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2816 |
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
|
2817 |
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
|
2818 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2819 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2820 |
|
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2821 |
lemma sphere_1D_doubleton: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2822 |
fixes a :: "'a :: euclidean_space" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2823 |
assumes "DIM('a) = 1" and "r > 0" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2824 |
obtains x y where "sphere a r = {x,y} \<and> dist x y = 2*r" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2825 |
using sphere_1D_doubleton_zero [OF assms] dist_add_cancel image_empty image_insert |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2826 |
by (metis (no_types, opaque_lifting) add.right_neutral sphere_translation) |
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2827 |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2828 |
lemma psubset_sphere_Compl_connected: |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2829 |
fixes S :: "'a::euclidean_space set" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2830 |
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
|
2831 |
shows "connected(- S)" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2832 |
proof - |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2833 |
have "S \<subseteq> sphere a r" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2834 |
using S by blast |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2835 |
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
|
2836 |
using S mem_sphere by blast |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2837 |
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 | 2838 |
by auto |
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2839 |
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
|
2840 |
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
|
2841 |
moreover have "connected {x. dist a x \<le> r \<and> x \<notin> S}" |
72256 | 2842 |
using assms |
2843 |
by (force intro: connected_intermediate_closure [of "ball a r"]) |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2844 |
moreover have "connected {x. r \<le> dist a x \<and> x \<notin> S}" |
72256 | 2845 |
proof (rule connected_intermediate_closure [of "- cball a r"]) |
2846 |
show "{x. r \<le> dist a x \<and> x \<notin> S} \<subseteq> closure (- cball a r)" |
|
2847 |
using interior_closure by (force intro: connected_complement_bounded_convex) |
|
2848 |
qed (use assms connected_complement_bounded_convex in auto) |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2849 |
ultimately show ?thesis |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2850 |
by (simp add: CS connected_Un) |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2851 |
qed |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
2852 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
2853 |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2854 |
subsection\<open>Every annulus is a connected set\<close> |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2855 |
|
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2856 |
lemma path_connected_2DIM_I: |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2857 |
fixes a :: "'N::euclidean_space" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2858 |
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
|
2859 |
shows "path_connected {x. P(norm(x - a))}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2860 |
proof - |
67399 | 2861 |
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
|
2862 |
by force |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2863 |
moreover have "path_connected {x::'N. P(norm x)}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2864 |
proof - |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2865 |
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
|
2866 |
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
|
2867 |
if "P (norm x)" for x::'N |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2868 |
proof (cases "x=0") |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2869 |
case True |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2870 |
with that show ?thesis |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2871 |
apply (simp add: image_iff) |
72256 | 2872 |
by (metis (no_types) mem_sphere_0 order_refl vector_choose_size zero_le_one) |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2873 |
next |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2874 |
case False |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2875 |
with that show ?thesis |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2876 |
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
|
2877 |
qed |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2878 |
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
|
2879 |
by auto |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2880 |
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
|
2881 |
by (intro continuous_intros) |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2882 |
moreover have "path_connected ?D" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2883 |
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
|
2884 |
ultimately show ?thesis |
72256 | 2885 |
by (simp add: "*" path_connected_continuous_image) |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2886 |
qed |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2887 |
ultimately show ?thesis |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2888 |
using path_connected_translation by metis |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2889 |
qed |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2890 |
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2891 |
proposition path_connected_annulus: |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2892 |
fixes a :: "'N::euclidean_space" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2893 |
assumes "2 \<le> DIM('N)" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2894 |
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
|
2895 |
"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
|
2896 |
"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
|
2897 |
"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
|
2898 |
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
|
2899 |
|
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
2900 |
proposition connected_annulus: |
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2901 |
fixes a :: "'N::euclidean_space" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2902 |
assumes "2 \<le> DIM('N::euclidean_space)" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
2903 |
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
|
2904 |
"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
|
2905 |
"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
|
2906 |
"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
|
2907 |
by (auto simp: path_connected_annulus [OF assms] path_connected_imp_connected) |
67962 | 2908 |
|
2909 |
||
70136 | 2910 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
2911 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2912 |
lemma open_connected_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2913 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2914 |
assumes "open S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2915 |
shows "open (connected_component_set S x)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2916 |
proof (clarsimp simp: open_contains_ball) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2917 |
fix y |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2918 |
assume xy: "connected_component S x y" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2919 |
then obtain e where "e>0" "ball y e \<subseteq> S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2920 |
using assms connected_component_in openE by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2921 |
then show "\<exists>e>0. ball y e \<subseteq> connected_component_set S x" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2922 |
by (metis xy centre_in_ball connected_ball connected_component_eq_eq connected_component_in connected_component_maximal) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2923 |
qed |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2924 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2925 |
corollary open_components: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2926 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2927 |
shows "\<lbrakk>open u; S \<in> components u\<rbrakk> \<Longrightarrow> open 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
|
2928 |
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
|
2929 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2930 |
lemma in_closure_connected_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2931 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2932 |
assumes x: "x \<in> S" and S: "open S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
2933 |
shows "x \<in> closure (connected_component_set S y) \<longleftrightarrow> x \<in> 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
|
2934 |
proof - |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2935 |
have "x islimpt connected_component_set S y \<Longrightarrow> connected_component S y x" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2936 |
by (metis (no_types, lifting) S connected_component_eq connected_component_refl islimptE mem_Collect_eq open_connected_component 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
|
2937 |
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
|
2938 |
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
|
2939 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
2940 |
|
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2941 |
lemma connected_disjoint_Union_open_pick: |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2942 |
assumes "pairwise disjnt B" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2943 |
"\<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
|
2944 |
"\<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
|
2945 |
"\<Union>A \<subseteq> \<Union>B" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2946 |
"S \<in> A" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2947 |
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
|
2948 |
proof - |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2949 |
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
|
2950 |
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
|
2951 |
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
|
2952 |
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
|
2953 |
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
|
2954 |
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
|
2955 |
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
|
2956 |
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
|
2957 |
by (auto simp: pairwise_def disjnt_def) |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2958 |
then have 4: "T \<inter> \<Union>(B - {T}) \<inter> S = {}" by auto |
71244 | 2959 |
from connectedD [OF \<open>connected S\<close> 1 2 4 3] |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2960 |
have "S \<inter> \<Union>(B-{T}) = {}" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2961 |
by (auto simp: Int_commute \<open>S \<inter> T \<noteq> {}\<close>) |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2962 |
with \<open>T \<in> B\<close> 3 that show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2963 |
by (metis IntI UnE empty_iff subsetD subsetI) |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2964 |
qed |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2965 |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2966 |
lemma connected_disjoint_Union_open_subset: |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2967 |
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
|
2968 |
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
|
2969 |
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
|
2970 |
and eq [simp]: "\<Union>A = \<Union>B" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2971 |
shows "A \<subseteq> B" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2972 |
proof |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2973 |
fix S |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2974 |
assume "S \<in> A" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2975 |
obtain T where "T \<in> B" "S \<subseteq> T" "S \<inter> \<Union>(B - {T}) = {}" |
72256 | 2976 |
using SA SB \<open>S \<in> A\<close> connected_disjoint_Union_open_pick [OF B, of A] eq order_refl by blast |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2977 |
moreover obtain S' where "S' \<in> A" "T \<subseteq> S'" "T \<inter> \<Union>(A - {S'}) = {}" |
72256 | 2978 |
using SA SB \<open>T \<in> B\<close> connected_disjoint_Union_open_pick [OF A, of B] eq order_refl by blast |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2979 |
ultimately have "S' = S" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2980 |
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
|
2981 |
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
|
2982 |
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
|
2983 |
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
|
2984 |
qed |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2985 |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2986 |
lemma connected_disjoint_Union_open_unique: |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2987 |
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
|
2988 |
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
|
2989 |
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
|
2990 |
and eq [simp]: "\<Union>A = \<Union>B" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2991 |
shows "A = B" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
2992 |
by (metis subset_antisym connected_disjoint_Union_open_subset assms) |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2993 |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2994 |
proposition components_open_unique: |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2995 |
fixes S :: "'a::real_normed_vector set" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2996 |
assumes "pairwise disjnt A" "\<Union>A = S" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2997 |
"\<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
|
2998 |
shows "components S = A" |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
2999 |
proof - |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
3000 |
have "open S" using assms by blast |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
3001 |
show ?thesis |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3002 |
proof (rule connected_disjoint_Union_open_unique) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3003 |
show "disjoint (components S)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3004 |
by (simp add: components_eq disjnt_def pairwise_def) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3005 |
qed (use \<open>open S\<close> in \<open>simp_all add: assms open_components in_components_connected in_components_nonempty\<close>) |
63114
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
3006 |
qed |
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
3007 |
|
27afe7af7379
Lots of new material for multivariate analysis
paulson <lp15@cam.ac.uk>
parents:
63092
diff
changeset
|
3008 |
|
70136 | 3009 |
subsection\<^marker>\<open>tag unimportant\<close>\<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
|
3010 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3011 |
lemma cobounded_unbounded_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3012 |
fixes S :: "'a :: euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3013 |
assumes "bounded (-S)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3014 |
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
|
3015 |
proof - |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3016 |
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
|
3017 |
using nonempty_Basis by blast |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3018 |
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
|
3019 |
using bounded_subset_ballD [OF assms, of 0] by auto |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3020 |
then have *: "\<And>x. B \<le> norm x \<Longrightarrow> x \<in> S" |
68096 | 3021 |
by (force simp: ball_def dist_norm) |
69508 | 3022 |
have unbounded_inner: "\<not> bounded {x. inner i x \<ge> B}" |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3023 |
proof (clarsimp simp: bounded_def dist_norm) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3024 |
fix e x |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3025 |
show "\<exists>y. B \<le> i \<bullet> y \<and> \<not> norm (x - y) \<le> e" |
72256 | 3026 |
using i |
3027 |
by (rule_tac x="x + (max B e + 1 + \<bar>i \<bullet> x\<bar>) *\<^sub>R i" in exI) (auto simp: inner_right_distrib) |
|
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3028 |
qed |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3029 |
have \<section>: "\<And>x. B \<le> i \<bullet> x \<Longrightarrow> x \<in> S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3030 |
using * Basis_le_norm [OF i] by (metis abs_ge_self inner_commute order_trans) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3031 |
have "{x. B \<le> i \<bullet> x} \<subseteq> connected_component_set S (B *\<^sub>R i)" |
72256 | 3032 |
by (intro connected_component_maximal) (auto simp: i intro: convex_connected convex_halfspace_ge [of B] \<section>) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3033 |
then have "\<not> bounded (connected_component_set S (B *\<^sub>R i))" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3034 |
using bounded_subset unbounded_inner by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3035 |
moreover have "B *\<^sub>R i \<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
|
3036 |
by (rule *) (simp add: norm_Basis [OF i]) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3037 |
ultimately show ?thesis |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3038 |
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
|
3039 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3040 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3041 |
lemma cobounded_unique_unbounded_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3042 |
fixes S :: "'a :: euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3043 |
assumes bs: "bounded (-S)" and "2 \<le> DIM('a)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3044 |
and bo: "\<not> bounded(connected_component_set S x)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3045 |
"\<not> bounded(connected_component_set S y)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3046 |
shows "connected_component_set S x = 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
|
3047 |
proof - |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3048 |
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
|
3049 |
using nonempty_Basis by blast |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3050 |
obtain B where "B>0" and B: "-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
|
3051 |
using bounded_subset_ballD [OF bs, of 0] by auto |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3052 |
then have *: "\<And>x. B \<le> norm x \<Longrightarrow> x \<in> S" |
68096 | 3053 |
by (force simp: ball_def dist_norm) |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3054 |
obtain x' y' where x': "connected_component S x x'" "norm x' > B" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3055 |
and y': "connected_component S y y'" "norm y' > B" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3056 |
using \<open>B>0\<close> bo bounded_pos by (metis linorder_not_le mem_Collect_eq) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3057 |
have x'y': "connected_component S x' y'" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3058 |
unfolding connected_component_def |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3059 |
proof (intro exI conjI) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3060 |
show "connected (- ball 0 B :: 'a set)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3061 |
using assms by (auto intro: connected_complement_bounded_convex) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3062 |
qed (use x' y' dist_norm * in 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
|
3063 |
show ?thesis |
72256 | 3064 |
using x' y' x'y' |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3065 |
by (metis connected_component_eq mem_Collect_eq) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3066 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3067 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3068 |
lemma cobounded_unbounded_components: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3069 |
fixes S :: "'a :: euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3070 |
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
|
3071 |
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
|
3072 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3073 |
lemma cobounded_unique_unbounded_components: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3074 |
fixes S :: "'a :: euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3075 |
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" |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3076 |
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
|
3077 |
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
|
3078 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3079 |
lemma cobounded_has_bounded_component: |
64122 | 3080 |
fixes S :: "'a :: euclidean_space set" |
3081 |
assumes "bounded (- S)" "\<not> connected S" "2 \<le> DIM('a)" |
|
3082 |
obtains C where "C \<in> components S" "bounded C" |
|
3083 |
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
|
3084 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3085 |
|
69620 | 3086 |
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
|
3087 |
|
70136 | 3088 |
text\<^marker>\<open>tag important\<close>\<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
|
3089 |
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
|
3090 |
|
70136 | 3091 |
definition\<^marker>\<open>tag important\<close> inside where |
68096 | 3092 |
"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
|
3093 |
|
70136 | 3094 |
definition\<^marker>\<open>tag important\<close> outside where |
69508 | 3095 |
"outside S \<equiv> -S \<inter> {x. \<not> bounded(connected_component_set (- S) x)}" |
3096 |
||
3097 |
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
|
3098 |
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
|
3099 |
|
68096 | 3100 |
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
|
3101 |
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
|
3102 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3103 |
lemma outside_no_overlap [simp]: |
68096 | 3104 |
"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
|
3105 |
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
|
3106 |
|
68096 | 3107 |
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
|
3108 |
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
|
3109 |
|
68096 | 3110 |
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
|
3111 |
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
|
3112 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3113 |
lemma inside_eq_outside: |
68096 | 3114 |
"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
|
3115 |
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
|
3116 |
|
68096 | 3117 |
lemma inside_outside: "inside S = (- (S \<union> outside S))" |
3118 |
by (force simp: inside_def outside) |
|
3119 |
||
3120 |
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
|
3121 |
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
|
3122 |
|
68096 | 3123 |
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
|
3124 |
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
|
3125 |
|
68096 | 3126 |
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
|
3127 |
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
|
3128 |
|
68096 | 3129 |
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
|
3130 |
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
|
3131 |
|
68096 | 3132 |
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
|
3133 |
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
|
3134 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3135 |
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
|
3136 |
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
|
3137 |
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
|
3138 |
shows "(1 - u) * x + u * y \<ge> B" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3139 |
by (smt (verit) assms convex_bound_le ge_iff_diff_ge_0 minus_add_distrib |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3140 |
mult_minus_right neg_le_iff_le) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3141 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3142 |
lemma cobounded_outside: |
68096 | 3143 |
fixes S :: "'a :: real_normed_vector set" |
3144 |
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
|
3145 |
proof - |
68096 | 3146 |
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
|
3147 |
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
|
3148 |
{ 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
|
3149 |
assume Bno: "B \<le> norm x" and C: "0 < C" |
68096 | 3150 |
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
|
3151 |
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
|
3152 |
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
|
3153 |
next |
68096 | 3154 |
case False |
3155 |
have "closed_segment x (((B + C) / norm x) *\<^sub>R x) \<subseteq> - ball 0 B" |
|
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3156 |
proof |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3157 |
fix w |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3158 |
assume "w \<in> closed_segment x (((B + C) / norm x) *\<^sub>R x)" |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3159 |
then obtain u where |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3160 |
w: "w = (1 - u + u * (B + C) / norm x) *\<^sub>R x" "0 \<le> u" "u \<le> 1" |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3161 |
by (auto simp add: closed_segment_def real_vector_class.scaleR_add_left [symmetric]) |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3162 |
with False B C have "B \<le> (1 - u) * norm x + u * (B + C)" |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3163 |
using segment_bound_lemma [of B "norm x" "B + C" u] Bno |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3164 |
by simp |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3165 |
with False B C show "w \<in> - ball 0 B" |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3166 |
using distrib_right [of _ _ "norm x"] |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3167 |
by (simp add: ball_def w not_less) |
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3168 |
qed |
68096 | 3169 |
also have "... \<subseteq> -S" |
3170 |
by (simp add: B) |
|
3171 |
finally have "\<exists>T. connected T \<and> T \<subseteq> - S \<and> x \<in> T \<and> ((B + C) / norm x) *\<^sub>R x \<in> T" |
|
3172 |
by (rule_tac x="closed_segment x (((B+C)/norm x) *\<^sub>R x)" in exI) simp |
|
3173 |
with False B |
|
3174 |
show ?thesis |
|
3175 |
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
|
3176 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3177 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3178 |
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
|
3179 |
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
|
3180 |
apply (rule bounded_subset [OF bounded_ball [of 0 B]]) |
68096 | 3181 |
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
|
3182 |
done |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3183 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3184 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3185 |
lemma unbounded_outside: |
68096 | 3186 |
fixes S :: "'a::{real_normed_vector, perfect_space} set" |
69508 | 3187 |
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
|
3188 |
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
|
3189 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3190 |
lemma bounded_inside: |
68096 | 3191 |
fixes S :: "'a::{real_normed_vector, perfect_space} set" |
3192 |
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
|
3193 |
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
|
3194 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3195 |
lemma connected_outside: |
68096 | 3196 |
fixes S :: "'a::euclidean_space set" |
3197 |
assumes "bounded S" "2 \<le> DIM('a)" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3198 |
shows "connected(outside S)" |
68096 | 3199 |
apply (clarsimp simp add: connected_iff_connected_component outside) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3200 |
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
|
3201 |
apply (metis (no_types) assms cobounded_unbounded_component cobounded_unique_unbounded_component connected_component_eq_eq connected_component_idemp double_complement mem_Collect_eq) |
72256 | 3202 |
by (simp add: Collect_mono connected_component_eq) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3203 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3204 |
lemma outside_connected_component_lt: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3205 |
"outside S = {x. \<forall>B. \<exists>y. B < norm(y) \<and> connected_component (- S) x y}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3206 |
proof - |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3207 |
have "\<And>x B. x \<in> outside S \<Longrightarrow> \<exists>y. B < norm y \<and> connected_component (- S) x y" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3208 |
by (metis boundedI linorder_not_less mem_Collect_eq outside) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3209 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3210 |
have "\<And>x. \<forall>B. \<exists>y. B < norm y \<and> connected_component (- S) x y \<Longrightarrow> x \<in> outside S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3211 |
by (metis bounded_pos linorder_not_less mem_Collect_eq outside) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3212 |
ultimately show ?thesis by auto |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3213 |
qed |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3214 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3215 |
lemma outside_connected_component_le: |
72256 | 3216 |
"outside S = {x. \<forall>B. \<exists>y. B \<le> norm(y) \<and> connected_component (- S) x y}" |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3217 |
apply (simp add: outside_connected_component_lt Set.set_eq_iff) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3218 |
by (meson gt_ex leD le_less_linear less_imp_le order.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
|
3219 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3220 |
lemma not_outside_connected_component_lt: |
68096 | 3221 |
fixes S :: "'a::euclidean_space set" |
3222 |
assumes S: "bounded S" and "2 \<le> DIM('a)" |
|
69508 | 3223 |
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
|
3224 |
proof - |
68096 | 3225 |
obtain B::real where B: "0 < B" and Bno: "\<And>x. x \<in> S \<Longrightarrow> norm x \<le> B" |
3226 |
using S [simplified bounded_pos] by auto |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3227 |
have cyz: "connected_component (- S) y z" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3228 |
if yz: "B < norm z" "B < norm y" for y::'a and z::'a |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3229 |
proof - |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3230 |
have "connected_component (- cball 0 B) y z" |
72256 | 3231 |
using assms yz |
3232 |
by (force simp: dist_norm intro: connected_componentI [OF _ subset_refl] connected_complement_bounded_convex) |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3233 |
then show ?thesis |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3234 |
by (metis connected_component_of_subset Bno Compl_anti_mono mem_cball_0 subset_iff) |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3235 |
qed |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3236 |
show ?thesis |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3237 |
apply (auto simp: outside 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
|
3238 |
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
|
3239 |
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
|
3240 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3241 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3242 |
lemma not_outside_connected_component_le: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3243 |
fixes S :: "'a::euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3244 |
assumes S: "bounded S" "2 \<le> DIM('a)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3245 |
shows "- (outside S) = {x. \<forall>B. \<exists>y. B \<le> norm(y) \<and> \<not> connected_component (- S) x y}" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3246 |
unfolding not_outside_connected_component_lt [OF assms] |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3247 |
by (metis (no_types, opaque_lifting) dual_order.strict_trans1 gt_ex pinf(8)) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3248 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3249 |
lemma inside_connected_component_lt: |
68096 | 3250 |
fixes S :: "'a::euclidean_space set" |
3251 |
assumes S: "bounded S" "2 \<le> DIM('a)" |
|
69508 | 3252 |
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
|
3253 |
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
|
3254 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3255 |
lemma inside_connected_component_le: |
68096 | 3256 |
fixes S :: "'a::euclidean_space set" |
3257 |
assumes S: "bounded S" "2 \<le> DIM('a)" |
|
69508 | 3258 |
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
|
3259 |
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
|
3260 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3261 |
lemma inside_subset: |
69508 | 3262 |
assumes "connected U" and "\<not> bounded U" and "T \<union> U = - S" |
68096 | 3263 |
shows "inside S \<subseteq> T" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3264 |
using bounded_subset [of "connected_component_set (- S) _" U] assms |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3265 |
by (metis (no_types, lifting) ComplI Un_iff connected_component_maximal inside_def mem_Collect_eq subsetI) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3266 |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3267 |
lemma frontier_not_empty: |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3268 |
fixes S :: "'a :: real_normed_vector set" |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3269 |
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
|
3270 |
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
|
3271 |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3272 |
lemma frontier_eq_empty: |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3273 |
fixes S :: "'a :: real_normed_vector set" |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3274 |
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
|
3275 |
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
|
3276 |
|
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3277 |
lemma frontier_of_connected_component_subset: |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3278 |
fixes S :: "'a::real_normed_vector set" |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3279 |
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
|
3280 |
proof - |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3281 |
{ fix y |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3282 |
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
|
3283 |
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
|
3284 |
have "y \<in> closure S" |
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3285 |
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
|
3286 |
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
|
3287 |
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
|
3288 |
proof - |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3289 |
have "ball y e \<subseteq> connected_component_set S y" |
72256 | 3290 |
using connected_component_maximal that interior_subset |
3291 |
by (metis centre_in_ball connected_ball subset_trans) |
|
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3292 |
then show ?thesis |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3293 |
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
|
3294 |
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
|
3295 |
qed |
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3296 |
then have "y \<notin> interior S" |
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3297 |
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
|
3298 |
ultimately have "y \<in> frontier S" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3299 |
by (auto simp: frontier_def) |
62381
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3300 |
} |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3301 |
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
|
3302 |
qed |
a6479cb85944
New and revised material for (multivariate) analysis
paulson <lp15@cam.ac.uk>
parents:
62087
diff
changeset
|
3303 |
|
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3304 |
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
|
3305 |
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
|
3306 |
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
|
3307 |
proof - |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3308 |
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
|
3309 |
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
|
3310 |
"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
|
3311 |
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
|
3312 |
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
|
3313 |
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
|
3314 |
next |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3315 |
case False |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3316 |
have \<section>: "closed_segment x y \<inter> T \<noteq> {}" "closed_segment x y - T \<noteq> {}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3317 |
using \<open>y \<in> T\<close> False by blast+ |
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3318 |
obtain c where "c \<in> closed_segment x y" "c \<in> frontier T" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3319 |
using False connected_Int_frontier [OF connected_segment \<section>] by auto |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3320 |
with that show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3321 |
by (smt (verit) dist_norm segment_bound1) |
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3322 |
qed |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3323 |
then show ?thesis |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3324 |
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
|
3325 |
qed |
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3326 |
|
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3327 |
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
|
3328 |
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
|
3329 |
shows "finite F \<Longrightarrow> frontier(\<Union>F) \<subseteq> (\<Union>t \<in> F. frontier t)" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3330 |
by (metis closed_UN closure_closed frontier_Union_subset_closure frontier_closed) |
62620
d21dab28b3f9
New results about paths, segments, etc. The notion of simply_connected.
paulson <lp15@cam.ac.uk>
parents:
62618
diff
changeset
|
3331 |
|
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3332 |
lemma frontier_of_components_subset: |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3333 |
fixes S :: "'a::real_normed_vector set" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3334 |
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
|
3335 |
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
|
3336 |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3337 |
lemma frontier_of_components_closed_complement: |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3338 |
fixes S :: "'a::real_normed_vector set" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3339 |
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
|
3340 |
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
|
3341 |
|
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3342 |
lemma frontier_minimal_separating_closed: |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3343 |
fixes S :: "'a::real_normed_vector set" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3344 |
assumes "closed S" |
69508 | 3345 |
and nconn: "\<not> connected(- S)" |
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3346 |
and C: "C \<in> components (- S)" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3347 |
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
|
3348 |
shows "frontier C = S" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3349 |
proof (rule ccontr) |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3350 |
assume "frontier C \<noteq> S" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3351 |
then have "frontier C \<subset> S" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3352 |
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
|
3353 |
then have "connected(- (frontier C))" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3354 |
by (simp add: conn) |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3355 |
have "\<not> connected(- (frontier C))" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3356 |
unfolding connected_def not_not |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3357 |
proof (intro exI conjI) |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3358 |
show "open C" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3359 |
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
|
3360 |
show "open (- closure C)" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3361 |
by blast |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3362 |
show "C \<inter> - closure C \<inter> - frontier C = {}" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3363 |
using closure_subset by blast |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3364 |
show "C \<inter> - frontier C \<noteq> {}" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3365 |
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
|
3366 |
show "- frontier C \<subseteq> C \<union> - closure C" |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3367 |
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
|
3368 |
then show "- closure C \<inter> - frontier C \<noteq> {}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3369 |
by (metis C Compl_Diff_eq Un_Int_eq(4) Un_commute \<open>frontier C \<subset> S\<close> \<open>open C\<close> compl_le_compl_iff frontier_def in_components_subset interior_eq leD sup_bot.right_neutral) |
64006
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3370 |
qed |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3371 |
then show False |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3372 |
using \<open>connected (- frontier C)\<close> by blast |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3373 |
qed |
0de4736dad8b
new theorems including the theory FurtherTopology
paulson <lp15@cam.ac.uk>
parents:
63978
diff
changeset
|
3374 |
|
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
|
3375 |
lemma connected_component_UNIV [simp]: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3376 |
fixes x :: "'a::real_normed_vector" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3377 |
shows "connected_component_set UNIV x = UNIV" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3378 |
using connected_iff_eq_connected_component_set [of "UNIV::'a set"] connected_UNIV |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3379 |
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
|
3380 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3381 |
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
|
3382 |
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
|
3383 |
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
|
3384 |
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
|
3385 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3386 |
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
|
3387 |
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
|
3388 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3389 |
lemma interior_inside_frontier: |
72256 | 3390 |
fixes S :: "'a::real_normed_vector set" |
3391 |
assumes "bounded S" |
|
3392 |
shows "interior S \<subseteq> inside (frontier 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
|
3393 |
proof - |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3394 |
{ fix x y |
72256 | 3395 |
assume x: "x \<in> interior S" and y: "y \<notin> S" |
3396 |
and cc: "connected_component (- frontier S) x y" |
|
3397 |
have "connected_component_set (- frontier S) x \<inter> frontier S \<noteq> {}" |
|
3398 |
proof (rule connected_Int_frontier; simp add: set_eq_iff) |
|
3399 |
show "\<exists>u. connected_component (- frontier S) x u \<and> u \<in> S" |
|
3400 |
by (meson cc connected_component_in connected_component_refl_eq interior_subset subsetD x) |
|
3401 |
show "\<exists>u. connected_component (- frontier S) x u \<and> u \<notin> S" |
|
3402 |
using y cc by blast |
|
3403 |
qed |
|
3404 |
then have "bounded (connected_component_set (- frontier 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
|
3405 |
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
|
3406 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3407 |
then show ?thesis |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3408 |
using bounded_subset [OF assms] |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3409 |
by (metis (no_types, lifting) Diff_iff frontier_def inside_def mem_Collect_eq subsetI) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3410 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3411 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3412 |
lemma inside_empty [simp]: "inside {} = ({} :: 'a :: {real_normed_vector, perfect_space} set)" |
71172 | 3413 |
by (simp add: inside_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
|
3414 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3415 |
lemma outside_empty [simp]: "outside {} = (UNIV :: 'a :: {real_normed_vector, perfect_space} set)" |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3416 |
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
|
3417 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3418 |
lemma inside_same_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3419 |
"\<lbrakk>connected_component (- S) x y; x \<in> inside S\<rbrakk> \<Longrightarrow> y \<in> 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
|
3420 |
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
|
3421 |
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
|
3422 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3423 |
lemma outside_same_component: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3424 |
"\<lbrakk>connected_component (- S) x y; x \<in> outside S\<rbrakk> \<Longrightarrow> y \<in> 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
|
3425 |
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
|
3426 |
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
|
3427 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3428 |
lemma convex_in_outside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3429 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3430 |
assumes S: "convex S" and z: "z \<notin> S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3431 |
shows "z \<in> outside S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3432 |
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
|
3433 |
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
|
3434 |
next |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3435 |
case False then obtain a where "a \<in> S" 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
|
3436 |
with z have zna: "z \<noteq> a" by auto |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3437 |
{ assume "bounded (connected_component_set (- S) z)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3438 |
with bounded_pos_less obtain B where "B>0" and B: "\<And>x. connected_component (- S) z x \<Longrightarrow> norm x < 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
|
3439 |
by (metis mem_Collect_eq) |
63040 | 3440 |
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
|
3441 |
have "C > 0" |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3442 |
using \<open>0 < B\<close> zna by (simp add: C_def field_split_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
|
3443 |
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
|
3444 |
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
|
3445 |
moreover have "norm (C *\<^sub>R (z-a)) > norm z + B" |
70802
160eaf566bcb
formally augmented corresponding rules for field_simps
haftmann
parents:
70196
diff
changeset
|
3446 |
using zna \<open>B>0\<close> by (simp add: C_def le_max_iff_disj) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3447 |
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
|
3448 |
{ fix u::real |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3449 |
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" |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3450 |
then have Cpos: "1 + u * C > 0" |
61808 | 3451 |
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
|
3452 |
then have *: "(1 / (1 + u * C)) *\<^sub>R z + (u * C / (1 + u * C)) *\<^sub>R z = z" |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3453 |
by (simp add: scaleR_add_left [symmetric] field_split_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
|
3454 |
then have False |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3455 |
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 |
71172 | 3456 |
by (simp add: * field_split_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
|
3457 |
} note contra = this |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3458 |
have "connected_component (- S) z (z + C *\<^sub>R (z-a))" |
72256 | 3459 |
proof (rule connected_componentI [OF connected_segment]) |
3460 |
show "closed_segment z (z + C *\<^sub>R (z - a)) \<subseteq> - S" |
|
3461 |
using contra by (force simp add: closed_segment_def) |
|
3462 |
qed 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
|
3463 |
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
|
3464 |
using zna B [of "z + C *\<^sub>R (z-a)"] C |
70817
dd675800469d
dedicated fact collections for algebraic simplification rules potentially splitting goals
haftmann
parents:
70802
diff
changeset
|
3465 |
by (auto simp: field_split_simps max_mult_distrib_right) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3466 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3467 |
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
|
3468 |
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
|
3469 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3470 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3471 |
lemma outside_convex: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3472 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3473 |
assumes "convex S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3474 |
shows "outside S = - S" |
63955 | 3475 |
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
|
3476 |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3477 |
lemma outside_singleton [simp]: |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3478 |
fixes x :: "'a :: {real_normed_vector, perfect_space}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3479 |
shows "outside {x} = -{x}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3480 |
by (auto simp: outside_convex) |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3481 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3482 |
lemma inside_convex: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3483 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3484 |
shows "convex S \<Longrightarrow> 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
|
3485 |
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
|
3486 |
|
66793
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3487 |
lemma inside_singleton [simp]: |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3488 |
fixes x :: "'a :: {real_normed_vector, perfect_space}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3489 |
shows "inside {x} = {}" |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3490 |
by (auto simp: inside_convex) |
deabce3ccf1f
new material about connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
66456
diff
changeset
|
3491 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3492 |
lemma outside_subset_convex: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3493 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3494 |
shows "\<lbrakk>convex T; S \<subseteq> T\<rbrakk> \<Longrightarrow> - 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
|
3495 |
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
|
3496 |
|
64788
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3497 |
lemma outside_Un_outside_Un: |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3498 |
fixes S :: "'a::real_normed_vector set" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3499 |
assumes "S \<inter> outside(T \<union> U) = {}" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3500 |
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
|
3501 |
proof |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3502 |
fix x |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3503 |
assume x: "x \<in> outside (T \<union> U)" |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3504 |
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
|
3505 |
proof - |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3506 |
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
|
3507 |
by (simp add: connected_component_maximal that) |
68096 | 3508 |
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
|
3509 |
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
|
3510 |
finally have "Y \<subseteq> outside(T \<union> U)" . |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3511 |
with assms show ?thesis by auto |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3512 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3513 |
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
|
3514 |
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
|
3515 |
qed |
19f3d4af7a7d
New material about path connectedness, etc.
paulson <lp15@cam.ac.uk>
parents:
64394
diff
changeset
|
3516 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3517 |
lemma outside_frontier_misses_closure: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3518 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3519 |
assumes "bounded S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3520 |
shows "outside(frontier S) \<subseteq> - closure S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3521 |
using assms frontier_def interior_inside_frontier outside_inside by fastforce |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3522 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3523 |
lemma outside_frontier_eq_complement_closure: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3524 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3525 |
assumes "bounded S" "convex S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3526 |
shows "outside(frontier S) = - closure 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
|
3527 |
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
|
3528 |
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
|
3529 |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3530 |
lemma inside_frontier_eq_interior: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3531 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3532 |
shows "\<lbrakk>bounded S; convex S\<rbrakk> \<Longrightarrow> inside(frontier S) = interior S" |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3533 |
unfolding inside_outside outside_frontier_eq_complement_closure |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3534 |
using closure_subset interior_subset by (auto simp: frontier_def) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3535 |
|
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3536 |
lemma open_inside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3537 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3538 |
assumes "closed S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3539 |
shows "open (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
|
3540 |
proof - |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3541 |
{ fix x assume x: "x \<in> inside S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3542 |
have "open (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
|
3543 |
using assms open_connected_component by blast |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3544 |
then obtain e where e: "e>0" and e: "\<And>y. dist y x < e \<longrightarrow> 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
|
3545 |
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
|
3546 |
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
|
3547 |
by (metis (no_types, lifting) Compl_iff connected_component_refl_eq inside_def mem_Collect_eq x) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3548 |
then have "\<exists>e>0. ball x e \<subseteq> 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
|
3549 |
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
|
3550 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3551 |
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
|
3552 |
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
|
3553 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3554 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3555 |
lemma open_outside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3556 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3557 |
assumes "closed S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3558 |
shows "open (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
|
3559 |
proof - |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3560 |
{ fix x assume x: "x \<in> outside S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3561 |
have "open (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
|
3562 |
using assms open_connected_component by blast |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3563 |
then obtain e where e: "e>0" and e: "\<And>y. dist y x < e \<longrightarrow> connected_component (- S) x y" |
72256 | 3564 |
using dist_not_less_zero x |
3565 |
by (auto simp add: open_dist outside_def intro: connected_component_refl) |
|
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3566 |
then have "\<exists>e>0. ball x e \<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
|
3567 |
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
|
3568 |
} |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3569 |
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
|
3570 |
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
|
3571 |
qed |
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3572 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3573 |
lemma closure_inside_subset: |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3574 |
fixes S :: "'a::real_normed_vector set" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3575 |
assumes "closed S" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3576 |
shows "closure(inside S) \<subseteq> S \<union> inside S" |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3577 |
by (metis assms closure_minimal open_closed open_outside sup.cobounded2 union_with_inside) |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3578 |
|
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3579 |
lemma frontier_inside_subset: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3580 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3581 |
assumes "closed S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3582 |
shows "frontier(inside S) \<subseteq> S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3583 |
using assms closure_inside_subset frontier_closures frontier_disjoint_eq open_inside by fastforce |
61426
d53db136e8fd
new material on path_component_sets, inside, outside, etc. And more default simprules
paulson <lp15@cam.ac.uk>
parents:
61204
diff
changeset
|
3584 |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3585 |
lemma closure_outside_subset: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3586 |
fixes S :: "'a::real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3587 |
assumes "closed S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3588 |
shows "closure(outside S) \<subseteq> S \<union> outside S" |
72256 | 3589 |
by (metis assms closed_open closure_minimal inside_outside open_inside sup_ge2) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3590 |
|
77221
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3591 |
lemma closed_path_image_Un_inside: |
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3592 |
fixes g :: "real \<Rightarrow> 'a :: real_normed_vector" |
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3593 |
assumes "path g" |
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3594 |
shows "closed (path_image g \<union> inside (path_image g))" |
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3595 |
by (simp add: assms closed_Compl closed_path_image open_outside union_with_inside) |
0cdb384bf56a
More new theorems from the number theory development
paulson <lp15@cam.ac.uk>
parents:
76874
diff
changeset
|
3596 |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3597 |
lemma frontier_outside_subset: |
72256 | 3598 |
fixes S :: "'a::real_normed_vector set" |
3599 |
assumes "closed S" |
|
3600 |
shows "frontier(outside S) \<subseteq> S" |
|
3601 |
unfolding frontier_def |
|
3602 |
by (metis Diff_subset_conv assms closure_outside_subset interior_eq open_outside sup_aci(1)) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3603 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3604 |
lemma inside_complement_unbounded_connected_empty: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3605 |
"\<lbrakk>connected (- S); \<not> bounded (- S)\<rbrakk> \<Longrightarrow> inside S = {}" |
72256 | 3606 |
using inside_subset by blast |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3607 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3608 |
lemma inside_bounded_complement_connected_empty: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3609 |
fixes S :: "'a::{real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3610 |
shows "\<lbrakk>connected (- S); bounded S\<rbrakk> \<Longrightarrow> inside S = {}" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3611 |
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
|
3612 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3613 |
lemma inside_inside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3614 |
assumes "S \<subseteq> inside T" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3615 |
shows "inside S - T \<subseteq> inside T" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3616 |
unfolding inside_def |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3617 |
proof clarify |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3618 |
fix x |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3619 |
assume x: "x \<notin> T" "x \<notin> S" and bo: "bounded (connected_component_set (- S) x)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3620 |
show "bounded (connected_component_set (- T) x)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3621 |
proof (cases "S \<inter> connected_component_set (- T) x = {}") |
72256 | 3622 |
case True then show ?thesis |
3623 |
by (metis bounded_subset [OF bo] compl_le_compl_iff connected_component_idemp connected_component_mono disjoint_eq_subset_Compl double_compl) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3624 |
next |
72256 | 3625 |
case False |
3626 |
then obtain y where y: "y \<in> S" "y \<in> connected_component_set (- T) x" |
|
3627 |
by (meson disjoint_iff) |
|
3628 |
then have "bounded (connected_component_set (- T) y)" |
|
3629 |
using assms [unfolded inside_def] by blast |
|
3630 |
with y show ?thesis |
|
3631 |
by (metis connected_component_eq) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3632 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3633 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3634 |
|
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3635 |
lemma inside_inside_subset: "inside(inside S) \<subseteq> S" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3636 |
using inside_inside union_with_outside by fastforce |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3637 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3638 |
lemma inside_outside_intersect_connected: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3639 |
"\<lbrakk>connected T; inside S \<inter> T \<noteq> {}; outside S \<inter> T \<noteq> {}\<rbrakk> \<Longrightarrow> S \<inter> T \<noteq> {}" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3640 |
apply (simp add: inside_def outside_def ex_in_conv [symmetric] disjoint_eq_subset_Compl, clarify) |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
3641 |
by (metis compl_le_swap1 connected_componentI connected_component_eq mem_Collect_eq) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3642 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3643 |
lemma outside_bounded_nonempty: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3644 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3645 |
assumes "bounded S" shows "outside S \<noteq> {}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3646 |
using assms unbounded_outside by force |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3647 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3648 |
lemma outside_compact_in_open: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3649 |
fixes S :: "'a :: {real_normed_vector,perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3650 |
assumes S: "compact S" and T: "open T" and "S \<subseteq> T" "T \<noteq> {}" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3651 |
shows "outside S \<inter> T \<noteq> {}" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3652 |
proof - |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3653 |
have "outside S \<noteq> {}" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3654 |
by (simp add: compact_imp_bounded outside_bounded_nonempty S) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3655 |
with assms obtain a b where a: "a \<in> outside S" and b: "b \<in> T" by auto |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3656 |
show ?thesis |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3657 |
proof (cases "a \<in> T") |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3658 |
case True with a show ?thesis by blast |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3659 |
next |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3660 |
case False |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3661 |
have front: "frontier T \<subseteq> - S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3662 |
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
|
3663 |
{ fix \<gamma> |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3664 |
assume "path \<gamma>" and pimg_sbs: "path_image \<gamma> - {pathfinish \<gamma>} \<subseteq> interior (- T)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3665 |
and pf: "pathfinish \<gamma> \<in> frontier T" and ps: "pathstart \<gamma> = a" |
63040 | 3666 |
define c where "c = pathfinish \<gamma>" |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3667 |
have "c \<in> -S" unfolding c_def using front pf by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3668 |
moreover have "open (-S)" using S compact_imp_closed by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3669 |
ultimately obtain \<epsilon>::real where "\<epsilon> > 0" and \<epsilon>: "cball c \<epsilon> \<subseteq> -S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3670 |
using open_contains_cball[of "-S"] S by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3671 |
then obtain d where "d \<in> T" and d: "dist d c < \<epsilon>" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3672 |
using closure_approachable [of c T] pf unfolding c_def |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3673 |
by (metis Diff_iff frontier_def) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3674 |
then have "d \<in> -S" using \<epsilon> |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3675 |
using dist_commute by (metis contra_subsetD mem_cball not_le not_less_iff_gr_or_eq) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3676 |
have pimg_sbs_cos: "path_image \<gamma> \<subseteq> -S" |
72256 | 3677 |
using \<open>c \<in> - S\<close> \<open>S \<subseteq> T\<close> c_def interior_subset pimg_sbs by fastforce |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3678 |
have "closed_segment c d \<le> cball c \<epsilon>" |
72256 | 3679 |
by (metis \<open>0 < \<epsilon>\<close> centre_in_cball closed_segment_subset convex_cball d dist_commute less_eq_real_def mem_cball) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3680 |
with \<epsilon> have "closed_segment c d \<subseteq> -S" by blast |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3681 |
moreover have con_gcd: "connected (path_image \<gamma> \<union> closed_segment c d)" |
61808 | 3682 |
by (rule connected_Un) (auto simp: c_def \<open>path \<gamma>\<close> connected_path_image) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3683 |
ultimately have "connected_component (- S) a d" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3684 |
unfolding connected_component_def using pimg_sbs_cos ps by blast |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3685 |
then have "outside S \<inter> T \<noteq> {}" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3686 |
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
|
3687 |
} note * = this |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3688 |
have pal: "pathstart (linepath a b) \<in> closure (- T)" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3689 |
by (auto simp: False closure_def) |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3690 |
show ?thesis |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3691 |
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
|
3692 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3693 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3694 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3695 |
lemma inside_inside_compact_connected: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3696 |
fixes S :: "'a :: euclidean_space set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3697 |
assumes S: "closed S" and T: "compact T" and "connected T" "S \<subseteq> inside T" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3698 |
shows "inside S \<subseteq> inside T" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3699 |
proof (cases "inside T = {}") |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3700 |
case True with assms show ?thesis by auto |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3701 |
next |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3702 |
case False |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3703 |
consider "DIM('a) = 1" | "DIM('a) \<ge> 2" |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3704 |
using antisym not_less_eq_eq by fastforce |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3705 |
then show ?thesis |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3706 |
proof cases |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3707 |
case 1 then show ?thesis |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3708 |
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
|
3709 |
next |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3710 |
case 2 |
72256 | 3711 |
have "bounded S" |
3712 |
using assms by (meson bounded_inside bounded_subset compact_imp_bounded) |
|
3713 |
then have coms: "compact S" |
|
3714 |
by (simp add: S compact_eq_bounded_closed) |
|
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3715 |
then have bst: "bounded (S \<union> T)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3716 |
by (simp add: compact_imp_bounded T) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3717 |
then obtain r where "0 < r" and r: "S \<union> T \<subseteq> ball 0 r" |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3718 |
using bounded_subset_ballD by blast |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3719 |
have outst: "outside S \<inter> outside T \<noteq> {}" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3720 |
by (metis bounded_Un bounded_subset bst cobounded_outside disjoint_eq_subset_Compl unbounded_outside) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3721 |
have "S \<inter> T = {}" using assms |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3722 |
by (metis disjoint_iff_not_equal inside_no_overlap subsetCE) |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3723 |
moreover have "outside S \<inter> inside T \<noteq> {}" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3724 |
by (meson False assms(4) compact_eq_bounded_closed coms open_inside outside_compact_in_open T) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3725 |
ultimately have "inside S \<inter> T = {}" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3726 |
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
|
3727 |
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
|
3728 |
then show ?thesis |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3729 |
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
|
3730 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3731 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3732 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3733 |
lemma connected_with_inside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3734 |
fixes S :: "'a :: real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3735 |
assumes S: "closed S" and cons: "connected S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3736 |
shows "connected(S \<union> inside S)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3737 |
proof (cases "S \<union> inside S = UNIV") |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3738 |
case True with assms show ?thesis by auto |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3739 |
next |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3740 |
case False |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3741 |
then obtain b where b: "b \<notin> S" "b \<notin> inside S" by blast |
72256 | 3742 |
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)" |
3743 |
if "a \<in> S \<union> inside S" for a |
|
3744 |
using that |
|
3745 |
proof |
|
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3746 |
assume "a \<in> S" then show ?thesis |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3747 |
using cons by blast |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3748 |
next |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3749 |
assume a: "a \<in> inside S" |
72256 | 3750 |
then have ain: "a \<in> closure (inside S)" |
3751 |
by (simp add: closure_def) |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3752 |
obtain h where h: "path h" "pathstart h = a" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3753 |
"path_image h - {pathfinish h} \<subseteq> interior (inside S)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3754 |
"pathfinish h \<in> frontier (inside S)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3755 |
using ain b |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3756 |
by (metis exists_path_subpath_to_frontier path_linepath pathfinish_linepath pathstart_linepath) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3757 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3758 |
have h1S: "pathfinish h \<in> S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3759 |
using S h frontier_inside_subset by blast |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3760 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3761 |
have "path_image h \<subseteq> S \<union> inside S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3762 |
using IntD1 S h1S h interior_eq open_inside by fastforce |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3763 |
ultimately show ?thesis by blast |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3764 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3765 |
show ?thesis |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3766 |
apply (simp add: connected_iff_connected_component) |
72256 | 3767 |
apply (clarsimp simp add: connected_component_def dest!: *) |
3768 |
subgoal for x y u u' T t' |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3769 |
by (rule_tac x = "S \<union> T \<union> t'" in exI) (auto intro!: connected_Un cons) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3770 |
done |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3771 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3772 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3773 |
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
|
3774 |
lemma connected_with_outside: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3775 |
fixes S :: "'a :: real_normed_vector set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3776 |
assumes S: "closed S" and cons: "connected S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3777 |
shows "connected(S \<union> outside S)" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3778 |
proof (cases "S \<union> outside S = UNIV") |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3779 |
case True with assms show ?thesis by auto |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3780 |
next |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3781 |
case False |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3782 |
then obtain b where b: "b \<notin> S" "b \<notin> outside S" by blast |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3783 |
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 |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3784 |
using that proof |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3785 |
assume "a \<in> S" then show ?thesis |
72256 | 3786 |
by (rule_tac x=a in exI, rule_tac x="{a}" in exI, simp) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3787 |
next |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3788 |
assume a: "a \<in> outside S" |
72256 | 3789 |
then have ain: "a \<in> closure (outside S)" |
3790 |
by (simp add: closure_def) |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3791 |
obtain h where h: "path h" "pathstart h = a" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3792 |
"path_image h - {pathfinish h} \<subseteq> interior (outside S)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3793 |
"pathfinish h \<in> frontier (outside S)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3794 |
using ain b |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3795 |
by (metis exists_path_subpath_to_frontier path_linepath pathfinish_linepath pathstart_linepath) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3796 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3797 |
have h1S: "pathfinish h \<in> S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3798 |
using S frontier_outside_subset h(4) by blast |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3799 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3800 |
have "path_image h \<subseteq> S \<union> outside S" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3801 |
using IntD1 S h1S h interior_eq open_outside by fastforce |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3802 |
ultimately show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3803 |
by blast |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3804 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3805 |
show ?thesis |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3806 |
apply (simp add: connected_iff_connected_component) |
72256 | 3807 |
apply (clarsimp simp add: connected_component_def dest!: *) |
3808 |
subgoal for x y u u' T t' |
|
3809 |
by (rule_tac x="(S \<union> T \<union> t')" in exI) (auto intro!: connected_Un cons) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3810 |
done |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3811 |
qed |
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3812 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3813 |
lemma inside_inside_eq_empty [simp]: |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3814 |
fixes S :: "'a :: {real_normed_vector, perfect_space} set" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3815 |
assumes S: "closed S" and cons: "connected S" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3816 |
shows "inside (inside S) = {}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3817 |
proof - |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3818 |
have "connected (- inside S)" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3819 |
by (metis S connected_with_outside cons union_with_outside) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3820 |
then show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3821 |
by (metis bounded_Un inside_complement_unbounded_connected_empty unbounded_outside union_with_outside) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3822 |
qed |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3823 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3824 |
lemma inside_in_components: |
72256 | 3825 |
"inside S \<in> components (- S) \<longleftrightarrow> connected(inside S) \<and> inside S \<noteq> {}" (is "?lhs = ?rhs") |
3826 |
proof |
|
3827 |
assume R: ?rhs |
|
3828 |
then have "\<And>x. \<lbrakk>x \<in> S; x \<in> inside S\<rbrakk> \<Longrightarrow> \<not> connected (inside S)" |
|
3829 |
by (simp add: inside_outside) |
|
3830 |
with R show ?lhs |
|
3831 |
unfolding in_components_maximal |
|
3832 |
by (auto intro: inside_same_component connected_componentI) |
|
3833 |
qed (simp add: in_components_maximal) |
|
3834 |
||
3835 |
text\<open>The proof is like that above.\<close> |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3836 |
lemma outside_in_components: |
72256 | 3837 |
"outside S \<in> components (- S) \<longleftrightarrow> connected(outside S) \<and> outside S \<noteq> {}" (is "?lhs = ?rhs") |
3838 |
proof |
|
3839 |
assume R: ?rhs |
|
3840 |
then have "\<And>x. \<lbrakk>x \<in> S; x \<in> outside S\<rbrakk> \<Longrightarrow> \<not> connected (outside S)" |
|
3841 |
by (meson disjoint_iff outside_no_overlap) |
|
3842 |
with R show ?lhs |
|
3843 |
unfolding in_components_maximal |
|
3844 |
by (auto intro: outside_same_component connected_componentI) |
|
3845 |
qed (simp add: in_components_maximal) |
|
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3846 |
|
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3847 |
lemma bounded_unique_outside: |
72256 | 3848 |
fixes S :: "'a :: euclidean_space set" |
3849 |
assumes "bounded S" "DIM('a) \<ge> 2" |
|
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3850 |
shows "(c \<in> components (- S) \<and> \<not> bounded c) \<longleftrightarrow> c = outside S" |
72256 | 3851 |
using assms |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3852 |
by (metis cobounded_unique_unbounded_components connected_outside double_compl outside_bounded_nonempty |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3853 |
outside_in_components unbounded_outside) |
61518
ff12606337e9
new lemmas about topology, etc., for Cauchy integral formula
paulson
parents:
61426
diff
changeset
|
3854 |
|
69514 | 3855 |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3856 |
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
|
3857 |
|
68607
67bb59e49834
make theorem, corollary, and proposition %important for HOL-Analysis manual
immler
parents:
68532
diff
changeset
|
3858 |
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
|
3859 |
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
|
3860 |
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
|
3861 |
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
|
3862 |
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
|
3863 |
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
|
3864 |
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
|
3865 |
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
|
3866 |
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
|
3867 |
next |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3868 |
case False |
72256 | 3869 |
then have "closed (frontier (f ` S))" "frontier (f ` S) \<noteq> {}" |
3870 |
using \<open>a \<in> S\<close> by (auto simp: frontier_eq_empty) |
|
3871 |
then obtain w where w: "w \<in> frontier (f ` S)" |
|
3872 |
and dw_le: "\<And>y. y \<in> frontier (f ` S) \<Longrightarrow> norm (f a - w) \<le> norm (f a - y)" |
|
3873 |
by (auto simp add: dist_norm intro: distance_attains_inf [of "frontier(f ` S)" "f a"]) |
|
3874 |
then obtain \<xi> where \<xi>: "\<And>n. \<xi> n \<in> f ` S" and tendsw: "\<xi> \<longlonglongrightarrow> w" |
|
3875 |
by (metis Diff_iff frontier_def closure_sequential) |
|
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3876 |
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
|
3877 |
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
|
3878 |
by metis |
66447
a1f5c5c26fa6
Replaced subseq with strict_mono
eberlm <eberlm@in.tum.de>
parents:
65038
diff
changeset
|
3879 |
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
|
3880 |
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
|
3881 |
using \<open>bounded S\<close> |
72256 | 3882 |
unfolding compact_closure [symmetric] compact_def by (meson closure_subset subset_iff) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3883 |
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
|
3884 |
by (metis LIMSEQ_subseq_LIMSEQ fun.map_cong0 fz tendsw) |
68096 | 3885 |
have zKs: "\<And>n. (z \<circ> K) n \<in> S" by (simp add: zs) |
63540 | 3886 |
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
|
3887 |
using fz by auto |
63540 | 3888 |
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
|
3889 |
by (metis (no_types) Klim zKs y contf comp_assoc continuous_on_closure_sequentially) |
63540 | 3890 |
with fz have wy: "w = f y" using fz LIMSEQ_unique ftendsw by auto |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3891 |
have "r \<le> norm (f y - f a)" |
72228
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3892 |
proof (rule le_no) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3893 |
show "y \<in> frontier S" |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3894 |
using w wy oint by (force simp: imageI image_mono interiorI interior_subset frontier_def y) |
aa7cb84983e9
minor tidying, also s->S and t->T
paulson <lp15@cam.ac.uk>
parents:
71633
diff
changeset
|
3895 |
qed |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3896 |
then have "\<And>y. \<lbrakk>norm (f a - y) < r; y \<in> frontier (f ` S)\<rbrakk> \<Longrightarrow> False" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3897 |
by (metis dw_le norm_minus_commute not_less order_trans wy) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3898 |
then have "ball (f a) r \<inter> frontier (f ` S) = {}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3899 |
by (metis disjoint_iff_not_equal dist_norm mem_ball) |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3900 |
moreover |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3901 |
have "ball (f a) r \<inter> f ` S \<noteq> {}" |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3902 |
using \<open>a \<in> S\<close> \<open>0 < r\<close> centre_in_ball by blast |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3903 |
ultimately show ?thesis |
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3904 |
by (meson connected_Int_frontier connected_ball diff_shunt_var) |
62533
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3905 |
qed |
bc25f3916a99
new material to Blochj's theorem, as well as supporting lemmas
paulson <lp15@cam.ac.uk>
parents:
62398
diff
changeset
|
3906 |
|
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3907 |
|
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3908 |
subsubsection\<open>Special characterizations of classes of functions into and out of R.\<close> |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3909 |
|
71200
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3910 |
lemma Hausdorff_space_euclidean [simp]: "Hausdorff_space (euclidean :: 'a::metric_space topology)" |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3911 |
proof - |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3912 |
have "\<exists>U V. open U \<and> open V \<and> x \<in> U \<and> y \<in> V \<and> disjnt U V" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
3913 |
if "x \<noteq> y" for x y :: 'a |
71200
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3914 |
proof (intro exI conjI) |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3915 |
let ?r = "dist x y / 2" |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3916 |
have [simp]: "?r > 0" |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3917 |
by (simp add: that) |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3918 |
show "open (ball x ?r)" "open (ball y ?r)" "x \<in> (ball x ?r)" "y \<in> (ball y ?r)" |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3919 |
by (auto simp add: that) |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3920 |
show "disjnt (ball x ?r) (ball y ?r)" |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3921 |
unfolding disjnt_def by (simp add: disjoint_ballI) |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3922 |
qed |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3923 |
then show ?thesis |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3924 |
by (simp add: Hausdorff_space_def) |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3925 |
qed |
3548d54ce3ee
split off metric spaces part of Function_Topology: subsequent theories Product_Topology, T1_Spaces, Lindelof_Spaces are purely topological
immler
parents:
71191
diff
changeset
|
3926 |
|
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3927 |
proposition embedding_map_into_euclideanreal: |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3928 |
assumes "path_connected_space X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3929 |
shows "embedding_map X euclideanreal f \<longleftrightarrow> |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3930 |
continuous_map X euclideanreal f \<and> inj_on f (topspace X)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3931 |
proof safe |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3932 |
show "continuous_map X euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3933 |
if "embedding_map X euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3934 |
using continuous_map_in_subtopology homeomorphic_imp_continuous_map that |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3935 |
unfolding embedding_map_def by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3936 |
show "inj_on f (topspace X)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3937 |
if "embedding_map X euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3938 |
using that homeomorphic_imp_injective_map |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3939 |
unfolding embedding_map_def by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3940 |
show "embedding_map X euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3941 |
if cont: "continuous_map X euclideanreal f" and inj: "inj_on f (topspace X)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3942 |
proof - |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3943 |
obtain g where gf: "\<And>x. x \<in> topspace X \<Longrightarrow> g (f x) = x" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3944 |
using inv_into_f_f [OF inj] by auto |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3945 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3946 |
unfolding embedding_map_def homeomorphic_map_maps homeomorphic_maps_def |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3947 |
proof (intro exI conjI) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3948 |
show "continuous_map X (top_of_set (f ` topspace X)) f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3949 |
by (simp add: cont continuous_map_in_subtopology) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3950 |
let ?S = "f ` topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3951 |
have eq: "{x \<in> ?S. g x \<in> U} = f ` U" if "openin X U" for U |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3952 |
using openin_subset [OF that] by (auto simp: gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3953 |
have 1: "g ` ?S \<subseteq> topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3954 |
using eq by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3955 |
have "openin (top_of_set ?S) {x \<in> ?S. g x \<in> T}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3956 |
if "openin X T" for T |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3957 |
proof - |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3958 |
have "T \<subseteq> topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3959 |
by (simp add: openin_subset that) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3960 |
have RR: "\<forall>x \<in> ?S \<inter> g -` T. \<exists>d>0. \<forall>x' \<in> ?S \<inter> ball x d. g x' \<in> T" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3961 |
proof (clarsimp simp add: gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3962 |
have pcS: "path_connectedin euclidean ?S" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3963 |
using assms cont path_connectedin_continuous_map_image path_connectedin_topspace by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3964 |
show "\<exists>d>0. \<forall>x'\<in>f ` topspace X \<inter> ball (f x) d. g x' \<in> T" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3965 |
if "x \<in> T" for x |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3966 |
proof - |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3967 |
have x: "x \<in> topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3968 |
using \<open>T \<subseteq> topspace X\<close> \<open>x \<in> T\<close> by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3969 |
obtain u v d where "0 < d" "u \<in> topspace X" "v \<in> topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3970 |
and sub_fuv: "?S \<inter> {f x - d .. f x + d} \<subseteq> {f u..f v}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3971 |
proof (cases "\<exists>u \<in> topspace X. f u < f x") |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3972 |
case True |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3973 |
then obtain u where u: "u \<in> topspace X" "f u < f x" .. |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3974 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3975 |
proof (cases "\<exists>v \<in> topspace X. f x < f v") |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3976 |
case True |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3977 |
then obtain v where v: "v \<in> topspace X" "f x < f v" .. |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3978 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3979 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3980 |
let ?d = "min (f x - f u) (f v - f x)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3981 |
show "0 < ?d" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3982 |
by (simp add: \<open>f u < f x\<close> \<open>f x < f v\<close>) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3983 |
show "f ` topspace X \<inter> {f x - ?d..f x + ?d} \<subseteq> {f u..f v}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3984 |
by fastforce |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3985 |
qed (auto simp: u v) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3986 |
next |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3987 |
case False |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3988 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3989 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3990 |
let ?d = "f x - f u" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3991 |
show "0 < ?d" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3992 |
by (simp add: u) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3993 |
show "f ` topspace X \<inter> {f x - ?d..f x + ?d} \<subseteq> {f u..f x}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3994 |
using x u False by auto |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3995 |
qed (auto simp: x u) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3996 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3997 |
next |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3998 |
case False |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
3999 |
note no_u = False |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4000 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4001 |
proof (cases "\<exists>v \<in> topspace X. f x < f v") |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4002 |
case True |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4003 |
then obtain v where v: "v \<in> topspace X" "f x < f v" .. |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4004 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4005 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4006 |
let ?d = "f v - f x" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4007 |
show "0 < ?d" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4008 |
by (simp add: v) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4009 |
show "f ` topspace X \<inter> {f x - ?d..f x + ?d} \<subseteq> {f x..f v}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4010 |
using False by auto |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4011 |
qed (auto simp: x v) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4012 |
next |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4013 |
case False |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4014 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4015 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4016 |
show "f ` topspace X \<inter> {f x - 1..f x + 1} \<subseteq> {f x..f x}" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4017 |
using False no_u by fastforce |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4018 |
qed (auto simp: x) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4019 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4020 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4021 |
then obtain h where "pathin X h" "h 0 = u" "h 1 = v" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4022 |
using assms unfolding path_connected_space_def by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4023 |
obtain C where "compactin X C" "connectedin X C" "u \<in> C" "v \<in> C" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4024 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4025 |
show "compactin X (h ` {0..1})" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4026 |
using that by (simp add: \<open>pathin X h\<close> compactin_path_image) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4027 |
show "connectedin X (h ` {0..1})" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4028 |
using \<open>pathin X h\<close> connectedin_path_image by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4029 |
qed (use \<open>h 0 = u\<close> \<open>h 1 = v\<close> in auto) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4030 |
have "continuous_map (subtopology euclideanreal (?S \<inter> {f x - d .. f x + d})) (subtopology X C) g" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4031 |
proof (rule continuous_inverse_map) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4032 |
show "compact_space (subtopology X C)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4033 |
using \<open>compactin X C\<close> compactin_subspace by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4034 |
show "continuous_map (subtopology X C) euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4035 |
by (simp add: cont continuous_map_from_subtopology) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4036 |
have "{f u .. f v} \<subseteq> f ` topspace (subtopology X C)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4037 |
proof (rule connected_contains_Icc) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4038 |
show "connected (f ` topspace (subtopology X C))" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4039 |
using connectedin_continuous_map_image [OF cont] |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4040 |
by (simp add: \<open>compactin X C\<close> \<open>connectedin X C\<close> compactin_subset_topspace inf_absorb2) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4041 |
show "f u \<in> f ` topspace (subtopology X C)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4042 |
by (simp add: \<open>u \<in> C\<close> \<open>u \<in> topspace X\<close>) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4043 |
show "f v \<in> f ` topspace (subtopology X C)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4044 |
by (simp add: \<open>v \<in> C\<close> \<open>v \<in> topspace X\<close>) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4045 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4046 |
then show "f ` topspace X \<inter> {f x - d..f x + d} \<subseteq> f ` topspace (subtopology X C)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4047 |
using sub_fuv by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4048 |
qed (auto simp: gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4049 |
then have contg: "continuous_map (subtopology euclideanreal (?S \<inter> {f x - d .. f x + d})) X g" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4050 |
using continuous_map_in_subtopology by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4051 |
have "\<exists>e>0. \<forall>x \<in> ?S \<inter> {f x - d .. f x + d} \<inter> ball (f x) e. g x \<in> T" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4052 |
using openin_continuous_map_preimage [OF contg \<open>openin X T\<close>] x \<open>x \<in> T\<close> \<open>0 < d\<close> |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4053 |
unfolding openin_euclidean_subtopology_iff |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4054 |
by (force simp: gf dist_commute) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4055 |
then obtain e where "e > 0 \<and> (\<forall>x\<in>f ` topspace X \<inter> {f x - d..f x + d} \<inter> ball (f x) e. g x \<in> T)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4056 |
by metis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4057 |
with \<open>0 < d\<close> have "min d e > 0" "\<forall>u. u \<in> topspace X \<longrightarrow> \<bar>f x - f u\<bar> < min d e \<longrightarrow> u \<in> T" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4058 |
using dist_real_def gf by force+ |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4059 |
then show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4060 |
by (metis (full_types) Int_iff dist_real_def image_iff mem_ball gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4061 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4062 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4063 |
then obtain d where d: "\<And>r. r \<in> ?S \<inter> g -` T \<Longrightarrow> |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4064 |
d r > 0 \<and> (\<forall>x \<in> ?S \<inter> ball r (d r). g x \<in> T)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4065 |
by metis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4066 |
show ?thesis |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4067 |
unfolding openin_subtopology |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4068 |
proof (intro exI conjI) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4069 |
show "{x \<in> ?S. g x \<in> T} = (\<Union>r \<in> ?S \<inter> g -` T. ball r (d r)) \<inter> f ` topspace X" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4070 |
using d by (auto simp: gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4071 |
qed auto |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4072 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4073 |
then show "continuous_map (top_of_set ?S) X g" |
78320
eb9a9690b8f5
cosmetic improvements, new lemmas, especially more uses of function space
paulson <lp15@cam.ac.uk>
parents:
78248
diff
changeset
|
4074 |
by (simp add: "1" continuous_map) |
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4075 |
qed (auto simp: gf) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4076 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4077 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4078 |
|
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4079 |
subsubsection \<open>An injective function into R is a homeomorphism and so an open map.\<close> |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4080 |
|
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4081 |
lemma injective_into_1d_eq_homeomorphism: |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4082 |
fixes f :: "'a::topological_space \<Rightarrow> real" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4083 |
assumes f: "continuous_on S f" and S: "path_connected S" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4084 |
shows "inj_on f S \<longleftrightarrow> (\<exists>g. homeomorphism S (f ` S) f g)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4085 |
proof |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4086 |
show "\<exists>g. homeomorphism S (f ` S) f g" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4087 |
if "inj_on f S" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4088 |
proof - |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4089 |
have "embedding_map (top_of_set S) euclideanreal f" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4090 |
using that embedding_map_into_euclideanreal [of "top_of_set S" f] assms by auto |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4091 |
then show ?thesis |
78517
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
4092 |
unfolding embedding_map_def topspace_euclidean_subtopology |
28c1f4f5335f
Numerous minor tweaks and simplifications
paulson <lp15@cam.ac.uk>
parents:
78336
diff
changeset
|
4093 |
by (metis f homeomorphic_map_closedness_eq homeomorphism_injective_closed_map that) |
70196
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4094 |
qed |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4095 |
qed (metis homeomorphism_def inj_onI) |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4096 |
|
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4097 |
lemma injective_into_1d_imp_open_map: |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4098 |
fixes f :: "'a::topological_space \<Rightarrow> real" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4099 |
assumes "continuous_on S f" "path_connected S" "inj_on f S" "openin (subtopology euclidean S) T" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4100 |
shows "openin (subtopology euclidean (f ` S)) (f ` T)" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4101 |
using assms homeomorphism_imp_open_map injective_into_1d_eq_homeomorphism by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4102 |
|
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4103 |
lemma homeomorphism_into_1d: |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4104 |
fixes f :: "'a::topological_space \<Rightarrow> real" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4105 |
assumes "path_connected S" "continuous_on S f" "f ` S = T" "inj_on f S" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4106 |
shows "\<exists>g. homeomorphism S T f g" |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4107 |
using assms injective_into_1d_eq_homeomorphism by blast |
b7ef9090feed
Added embedding_map_into_euclideanreal; reduced dependence on Equivalence_Lebesgue_Henstock_Integration in Analysis theories by moving a few lemmas
paulson <lp15@cam.ac.uk>
parents:
70178
diff
changeset
|
4108 |
|
71189
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4109 |
subsection\<^marker>\<open>tag unimportant\<close> \<open>Rectangular paths\<close> |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4110 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4111 |
definition\<^marker>\<open>tag unimportant\<close> rectpath where |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4112 |
"rectpath a1 a3 = (let a2 = Complex (Re a3) (Im a1); a4 = Complex (Re a1) (Im a3) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4113 |
in linepath a1 a2 +++ linepath a2 a3 +++ linepath a3 a4 +++ linepath a4 a1)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4114 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4115 |
lemma path_rectpath [simp, intro]: "path (rectpath a b)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4116 |
by (simp add: Let_def rectpath_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4117 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4118 |
lemma pathstart_rectpath [simp]: "pathstart (rectpath a1 a3) = a1" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4119 |
by (simp add: rectpath_def Let_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4120 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4121 |
lemma pathfinish_rectpath [simp]: "pathfinish (rectpath a1 a3) = a1" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4122 |
by (simp add: rectpath_def Let_def) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4123 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4124 |
lemma simple_path_rectpath [simp, intro]: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4125 |
assumes "Re a1 \<noteq> Re a3" "Im a1 \<noteq> Im a3" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4126 |
shows "simple_path (rectpath a1 a3)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4127 |
unfolding rectpath_def Let_def using assms |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4128 |
by (intro simple_path_join_loop arc_join arc_linepath) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4129 |
(auto simp: complex_eq_iff path_image_join closed_segment_same_Re closed_segment_same_Im) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4130 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4131 |
lemma path_image_rectpath: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4132 |
assumes "Re a1 \<le> Re a3" "Im a1 \<le> Im a3" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4133 |
shows "path_image (rectpath a1 a3) = |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4134 |
{z. Re z \<in> {Re a1, Re a3} \<and> Im z \<in> {Im a1..Im a3}} \<union> |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4135 |
{z. Im z \<in> {Im a1, Im a3} \<and> Re z \<in> {Re a1..Re a3}}" (is "?lhs = ?rhs") |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4136 |
proof - |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4137 |
define a2 a4 where "a2 = Complex (Re a3) (Im a1)" and "a4 = Complex (Re a1) (Im a3)" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4138 |
have "?lhs = closed_segment a1 a2 \<union> closed_segment a2 a3 \<union> |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4139 |
closed_segment a4 a3 \<union> closed_segment a1 a4" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4140 |
by (simp_all add: rectpath_def Let_def path_image_join closed_segment_commute |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4141 |
a2_def a4_def Un_assoc) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4142 |
also have "\<dots> = ?rhs" using assms |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4143 |
by (auto simp: rectpath_def Let_def path_image_join a2_def a4_def |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4144 |
closed_segment_same_Re closed_segment_same_Im closed_segment_eq_real_ivl) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4145 |
finally show ?thesis . |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4146 |
qed |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4147 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4148 |
lemma path_image_rectpath_subset_cbox: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4149 |
assumes "Re a \<le> Re b" "Im a \<le> Im b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4150 |
shows "path_image (rectpath a b) \<subseteq> cbox a b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4151 |
using assms by (auto simp: path_image_rectpath in_cbox_complex_iff) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4152 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4153 |
lemma path_image_rectpath_inter_box: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4154 |
assumes "Re a \<le> Re b" "Im a \<le> Im b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4155 |
shows "path_image (rectpath a b) \<inter> box a b = {}" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4156 |
using assms by (auto simp: path_image_rectpath in_box_complex_iff) |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4157 |
|
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4158 |
lemma path_image_rectpath_cbox_minus_box: |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4159 |
assumes "Re a \<le> Re b" "Im a \<le> Im b" |
954ee5acaae0
Split off new HOL-Complex_Analysis session from HOL-Analysis
Manuel Eberl <eberlm@in.tum.de>
parents:
71172
diff
changeset
|
4160 |
shows "path_image (rectpath a b) = cbox a b - box a b" |
76874
d6b02d54dbf8
Tidying up of paths, introducing "loop_free" as a separate predicate in the definition of "simple_path"
paulson <lp15@cam.ac.uk>
parents:
76837
diff
changeset
|
4161 |
using assms by (auto simp: path_image_rectpath in_cbox_complex_iff in_box_complex_iff) |
71184
d62fdaafdafc
renamed Analysis/Winding_Numbers to Winding_Numbers_2; reorganised Analysis/Cauchy_Integral_Theorem by splitting it into Contour_Integration, Winding_Numbers,Cauchy_Integral_Theorem and Cauchy_Integral_Formula.
Wenda Li <wl302@cam.ac.uk>
parents:
71172
diff
changeset
|
4162 |
|
36583 | 4163 |
end |