| author | wenzelm |
| Mon, 14 Sep 2015 16:06:32 +0200 | |
| changeset 61170 | dee0aec271b7 |
| parent 61169 | 4de9ff3ea29a |
| child 61245 | b77bf45efe21 |
| permissions | -rw-r--r-- |
| 41983 | 1 |
(* Title: HOL/Multivariate_Analysis/Extended_Real_Limits.thy |
2 |
Author: Johannes Hölzl, TU München |
|
3 |
Author: Robert Himmelmann, TU München |
|
4 |
Author: Armin Heller, TU München |
|
5 |
Author: Bogdan Grechuk, University of Edinburgh |
|
6 |
*) |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
7 |
|
| 60420 | 8 |
section \<open>Limits on the Extended real number line\<close> |
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
9 |
|
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
10 |
theory Extended_Real_Limits |
|
57446
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
11 |
imports Topology_Euclidean_Space "~~/src/HOL/Library/Extended_Real" "~~/src/HOL/Library/Indicator_Function" |
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
12 |
begin |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
13 |
|
| 53788 | 14 |
lemma compact_UNIV: |
15 |
"compact (UNIV :: 'a::{complete_linorder,linorder_topology,second_countable_topology} set)"
|
|
| 51351 | 16 |
using compact_complete_linorder |
17 |
by (auto simp: seq_compact_eq_compact[symmetric] seq_compact_def) |
|
18 |
||
19 |
lemma compact_eq_closed: |
|
| 53788 | 20 |
fixes S :: "'a::{complete_linorder,linorder_topology,second_countable_topology} set"
|
| 51351 | 21 |
shows "compact S \<longleftrightarrow> closed S" |
| 53788 | 22 |
using closed_inter_compact[of S, OF _ compact_UNIV] compact_imp_closed |
23 |
by auto |
|
| 51351 | 24 |
|
25 |
lemma closed_contains_Sup_cl: |
|
| 53788 | 26 |
fixes S :: "'a::{complete_linorder,linorder_topology,second_countable_topology} set"
|
27 |
assumes "closed S" |
|
28 |
and "S \<noteq> {}"
|
|
29 |
shows "Sup S \<in> S" |
|
| 51351 | 30 |
proof - |
31 |
from compact_eq_closed[of S] compact_attains_sup[of S] assms |
|
| 53788 | 32 |
obtain s where S: "s \<in> S" "\<forall>t\<in>S. t \<le> s" |
33 |
by auto |
|
|
53374
a14d2a854c02
tuned proofs -- clarified flow of facts wrt. calculation;
wenzelm
parents:
51641
diff
changeset
|
34 |
then have "Sup S = s" |
| 51351 | 35 |
by (auto intro!: Sup_eqI) |
|
53374
a14d2a854c02
tuned proofs -- clarified flow of facts wrt. calculation;
wenzelm
parents:
51641
diff
changeset
|
36 |
with S show ?thesis |
| 51351 | 37 |
by simp |
38 |
qed |
|
39 |
||
40 |
lemma closed_contains_Inf_cl: |
|
| 53788 | 41 |
fixes S :: "'a::{complete_linorder,linorder_topology,second_countable_topology} set"
|
42 |
assumes "closed S" |
|
43 |
and "S \<noteq> {}"
|
|
44 |
shows "Inf S \<in> S" |
|
| 51351 | 45 |
proof - |
46 |
from compact_eq_closed[of S] compact_attains_inf[of S] assms |
|
| 53788 | 47 |
obtain s where S: "s \<in> S" "\<forall>t\<in>S. s \<le> t" |
48 |
by auto |
|
|
53374
a14d2a854c02
tuned proofs -- clarified flow of facts wrt. calculation;
wenzelm
parents:
51641
diff
changeset
|
49 |
then have "Inf S = s" |
| 51351 | 50 |
by (auto intro!: Inf_eqI) |
|
53374
a14d2a854c02
tuned proofs -- clarified flow of facts wrt. calculation;
wenzelm
parents:
51641
diff
changeset
|
51 |
with S show ?thesis |
| 51351 | 52 |
by simp |
53 |
qed |
|
54 |
||
55 |
instance ereal :: second_countable_topology |
|
| 61169 | 56 |
proof (standard, intro exI conjI) |
| 51351 | 57 |
let ?B = "(\<Union>r\<in>\<rat>. {{..< r}, {r <..}} :: ereal set set)"
|
| 53788 | 58 |
show "countable ?B" |
59 |
by (auto intro: countable_rat) |
|
| 51351 | 60 |
show "open = generate_topology ?B" |
61 |
proof (intro ext iffI) |
|
| 53788 | 62 |
fix S :: "ereal set" |
63 |
assume "open S" |
|
| 51351 | 64 |
then show "generate_topology ?B S" |
65 |
unfolding open_generated_order |
|
66 |
proof induct |
|
67 |
case (Basis b) |
|
| 53788 | 68 |
then obtain e where "b = {..<e} \<or> b = {e<..}"
|
69 |
by auto |
|
| 51351 | 70 |
moreover have "{..<e} = \<Union>{{..<x}|x. x \<in> \<rat> \<and> x < e}" "{e<..} = \<Union>{{x<..}|x. x \<in> \<rat> \<and> e < x}"
|
71 |
by (auto dest: ereal_dense3 |
|
72 |
simp del: ex_simps |
|
73 |
simp add: ex_simps[symmetric] conj_commute Rats_def image_iff) |
|
74 |
ultimately show ?case |
|
75 |
by (auto intro: generate_topology.intros) |
|
76 |
qed (auto intro: generate_topology.intros) |
|
77 |
next |
|
| 53788 | 78 |
fix S |
79 |
assume "generate_topology ?B S" |
|
80 |
then show "open S" |
|
81 |
by induct auto |
|
| 51351 | 82 |
qed |
83 |
qed |
|
84 |
||
| 43920 | 85 |
lemma ereal_open_closed_aux: |
86 |
fixes S :: "ereal set" |
|
| 53788 | 87 |
assumes "open S" |
88 |
and "closed S" |
|
89 |
and S: "(-\<infinity>) \<notin> S" |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
90 |
shows "S = {}"
|
| 49664 | 91 |
proof (rule ccontr) |
| 53788 | 92 |
assume "\<not> ?thesis" |
93 |
then have *: "Inf S \<in> S" |
|
| 60771 | 94 |
|
| 53788 | 95 |
by (metis assms(2) closed_contains_Inf_cl) |
96 |
{
|
|
97 |
assume "Inf S = -\<infinity>" |
|
98 |
then have False |
|
99 |
using * assms(3) by auto |
|
100 |
} |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
101 |
moreover |
| 53788 | 102 |
{
|
103 |
assume "Inf S = \<infinity>" |
|
104 |
then have "S = {\<infinity>}"
|
|
| 60420 | 105 |
by (metis Inf_eq_PInfty \<open>S \<noteq> {}\<close>)
|
| 53788 | 106 |
then have False |
107 |
by (metis assms(1) not_open_singleton) |
|
108 |
} |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
109 |
moreover |
| 53788 | 110 |
{
|
111 |
assume fin: "\<bar>Inf S\<bar> \<noteq> \<infinity>" |
|
112 |
from ereal_open_cont_interval[OF assms(1) * fin] |
|
113 |
obtain e where e: "e > 0" "{Inf S - e<..<Inf S + e} \<subseteq> S" .
|
|
114 |
then obtain b where b: "Inf S - e < b" "b < Inf S" |
|
115 |
using fin ereal_between[of "Inf S" e] dense[of "Inf S - e"] |
|
| 44918 | 116 |
by auto |
| 53788 | 117 |
then have "b: {Inf S - e <..< Inf S + e}"
|
118 |
using e fin ereal_between[of "Inf S" e] |
|
119 |
by auto |
|
120 |
then have "b \<in> S" |
|
121 |
using e by auto |
|
122 |
then have False |
|
123 |
using b by (metis complete_lattice_class.Inf_lower leD) |
|
124 |
} |
|
125 |
ultimately show False |
|
126 |
by auto |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
127 |
qed |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
128 |
|
| 43920 | 129 |
lemma ereal_open_closed: |
130 |
fixes S :: "ereal set" |
|
| 53788 | 131 |
shows "open S \<and> closed S \<longleftrightarrow> S = {} \<or> S = UNIV"
|
| 49664 | 132 |
proof - |
| 53788 | 133 |
{
|
134 |
assume lhs: "open S \<and> closed S" |
|
135 |
{
|
|
136 |
assume "-\<infinity> \<notin> S" |
|
137 |
then have "S = {}"
|
|
138 |
using lhs ereal_open_closed_aux by auto |
|
139 |
} |
|
| 49664 | 140 |
moreover |
| 53788 | 141 |
{
|
142 |
assume "-\<infinity> \<in> S" |
|
143 |
then have "- S = {}"
|
|
144 |
using lhs ereal_open_closed_aux[of "-S"] by auto |
|
145 |
} |
|
146 |
ultimately have "S = {} \<or> S = UNIV"
|
|
147 |
by auto |
|
148 |
} |
|
149 |
then show ?thesis |
|
150 |
by auto |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
151 |
qed |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
152 |
|
| 53788 | 153 |
lemma ereal_open_atLeast: |
154 |
fixes x :: ereal |
|
155 |
shows "open {x..} \<longleftrightarrow> x = -\<infinity>"
|
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
156 |
proof |
| 53788 | 157 |
assume "x = -\<infinity>" |
158 |
then have "{x..} = UNIV"
|
|
159 |
by auto |
|
160 |
then show "open {x..}"
|
|
161 |
by auto |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
162 |
next |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
163 |
assume "open {x..}"
|
| 53788 | 164 |
then have "open {x..} \<and> closed {x..}"
|
165 |
by auto |
|
166 |
then have "{x..} = UNIV"
|
|
167 |
unfolding ereal_open_closed by auto |
|
168 |
then show "x = -\<infinity>" |
|
169 |
by (simp add: bot_ereal_def atLeast_eq_UNIV_iff) |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
170 |
qed |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
171 |
|
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
172 |
lemma mono_closed_real: |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
173 |
fixes S :: "real set" |
| 53788 | 174 |
assumes mono: "\<forall>y z. y \<in> S \<and> y \<le> z \<longrightarrow> z \<in> S" |
| 49664 | 175 |
and "closed S" |
| 53788 | 176 |
shows "S = {} \<or> S = UNIV \<or> (\<exists>a. S = {a..})"
|
| 49664 | 177 |
proof - |
| 53788 | 178 |
{
|
179 |
assume "S \<noteq> {}"
|
|
180 |
{ assume ex: "\<exists>B. \<forall>x\<in>S. B \<le> x"
|
|
181 |
then have *: "\<forall>x\<in>S. Inf S \<le> x" |
|
|
54258
adfc759263ab
use bdd_above and bdd_below for conditionally complete lattices
hoelzl
parents:
54257
diff
changeset
|
182 |
using cInf_lower[of _ S] ex by (metis bdd_below_def) |
| 53788 | 183 |
then have "Inf S \<in> S" |
184 |
apply (subst closed_contains_Inf) |
|
| 60420 | 185 |
using ex \<open>S \<noteq> {}\<close> \<open>closed S\<close>
|
| 53788 | 186 |
apply auto |
187 |
done |
|
188 |
then have "\<forall>x. Inf S \<le> x \<longleftrightarrow> x \<in> S" |
|
189 |
using mono[rule_format, of "Inf S"] * |
|
190 |
by auto |
|
191 |
then have "S = {Inf S ..}"
|
|
192 |
by auto |
|
193 |
then have "\<exists>a. S = {a ..}"
|
|
194 |
by auto |
|
| 49664 | 195 |
} |
196 |
moreover |
|
| 53788 | 197 |
{
|
198 |
assume "\<not> (\<exists>B. \<forall>x\<in>S. B \<le> x)" |
|
199 |
then have nex: "\<forall>B. \<exists>x\<in>S. x < B" |
|
200 |
by (simp add: not_le) |
|
201 |
{
|
|
202 |
fix y |
|
203 |
obtain x where "x\<in>S" and "x < y" |
|
204 |
using nex by auto |
|
205 |
then have "y \<in> S" |
|
206 |
using mono[rule_format, of x y] by auto |
|
207 |
} |
|
208 |
then have "S = UNIV" |
|
209 |
by auto |
|
| 49664 | 210 |
} |
| 53788 | 211 |
ultimately have "S = UNIV \<or> (\<exists>a. S = {a ..})"
|
212 |
by blast |
|
213 |
} |
|
214 |
then show ?thesis |
|
215 |
by blast |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
216 |
qed |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
217 |
|
| 43920 | 218 |
lemma mono_closed_ereal: |
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
219 |
fixes S :: "real set" |
| 53788 | 220 |
assumes mono: "\<forall>y z. y \<in> S \<and> y \<le> z \<longrightarrow> z \<in> S" |
| 49664 | 221 |
and "closed S" |
| 53788 | 222 |
shows "\<exists>a. S = {x. a \<le> ereal x}"
|
| 49664 | 223 |
proof - |
| 53788 | 224 |
{
|
225 |
assume "S = {}"
|
|
226 |
then have ?thesis |
|
227 |
apply (rule_tac x=PInfty in exI) |
|
228 |
apply auto |
|
229 |
done |
|
230 |
} |
|
| 49664 | 231 |
moreover |
| 53788 | 232 |
{
|
233 |
assume "S = UNIV" |
|
234 |
then have ?thesis |
|
235 |
apply (rule_tac x="-\<infinity>" in exI) |
|
236 |
apply auto |
|
237 |
done |
|
238 |
} |
|
| 49664 | 239 |
moreover |
| 53788 | 240 |
{
|
241 |
assume "\<exists>a. S = {a ..}"
|
|
242 |
then obtain a where "S = {a ..}"
|
|
243 |
by auto |
|
244 |
then have ?thesis |
|
245 |
apply (rule_tac x="ereal a" in exI) |
|
246 |
apply auto |
|
247 |
done |
|
| 49664 | 248 |
} |
| 53788 | 249 |
ultimately show ?thesis |
250 |
using mono_closed_real[of S] assms by auto |
|
|
41980
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
251 |
qed |
|
28b51effc5ed
split Extended_Reals into parts for Library and Multivariate_Analysis
hoelzl
parents:
diff
changeset
|
252 |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
253 |
lemma Liminf_within: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
254 |
fixes f :: "'a::metric_space \<Rightarrow> 'b::complete_lattice" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
255 |
shows "Liminf (at x within S) f = (SUP e:{0<..}. INF y:(S \<inter> ball x e - {x}). f y)"
|
|
51641
cd05e9fcc63d
remove the within-filter, replace "at" by "at _ within UNIV" (This allows to remove a couple of redundant lemmas)
hoelzl
parents:
51530
diff
changeset
|
256 |
unfolding Liminf_def eventually_at |
|
56212
3253aaf73a01
consolidated theorem names containing INFI and SUPR: have INF and SUP instead uniformly
haftmann
parents:
56166
diff
changeset
|
257 |
proof (rule SUP_eq, simp_all add: Ball_def Bex_def, safe) |
| 53788 | 258 |
fix P d |
259 |
assume "0 < d" and "\<forall>y. y \<in> S \<longrightarrow> y \<noteq> x \<and> dist y x < d \<longrightarrow> P y" |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
260 |
then have "S \<inter> ball x d - {x} \<subseteq> {x. P x}"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
261 |
by (auto simp: zero_less_dist_iff dist_commute) |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
262 |
then show "\<exists>r>0. INFIMUM (Collect P) f \<le> INFIMUM (S \<inter> ball x r - {x}) f"
|
| 60420 | 263 |
by (intro exI[of _ d] INF_mono conjI \<open>0 < d\<close>) auto |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
264 |
next |
| 53788 | 265 |
fix d :: real |
266 |
assume "0 < d" |
|
|
51641
cd05e9fcc63d
remove the within-filter, replace "at" by "at _ within UNIV" (This allows to remove a couple of redundant lemmas)
hoelzl
parents:
51530
diff
changeset
|
267 |
then show "\<exists>P. (\<exists>d>0. \<forall>xa. xa \<in> S \<longrightarrow> xa \<noteq> x \<and> dist xa x < d \<longrightarrow> P xa) \<and> |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
268 |
INFIMUM (S \<inter> ball x d - {x}) f \<le> INFIMUM (Collect P) f"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
269 |
by (intro exI[of _ "\<lambda>y. y \<in> S \<inter> ball x d - {x}"])
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
270 |
(auto intro!: INF_mono exI[of _ d] simp: dist_commute) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
271 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
272 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
273 |
lemma Limsup_within: |
| 53788 | 274 |
fixes f :: "'a::metric_space \<Rightarrow> 'b::complete_lattice" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
275 |
shows "Limsup (at x within S) f = (INF e:{0<..}. SUP y:(S \<inter> ball x e - {x}). f y)"
|
|
51641
cd05e9fcc63d
remove the within-filter, replace "at" by "at _ within UNIV" (This allows to remove a couple of redundant lemmas)
hoelzl
parents:
51530
diff
changeset
|
276 |
unfolding Limsup_def eventually_at |
|
56212
3253aaf73a01
consolidated theorem names containing INFI and SUPR: have INF and SUP instead uniformly
haftmann
parents:
56166
diff
changeset
|
277 |
proof (rule INF_eq, simp_all add: Ball_def Bex_def, safe) |
| 53788 | 278 |
fix P d |
279 |
assume "0 < d" and "\<forall>y. y \<in> S \<longrightarrow> y \<noteq> x \<and> dist y x < d \<longrightarrow> P y" |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
280 |
then have "S \<inter> ball x d - {x} \<subseteq> {x. P x}"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
281 |
by (auto simp: zero_less_dist_iff dist_commute) |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
282 |
then show "\<exists>r>0. SUPREMUM (S \<inter> ball x r - {x}) f \<le> SUPREMUM (Collect P) f"
|
| 60420 | 283 |
by (intro exI[of _ d] SUP_mono conjI \<open>0 < d\<close>) auto |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
284 |
next |
| 53788 | 285 |
fix d :: real |
286 |
assume "0 < d" |
|
|
51641
cd05e9fcc63d
remove the within-filter, replace "at" by "at _ within UNIV" (This allows to remove a couple of redundant lemmas)
hoelzl
parents:
51530
diff
changeset
|
287 |
then show "\<exists>P. (\<exists>d>0. \<forall>xa. xa \<in> S \<longrightarrow> xa \<noteq> x \<and> dist xa x < d \<longrightarrow> P xa) \<and> |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
288 |
SUPREMUM (Collect P) f \<le> SUPREMUM (S \<inter> ball x d - {x}) f"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
289 |
by (intro exI[of _ "\<lambda>y. y \<in> S \<inter> ball x d - {x}"])
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
290 |
(auto intro!: SUP_mono exI[of _ d] simp: dist_commute) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
291 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
292 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
293 |
lemma Liminf_at: |
|
54257
5c7a3b6b05a9
generalize SUP and INF to the syntactic type classes Sup and Inf
hoelzl
parents:
53788
diff
changeset
|
294 |
fixes f :: "'a::metric_space \<Rightarrow> 'b::complete_lattice" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
295 |
shows "Liminf (at x) f = (SUP e:{0<..}. INF y:(ball x e - {x}). f y)"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
296 |
using Liminf_within[of x UNIV f] by simp |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
297 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
298 |
lemma Limsup_at: |
|
54257
5c7a3b6b05a9
generalize SUP and INF to the syntactic type classes Sup and Inf
hoelzl
parents:
53788
diff
changeset
|
299 |
fixes f :: "'a::metric_space \<Rightarrow> 'b::complete_lattice" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
300 |
shows "Limsup (at x) f = (INF e:{0<..}. SUP y:(ball x e - {x}). f y)"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
301 |
using Limsup_within[of x UNIV f] by simp |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
302 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
303 |
lemma min_Liminf_at: |
| 53788 | 304 |
fixes f :: "'a::metric_space \<Rightarrow> 'b::complete_linorder" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
305 |
shows "min (f x) (Liminf (at x) f) = (SUP e:{0<..}. INF y:ball x e. f y)"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
306 |
unfolding inf_min[symmetric] Liminf_at |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
307 |
apply (subst inf_commute) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
308 |
apply (subst SUP_inf) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
309 |
apply (intro SUP_cong[OF refl]) |
|
54260
6a967667fd45
use INF and SUP on conditionally complete lattices in multivariate analysis
hoelzl
parents:
54258
diff
changeset
|
310 |
apply (cut_tac A="ball x xa - {x}" and B="{x}" and M=f in INF_union)
|
| 56166 | 311 |
apply (drule sym) |
312 |
apply auto |
|
| 57865 | 313 |
apply (metis INF_absorb centre_in_ball) |
314 |
done |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
315 |
|
| 60420 | 316 |
subsection \<open>monoset\<close> |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
317 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
318 |
definition (in order) mono_set: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
319 |
"mono_set S \<longleftrightarrow> (\<forall>x y. x \<le> y \<longrightarrow> x \<in> S \<longrightarrow> y \<in> S)" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
320 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
321 |
lemma (in order) mono_greaterThan [intro, simp]: "mono_set {B<..}" unfolding mono_set by auto
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
322 |
lemma (in order) mono_atLeast [intro, simp]: "mono_set {B..}" unfolding mono_set by auto
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
323 |
lemma (in order) mono_UNIV [intro, simp]: "mono_set UNIV" unfolding mono_set by auto |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
324 |
lemma (in order) mono_empty [intro, simp]: "mono_set {}" unfolding mono_set by auto
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
325 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
326 |
lemma (in complete_linorder) mono_set_iff: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
327 |
fixes S :: "'a set" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
328 |
defines "a \<equiv> Inf S" |
| 53788 | 329 |
shows "mono_set S \<longleftrightarrow> S = {a <..} \<or> S = {a..}" (is "_ = ?c")
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
330 |
proof |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
331 |
assume "mono_set S" |
| 53788 | 332 |
then have mono: "\<And>x y. x \<le> y \<Longrightarrow> x \<in> S \<Longrightarrow> y \<in> S" |
333 |
by (auto simp: mono_set) |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
334 |
show ?c |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
335 |
proof cases |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
336 |
assume "a \<in> S" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
337 |
show ?c |
| 60420 | 338 |
using mono[OF _ \<open>a \<in> S\<close>] |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
339 |
by (auto intro: Inf_lower simp: a_def) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
340 |
next |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
341 |
assume "a \<notin> S" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
342 |
have "S = {a <..}"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
343 |
proof safe |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
344 |
fix x assume "x \<in> S" |
| 53788 | 345 |
then have "a \<le> x" |
346 |
unfolding a_def by (rule Inf_lower) |
|
347 |
then show "a < x" |
|
| 60420 | 348 |
using \<open>x \<in> S\<close> \<open>a \<notin> S\<close> by (cases "a = x") auto |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
349 |
next |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
350 |
fix x assume "a < x" |
| 53788 | 351 |
then obtain y where "y < x" "y \<in> S" |
352 |
unfolding a_def Inf_less_iff .. |
|
353 |
with mono[of y x] show "x \<in> S" |
|
354 |
by auto |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
355 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
356 |
then show ?c .. |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
357 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
358 |
qed auto |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
359 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
360 |
lemma ereal_open_mono_set: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
361 |
fixes S :: "ereal set" |
| 53788 | 362 |
shows "open S \<and> mono_set S \<longleftrightarrow> S = UNIV \<or> S = {Inf S <..}"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
363 |
by (metis Inf_UNIV atLeast_eq_UNIV_iff ereal_open_atLeast |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
364 |
ereal_open_closed mono_set_iff open_ereal_greaterThan) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
365 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
366 |
lemma ereal_closed_mono_set: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
367 |
fixes S :: "ereal set" |
| 53788 | 368 |
shows "closed S \<and> mono_set S \<longleftrightarrow> S = {} \<or> S = {Inf S ..}"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
369 |
by (metis Inf_UNIV atLeast_eq_UNIV_iff closed_ereal_atLeast |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
370 |
ereal_open_closed mono_empty mono_set_iff open_ereal_greaterThan) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
371 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
372 |
lemma ereal_Liminf_Sup_monoset: |
| 53788 | 373 |
fixes f :: "'a \<Rightarrow> ereal" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
374 |
shows "Liminf net f = |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
375 |
Sup {l. \<forall>S. open S \<longrightarrow> mono_set S \<longrightarrow> l \<in> S \<longrightarrow> eventually (\<lambda>x. f x \<in> S) net}"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
376 |
(is "_ = Sup ?A") |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
377 |
proof (safe intro!: Liminf_eqI complete_lattice_class.Sup_upper complete_lattice_class.Sup_least) |
| 53788 | 378 |
fix P |
379 |
assume P: "eventually P net" |
|
380 |
fix S |
|
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
381 |
assume S: "mono_set S" "INFIMUM (Collect P) f \<in> S" |
| 53788 | 382 |
{
|
383 |
fix x |
|
384 |
assume "P x" |
|
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
385 |
then have "INFIMUM (Collect P) f \<le> f x" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
386 |
by (intro complete_lattice_class.INF_lower) simp |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
387 |
with S have "f x \<in> S" |
| 53788 | 388 |
by (simp add: mono_set) |
389 |
} |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
390 |
with P show "eventually (\<lambda>x. f x \<in> S) net" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
391 |
by (auto elim: eventually_elim1) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
392 |
next |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
393 |
fix y l |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
394 |
assume S: "\<forall>S. open S \<longrightarrow> mono_set S \<longrightarrow> l \<in> S \<longrightarrow> eventually (\<lambda>x. f x \<in> S) net" |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
395 |
assume P: "\<forall>P. eventually P net \<longrightarrow> INFIMUM (Collect P) f \<le> y" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
396 |
show "l \<le> y" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
397 |
proof (rule dense_le) |
| 53788 | 398 |
fix B |
399 |
assume "B < l" |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
400 |
then have "eventually (\<lambda>x. f x \<in> {B <..}) net"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
401 |
by (intro S[rule_format]) auto |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
402 |
then have "INFIMUM {x. B < f x} f \<le> y"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
403 |
using P by auto |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
404 |
moreover have "B \<le> INFIMUM {x. B < f x} f"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
405 |
by (intro INF_greatest) auto |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
406 |
ultimately show "B \<le> y" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
407 |
by simp |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
408 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
409 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
410 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
411 |
lemma ereal_Limsup_Inf_monoset: |
| 53788 | 412 |
fixes f :: "'a \<Rightarrow> ereal" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
413 |
shows "Limsup net f = |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
414 |
Inf {l. \<forall>S. open S \<longrightarrow> mono_set (uminus ` S) \<longrightarrow> l \<in> S \<longrightarrow> eventually (\<lambda>x. f x \<in> S) net}"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
415 |
(is "_ = Inf ?A") |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
416 |
proof (safe intro!: Limsup_eqI complete_lattice_class.Inf_lower complete_lattice_class.Inf_greatest) |
| 53788 | 417 |
fix P |
418 |
assume P: "eventually P net" |
|
419 |
fix S |
|
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
420 |
assume S: "mono_set (uminus`S)" "SUPREMUM (Collect P) f \<in> S" |
| 53788 | 421 |
{
|
422 |
fix x |
|
423 |
assume "P x" |
|
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
424 |
then have "f x \<le> SUPREMUM (Collect P) f" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
425 |
by (intro complete_lattice_class.SUP_upper) simp |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
426 |
with S(1)[unfolded mono_set, rule_format, of "- SUPREMUM (Collect P) f" "- f x"] S(2) |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
427 |
have "f x \<in> S" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
428 |
by (simp add: inj_image_mem_iff) } |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
429 |
with P show "eventually (\<lambda>x. f x \<in> S) net" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
430 |
by (auto elim: eventually_elim1) |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
431 |
next |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
432 |
fix y l |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
433 |
assume S: "\<forall>S. open S \<longrightarrow> mono_set (uminus ` S) \<longrightarrow> l \<in> S \<longrightarrow> eventually (\<lambda>x. f x \<in> S) net" |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
434 |
assume P: "\<forall>P. eventually P net \<longrightarrow> y \<le> SUPREMUM (Collect P) f" |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
435 |
show "y \<le> l" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
436 |
proof (rule dense_ge) |
| 53788 | 437 |
fix B |
438 |
assume "l < B" |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
439 |
then have "eventually (\<lambda>x. f x \<in> {..< B}) net"
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
440 |
by (intro S[rule_format]) auto |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
441 |
then have "y \<le> SUPREMUM {x. f x < B} f"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
442 |
using P by auto |
|
56218
1c3f1f2431f9
elongated INFI and SUPR, to reduced risk of confusing theorems names in the future while still being consistent with INTER and UNION
haftmann
parents:
56212
diff
changeset
|
443 |
moreover have "SUPREMUM {x. f x < B} f \<le> B"
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
444 |
by (intro SUP_least) auto |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
445 |
ultimately show "y \<le> B" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
446 |
by simp |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
447 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
448 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
449 |
|
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
450 |
lemma liminf_bounded_open: |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
451 |
fixes x :: "nat \<Rightarrow> ereal" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
452 |
shows "x0 \<le> liminf x \<longleftrightarrow> (\<forall>S. open S \<longrightarrow> mono_set S \<longrightarrow> x0 \<in> S \<longrightarrow> (\<exists>N. \<forall>n\<ge>N. x n \<in> S))" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
453 |
(is "_ \<longleftrightarrow> ?P x0") |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
454 |
proof |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
455 |
assume "?P x0" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
456 |
then show "x0 \<le> liminf x" |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
457 |
unfolding ereal_Liminf_Sup_monoset eventually_sequentially |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
458 |
by (intro complete_lattice_class.Sup_upper) auto |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
459 |
next |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
460 |
assume "x0 \<le> liminf x" |
| 53788 | 461 |
{
|
462 |
fix S :: "ereal set" |
|
463 |
assume om: "open S" "mono_set S" "x0 \<in> S" |
|
464 |
{
|
|
465 |
assume "S = UNIV" |
|
466 |
then have "\<exists>N. \<forall>n\<ge>N. x n \<in> S" |
|
467 |
by auto |
|
468 |
} |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
469 |
moreover |
| 53788 | 470 |
{
|
471 |
assume "S \<noteq> UNIV" |
|
472 |
then obtain B where B: "S = {B<..}"
|
|
473 |
using om ereal_open_mono_set by auto |
|
474 |
then have "B < x0" |
|
475 |
using om by auto |
|
476 |
then have "\<exists>N. \<forall>n\<ge>N. x n \<in> S" |
|
477 |
unfolding B |
|
| 60420 | 478 |
using \<open>x0 \<le> liminf x\<close> liminf_bounded_iff |
| 53788 | 479 |
by auto |
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
480 |
} |
| 53788 | 481 |
ultimately have "\<exists>N. \<forall>n\<ge>N. x n \<in> S" |
482 |
by auto |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
483 |
} |
| 53788 | 484 |
then show "?P x0" |
485 |
by auto |
|
|
51340
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
486 |
qed |
|
5e6296afe08d
move Liminf / Limsup lemmas on complete_lattices to its own file
hoelzl
parents:
51329
diff
changeset
|
487 |
|
|
57446
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
488 |
subsection "Relate extended reals and the indicator function" |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
489 |
|
| 59000 | 490 |
lemma ereal_indicator_le_0: "(indicator S x::ereal) \<le> 0 \<longleftrightarrow> x \<notin> S" |
491 |
by (auto split: split_indicator simp: one_ereal_def) |
|
492 |
||
|
57446
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
493 |
lemma ereal_indicator: "ereal (indicator A x) = indicator A x" |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
494 |
by (auto simp: indicator_def one_ereal_def) |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
495 |
|
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
496 |
lemma ereal_mult_indicator: "ereal (x * indicator A y) = ereal x * indicator A y" |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
497 |
by (simp split: split_indicator) |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
498 |
|
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
499 |
lemma ereal_indicator_mult: "ereal (indicator A y * x) = indicator A y * ereal x" |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
500 |
by (simp split: split_indicator) |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
501 |
|
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
502 |
lemma ereal_indicator_nonneg[simp, intro]: "0 \<le> (indicator A x ::ereal)" |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
503 |
unfolding indicator_def by auto |
|
06e195515deb
some lemmas about the indicator function; removed lemma sums_def2
hoelzl
parents:
57418
diff
changeset
|
504 |
|
| 59425 | 505 |
lemma indicator_inter_arith_ereal: "indicator A x * indicator B x = (indicator (A \<inter> B) x :: ereal)" |
506 |
by (simp split: split_indicator) |
|
507 |
||
| 44125 | 508 |
end |