author | hoelzl |
Fri, 14 Dec 2012 15:46:01 +0100 | |
changeset 50526 | 899c9c4e4a4c |
parent 50387 | 3d8863c41fe8 |
child 51683 | baefa3b461c2 |
permissions | -rw-r--r-- |
41983 | 1 |
(* Title: HOL/Probability/Sigma_Algebra.thy |
42067 | 2 |
Author: Stefan Richter, Markus Wenzel, TU München |
3 |
Author: Johannes Hölzl, TU München |
|
41981
cdf7693bbe08
reworked Probability theory: measures are not type restricted to positive extended reals
hoelzl
parents:
41959
diff
changeset
|
4 |
Plus material from the Hurd/Coble measure theory development, |
cdf7693bbe08
reworked Probability theory: measures are not type restricted to positive extended reals
hoelzl
parents:
41959
diff
changeset
|
5 |
translated by Lawrence Paulson. |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
6 |
*) |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
7 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
8 |
header {* Sigma Algebras *} |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
9 |
|
41413
64cd30d6b0b8
explicit file specifications -- avoid secondary load path;
wenzelm
parents:
41095
diff
changeset
|
10 |
theory Sigma_Algebra |
64cd30d6b0b8
explicit file specifications -- avoid secondary load path;
wenzelm
parents:
41095
diff
changeset
|
11 |
imports |
42145 | 12 |
Complex_Main |
50245
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
13 |
"~~/src/HOL/Library/Countable_Set" |
41413
64cd30d6b0b8
explicit file specifications -- avoid secondary load path;
wenzelm
parents:
41095
diff
changeset
|
14 |
"~~/src/HOL/Library/FuncSet" |
64cd30d6b0b8
explicit file specifications -- avoid secondary load path;
wenzelm
parents:
41095
diff
changeset
|
15 |
"~~/src/HOL/Library/Indicator_Function" |
47694 | 16 |
"~~/src/HOL/Library/Extended_Real" |
41413
64cd30d6b0b8
explicit file specifications -- avoid secondary load path;
wenzelm
parents:
41095
diff
changeset
|
17 |
begin |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
18 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
19 |
text {* Sigma algebras are an elementary concept in measure |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
20 |
theory. To measure --- that is to integrate --- functions, we first have |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
21 |
to measure sets. Unfortunately, when dealing with a large universe, |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
22 |
it is often not possible to consistently assign a measure to every |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
23 |
subset. Therefore it is necessary to define the set of measurable |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
24 |
subsets of the universe. A sigma algebra is such a set that has |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
25 |
three very natural and desirable properties. *} |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
26 |
|
47762 | 27 |
subsection {* Families of sets *} |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
28 |
|
47694 | 29 |
locale subset_class = |
30 |
fixes \<Omega> :: "'a set" and M :: "'a set set" |
|
31 |
assumes space_closed: "M \<subseteq> Pow \<Omega>" |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
32 |
|
47694 | 33 |
lemma (in subset_class) sets_into_space: "x \<in> M \<Longrightarrow> x \<subseteq> \<Omega>" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
34 |
by (metis PowD contra_subsetD space_closed) |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
35 |
|
47762 | 36 |
subsection {* Semiring of sets *} |
37 |
||
38 |
subsubsection {* Disjoint sets *} |
|
39 |
||
40 |
definition "disjoint A \<longleftrightarrow> (\<forall>a\<in>A. \<forall>b\<in>A. a \<noteq> b \<longrightarrow> a \<inter> b = {})" |
|
41 |
||
42 |
lemma disjointI: |
|
43 |
"(\<And>a b. a \<in> A \<Longrightarrow> b \<in> A \<Longrightarrow> a \<noteq> b \<Longrightarrow> a \<inter> b = {}) \<Longrightarrow> disjoint A" |
|
44 |
unfolding disjoint_def by auto |
|
45 |
||
46 |
lemma disjointD: |
|
47 |
"disjoint A \<Longrightarrow> a \<in> A \<Longrightarrow> b \<in> A \<Longrightarrow> a \<noteq> b \<Longrightarrow> a \<inter> b = {}" |
|
48 |
unfolding disjoint_def by auto |
|
49 |
||
50 |
lemma disjoint_empty[iff]: "disjoint {}" |
|
51 |
by (auto simp: disjoint_def) |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
52 |
|
47762 | 53 |
lemma disjoint_union: |
54 |
assumes C: "disjoint C" and B: "disjoint B" and disj: "\<Union>C \<inter> \<Union>B = {}" |
|
55 |
shows "disjoint (C \<union> B)" |
|
56 |
proof (rule disjointI) |
|
57 |
fix c d assume sets: "c \<in> C \<union> B" "d \<in> C \<union> B" and "c \<noteq> d" |
|
58 |
show "c \<inter> d = {}" |
|
59 |
proof cases |
|
60 |
assume "(c \<in> C \<and> d \<in> C) \<or> (c \<in> B \<and> d \<in> B)" |
|
61 |
then show ?thesis |
|
62 |
proof |
|
63 |
assume "c \<in> C \<and> d \<in> C" with `c \<noteq> d` C show "c \<inter> d = {}" |
|
64 |
by (auto simp: disjoint_def) |
|
65 |
next |
|
66 |
assume "c \<in> B \<and> d \<in> B" with `c \<noteq> d` B show "c \<inter> d = {}" |
|
67 |
by (auto simp: disjoint_def) |
|
68 |
qed |
|
69 |
next |
|
70 |
assume "\<not> ((c \<in> C \<and> d \<in> C) \<or> (c \<in> B \<and> d \<in> B))" |
|
71 |
with sets have "(c \<subseteq> \<Union>C \<and> d \<subseteq> \<Union>B) \<or> (c \<subseteq> \<Union>B \<and> d \<subseteq> \<Union>C)" |
|
72 |
by auto |
|
73 |
with disj show "c \<inter> d = {}" by auto |
|
74 |
qed |
|
75 |
qed |
|
76 |
||
77 |
locale semiring_of_sets = subset_class + |
|
78 |
assumes empty_sets[iff]: "{} \<in> M" |
|
79 |
assumes Int[intro]: "\<And>a b. a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> a \<inter> b \<in> M" |
|
80 |
assumes Diff_cover: |
|
81 |
"\<And>a b. a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> \<exists>C\<subseteq>M. finite C \<and> disjoint C \<and> a - b = \<Union>C" |
|
82 |
||
83 |
lemma (in semiring_of_sets) finite_INT[intro]: |
|
84 |
assumes "finite I" "I \<noteq> {}" "\<And>i. i \<in> I \<Longrightarrow> A i \<in> M" |
|
85 |
shows "(\<Inter>i\<in>I. A i) \<in> M" |
|
86 |
using assms by (induct rule: finite_ne_induct) auto |
|
87 |
||
88 |
lemma (in semiring_of_sets) Int_space_eq1 [simp]: "x \<in> M \<Longrightarrow> \<Omega> \<inter> x = x" |
|
89 |
by (metis Int_absorb1 sets_into_space) |
|
90 |
||
91 |
lemma (in semiring_of_sets) Int_space_eq2 [simp]: "x \<in> M \<Longrightarrow> x \<inter> \<Omega> = x" |
|
92 |
by (metis Int_absorb2 sets_into_space) |
|
93 |
||
94 |
lemma (in semiring_of_sets) sets_Collect_conj: |
|
95 |
assumes "{x\<in>\<Omega>. P x} \<in> M" "{x\<in>\<Omega>. Q x} \<in> M" |
|
96 |
shows "{x\<in>\<Omega>. Q x \<and> P x} \<in> M" |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
97 |
proof - |
47762 | 98 |
have "{x\<in>\<Omega>. Q x \<and> P x} = {x\<in>\<Omega>. Q x} \<inter> {x\<in>\<Omega>. P x}" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
99 |
by auto |
47762 | 100 |
with assms show ?thesis by auto |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
101 |
qed |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
102 |
|
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
103 |
lemma (in semiring_of_sets) sets_Collect_finite_All': |
47762 | 104 |
assumes "\<And>i. i \<in> S \<Longrightarrow> {x\<in>\<Omega>. P i x} \<in> M" "finite S" "S \<noteq> {}" |
105 |
shows "{x\<in>\<Omega>. \<forall>i\<in>S. P i x} \<in> M" |
|
106 |
proof - |
|
107 |
have "{x\<in>\<Omega>. \<forall>i\<in>S. P i x} = (\<Inter>i\<in>S. {x\<in>\<Omega>. P i x})" |
|
108 |
using `S \<noteq> {}` by auto |
|
109 |
with assms show ?thesis by auto |
|
110 |
qed |
|
111 |
||
112 |
locale ring_of_sets = semiring_of_sets + |
|
113 |
assumes Un [intro]: "\<And>a b. a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> a \<union> b \<in> M" |
|
114 |
||
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
115 |
lemma (in ring_of_sets) finite_Union [intro]: |
47694 | 116 |
"finite X \<Longrightarrow> X \<subseteq> M \<Longrightarrow> Union X \<in> M" |
38656 | 117 |
by (induct set: finite) (auto simp add: Un) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
118 |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
119 |
lemma (in ring_of_sets) finite_UN[intro]: |
47694 | 120 |
assumes "finite I" and "\<And>i. i \<in> I \<Longrightarrow> A i \<in> M" |
121 |
shows "(\<Union>i\<in>I. A i) \<in> M" |
|
41981
cdf7693bbe08
reworked Probability theory: measures are not type restricted to positive extended reals
hoelzl
parents:
41959
diff
changeset
|
122 |
using assms by induct auto |
cdf7693bbe08
reworked Probability theory: measures are not type restricted to positive extended reals
hoelzl
parents:
41959
diff
changeset
|
123 |
|
47762 | 124 |
lemma (in ring_of_sets) Diff [intro]: |
125 |
assumes "a \<in> M" "b \<in> M" shows "a - b \<in> M" |
|
126 |
using Diff_cover[OF assms] by auto |
|
127 |
||
128 |
lemma ring_of_setsI: |
|
129 |
assumes space_closed: "M \<subseteq> Pow \<Omega>" |
|
130 |
assumes empty_sets[iff]: "{} \<in> M" |
|
131 |
assumes Un[intro]: "\<And>a b. a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> a \<union> b \<in> M" |
|
132 |
assumes Diff[intro]: "\<And>a b. a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> a - b \<in> M" |
|
133 |
shows "ring_of_sets \<Omega> M" |
|
134 |
proof |
|
135 |
fix a b assume ab: "a \<in> M" "b \<in> M" |
|
136 |
from ab show "\<exists>C\<subseteq>M. finite C \<and> disjoint C \<and> a - b = \<Union>C" |
|
137 |
by (intro exI[of _ "{a - b}"]) (auto simp: disjoint_def) |
|
138 |
have "a \<inter> b = a - (a - b)" by auto |
|
139 |
also have "\<dots> \<in> M" using ab by auto |
|
140 |
finally show "a \<inter> b \<in> M" . |
|
141 |
qed fact+ |
|
142 |
||
143 |
lemma ring_of_sets_iff: "ring_of_sets \<Omega> M \<longleftrightarrow> M \<subseteq> Pow \<Omega> \<and> {} \<in> M \<and> (\<forall>a\<in>M. \<forall>b\<in>M. a \<union> b \<in> M) \<and> (\<forall>a\<in>M. \<forall>b\<in>M. a - b \<in> M)" |
|
144 |
proof |
|
145 |
assume "ring_of_sets \<Omega> M" |
|
146 |
then interpret ring_of_sets \<Omega> M . |
|
147 |
show "M \<subseteq> Pow \<Omega> \<and> {} \<in> M \<and> (\<forall>a\<in>M. \<forall>b\<in>M. a \<union> b \<in> M) \<and> (\<forall>a\<in>M. \<forall>b\<in>M. a - b \<in> M)" |
|
148 |
using space_closed by auto |
|
149 |
qed (auto intro!: ring_of_setsI) |
|
41981
cdf7693bbe08
reworked Probability theory: measures are not type restricted to positive extended reals
hoelzl
parents:
41959
diff
changeset
|
150 |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
151 |
lemma (in ring_of_sets) insert_in_sets: |
47694 | 152 |
assumes "{x} \<in> M" "A \<in> M" shows "insert x A \<in> M" |
38656 | 153 |
proof - |
47694 | 154 |
have "{x} \<union> A \<in> M" using assms by (rule Un) |
38656 | 155 |
thus ?thesis by auto |
156 |
qed |
|
157 |
||
42867 | 158 |
lemma (in ring_of_sets) sets_Collect_disj: |
47694 | 159 |
assumes "{x\<in>\<Omega>. P x} \<in> M" "{x\<in>\<Omega>. Q x} \<in> M" |
160 |
shows "{x\<in>\<Omega>. Q x \<or> P x} \<in> M" |
|
42867 | 161 |
proof - |
47694 | 162 |
have "{x\<in>\<Omega>. Q x \<or> P x} = {x\<in>\<Omega>. Q x} \<union> {x\<in>\<Omega>. P x}" |
42867 | 163 |
by auto |
164 |
with assms show ?thesis by auto |
|
165 |
qed |
|
166 |
||
167 |
lemma (in ring_of_sets) sets_Collect_finite_Ex: |
|
47694 | 168 |
assumes "\<And>i. i \<in> S \<Longrightarrow> {x\<in>\<Omega>. P i x} \<in> M" "finite S" |
169 |
shows "{x\<in>\<Omega>. \<exists>i\<in>S. P i x} \<in> M" |
|
42867 | 170 |
proof - |
47694 | 171 |
have "{x\<in>\<Omega>. \<exists>i\<in>S. P i x} = (\<Union>i\<in>S. {x\<in>\<Omega>. P i x})" |
42867 | 172 |
by auto |
173 |
with assms show ?thesis by auto |
|
174 |
qed |
|
175 |
||
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
176 |
locale algebra = ring_of_sets + |
47694 | 177 |
assumes top [iff]: "\<Omega> \<in> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
178 |
|
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
179 |
lemma (in algebra) compl_sets [intro]: |
47694 | 180 |
"a \<in> M \<Longrightarrow> \<Omega> - a \<in> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
181 |
by auto |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
182 |
|
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
183 |
lemma algebra_iff_Un: |
47694 | 184 |
"algebra \<Omega> M \<longleftrightarrow> |
185 |
M \<subseteq> Pow \<Omega> \<and> |
|
186 |
{} \<in> M \<and> |
|
187 |
(\<forall>a \<in> M. \<Omega> - a \<in> M) \<and> |
|
188 |
(\<forall>a \<in> M. \<forall> b \<in> M. a \<union> b \<in> M)" (is "_ \<longleftrightarrow> ?Un") |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
189 |
proof |
47694 | 190 |
assume "algebra \<Omega> M" |
191 |
then interpret algebra \<Omega> M . |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
192 |
show ?Un using sets_into_space by auto |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
193 |
next |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
194 |
assume ?Un |
47762 | 195 |
then have "\<Omega> \<in> M" by auto |
196 |
interpret ring_of_sets \<Omega> M |
|
197 |
proof (rule ring_of_setsI) |
|
198 |
show \<Omega>: "M \<subseteq> Pow \<Omega>" "{} \<in> M" |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
199 |
using `?Un` by auto |
47694 | 200 |
fix a b assume a: "a \<in> M" and b: "b \<in> M" |
201 |
then show "a \<union> b \<in> M" using `?Un` by auto |
|
202 |
have "a - b = \<Omega> - ((\<Omega> - a) \<union> b)" |
|
203 |
using \<Omega> a b by auto |
|
204 |
then show "a - b \<in> M" |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
205 |
using a b `?Un` by auto |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
206 |
qed |
47762 | 207 |
show "algebra \<Omega> M" proof qed fact |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
208 |
qed |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
209 |
|
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
210 |
lemma algebra_iff_Int: |
47694 | 211 |
"algebra \<Omega> M \<longleftrightarrow> |
212 |
M \<subseteq> Pow \<Omega> & {} \<in> M & |
|
213 |
(\<forall>a \<in> M. \<Omega> - a \<in> M) & |
|
214 |
(\<forall>a \<in> M. \<forall> b \<in> M. a \<inter> b \<in> M)" (is "_ \<longleftrightarrow> ?Int") |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
215 |
proof |
47694 | 216 |
assume "algebra \<Omega> M" |
217 |
then interpret algebra \<Omega> M . |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
218 |
show ?Int using sets_into_space by auto |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
219 |
next |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
220 |
assume ?Int |
47694 | 221 |
show "algebra \<Omega> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
222 |
proof (unfold algebra_iff_Un, intro conjI ballI) |
47694 | 223 |
show \<Omega>: "M \<subseteq> Pow \<Omega>" "{} \<in> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
224 |
using `?Int` by auto |
47694 | 225 |
from `?Int` show "\<And>a. a \<in> M \<Longrightarrow> \<Omega> - a \<in> M" by auto |
226 |
fix a b assume M: "a \<in> M" "b \<in> M" |
|
227 |
hence "a \<union> b = \<Omega> - ((\<Omega> - a) \<inter> (\<Omega> - b))" |
|
228 |
using \<Omega> by blast |
|
229 |
also have "... \<in> M" |
|
230 |
using M `?Int` by auto |
|
231 |
finally show "a \<union> b \<in> M" . |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
232 |
qed |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
233 |
qed |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
234 |
|
42867 | 235 |
lemma (in algebra) sets_Collect_neg: |
47694 | 236 |
assumes "{x\<in>\<Omega>. P x} \<in> M" |
237 |
shows "{x\<in>\<Omega>. \<not> P x} \<in> M" |
|
42867 | 238 |
proof - |
47694 | 239 |
have "{x\<in>\<Omega>. \<not> P x} = \<Omega> - {x\<in>\<Omega>. P x}" by auto |
42867 | 240 |
with assms show ?thesis by auto |
241 |
qed |
|
242 |
||
243 |
lemma (in algebra) sets_Collect_imp: |
|
47694 | 244 |
"{x\<in>\<Omega>. P x} \<in> M \<Longrightarrow> {x\<in>\<Omega>. Q x} \<in> M \<Longrightarrow> {x\<in>\<Omega>. Q x \<longrightarrow> P x} \<in> M" |
42867 | 245 |
unfolding imp_conv_disj by (intro sets_Collect_disj sets_Collect_neg) |
246 |
||
247 |
lemma (in algebra) sets_Collect_const: |
|
47694 | 248 |
"{x\<in>\<Omega>. P} \<in> M" |
42867 | 249 |
by (cases P) auto |
250 |
||
42984 | 251 |
lemma algebra_single_set: |
47762 | 252 |
"X \<subseteq> S \<Longrightarrow> algebra S { {}, X, S - X, S }" |
253 |
by (auto simp: algebra_iff_Int) |
|
42984 | 254 |
|
50387 | 255 |
subsection {* Restricted algebras *} |
39092 | 256 |
|
257 |
abbreviation (in algebra) |
|
47694 | 258 |
"restricted_space A \<equiv> (op \<inter> A) ` M" |
39092 | 259 |
|
38656 | 260 |
lemma (in algebra) restricted_algebra: |
47694 | 261 |
assumes "A \<in> M" shows "algebra A (restricted_space A)" |
47762 | 262 |
using assms by (auto simp: algebra_iff_Int) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
263 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
264 |
subsection {* Sigma Algebras *} |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
265 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
266 |
locale sigma_algebra = algebra + |
47694 | 267 |
assumes countable_nat_UN [intro]: "\<And>A. range A \<subseteq> M \<Longrightarrow> (\<Union>i::nat. A i) \<in> M" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
268 |
|
42984 | 269 |
lemma (in algebra) is_sigma_algebra: |
47694 | 270 |
assumes "finite M" |
271 |
shows "sigma_algebra \<Omega> M" |
|
42984 | 272 |
proof |
47694 | 273 |
fix A :: "nat \<Rightarrow> 'a set" assume "range A \<subseteq> M" |
274 |
then have "(\<Union>i. A i) = (\<Union>s\<in>M \<inter> range A. s)" |
|
42984 | 275 |
by auto |
47694 | 276 |
also have "(\<Union>s\<in>M \<inter> range A. s) \<in> M" |
277 |
using `finite M` by auto |
|
278 |
finally show "(\<Union>i. A i) \<in> M" . |
|
42984 | 279 |
qed |
280 |
||
38656 | 281 |
lemma countable_UN_eq: |
282 |
fixes A :: "'i::countable \<Rightarrow> 'a set" |
|
47694 | 283 |
shows "(range A \<subseteq> M \<longrightarrow> (\<Union>i. A i) \<in> M) \<longleftrightarrow> |
284 |
(range (A \<circ> from_nat) \<subseteq> M \<longrightarrow> (\<Union>i. (A \<circ> from_nat) i) \<in> M)" |
|
38656 | 285 |
proof - |
286 |
let ?A' = "A \<circ> from_nat" |
|
287 |
have *: "(\<Union>i. ?A' i) = (\<Union>i. A i)" (is "?l = ?r") |
|
288 |
proof safe |
|
289 |
fix x i assume "x \<in> A i" thus "x \<in> ?l" |
|
290 |
by (auto intro!: exI[of _ "to_nat i"]) |
|
291 |
next |
|
292 |
fix x i assume "x \<in> ?A' i" thus "x \<in> ?r" |
|
293 |
by (auto intro!: exI[of _ "from_nat i"]) |
|
294 |
qed |
|
295 |
have **: "range ?A' = range A" |
|
40702 | 296 |
using surj_from_nat |
38656 | 297 |
by (auto simp: image_compose intro!: imageI) |
298 |
show ?thesis unfolding * ** .. |
|
299 |
qed |
|
300 |
||
50245
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
301 |
lemma (in sigma_algebra) countable_Union [intro]: |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
302 |
assumes "countable X" "X \<subseteq> M" shows "Union X \<in> M" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
303 |
proof cases |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
304 |
assume "X \<noteq> {}" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
305 |
hence "\<Union>X = (\<Union>n. from_nat_into X n)" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
306 |
using assms by (auto intro: from_nat_into) (metis from_nat_into_surj) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
307 |
also have "\<dots> \<in> M" using assms |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
308 |
by (auto intro!: countable_nat_UN) (metis `X \<noteq> {}` from_nat_into set_mp) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
309 |
finally show ?thesis . |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
310 |
qed simp |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
311 |
|
38656 | 312 |
lemma (in sigma_algebra) countable_UN[intro]: |
313 |
fixes A :: "'i::countable \<Rightarrow> 'a set" |
|
47694 | 314 |
assumes "A`X \<subseteq> M" |
315 |
shows "(\<Union>x\<in>X. A x) \<in> M" |
|
38656 | 316 |
proof - |
46731 | 317 |
let ?A = "\<lambda>i. if i \<in> X then A i else {}" |
47694 | 318 |
from assms have "range ?A \<subseteq> M" by auto |
38656 | 319 |
with countable_nat_UN[of "?A \<circ> from_nat"] countable_UN_eq[of ?A M] |
47694 | 320 |
have "(\<Union>x. ?A x) \<in> M" by auto |
38656 | 321 |
moreover have "(\<Union>x. ?A x) = (\<Union>x\<in>X. A x)" by (auto split: split_if_asm) |
322 |
ultimately show ?thesis by simp |
|
323 |
qed |
|
324 |
||
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
325 |
lemma (in sigma_algebra) countable_UN': |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
326 |
fixes A :: "'i \<Rightarrow> 'a set" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
327 |
assumes X: "countable X" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
328 |
assumes A: "A`X \<subseteq> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
329 |
shows "(\<Union>x\<in>X. A x) \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
330 |
proof - |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
331 |
have "(\<Union>x\<in>X. A x) = (\<Union>i\<in>to_nat_on X ` X. A (from_nat_into X i))" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
332 |
using X by auto |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
333 |
also have "\<dots> \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
334 |
using A X |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
335 |
by (intro countable_UN) auto |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
336 |
finally show ?thesis . |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
337 |
qed |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
338 |
|
33533
40b44cb20c8c
New theory Probability/Borel.thy, and some associated lemmas
paulson
parents:
33271
diff
changeset
|
339 |
lemma (in sigma_algebra) countable_INT [intro]: |
38656 | 340 |
fixes A :: "'i::countable \<Rightarrow> 'a set" |
47694 | 341 |
assumes A: "A`X \<subseteq> M" "X \<noteq> {}" |
342 |
shows "(\<Inter>i\<in>X. A i) \<in> M" |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
343 |
proof - |
47694 | 344 |
from A have "\<forall>i\<in>X. A i \<in> M" by fast |
345 |
hence "\<Omega> - (\<Union>i\<in>X. \<Omega> - A i) \<in> M" by blast |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
346 |
moreover |
47694 | 347 |
have "(\<Inter>i\<in>X. A i) = \<Omega> - (\<Union>i\<in>X. \<Omega> - A i)" using space_closed A |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
348 |
by blast |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
349 |
ultimately show ?thesis by metis |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
350 |
qed |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
351 |
|
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
352 |
lemma (in sigma_algebra) countable_INT': |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
353 |
fixes A :: "'i \<Rightarrow> 'a set" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
354 |
assumes X: "countable X" "X \<noteq> {}" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
355 |
assumes A: "A`X \<subseteq> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
356 |
shows "(\<Inter>x\<in>X. A x) \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
357 |
proof - |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
358 |
have "(\<Inter>x\<in>X. A x) = (\<Inter>i\<in>to_nat_on X ` X. A (from_nat_into X i))" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
359 |
using X by auto |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
360 |
also have "\<dots> \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
361 |
using A X |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
362 |
by (intro countable_INT) auto |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
363 |
finally show ?thesis . |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
364 |
qed |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
365 |
|
47694 | 366 |
lemma ring_of_sets_Pow: "ring_of_sets sp (Pow sp)" |
47762 | 367 |
by (auto simp: ring_of_sets_iff) |
42145 | 368 |
|
47694 | 369 |
lemma algebra_Pow: "algebra sp (Pow sp)" |
47762 | 370 |
by (auto simp: algebra_iff_Un) |
38656 | 371 |
|
372 |
lemma sigma_algebra_iff: |
|
47694 | 373 |
"sigma_algebra \<Omega> M \<longleftrightarrow> |
374 |
algebra \<Omega> M \<and> (\<forall>A. range A \<subseteq> M \<longrightarrow> (\<Union>i::nat. A i) \<in> M)" |
|
38656 | 375 |
by (simp add: sigma_algebra_def sigma_algebra_axioms_def) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
376 |
|
47762 | 377 |
lemma sigma_algebra_Pow: "sigma_algebra sp (Pow sp)" |
378 |
by (auto simp: sigma_algebra_iff algebra_iff_Int) |
|
379 |
||
42867 | 380 |
lemma (in sigma_algebra) sets_Collect_countable_All: |
47694 | 381 |
assumes "\<And>i. {x\<in>\<Omega>. P i x} \<in> M" |
382 |
shows "{x\<in>\<Omega>. \<forall>i::'i::countable. P i x} \<in> M" |
|
42867 | 383 |
proof - |
47694 | 384 |
have "{x\<in>\<Omega>. \<forall>i::'i::countable. P i x} = (\<Inter>i. {x\<in>\<Omega>. P i x})" by auto |
42867 | 385 |
with assms show ?thesis by auto |
386 |
qed |
|
387 |
||
388 |
lemma (in sigma_algebra) sets_Collect_countable_Ex: |
|
47694 | 389 |
assumes "\<And>i. {x\<in>\<Omega>. P i x} \<in> M" |
390 |
shows "{x\<in>\<Omega>. \<exists>i::'i::countable. P i x} \<in> M" |
|
42867 | 391 |
proof - |
47694 | 392 |
have "{x\<in>\<Omega>. \<exists>i::'i::countable. P i x} = (\<Union>i. {x\<in>\<Omega>. P i x})" by auto |
42867 | 393 |
with assms show ?thesis by auto |
394 |
qed |
|
395 |
||
50526
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
396 |
lemma (in sigma_algebra) sets_Collect_countable_Ex': |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
397 |
assumes "\<And>i. {x\<in>\<Omega>. P i x} \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
398 |
assumes "countable I" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
399 |
shows "{x\<in>\<Omega>. \<exists>i\<in>I. P i x} \<in> M" |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
400 |
proof - |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
401 |
have "{x\<in>\<Omega>. \<exists>i\<in>I. P i x} = (\<Union>i\<in>I. {x\<in>\<Omega>. P i x})" by auto |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
402 |
with assms show ?thesis |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
403 |
by (auto intro!: countable_UN') |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
404 |
qed |
899c9c4e4a4c
Remove the indexed basis from the definition of euclidean spaces and only use the set of Basis vectors
hoelzl
parents:
50387
diff
changeset
|
405 |
|
42867 | 406 |
lemmas (in sigma_algebra) sets_Collect = |
407 |
sets_Collect_imp sets_Collect_disj sets_Collect_conj sets_Collect_neg sets_Collect_const |
|
408 |
sets_Collect_countable_All sets_Collect_countable_Ex sets_Collect_countable_All |
|
409 |
||
47694 | 410 |
lemma (in sigma_algebra) sets_Collect_countable_Ball: |
411 |
assumes "\<And>i. {x\<in>\<Omega>. P i x} \<in> M" |
|
412 |
shows "{x\<in>\<Omega>. \<forall>i::'i::countable\<in>X. P i x} \<in> M" |
|
413 |
unfolding Ball_def by (intro sets_Collect assms) |
|
414 |
||
415 |
lemma (in sigma_algebra) sets_Collect_countable_Bex: |
|
416 |
assumes "\<And>i. {x\<in>\<Omega>. P i x} \<in> M" |
|
417 |
shows "{x\<in>\<Omega>. \<exists>i::'i::countable\<in>X. P i x} \<in> M" |
|
418 |
unfolding Bex_def by (intro sets_Collect assms) |
|
419 |
||
42984 | 420 |
lemma sigma_algebra_single_set: |
421 |
assumes "X \<subseteq> S" |
|
47694 | 422 |
shows "sigma_algebra S { {}, X, S - X, S }" |
42984 | 423 |
using algebra.is_sigma_algebra[OF algebra_single_set[OF `X \<subseteq> S`]] by simp |
424 |
||
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
425 |
subsection {* Binary Unions *} |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
426 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
427 |
definition binary :: "'a \<Rightarrow> 'a \<Rightarrow> nat \<Rightarrow> 'a" |
50252 | 428 |
where "binary a b = (\<lambda>x. b)(0 := a)" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
429 |
|
38656 | 430 |
lemma range_binary_eq: "range(binary a b) = {a,b}" |
431 |
by (auto simp add: binary_def) |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
432 |
|
38656 | 433 |
lemma Un_range_binary: "a \<union> b = (\<Union>i::nat. binary a b i)" |
44106 | 434 |
by (simp add: SUP_def range_binary_eq) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
435 |
|
38656 | 436 |
lemma Int_range_binary: "a \<inter> b = (\<Inter>i::nat. binary a b i)" |
44106 | 437 |
by (simp add: INF_def range_binary_eq) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
438 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
439 |
lemma sigma_algebra_iff2: |
47694 | 440 |
"sigma_algebra \<Omega> M \<longleftrightarrow> |
441 |
M \<subseteq> Pow \<Omega> \<and> |
|
442 |
{} \<in> M \<and> (\<forall>s \<in> M. \<Omega> - s \<in> M) \<and> |
|
443 |
(\<forall>A. range A \<subseteq> M \<longrightarrow> (\<Union>i::nat. A i) \<in> M)" |
|
38656 | 444 |
by (auto simp add: range_binary_eq sigma_algebra_def sigma_algebra_axioms_def |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
445 |
algebra_iff_Un Un_range_binary) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
446 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
447 |
subsection {* Initial Sigma Algebra *} |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
448 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
449 |
text {*Sigma algebras can naturally be created as the closure of any set of |
47694 | 450 |
M with regard to the properties just postulated. *} |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
451 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
452 |
inductive_set |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
453 |
sigma_sets :: "'a set \<Rightarrow> 'a set set \<Rightarrow> 'a set set" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
454 |
for sp :: "'a set" and A :: "'a set set" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
455 |
where |
47694 | 456 |
Basic[intro, simp]: "a \<in> A \<Longrightarrow> a \<in> sigma_sets sp A" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
457 |
| Empty: "{} \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
458 |
| Compl: "a \<in> sigma_sets sp A \<Longrightarrow> sp - a \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
459 |
| Union: "(\<And>i::nat. a i \<in> sigma_sets sp A) \<Longrightarrow> (\<Union>i. a i) \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
460 |
|
41543 | 461 |
lemma (in sigma_algebra) sigma_sets_subset: |
47694 | 462 |
assumes a: "a \<subseteq> M" |
463 |
shows "sigma_sets \<Omega> a \<subseteq> M" |
|
41543 | 464 |
proof |
465 |
fix x |
|
47694 | 466 |
assume "x \<in> sigma_sets \<Omega> a" |
467 |
from this show "x \<in> M" |
|
41543 | 468 |
by (induct rule: sigma_sets.induct, auto) (metis a subsetD) |
469 |
qed |
|
470 |
||
471 |
lemma sigma_sets_into_sp: "A \<subseteq> Pow sp \<Longrightarrow> x \<in> sigma_sets sp A \<Longrightarrow> x \<subseteq> sp" |
|
472 |
by (erule sigma_sets.induct, auto) |
|
473 |
||
474 |
lemma sigma_algebra_sigma_sets: |
|
47694 | 475 |
"a \<subseteq> Pow \<Omega> \<Longrightarrow> sigma_algebra \<Omega> (sigma_sets \<Omega> a)" |
41543 | 476 |
by (auto simp add: sigma_algebra_iff2 dest: sigma_sets_into_sp |
477 |
intro!: sigma_sets.Union sigma_sets.Empty sigma_sets.Compl) |
|
478 |
||
479 |
lemma sigma_sets_least_sigma_algebra: |
|
480 |
assumes "A \<subseteq> Pow S" |
|
47694 | 481 |
shows "sigma_sets S A = \<Inter>{B. A \<subseteq> B \<and> sigma_algebra S B}" |
41543 | 482 |
proof safe |
47694 | 483 |
fix B X assume "A \<subseteq> B" and sa: "sigma_algebra S B" |
41543 | 484 |
and X: "X \<in> sigma_sets S A" |
485 |
from sigma_algebra.sigma_sets_subset[OF sa, simplified, OF `A \<subseteq> B`] X |
|
486 |
show "X \<in> B" by auto |
|
487 |
next |
|
47694 | 488 |
fix X assume "X \<in> \<Inter>{B. A \<subseteq> B \<and> sigma_algebra S B}" |
489 |
then have [intro!]: "\<And>B. A \<subseteq> B \<Longrightarrow> sigma_algebra S B \<Longrightarrow> X \<in> B" |
|
41543 | 490 |
by simp |
47694 | 491 |
have "A \<subseteq> sigma_sets S A" using assms by auto |
492 |
moreover have "sigma_algebra S (sigma_sets S A)" |
|
41543 | 493 |
using assms by (intro sigma_algebra_sigma_sets[of A]) auto |
494 |
ultimately show "X \<in> sigma_sets S A" by auto |
|
495 |
qed |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
496 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
497 |
lemma sigma_sets_top: "sp \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
498 |
by (metis Diff_empty sigma_sets.Compl sigma_sets.Empty) |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
499 |
|
38656 | 500 |
lemma sigma_sets_Un: |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
501 |
"a \<in> sigma_sets sp A \<Longrightarrow> b \<in> sigma_sets sp A \<Longrightarrow> a \<union> b \<in> sigma_sets sp A" |
38656 | 502 |
apply (simp add: Un_range_binary range_binary_eq) |
40859 | 503 |
apply (rule Union, simp add: binary_def) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
504 |
done |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
505 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
506 |
lemma sigma_sets_Inter: |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
507 |
assumes Asb: "A \<subseteq> Pow sp" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
508 |
shows "(\<And>i::nat. a i \<in> sigma_sets sp A) \<Longrightarrow> (\<Inter>i. a i) \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
509 |
proof - |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
510 |
assume ai: "\<And>i::nat. a i \<in> sigma_sets sp A" |
38656 | 511 |
hence "\<And>i::nat. sp-(a i) \<in> sigma_sets sp A" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
512 |
by (rule sigma_sets.Compl) |
38656 | 513 |
hence "(\<Union>i. sp-(a i)) \<in> sigma_sets sp A" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
514 |
by (rule sigma_sets.Union) |
38656 | 515 |
hence "sp-(\<Union>i. sp-(a i)) \<in> sigma_sets sp A" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
516 |
by (rule sigma_sets.Compl) |
38656 | 517 |
also have "sp-(\<Union>i. sp-(a i)) = sp Int (\<Inter>i. a i)" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
518 |
by auto |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
519 |
also have "... = (\<Inter>i. a i)" using ai |
38656 | 520 |
by (blast dest: sigma_sets_into_sp [OF Asb]) |
521 |
finally show ?thesis . |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
522 |
qed |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
523 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
524 |
lemma sigma_sets_INTER: |
38656 | 525 |
assumes Asb: "A \<subseteq> Pow sp" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
526 |
and ai: "\<And>i::nat. i \<in> S \<Longrightarrow> a i \<in> sigma_sets sp A" and non: "S \<noteq> {}" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
527 |
shows "(\<Inter>i\<in>S. a i) \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
528 |
proof - |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
529 |
from ai have "\<And>i. (if i\<in>S then a i else sp) \<in> sigma_sets sp A" |
47694 | 530 |
by (simp add: sigma_sets.intros(2-) sigma_sets_top) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
531 |
hence "(\<Inter>i. (if i\<in>S then a i else sp)) \<in> sigma_sets sp A" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
532 |
by (rule sigma_sets_Inter [OF Asb]) |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
533 |
also have "(\<Inter>i. (if i\<in>S then a i else sp)) = (\<Inter>i\<in>S. a i)" |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
534 |
by auto (metis ai non sigma_sets_into_sp subset_empty subset_iff Asb)+ |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
535 |
finally show ?thesis . |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
536 |
qed |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
537 |
|
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
538 |
lemma (in sigma_algebra) sigma_sets_eq: |
47694 | 539 |
"sigma_sets \<Omega> M = M" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
540 |
proof |
47694 | 541 |
show "M \<subseteq> sigma_sets \<Omega> M" |
37032 | 542 |
by (metis Set.subsetI sigma_sets.Basic) |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
543 |
next |
47694 | 544 |
show "sigma_sets \<Omega> M \<subseteq> M" |
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
545 |
by (metis sigma_sets_subset subset_refl) |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
546 |
qed |
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
547 |
|
42981 | 548 |
lemma sigma_sets_eqI: |
549 |
assumes A: "\<And>a. a \<in> A \<Longrightarrow> a \<in> sigma_sets M B" |
|
550 |
assumes B: "\<And>b. b \<in> B \<Longrightarrow> b \<in> sigma_sets M A" |
|
551 |
shows "sigma_sets M A = sigma_sets M B" |
|
552 |
proof (intro set_eqI iffI) |
|
553 |
fix a assume "a \<in> sigma_sets M A" |
|
554 |
from this A show "a \<in> sigma_sets M B" |
|
47694 | 555 |
by induct (auto intro!: sigma_sets.intros(2-) del: sigma_sets.Basic) |
42981 | 556 |
next |
557 |
fix b assume "b \<in> sigma_sets M B" |
|
558 |
from this B show "b \<in> sigma_sets M A" |
|
47694 | 559 |
by induct (auto intro!: sigma_sets.intros(2-) del: sigma_sets.Basic) |
42981 | 560 |
qed |
561 |
||
42984 | 562 |
lemma sigma_sets_subseteq: assumes "A \<subseteq> B" shows "sigma_sets X A \<subseteq> sigma_sets X B" |
563 |
proof |
|
564 |
fix x assume "x \<in> sigma_sets X A" then show "x \<in> sigma_sets X B" |
|
47694 | 565 |
by induct (insert `A \<subseteq> B`, auto intro: sigma_sets.intros(2-)) |
42984 | 566 |
qed |
567 |
||
47762 | 568 |
lemma sigma_sets_mono: assumes "A \<subseteq> sigma_sets X B" shows "sigma_sets X A \<subseteq> sigma_sets X B" |
569 |
proof |
|
570 |
fix x assume "x \<in> sigma_sets X A" then show "x \<in> sigma_sets X B" |
|
571 |
by induct (insert `A \<subseteq> sigma_sets X B`, auto intro: sigma_sets.intros(2-)) |
|
572 |
qed |
|
573 |
||
574 |
lemma sigma_sets_mono': assumes "A \<subseteq> B" shows "sigma_sets X A \<subseteq> sigma_sets X B" |
|
575 |
proof |
|
576 |
fix x assume "x \<in> sigma_sets X A" then show "x \<in> sigma_sets X B" |
|
577 |
by induct (insert `A \<subseteq> B`, auto intro: sigma_sets.intros(2-)) |
|
578 |
qed |
|
579 |
||
580 |
lemma sigma_sets_superset_generator: "A \<subseteq> sigma_sets X A" |
|
581 |
by (auto intro: sigma_sets.Basic) |
|
582 |
||
38656 | 583 |
lemma (in sigma_algebra) restriction_in_sets: |
584 |
fixes A :: "nat \<Rightarrow> 'a set" |
|
47694 | 585 |
assumes "S \<in> M" |
586 |
and *: "range A \<subseteq> (\<lambda>A. S \<inter> A) ` M" (is "_ \<subseteq> ?r") |
|
587 |
shows "range A \<subseteq> M" "(\<Union>i. A i) \<in> (\<lambda>A. S \<inter> A) ` M" |
|
38656 | 588 |
proof - |
589 |
{ fix i have "A i \<in> ?r" using * by auto |
|
47694 | 590 |
hence "\<exists>B. A i = B \<inter> S \<and> B \<in> M" by auto |
591 |
hence "A i \<subseteq> S" "A i \<in> M" using `S \<in> M` by auto } |
|
592 |
thus "range A \<subseteq> M" "(\<Union>i. A i) \<in> (\<lambda>A. S \<inter> A) ` M" |
|
38656 | 593 |
by (auto intro!: image_eqI[of _ _ "(\<Union>i. A i)"]) |
594 |
qed |
|
595 |
||
596 |
lemma (in sigma_algebra) restricted_sigma_algebra: |
|
47694 | 597 |
assumes "S \<in> M" |
598 |
shows "sigma_algebra S (restricted_space S)" |
|
38656 | 599 |
unfolding sigma_algebra_def sigma_algebra_axioms_def |
600 |
proof safe |
|
47694 | 601 |
show "algebra S (restricted_space S)" using restricted_algebra[OF assms] . |
38656 | 602 |
next |
47694 | 603 |
fix A :: "nat \<Rightarrow> 'a set" assume "range A \<subseteq> restricted_space S" |
38656 | 604 |
from restriction_in_sets[OF assms this[simplified]] |
47694 | 605 |
show "(\<Union>i. A i) \<in> restricted_space S" by simp |
38656 | 606 |
qed |
607 |
||
40859 | 608 |
lemma sigma_sets_Int: |
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
609 |
assumes "A \<in> sigma_sets sp st" "A \<subseteq> sp" |
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
610 |
shows "op \<inter> A ` sigma_sets sp st = sigma_sets A (op \<inter> A ` st)" |
40859 | 611 |
proof (intro equalityI subsetI) |
612 |
fix x assume "x \<in> op \<inter> A ` sigma_sets sp st" |
|
613 |
then obtain y where "y \<in> sigma_sets sp st" "x = y \<inter> A" by auto |
|
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
614 |
then have "x \<in> sigma_sets (A \<inter> sp) (op \<inter> A ` st)" |
40859 | 615 |
proof (induct arbitrary: x) |
616 |
case (Compl a) |
|
617 |
then show ?case |
|
618 |
by (force intro!: sigma_sets.Compl simp: Diff_Int_distrib ac_simps) |
|
619 |
next |
|
620 |
case (Union a) |
|
621 |
then show ?case |
|
622 |
by (auto intro!: sigma_sets.Union |
|
623 |
simp add: UN_extend_simps simp del: UN_simps) |
|
47694 | 624 |
qed (auto intro!: sigma_sets.intros(2-)) |
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
625 |
then show "x \<in> sigma_sets A (op \<inter> A ` st)" |
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
626 |
using `A \<subseteq> sp` by (simp add: Int_absorb2) |
40859 | 627 |
next |
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
628 |
fix x assume "x \<in> sigma_sets A (op \<inter> A ` st)" |
40859 | 629 |
then show "x \<in> op \<inter> A ` sigma_sets sp st" |
630 |
proof induct |
|
631 |
case (Compl a) |
|
632 |
then obtain x where "a = A \<inter> x" "x \<in> sigma_sets sp st" by auto |
|
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
633 |
then show ?case using `A \<subseteq> sp` |
40859 | 634 |
by (force simp add: image_iff intro!: bexI[of _ "sp - x"] sigma_sets.Compl) |
635 |
next |
|
636 |
case (Union a) |
|
637 |
then have "\<forall>i. \<exists>x. x \<in> sigma_sets sp st \<and> a i = A \<inter> x" |
|
638 |
by (auto simp: image_iff Bex_def) |
|
639 |
from choice[OF this] guess f .. |
|
640 |
then show ?case |
|
641 |
by (auto intro!: bexI[of _ "(\<Union>x. f x)"] sigma_sets.Union |
|
642 |
simp add: image_iff) |
|
47694 | 643 |
qed (auto intro!: sigma_sets.intros(2-)) |
40859 | 644 |
qed |
645 |
||
47694 | 646 |
lemma sigma_sets_empty_eq: "sigma_sets A {} = {{}, A}" |
40859 | 647 |
proof (intro set_eqI iffI) |
47694 | 648 |
fix a assume "a \<in> sigma_sets A {}" then show "a \<in> {{}, A}" |
649 |
by induct blast+ |
|
650 |
qed (auto intro: sigma_sets.Empty sigma_sets_top) |
|
651 |
||
652 |
lemma sigma_sets_single[simp]: "sigma_sets A {A} = {{}, A}" |
|
653 |
proof (intro set_eqI iffI) |
|
654 |
fix x assume "x \<in> sigma_sets A {A}" |
|
655 |
then show "x \<in> {{}, A}" |
|
656 |
by induct blast+ |
|
40859 | 657 |
next |
47694 | 658 |
fix x assume "x \<in> {{}, A}" |
659 |
then show "x \<in> sigma_sets A {A}" |
|
40859 | 660 |
by (auto intro: sigma_sets.Empty sigma_sets_top) |
661 |
qed |
|
662 |
||
42987 | 663 |
lemma sigma_sets_sigma_sets_eq: |
664 |
"M \<subseteq> Pow S \<Longrightarrow> sigma_sets S (sigma_sets S M) = sigma_sets S M" |
|
47694 | 665 |
by (rule sigma_algebra.sigma_sets_eq[OF sigma_algebra_sigma_sets, of M S]) auto |
42987 | 666 |
|
42984 | 667 |
lemma sigma_sets_singleton: |
668 |
assumes "X \<subseteq> S" |
|
669 |
shows "sigma_sets S { X } = { {}, X, S - X, S }" |
|
670 |
proof - |
|
47694 | 671 |
interpret sigma_algebra S "{ {}, X, S - X, S }" |
42984 | 672 |
by (rule sigma_algebra_single_set) fact |
673 |
have "sigma_sets S { X } \<subseteq> sigma_sets S { {}, X, S - X, S }" |
|
674 |
by (rule sigma_sets_subseteq) simp |
|
675 |
moreover have "\<dots> = { {}, X, S - X, S }" |
|
47694 | 676 |
using sigma_sets_eq by simp |
42984 | 677 |
moreover |
678 |
{ fix A assume "A \<in> { {}, X, S - X, S }" |
|
679 |
then have "A \<in> sigma_sets S { X }" |
|
47694 | 680 |
by (auto intro: sigma_sets.intros(2-) sigma_sets_top) } |
42984 | 681 |
ultimately have "sigma_sets S { X } = sigma_sets S { {}, X, S - X, S }" |
682 |
by (intro antisym) auto |
|
47694 | 683 |
with sigma_sets_eq show ?thesis by simp |
42984 | 684 |
qed |
685 |
||
42863 | 686 |
lemma restricted_sigma: |
47694 | 687 |
assumes S: "S \<in> sigma_sets \<Omega> M" and M: "M \<subseteq> Pow \<Omega>" |
688 |
shows "algebra.restricted_space (sigma_sets \<Omega> M) S = |
|
689 |
sigma_sets S (algebra.restricted_space M S)" |
|
42863 | 690 |
proof - |
691 |
from S sigma_sets_into_sp[OF M] |
|
47694 | 692 |
have "S \<in> sigma_sets \<Omega> M" "S \<subseteq> \<Omega>" by auto |
42863 | 693 |
from sigma_sets_Int[OF this] |
47694 | 694 |
show ?thesis by simp |
42863 | 695 |
qed |
696 |
||
42987 | 697 |
lemma sigma_sets_vimage_commute: |
47694 | 698 |
assumes X: "X \<in> \<Omega> \<rightarrow> \<Omega>'" |
699 |
shows "{X -` A \<inter> \<Omega> |A. A \<in> sigma_sets \<Omega>' M'} |
|
700 |
= sigma_sets \<Omega> {X -` A \<inter> \<Omega> |A. A \<in> M'}" (is "?L = ?R") |
|
42987 | 701 |
proof |
702 |
show "?L \<subseteq> ?R" |
|
703 |
proof clarify |
|
47694 | 704 |
fix A assume "A \<in> sigma_sets \<Omega>' M'" |
705 |
then show "X -` A \<inter> \<Omega> \<in> ?R" |
|
42987 | 706 |
proof induct |
707 |
case Empty then show ?case |
|
708 |
by (auto intro!: sigma_sets.Empty) |
|
709 |
next |
|
710 |
case (Compl B) |
|
47694 | 711 |
have [simp]: "X -` (\<Omega>' - B) \<inter> \<Omega> = \<Omega> - (X -` B \<inter> \<Omega>)" |
42987 | 712 |
by (auto simp add: funcset_mem [OF X]) |
713 |
with Compl show ?case |
|
714 |
by (auto intro!: sigma_sets.Compl) |
|
715 |
next |
|
716 |
case (Union F) |
|
717 |
then show ?case |
|
718 |
by (auto simp add: vimage_UN UN_extend_simps(4) simp del: UN_simps |
|
719 |
intro!: sigma_sets.Union) |
|
47694 | 720 |
qed auto |
42987 | 721 |
qed |
722 |
show "?R \<subseteq> ?L" |
|
723 |
proof clarify |
|
724 |
fix A assume "A \<in> ?R" |
|
47694 | 725 |
then show "\<exists>B. A = X -` B \<inter> \<Omega> \<and> B \<in> sigma_sets \<Omega>' M'" |
42987 | 726 |
proof induct |
727 |
case (Basic B) then show ?case by auto |
|
728 |
next |
|
729 |
case Empty then show ?case |
|
47694 | 730 |
by (auto intro!: sigma_sets.Empty exI[of _ "{}"]) |
42987 | 731 |
next |
732 |
case (Compl B) |
|
47694 | 733 |
then obtain A where A: "B = X -` A \<inter> \<Omega>" "A \<in> sigma_sets \<Omega>' M'" by auto |
734 |
then have [simp]: "\<Omega> - B = X -` (\<Omega>' - A) \<inter> \<Omega>" |
|
42987 | 735 |
by (auto simp add: funcset_mem [OF X]) |
736 |
with A(2) show ?case |
|
47694 | 737 |
by (auto intro: sigma_sets.Compl) |
42987 | 738 |
next |
739 |
case (Union F) |
|
47694 | 740 |
then have "\<forall>i. \<exists>B. F i = X -` B \<inter> \<Omega> \<and> B \<in> sigma_sets \<Omega>' M'" by auto |
42987 | 741 |
from choice[OF this] guess A .. note A = this |
742 |
with A show ?case |
|
47694 | 743 |
by (auto simp: vimage_UN[symmetric] intro: sigma_sets.Union) |
42987 | 744 |
qed |
745 |
qed |
|
746 |
qed |
|
747 |
||
50387 | 748 |
subsection "Disjoint families" |
38656 | 749 |
|
750 |
definition |
|
751 |
disjoint_family_on where |
|
752 |
"disjoint_family_on A S \<longleftrightarrow> (\<forall>m\<in>S. \<forall>n\<in>S. m \<noteq> n \<longrightarrow> A m \<inter> A n = {})" |
|
753 |
||
754 |
abbreviation |
|
755 |
"disjoint_family A \<equiv> disjoint_family_on A UNIV" |
|
756 |
||
757 |
lemma range_subsetD: "range f \<subseteq> B \<Longrightarrow> f i \<in> B" |
|
758 |
by blast |
|
759 |
||
760 |
lemma Int_Diff_disjoint: "A \<inter> B \<inter> (A - B) = {}" |
|
761 |
by blast |
|
762 |
||
763 |
lemma Int_Diff_Un: "A \<inter> B \<union> (A - B) = A" |
|
764 |
by blast |
|
765 |
||
766 |
lemma disjoint_family_subset: |
|
767 |
"disjoint_family A \<Longrightarrow> (!!x. B x \<subseteq> A x) \<Longrightarrow> disjoint_family B" |
|
768 |
by (force simp add: disjoint_family_on_def) |
|
769 |
||
40859 | 770 |
lemma disjoint_family_on_bisimulation: |
771 |
assumes "disjoint_family_on f S" |
|
772 |
and "\<And>n m. n \<in> S \<Longrightarrow> m \<in> S \<Longrightarrow> n \<noteq> m \<Longrightarrow> f n \<inter> f m = {} \<Longrightarrow> g n \<inter> g m = {}" |
|
773 |
shows "disjoint_family_on g S" |
|
774 |
using assms unfolding disjoint_family_on_def by auto |
|
775 |
||
38656 | 776 |
lemma disjoint_family_on_mono: |
777 |
"A \<subseteq> B \<Longrightarrow> disjoint_family_on f B \<Longrightarrow> disjoint_family_on f A" |
|
778 |
unfolding disjoint_family_on_def by auto |
|
779 |
||
780 |
lemma disjoint_family_Suc: |
|
781 |
assumes Suc: "!!n. A n \<subseteq> A (Suc n)" |
|
782 |
shows "disjoint_family (\<lambda>i. A (Suc i) - A i)" |
|
783 |
proof - |
|
784 |
{ |
|
785 |
fix m |
|
786 |
have "!!n. A n \<subseteq> A (m+n)" |
|
787 |
proof (induct m) |
|
788 |
case 0 show ?case by simp |
|
789 |
next |
|
790 |
case (Suc m) thus ?case |
|
791 |
by (metis Suc_eq_plus1 assms nat_add_commute nat_add_left_commute subset_trans) |
|
792 |
qed |
|
793 |
} |
|
794 |
hence "!!m n. m < n \<Longrightarrow> A m \<subseteq> A n" |
|
795 |
by (metis add_commute le_add_diff_inverse nat_less_le) |
|
796 |
thus ?thesis |
|
797 |
by (auto simp add: disjoint_family_on_def) |
|
798 |
(metis insert_absorb insert_subset le_SucE le_antisym not_leE) |
|
799 |
qed |
|
800 |
||
39092 | 801 |
lemma setsum_indicator_disjoint_family: |
802 |
fixes f :: "'d \<Rightarrow> 'e::semiring_1" |
|
803 |
assumes d: "disjoint_family_on A P" and "x \<in> A j" and "finite P" and "j \<in> P" |
|
804 |
shows "(\<Sum>i\<in>P. f i * indicator (A i) x) = f j" |
|
805 |
proof - |
|
806 |
have "P \<inter> {i. x \<in> A i} = {j}" |
|
807 |
using d `x \<in> A j` `j \<in> P` unfolding disjoint_family_on_def |
|
808 |
by auto |
|
809 |
thus ?thesis |
|
810 |
unfolding indicator_def |
|
811 |
by (simp add: if_distrib setsum_cases[OF `finite P`]) |
|
812 |
qed |
|
813 |
||
38656 | 814 |
definition disjointed :: "(nat \<Rightarrow> 'a set) \<Rightarrow> nat \<Rightarrow> 'a set " |
815 |
where "disjointed A n = A n - (\<Union>i\<in>{0..<n}. A i)" |
|
816 |
||
817 |
lemma finite_UN_disjointed_eq: "(\<Union>i\<in>{0..<n}. disjointed A i) = (\<Union>i\<in>{0..<n}. A i)" |
|
818 |
proof (induct n) |
|
819 |
case 0 show ?case by simp |
|
820 |
next |
|
821 |
case (Suc n) |
|
822 |
thus ?case by (simp add: atLeastLessThanSuc disjointed_def) |
|
823 |
qed |
|
824 |
||
825 |
lemma UN_disjointed_eq: "(\<Union>i. disjointed A i) = (\<Union>i. A i)" |
|
826 |
apply (rule UN_finite2_eq [where k=0]) |
|
827 |
apply (simp add: finite_UN_disjointed_eq) |
|
828 |
done |
|
829 |
||
830 |
lemma less_disjoint_disjointed: "m<n \<Longrightarrow> disjointed A m \<inter> disjointed A n = {}" |
|
831 |
by (auto simp add: disjointed_def) |
|
832 |
||
833 |
lemma disjoint_family_disjointed: "disjoint_family (disjointed A)" |
|
834 |
by (simp add: disjoint_family_on_def) |
|
835 |
(metis neq_iff Int_commute less_disjoint_disjointed) |
|
836 |
||
837 |
lemma disjointed_subset: "disjointed A n \<subseteq> A n" |
|
838 |
by (auto simp add: disjointed_def) |
|
839 |
||
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
840 |
lemma (in ring_of_sets) UNION_in_sets: |
38656 | 841 |
fixes A:: "nat \<Rightarrow> 'a set" |
47694 | 842 |
assumes A: "range A \<subseteq> M" |
843 |
shows "(\<Union>i\<in>{0..<n}. A i) \<in> M" |
|
38656 | 844 |
proof (induct n) |
845 |
case 0 show ?case by simp |
|
846 |
next |
|
847 |
case (Suc n) |
|
848 |
thus ?case |
|
849 |
by (simp add: atLeastLessThanSuc) (metis A Un UNIV_I image_subset_iff) |
|
850 |
qed |
|
851 |
||
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
852 |
lemma (in ring_of_sets) range_disjointed_sets: |
47694 | 853 |
assumes A: "range A \<subseteq> M" |
854 |
shows "range (disjointed A) \<subseteq> M" |
|
38656 | 855 |
proof (auto simp add: disjointed_def) |
856 |
fix n |
|
47694 | 857 |
show "A n - (\<Union>i\<in>{0..<n}. A i) \<in> M" using UNION_in_sets |
38656 | 858 |
by (metis A Diff UNIV_I image_subset_iff) |
859 |
qed |
|
860 |
||
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
861 |
lemma (in algebra) range_disjointed_sets': |
47694 | 862 |
"range A \<subseteq> M \<Longrightarrow> range (disjointed A) \<subseteq> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
863 |
using range_disjointed_sets . |
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
864 |
|
42145 | 865 |
lemma disjointed_0[simp]: "disjointed A 0 = A 0" |
866 |
by (simp add: disjointed_def) |
|
867 |
||
868 |
lemma incseq_Un: |
|
869 |
"incseq A \<Longrightarrow> (\<Union>i\<le>n. A i) = A n" |
|
870 |
unfolding incseq_def by auto |
|
871 |
||
872 |
lemma disjointed_incseq: |
|
873 |
"incseq A \<Longrightarrow> disjointed A (Suc n) = A (Suc n) - A n" |
|
874 |
using incseq_Un[of A] |
|
875 |
by (simp add: disjointed_def atLeastLessThanSuc_atLeastAtMost atLeast0AtMost) |
|
876 |
||
38656 | 877 |
lemma sigma_algebra_disjoint_iff: |
47694 | 878 |
"sigma_algebra \<Omega> M \<longleftrightarrow> algebra \<Omega> M \<and> |
879 |
(\<forall>A. range A \<subseteq> M \<longrightarrow> disjoint_family A \<longrightarrow> (\<Union>i::nat. A i) \<in> M)" |
|
38656 | 880 |
proof (auto simp add: sigma_algebra_iff) |
881 |
fix A :: "nat \<Rightarrow> 'a set" |
|
47694 | 882 |
assume M: "algebra \<Omega> M" |
883 |
and A: "range A \<subseteq> M" |
|
884 |
and UnA: "\<forall>A. range A \<subseteq> M \<longrightarrow> disjoint_family A \<longrightarrow> (\<Union>i::nat. A i) \<in> M" |
|
885 |
hence "range (disjointed A) \<subseteq> M \<longrightarrow> |
|
38656 | 886 |
disjoint_family (disjointed A) \<longrightarrow> |
47694 | 887 |
(\<Union>i. disjointed A i) \<in> M" by blast |
888 |
hence "(\<Union>i. disjointed A i) \<in> M" |
|
889 |
by (simp add: algebra.range_disjointed_sets'[of \<Omega>] M A disjoint_family_disjointed) |
|
890 |
thus "(\<Union>i::nat. A i) \<in> M" by (simp add: UN_disjointed_eq) |
|
891 |
qed |
|
892 |
||
47762 | 893 |
lemma disjoint_family_on_disjoint_image: |
894 |
"disjoint_family_on A I \<Longrightarrow> disjoint (A ` I)" |
|
895 |
unfolding disjoint_family_on_def disjoint_def by force |
|
896 |
||
897 |
lemma disjoint_image_disjoint_family_on: |
|
898 |
assumes d: "disjoint (A ` I)" and i: "inj_on A I" |
|
899 |
shows "disjoint_family_on A I" |
|
900 |
unfolding disjoint_family_on_def |
|
901 |
proof (intro ballI impI) |
|
902 |
fix n m assume nm: "m \<in> I" "n \<in> I" and "n \<noteq> m" |
|
903 |
with i[THEN inj_onD, of n m] show "A n \<inter> A m = {}" |
|
904 |
by (intro disjointD[OF d]) auto |
|
905 |
qed |
|
906 |
||
50387 | 907 |
subsection {* Ring generated by a semiring *} |
47762 | 908 |
|
909 |
definition (in semiring_of_sets) |
|
910 |
"generated_ring = { \<Union>C | C. C \<subseteq> M \<and> finite C \<and> disjoint C }" |
|
911 |
||
912 |
lemma (in semiring_of_sets) generated_ringE[elim?]: |
|
913 |
assumes "a \<in> generated_ring" |
|
914 |
obtains C where "finite C" "disjoint C" "C \<subseteq> M" "a = \<Union>C" |
|
915 |
using assms unfolding generated_ring_def by auto |
|
916 |
||
917 |
lemma (in semiring_of_sets) generated_ringI[intro?]: |
|
918 |
assumes "finite C" "disjoint C" "C \<subseteq> M" "a = \<Union>C" |
|
919 |
shows "a \<in> generated_ring" |
|
920 |
using assms unfolding generated_ring_def by auto |
|
921 |
||
922 |
lemma (in semiring_of_sets) generated_ringI_Basic: |
|
923 |
"A \<in> M \<Longrightarrow> A \<in> generated_ring" |
|
924 |
by (rule generated_ringI[of "{A}"]) (auto simp: disjoint_def) |
|
925 |
||
926 |
lemma (in semiring_of_sets) generated_ring_disjoint_Un[intro]: |
|
927 |
assumes a: "a \<in> generated_ring" and b: "b \<in> generated_ring" |
|
928 |
and "a \<inter> b = {}" |
|
929 |
shows "a \<union> b \<in> generated_ring" |
|
930 |
proof - |
|
931 |
from a guess Ca .. note Ca = this |
|
932 |
from b guess Cb .. note Cb = this |
|
933 |
show ?thesis |
|
934 |
proof |
|
935 |
show "disjoint (Ca \<union> Cb)" |
|
936 |
using `a \<inter> b = {}` Ca Cb by (auto intro!: disjoint_union) |
|
937 |
qed (insert Ca Cb, auto) |
|
938 |
qed |
|
939 |
||
940 |
lemma (in semiring_of_sets) generated_ring_empty: "{} \<in> generated_ring" |
|
941 |
by (auto simp: generated_ring_def disjoint_def) |
|
942 |
||
943 |
lemma (in semiring_of_sets) generated_ring_disjoint_Union: |
|
944 |
assumes "finite A" shows "A \<subseteq> generated_ring \<Longrightarrow> disjoint A \<Longrightarrow> \<Union>A \<in> generated_ring" |
|
945 |
using assms by (induct A) (auto simp: disjoint_def intro!: generated_ring_disjoint_Un generated_ring_empty) |
|
946 |
||
947 |
lemma (in semiring_of_sets) generated_ring_disjoint_UNION: |
|
948 |
"finite I \<Longrightarrow> disjoint (A ` I) \<Longrightarrow> (\<And>i. i \<in> I \<Longrightarrow> A i \<in> generated_ring) \<Longrightarrow> UNION I A \<in> generated_ring" |
|
949 |
unfolding SUP_def by (intro generated_ring_disjoint_Union) auto |
|
950 |
||
951 |
lemma (in semiring_of_sets) generated_ring_Int: |
|
952 |
assumes a: "a \<in> generated_ring" and b: "b \<in> generated_ring" |
|
953 |
shows "a \<inter> b \<in> generated_ring" |
|
954 |
proof - |
|
955 |
from a guess Ca .. note Ca = this |
|
956 |
from b guess Cb .. note Cb = this |
|
957 |
def C \<equiv> "(\<lambda>(a,b). a \<inter> b)` (Ca\<times>Cb)" |
|
958 |
show ?thesis |
|
959 |
proof |
|
960 |
show "disjoint C" |
|
961 |
proof (simp add: disjoint_def C_def, intro ballI impI) |
|
962 |
fix a1 b1 a2 b2 assume sets: "a1 \<in> Ca" "b1 \<in> Cb" "a2 \<in> Ca" "b2 \<in> Cb" |
|
963 |
assume "a1 \<inter> b1 \<noteq> a2 \<inter> b2" |
|
964 |
then have "a1 \<noteq> a2 \<or> b1 \<noteq> b2" by auto |
|
965 |
then show "(a1 \<inter> b1) \<inter> (a2 \<inter> b2) = {}" |
|
966 |
proof |
|
967 |
assume "a1 \<noteq> a2" |
|
968 |
with sets Ca have "a1 \<inter> a2 = {}" |
|
969 |
by (auto simp: disjoint_def) |
|
970 |
then show ?thesis by auto |
|
971 |
next |
|
972 |
assume "b1 \<noteq> b2" |
|
973 |
with sets Cb have "b1 \<inter> b2 = {}" |
|
974 |
by (auto simp: disjoint_def) |
|
975 |
then show ?thesis by auto |
|
976 |
qed |
|
977 |
qed |
|
978 |
qed (insert Ca Cb, auto simp: C_def) |
|
979 |
qed |
|
980 |
||
981 |
lemma (in semiring_of_sets) generated_ring_Inter: |
|
982 |
assumes "finite A" "A \<noteq> {}" shows "A \<subseteq> generated_ring \<Longrightarrow> \<Inter>A \<in> generated_ring" |
|
983 |
using assms by (induct A rule: finite_ne_induct) (auto intro: generated_ring_Int) |
|
984 |
||
985 |
lemma (in semiring_of_sets) generated_ring_INTER: |
|
986 |
"finite I \<Longrightarrow> I \<noteq> {} \<Longrightarrow> (\<And>i. i \<in> I \<Longrightarrow> A i \<in> generated_ring) \<Longrightarrow> INTER I A \<in> generated_ring" |
|
987 |
unfolding INF_def by (intro generated_ring_Inter) auto |
|
988 |
||
989 |
lemma (in semiring_of_sets) generating_ring: |
|
990 |
"ring_of_sets \<Omega> generated_ring" |
|
991 |
proof (rule ring_of_setsI) |
|
992 |
let ?R = generated_ring |
|
993 |
show "?R \<subseteq> Pow \<Omega>" |
|
994 |
using sets_into_space by (auto simp: generated_ring_def generated_ring_empty) |
|
995 |
show "{} \<in> ?R" by (rule generated_ring_empty) |
|
996 |
||
997 |
{ fix a assume a: "a \<in> ?R" then guess Ca .. note Ca = this |
|
998 |
fix b assume b: "b \<in> ?R" then guess Cb .. note Cb = this |
|
999 |
||
1000 |
show "a - b \<in> ?R" |
|
1001 |
proof cases |
|
1002 |
assume "Cb = {}" with Cb `a \<in> ?R` show ?thesis |
|
1003 |
by simp |
|
1004 |
next |
|
1005 |
assume "Cb \<noteq> {}" |
|
1006 |
with Ca Cb have "a - b = (\<Union>a'\<in>Ca. \<Inter>b'\<in>Cb. a' - b')" by auto |
|
1007 |
also have "\<dots> \<in> ?R" |
|
1008 |
proof (intro generated_ring_INTER generated_ring_disjoint_UNION) |
|
1009 |
fix a b assume "a \<in> Ca" "b \<in> Cb" |
|
1010 |
with Ca Cb Diff_cover[of a b] show "a - b \<in> ?R" |
|
1011 |
by (auto simp add: generated_ring_def) |
|
1012 |
next |
|
1013 |
show "disjoint ((\<lambda>a'. \<Inter>b'\<in>Cb. a' - b')`Ca)" |
|
1014 |
using Ca by (auto simp add: disjoint_def `Cb \<noteq> {}`) |
|
1015 |
next |
|
1016 |
show "finite Ca" "finite Cb" "Cb \<noteq> {}" by fact+ |
|
1017 |
qed |
|
1018 |
finally show "a - b \<in> ?R" . |
|
1019 |
qed } |
|
1020 |
note Diff = this |
|
1021 |
||
1022 |
fix a b assume sets: "a \<in> ?R" "b \<in> ?R" |
|
1023 |
have "a \<union> b = (a - b) \<union> (a \<inter> b) \<union> (b - a)" by auto |
|
1024 |
also have "\<dots> \<in> ?R" |
|
1025 |
by (intro sets generated_ring_disjoint_Un generated_ring_Int Diff) auto |
|
1026 |
finally show "a \<union> b \<in> ?R" . |
|
1027 |
qed |
|
1028 |
||
1029 |
lemma (in semiring_of_sets) sigma_sets_generated_ring_eq: "sigma_sets \<Omega> generated_ring = sigma_sets \<Omega> M" |
|
1030 |
proof |
|
1031 |
interpret M: sigma_algebra \<Omega> "sigma_sets \<Omega> M" |
|
1032 |
using space_closed by (rule sigma_algebra_sigma_sets) |
|
1033 |
show "sigma_sets \<Omega> generated_ring \<subseteq> sigma_sets \<Omega> M" |
|
1034 |
by (blast intro!: sigma_sets_mono elim: generated_ringE) |
|
1035 |
qed (auto intro!: generated_ringI_Basic sigma_sets_mono) |
|
1036 |
||
50387 | 1037 |
subsection {* Measure type *} |
47694 | 1038 |
|
1039 |
definition positive :: "'a set set \<Rightarrow> ('a set \<Rightarrow> ereal) \<Rightarrow> bool" where |
|
1040 |
"positive M \<mu> \<longleftrightarrow> \<mu> {} = 0 \<and> (\<forall>A\<in>M. 0 \<le> \<mu> A)" |
|
1041 |
||
1042 |
definition countably_additive :: "'a set set \<Rightarrow> ('a set \<Rightarrow> ereal) \<Rightarrow> bool" where |
|
1043 |
"countably_additive M f \<longleftrightarrow> (\<forall>A. range A \<subseteq> M \<longrightarrow> disjoint_family A \<longrightarrow> (\<Union>i. A i) \<in> M \<longrightarrow> |
|
1044 |
(\<Sum>i. f (A i)) = f (\<Union>i. A i))" |
|
1045 |
||
1046 |
definition measure_space :: "'a set \<Rightarrow> 'a set set \<Rightarrow> ('a set \<Rightarrow> ereal) \<Rightarrow> bool" where |
|
1047 |
"measure_space \<Omega> A \<mu> \<longleftrightarrow> sigma_algebra \<Omega> A \<and> positive A \<mu> \<and> countably_additive A \<mu>" |
|
1048 |
||
49834 | 1049 |
typedef 'a measure = "{(\<Omega>::'a set, A, \<mu>). (\<forall>a\<in>-A. \<mu> a = 0) \<and> measure_space \<Omega> A \<mu> }" |
47694 | 1050 |
proof |
1051 |
have "sigma_algebra UNIV {{}, UNIV}" |
|
47762 | 1052 |
by (auto simp: sigma_algebra_iff2) |
47694 | 1053 |
then show "(UNIV, {{}, UNIV}, \<lambda>A. 0) \<in> {(\<Omega>, A, \<mu>). (\<forall>a\<in>-A. \<mu> a = 0) \<and> measure_space \<Omega> A \<mu>} " |
1054 |
by (auto simp: measure_space_def positive_def countably_additive_def) |
|
1055 |
qed |
|
1056 |
||
1057 |
definition space :: "'a measure \<Rightarrow> 'a set" where |
|
1058 |
"space M = fst (Rep_measure M)" |
|
1059 |
||
1060 |
definition sets :: "'a measure \<Rightarrow> 'a set set" where |
|
1061 |
"sets M = fst (snd (Rep_measure M))" |
|
1062 |
||
1063 |
definition emeasure :: "'a measure \<Rightarrow> 'a set \<Rightarrow> ereal" where |
|
1064 |
"emeasure M = snd (snd (Rep_measure M))" |
|
1065 |
||
1066 |
definition measure :: "'a measure \<Rightarrow> 'a set \<Rightarrow> real" where |
|
1067 |
"measure M A = real (emeasure M A)" |
|
1068 |
||
1069 |
declare [[coercion sets]] |
|
1070 |
||
1071 |
declare [[coercion measure]] |
|
1072 |
||
1073 |
declare [[coercion emeasure]] |
|
1074 |
||
1075 |
lemma measure_space: "measure_space (space M) (sets M) (emeasure M)" |
|
1076 |
by (cases M) (auto simp: space_def sets_def emeasure_def Abs_measure_inverse) |
|
1077 |
||
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1078 |
interpretation sets!: sigma_algebra "space M" "sets M" for M :: "'a measure" |
47694 | 1079 |
using measure_space[of M] by (auto simp: measure_space_def) |
1080 |
||
1081 |
definition measure_of :: "'a set \<Rightarrow> 'a set set \<Rightarrow> ('a set \<Rightarrow> ereal) \<Rightarrow> 'a measure" where |
|
1082 |
"measure_of \<Omega> A \<mu> = Abs_measure (\<Omega>, sigma_sets \<Omega> A, |
|
1083 |
\<lambda>a. if a \<in> sigma_sets \<Omega> A \<and> measure_space \<Omega> (sigma_sets \<Omega> A) \<mu> then \<mu> a else 0)" |
|
1084 |
||
1085 |
abbreviation "sigma \<Omega> A \<equiv> measure_of \<Omega> A (\<lambda>x. 0)" |
|
1086 |
||
1087 |
lemma measure_space_0: "A \<subseteq> Pow \<Omega> \<Longrightarrow> measure_space \<Omega> (sigma_sets \<Omega> A) (\<lambda>x. 0)" |
|
1088 |
unfolding measure_space_def |
|
1089 |
by (auto intro!: sigma_algebra_sigma_sets simp: positive_def countably_additive_def) |
|
1090 |
||
1091 |
lemma (in ring_of_sets) positive_cong_eq: |
|
1092 |
"(\<And>a. a \<in> M \<Longrightarrow> \<mu>' a = \<mu> a) \<Longrightarrow> positive M \<mu>' = positive M \<mu>" |
|
1093 |
by (auto simp add: positive_def) |
|
1094 |
||
1095 |
lemma (in sigma_algebra) countably_additive_eq: |
|
1096 |
"(\<And>a. a \<in> M \<Longrightarrow> \<mu>' a = \<mu> a) \<Longrightarrow> countably_additive M \<mu>' = countably_additive M \<mu>" |
|
1097 |
unfolding countably_additive_def |
|
1098 |
by (intro arg_cong[where f=All] ext) (auto simp add: countably_additive_def subset_eq) |
|
1099 |
||
1100 |
lemma measure_space_eq: |
|
1101 |
assumes closed: "A \<subseteq> Pow \<Omega>" and eq: "\<And>a. a \<in> sigma_sets \<Omega> A \<Longrightarrow> \<mu> a = \<mu>' a" |
|
1102 |
shows "measure_space \<Omega> (sigma_sets \<Omega> A) \<mu> = measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>'" |
|
1103 |
proof - |
|
1104 |
interpret sigma_algebra \<Omega> "sigma_sets \<Omega> A" using closed by (rule sigma_algebra_sigma_sets) |
|
1105 |
from positive_cong_eq[OF eq, of "\<lambda>i. i"] countably_additive_eq[OF eq, of "\<lambda>i. i"] show ?thesis |
|
1106 |
by (auto simp: measure_space_def) |
|
1107 |
qed |
|
1108 |
||
1109 |
lemma measure_of_eq: |
|
1110 |
assumes closed: "A \<subseteq> Pow \<Omega>" and eq: "(\<And>a. a \<in> sigma_sets \<Omega> A \<Longrightarrow> \<mu> a = \<mu>' a)" |
|
1111 |
shows "measure_of \<Omega> A \<mu> = measure_of \<Omega> A \<mu>'" |
|
1112 |
proof - |
|
1113 |
have "measure_space \<Omega> (sigma_sets \<Omega> A) \<mu> = measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>'" |
|
1114 |
using assms by (rule measure_space_eq) |
|
1115 |
with eq show ?thesis |
|
1116 |
by (auto simp add: measure_of_def intro!: arg_cong[where f=Abs_measure]) |
|
1117 |
qed |
|
1118 |
||
1119 |
lemma |
|
1120 |
assumes A: "A \<subseteq> Pow \<Omega>" |
|
1121 |
shows sets_measure_of[simp]: "sets (measure_of \<Omega> A \<mu>) = sigma_sets \<Omega> A" (is ?sets) |
|
1122 |
and space_measure_of[simp]: "space (measure_of \<Omega> A \<mu>) = \<Omega>" (is ?space) |
|
1123 |
proof - |
|
1124 |
have "?sets \<and> ?space" |
|
1125 |
proof cases |
|
1126 |
assume "measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>" |
|
1127 |
moreover have "measure_space \<Omega> (sigma_sets \<Omega> A) \<mu> = measure_space \<Omega> (sigma_sets \<Omega> A) |
|
1128 |
(\<lambda>a. if a \<in> sigma_sets \<Omega> A then \<mu> a else 0)" |
|
1129 |
using A by (rule measure_space_eq) auto |
|
1130 |
ultimately show "?sets \<and> ?space" |
|
1131 |
by (auto simp: Abs_measure_inverse measure_of_def sets_def space_def) |
|
1132 |
next |
|
1133 |
assume "\<not> measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>" |
|
1134 |
with A show "?sets \<and> ?space" |
|
1135 |
by (auto simp: Abs_measure_inverse measure_of_def sets_def space_def measure_space_0) |
|
1136 |
qed |
|
1137 |
then show ?sets ?space by auto |
|
1138 |
qed |
|
1139 |
||
1140 |
lemma (in sigma_algebra) sets_measure_of_eq[simp]: |
|
1141 |
"sets (measure_of \<Omega> M \<mu>) = M" |
|
1142 |
using space_closed by (auto intro!: sigma_sets_eq) |
|
1143 |
||
1144 |
lemma (in sigma_algebra) space_measure_of_eq[simp]: |
|
1145 |
"space (measure_of \<Omega> M \<mu>) = \<Omega>" |
|
1146 |
using space_closed by (auto intro!: sigma_sets_eq) |
|
1147 |
||
1148 |
lemma measure_of_subset: |
|
1149 |
"M \<subseteq> Pow \<Omega> \<Longrightarrow> M' \<subseteq> M \<Longrightarrow> sets (measure_of \<Omega> M' \<mu>) \<subseteq> sets (measure_of \<Omega> M \<mu>')" |
|
1150 |
by (auto intro!: sigma_sets_subseteq) |
|
1151 |
||
50245
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1152 |
lemma sigma_sets_mono'': |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1153 |
assumes "A \<in> sigma_sets C D" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1154 |
assumes "B \<subseteq> D" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1155 |
assumes "D \<subseteq> Pow C" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1156 |
shows "sigma_sets A B \<subseteq> sigma_sets C D" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1157 |
proof |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1158 |
fix x assume "x \<in> sigma_sets A B" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1159 |
thus "x \<in> sigma_sets C D" |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1160 |
proof induct |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1161 |
case (Basic a) with assms have "a \<in> D" by auto |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1162 |
thus ?case .. |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1163 |
next |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1164 |
case Empty show ?case by (rule sigma_sets.Empty) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1165 |
next |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1166 |
from assms have "A \<in> sets (sigma C D)" by (subst sets_measure_of[OF `D \<subseteq> Pow C`]) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1167 |
moreover case (Compl a) hence "a \<in> sets (sigma C D)" by (subst sets_measure_of[OF `D \<subseteq> Pow C`]) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1168 |
ultimately have "A - a \<in> sets (sigma C D)" .. |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1169 |
thus ?case by (subst (asm) sets_measure_of[OF `D \<subseteq> Pow C`]) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1170 |
next |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1171 |
case (Union a) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1172 |
thus ?case by (intro sigma_sets.Union) |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1173 |
qed |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1174 |
qed |
dea9363887a6
based countable topological basis on Countable_Set
immler
parents:
50244
diff
changeset
|
1175 |
|
47756 | 1176 |
lemma in_measure_of[intro, simp]: "M \<subseteq> Pow \<Omega> \<Longrightarrow> A \<in> M \<Longrightarrow> A \<in> sets (measure_of \<Omega> M \<mu>)" |
47694 | 1177 |
by auto |
1178 |
||
50387 | 1179 |
subsection {* Constructing simple @{typ "'a measure"} *} |
47694 | 1180 |
|
1181 |
lemma emeasure_measure_of: |
|
1182 |
assumes M: "M = measure_of \<Omega> A \<mu>" |
|
1183 |
assumes ms: "A \<subseteq> Pow \<Omega>" "positive (sets M) \<mu>" "countably_additive (sets M) \<mu>" |
|
1184 |
assumes X: "X \<in> sets M" |
|
1185 |
shows "emeasure M X = \<mu> X" |
|
1186 |
proof - |
|
1187 |
interpret sigma_algebra \<Omega> "sigma_sets \<Omega> A" by (rule sigma_algebra_sigma_sets) fact |
|
1188 |
have "measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>" |
|
1189 |
using ms M by (simp add: measure_space_def sigma_algebra_sigma_sets) |
|
1190 |
moreover have "measure_space \<Omega> (sigma_sets \<Omega> A) (\<lambda>a. if a \<in> sigma_sets \<Omega> A then \<mu> a else 0) |
|
1191 |
= measure_space \<Omega> (sigma_sets \<Omega> A) \<mu>" |
|
1192 |
using ms(1) by (rule measure_space_eq) auto |
|
1193 |
moreover have "X \<in> sigma_sets \<Omega> A" |
|
1194 |
using X M ms by simp |
|
1195 |
ultimately show ?thesis |
|
1196 |
unfolding emeasure_def measure_of_def M |
|
1197 |
by (subst Abs_measure_inverse) (simp_all add: sigma_sets_eq) |
|
1198 |
qed |
|
1199 |
||
1200 |
lemma emeasure_measure_of_sigma: |
|
1201 |
assumes ms: "sigma_algebra \<Omega> M" "positive M \<mu>" "countably_additive M \<mu>" |
|
1202 |
assumes A: "A \<in> M" |
|
1203 |
shows "emeasure (measure_of \<Omega> M \<mu>) A = \<mu> A" |
|
1204 |
proof - |
|
1205 |
interpret sigma_algebra \<Omega> M by fact |
|
1206 |
have "measure_space \<Omega> (sigma_sets \<Omega> M) \<mu>" |
|
1207 |
using ms sigma_sets_eq by (simp add: measure_space_def) |
|
1208 |
moreover have "measure_space \<Omega> (sigma_sets \<Omega> M) (\<lambda>a. if a \<in> sigma_sets \<Omega> M then \<mu> a else 0) |
|
1209 |
= measure_space \<Omega> (sigma_sets \<Omega> M) \<mu>" |
|
1210 |
using space_closed by (rule measure_space_eq) auto |
|
1211 |
ultimately show ?thesis using A |
|
1212 |
unfolding emeasure_def measure_of_def |
|
1213 |
by (subst Abs_measure_inverse) (simp_all add: sigma_sets_eq) |
|
1214 |
qed |
|
1215 |
||
1216 |
lemma measure_cases[cases type: measure]: |
|
1217 |
obtains (measure) \<Omega> A \<mu> where "x = Abs_measure (\<Omega>, A, \<mu>)" "\<forall>a\<in>-A. \<mu> a = 0" "measure_space \<Omega> A \<mu>" |
|
1218 |
by atomize_elim (cases x, auto) |
|
1219 |
||
1220 |
lemma sets_eq_imp_space_eq: |
|
1221 |
"sets M = sets M' \<Longrightarrow> space M = space M'" |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1222 |
using sets.top[of M] sets.top[of M'] sets.space_closed[of M] sets.space_closed[of M'] |
47694 | 1223 |
by blast |
1224 |
||
1225 |
lemma emeasure_notin_sets: "A \<notin> sets M \<Longrightarrow> emeasure M A = 0" |
|
1226 |
by (cases M) (auto simp: sets_def emeasure_def Abs_measure_inverse measure_space_def) |
|
1227 |
||
1228 |
lemma measure_notin_sets: "A \<notin> sets M \<Longrightarrow> measure M A = 0" |
|
1229 |
by (simp add: measure_def emeasure_notin_sets) |
|
1230 |
||
1231 |
lemma measure_eqI: |
|
1232 |
fixes M N :: "'a measure" |
|
1233 |
assumes "sets M = sets N" and eq: "\<And>A. A \<in> sets M \<Longrightarrow> emeasure M A = emeasure N A" |
|
1234 |
shows "M = N" |
|
1235 |
proof (cases M N rule: measure_cases[case_product measure_cases]) |
|
1236 |
case (measure_measure \<Omega> A \<mu> \<Omega>' A' \<mu>') |
|
1237 |
interpret M: sigma_algebra \<Omega> A using measure_measure by (auto simp: measure_space_def) |
|
1238 |
interpret N: sigma_algebra \<Omega>' A' using measure_measure by (auto simp: measure_space_def) |
|
1239 |
have "A = sets M" "A' = sets N" |
|
1240 |
using measure_measure by (simp_all add: sets_def Abs_measure_inverse) |
|
1241 |
with `sets M = sets N` have "A = A'" by simp |
|
1242 |
moreover with M.top N.top M.space_closed N.space_closed have "\<Omega> = \<Omega>'" by auto |
|
1243 |
moreover { fix B have "\<mu> B = \<mu>' B" |
|
1244 |
proof cases |
|
1245 |
assume "B \<in> A" |
|
1246 |
with eq `A = sets M` have "emeasure M B = emeasure N B" by simp |
|
1247 |
with measure_measure show "\<mu> B = \<mu>' B" |
|
1248 |
by (simp add: emeasure_def Abs_measure_inverse) |
|
1249 |
next |
|
1250 |
assume "B \<notin> A" |
|
1251 |
with `A = sets M` `A' = sets N` `A = A'` have "B \<notin> sets M" "B \<notin> sets N" |
|
1252 |
by auto |
|
1253 |
then have "emeasure M B = 0" "emeasure N B = 0" |
|
1254 |
by (simp_all add: emeasure_notin_sets) |
|
1255 |
with measure_measure show "\<mu> B = \<mu>' B" |
|
1256 |
by (simp add: emeasure_def Abs_measure_inverse) |
|
1257 |
qed } |
|
1258 |
then have "\<mu> = \<mu>'" by auto |
|
1259 |
ultimately show "M = N" |
|
1260 |
by (simp add: measure_measure) |
|
38656 | 1261 |
qed |
1262 |
||
47694 | 1263 |
lemma emeasure_sigma: "A \<subseteq> Pow \<Omega> \<Longrightarrow> emeasure (sigma \<Omega> A) = (\<lambda>_. 0)" |
1264 |
using measure_space_0[of A \<Omega>] |
|
1265 |
by (simp add: measure_of_def emeasure_def Abs_measure_inverse) |
|
1266 |
||
1267 |
lemma sigma_eqI: |
|
1268 |
assumes [simp]: "M \<subseteq> Pow \<Omega>" "N \<subseteq> Pow \<Omega>" "sigma_sets \<Omega> M = sigma_sets \<Omega> N" |
|
1269 |
shows "sigma \<Omega> M = sigma \<Omega> N" |
|
1270 |
by (rule measure_eqI) (simp_all add: emeasure_sigma) |
|
1271 |
||
50387 | 1272 |
subsection {* Measurable functions *} |
47694 | 1273 |
|
1274 |
definition measurable :: "'a measure \<Rightarrow> 'b measure \<Rightarrow> ('a \<Rightarrow> 'b) set" where |
|
1275 |
"measurable A B = {f \<in> space A -> space B. \<forall>y \<in> sets B. f -` y \<inter> space A \<in> sets A}" |
|
1276 |
||
1277 |
lemma measurable_space: |
|
1278 |
"f \<in> measurable M A \<Longrightarrow> x \<in> space M \<Longrightarrow> f x \<in> space A" |
|
1279 |
unfolding measurable_def by auto |
|
1280 |
||
1281 |
lemma measurable_sets: |
|
1282 |
"f \<in> measurable M A \<Longrightarrow> S \<in> sets A \<Longrightarrow> f -` S \<inter> space M \<in> sets M" |
|
1283 |
unfolding measurable_def by auto |
|
1284 |
||
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1285 |
lemma measurable_sets_Collect: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1286 |
assumes f: "f \<in> measurable M N" and P: "{x\<in>space N. P x} \<in> sets N" shows "{x\<in>space M. P (f x)} \<in> sets M" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1287 |
proof - |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1288 |
have "f -` {x \<in> space N. P x} \<inter> space M = {x\<in>space M. P (f x)}" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1289 |
using measurable_space[OF f] by auto |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1290 |
with measurable_sets[OF f P] show ?thesis |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1291 |
by simp |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1292 |
qed |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1293 |
|
47694 | 1294 |
lemma measurable_sigma_sets: |
1295 |
assumes B: "sets N = sigma_sets \<Omega> A" "A \<subseteq> Pow \<Omega>" |
|
1296 |
and f: "f \<in> space M \<rightarrow> \<Omega>" |
|
1297 |
and ba: "\<And>y. y \<in> A \<Longrightarrow> (f -` y) \<inter> space M \<in> sets M" |
|
1298 |
shows "f \<in> measurable M N" |
|
1299 |
proof - |
|
1300 |
interpret A: sigma_algebra \<Omega> "sigma_sets \<Omega> A" using B(2) by (rule sigma_algebra_sigma_sets) |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1301 |
from B sets.top[of N] A.top sets.space_closed[of N] A.space_closed have \<Omega>: "\<Omega> = space N" by force |
47694 | 1302 |
|
1303 |
{ fix X assume "X \<in> sigma_sets \<Omega> A" |
|
1304 |
then have "f -` X \<inter> space M \<in> sets M \<and> X \<subseteq> \<Omega>" |
|
1305 |
proof induct |
|
1306 |
case (Basic a) then show ?case |
|
1307 |
by (auto simp add: ba) (metis B(2) subsetD PowD) |
|
1308 |
next |
|
1309 |
case (Compl a) |
|
1310 |
have [simp]: "f -` \<Omega> \<inter> space M = space M" |
|
1311 |
by (auto simp add: funcset_mem [OF f]) |
|
1312 |
then show ?case |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1313 |
by (auto simp add: vimage_Diff Diff_Int_distrib2 sets.compl_sets Compl) |
47694 | 1314 |
next |
1315 |
case (Union a) |
|
1316 |
then show ?case |
|
1317 |
by (simp add: vimage_UN, simp only: UN_extend_simps(4)) blast |
|
1318 |
qed auto } |
|
1319 |
with f show ?thesis |
|
1320 |
by (auto simp add: measurable_def B \<Omega>) |
|
1321 |
qed |
|
1322 |
||
1323 |
lemma measurable_measure_of: |
|
1324 |
assumes B: "N \<subseteq> Pow \<Omega>" |
|
1325 |
and f: "f \<in> space M \<rightarrow> \<Omega>" |
|
1326 |
and ba: "\<And>y. y \<in> N \<Longrightarrow> (f -` y) \<inter> space M \<in> sets M" |
|
1327 |
shows "f \<in> measurable M (measure_of \<Omega> N \<mu>)" |
|
1328 |
proof - |
|
1329 |
have "sets (measure_of \<Omega> N \<mu>) = sigma_sets \<Omega> N" |
|
1330 |
using B by (rule sets_measure_of) |
|
1331 |
from this assms show ?thesis by (rule measurable_sigma_sets) |
|
1332 |
qed |
|
1333 |
||
1334 |
lemma measurable_iff_measure_of: |
|
1335 |
assumes "N \<subseteq> Pow \<Omega>" "f \<in> space M \<rightarrow> \<Omega>" |
|
1336 |
shows "f \<in> measurable M (measure_of \<Omega> N \<mu>) \<longleftrightarrow> (\<forall>A\<in>N. f -` A \<inter> space M \<in> sets M)" |
|
47756 | 1337 |
by (metis assms in_measure_of measurable_measure_of assms measurable_sets) |
47694 | 1338 |
|
50003 | 1339 |
lemma measurable_cong_sets: |
1340 |
assumes sets: "sets M = sets M'" "sets N = sets N'" |
|
1341 |
shows "measurable M N = measurable M' N'" |
|
1342 |
using sets[THEN sets_eq_imp_space_eq] sets by (simp add: measurable_def) |
|
1343 |
||
47694 | 1344 |
lemma measurable_cong: |
1345 |
assumes "\<And> w. w \<in> space M \<Longrightarrow> f w = g w" |
|
1346 |
shows "f \<in> measurable M M' \<longleftrightarrow> g \<in> measurable M M'" |
|
1347 |
unfolding measurable_def using assms |
|
1348 |
by (simp cong: vimage_inter_cong Pi_cong) |
|
1349 |
||
1350 |
lemma measurable_eqI: |
|
1351 |
"\<lbrakk> space m1 = space m1' ; space m2 = space m2' ; |
|
1352 |
sets m1 = sets m1' ; sets m2 = sets m2' \<rbrakk> |
|
1353 |
\<Longrightarrow> measurable m1 m2 = measurable m1' m2'" |
|
1354 |
by (simp add: measurable_def sigma_algebra_iff2) |
|
1355 |
||
50003 | 1356 |
lemma measurable_compose: |
1357 |
assumes f: "f \<in> measurable M N" and g: "g \<in> measurable N L" |
|
1358 |
shows "(\<lambda>x. g (f x)) \<in> measurable M L" |
|
1359 |
proof - |
|
1360 |
have "\<And>A. (\<lambda>x. g (f x)) -` A \<inter> space M = f -` (g -` A \<inter> space N) \<inter> space M" |
|
1361 |
using measurable_space[OF f] by auto |
|
1362 |
with measurable_space[OF f] measurable_space[OF g] show ?thesis |
|
1363 |
by (auto intro: measurable_sets[OF f] measurable_sets[OF g] |
|
1364 |
simp del: vimage_Int simp add: measurable_def) |
|
1365 |
qed |
|
1366 |
||
1367 |
lemma measurable_comp: |
|
1368 |
"f \<in> measurable M N \<Longrightarrow> g \<in> measurable N L \<Longrightarrow> g \<circ> f \<in> measurable M L" |
|
1369 |
using measurable_compose[of f M N g L] by (simp add: comp_def) |
|
1370 |
||
1371 |
lemma measurable_const: |
|
47694 | 1372 |
"c \<in> space M' \<Longrightarrow> (\<lambda>x. c) \<in> measurable M M'" |
1373 |
by (auto simp add: measurable_def) |
|
1374 |
||
1375 |
lemma measurable_If: |
|
1376 |
assumes measure: "f \<in> measurable M M'" "g \<in> measurable M M'" |
|
1377 |
assumes P: "{x\<in>space M. P x} \<in> sets M" |
|
1378 |
shows "(\<lambda>x. if P x then f x else g x) \<in> measurable M M'" |
|
1379 |
unfolding measurable_def |
|
1380 |
proof safe |
|
1381 |
fix x assume "x \<in> space M" |
|
1382 |
thus "(if P x then f x else g x) \<in> space M'" |
|
1383 |
using measure unfolding measurable_def by auto |
|
1384 |
next |
|
1385 |
fix A assume "A \<in> sets M'" |
|
1386 |
hence *: "(\<lambda>x. if P x then f x else g x) -` A \<inter> space M = |
|
1387 |
((f -` A \<inter> space M) \<inter> {x\<in>space M. P x}) \<union> |
|
1388 |
((g -` A \<inter> space M) \<inter> (space M - {x\<in>space M. P x}))" |
|
1389 |
using measure unfolding measurable_def by (auto split: split_if_asm) |
|
1390 |
show "(\<lambda>x. if P x then f x else g x) -` A \<inter> space M \<in> sets M" |
|
1391 |
using `A \<in> sets M'` measure P unfolding * measurable_def |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1392 |
by (auto intro!: sets.Un) |
47694 | 1393 |
qed |
1394 |
||
1395 |
lemma measurable_If_set: |
|
1396 |
assumes measure: "f \<in> measurable M M'" "g \<in> measurable M M'" |
|
49773
16907431e477
tuned measurable_If; moved countably_additive equalities to Measure_Space; tuned proofs
hoelzl
parents:
47762
diff
changeset
|
1397 |
assumes P: "A \<inter> space M \<in> sets M" |
47694 | 1398 |
shows "(\<lambda>x. if x \<in> A then f x else g x) \<in> measurable M M'" |
1399 |
proof (rule measurable_If[OF measure]) |
|
49773
16907431e477
tuned measurable_If; moved countably_additive equalities to Measure_Space; tuned proofs
hoelzl
parents:
47762
diff
changeset
|
1400 |
have "{x \<in> space M. x \<in> A} = A \<inter> space M" by auto |
16907431e477
tuned measurable_If; moved countably_additive equalities to Measure_Space; tuned proofs
hoelzl
parents:
47762
diff
changeset
|
1401 |
thus "{x \<in> space M. x \<in> A} \<in> sets M" using `A \<inter> space M \<in> sets M` by auto |
47694 | 1402 |
qed |
1403 |
||
50003 | 1404 |
lemma measurable_ident: "id \<in> measurable M M" |
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1405 |
by (auto simp add: measurable_def) |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1406 |
|
50021
d96a3f468203
add support for function application to measurability prover
hoelzl
parents:
50003
diff
changeset
|
1407 |
lemma measurable_ident_sets: |
d96a3f468203
add support for function application to measurability prover
hoelzl
parents:
50003
diff
changeset
|
1408 |
assumes eq: "sets M = sets M'" shows "(\<lambda>x. x) \<in> measurable M M'" |
d96a3f468203
add support for function application to measurability prover
hoelzl
parents:
50003
diff
changeset
|
1409 |
using measurable_ident[of M] |
d96a3f468203
add support for function application to measurability prover
hoelzl
parents:
50003
diff
changeset
|
1410 |
unfolding id_def measurable_def eq sets_eq_imp_space_eq[OF eq] . |
49782 | 1411 |
|
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1412 |
lemma sets_Least: |
47694 | 1413 |
assumes meas: "\<And>i::nat. {x\<in>space M. P i x} \<in> M" |
1414 |
shows "(\<lambda>x. LEAST j. P j x) -` A \<inter> space M \<in> sets M" |
|
1415 |
proof - |
|
1416 |
{ fix i have "(\<lambda>x. LEAST j. P j x) -` {i} \<inter> space M \<in> sets M" |
|
1417 |
proof cases |
|
1418 |
assume i: "(LEAST j. False) = i" |
|
1419 |
have "(\<lambda>x. LEAST j. P j x) -` {i} \<inter> space M = |
|
1420 |
{x\<in>space M. P i x} \<inter> (space M - (\<Union>j<i. {x\<in>space M. P j x})) \<union> (space M - (\<Union>i. {x\<in>space M. P i x}))" |
|
1421 |
by (simp add: set_eq_iff, safe) |
|
1422 |
(insert i, auto dest: Least_le intro: LeastI intro!: Least_equality) |
|
1423 |
with meas show ?thesis |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1424 |
by (auto intro!: sets.Int) |
47694 | 1425 |
next |
1426 |
assume i: "(LEAST j. False) \<noteq> i" |
|
1427 |
then have "(\<lambda>x. LEAST j. P j x) -` {i} \<inter> space M = |
|
1428 |
{x\<in>space M. P i x} \<inter> (space M - (\<Union>j<i. {x\<in>space M. P j x}))" |
|
1429 |
proof (simp add: set_eq_iff, safe) |
|
1430 |
fix x assume neq: "(LEAST j. False) \<noteq> (LEAST j. P j x)" |
|
1431 |
have "\<exists>j. P j x" |
|
1432 |
by (rule ccontr) (insert neq, auto) |
|
1433 |
then show "P (LEAST j. P j x) x" by (rule LeastI_ex) |
|
1434 |
qed (auto dest: Least_le intro!: Least_equality) |
|
1435 |
with meas show ?thesis |
|
1436 |
by auto |
|
1437 |
qed } |
|
1438 |
then have "(\<Union>i\<in>A. (\<lambda>x. LEAST j. P j x) -` {i} \<inter> space M) \<in> sets M" |
|
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1439 |
by (intro sets.countable_UN) auto |
47694 | 1440 |
moreover have "(\<Union>i\<in>A. (\<lambda>x. LEAST j. P j x) -` {i} \<inter> space M) = |
1441 |
(\<lambda>x. LEAST j. P j x) -` A \<inter> space M" by auto |
|
1442 |
ultimately show ?thesis by auto |
|
1443 |
qed |
|
1444 |
||
1445 |
lemma measurable_strong: |
|
1446 |
fixes f :: "'a \<Rightarrow> 'b" and g :: "'b \<Rightarrow> 'c" |
|
1447 |
assumes f: "f \<in> measurable a b" and g: "g \<in> space b \<rightarrow> space c" |
|
1448 |
and t: "f ` (space a) \<subseteq> t" |
|
1449 |
and cb: "\<And>s. s \<in> sets c \<Longrightarrow> (g -` s) \<inter> t \<in> sets b" |
|
1450 |
shows "(g o f) \<in> measurable a c" |
|
1451 |
proof - |
|
1452 |
have fab: "f \<in> (space a -> space b)" |
|
1453 |
and ba: "\<And>y. y \<in> sets b \<Longrightarrow> (f -` y) \<inter> (space a) \<in> sets a" using f |
|
1454 |
by (auto simp add: measurable_def) |
|
1455 |
have eq: "\<And>y. f -` g -` y \<inter> space a = f -` (g -` y \<inter> t) \<inter> space a" using t |
|
1456 |
by force |
|
1457 |
show ?thesis |
|
1458 |
apply (auto simp add: measurable_def vimage_compose) |
|
1459 |
apply (metis funcset_mem fab g) |
|
1460 |
apply (subst eq, metis ba cb) |
|
1461 |
done |
|
1462 |
qed |
|
1463 |
||
1464 |
lemma measurable_mono1: |
|
1465 |
"M' \<subseteq> Pow \<Omega> \<Longrightarrow> M \<subseteq> M' \<Longrightarrow> |
|
1466 |
measurable (measure_of \<Omega> M \<mu>) N \<subseteq> measurable (measure_of \<Omega> M' \<mu>') N" |
|
1467 |
using measure_of_subset[of M' \<Omega> M] by (auto simp add: measurable_def) |
|
1468 |
||
50387 | 1469 |
subsection {* Counting space *} |
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1470 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1471 |
definition count_space :: "'a set \<Rightarrow> 'a measure" where |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1472 |
"count_space \<Omega> = measure_of \<Omega> (Pow \<Omega>) (\<lambda>A. if finite A then ereal (card A) else \<infinity>)" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1473 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1474 |
lemma |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1475 |
shows space_count_space[simp]: "space (count_space \<Omega>) = \<Omega>" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1476 |
and sets_count_space[simp]: "sets (count_space \<Omega>) = Pow \<Omega>" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1477 |
using sigma_sets_into_sp[of "Pow \<Omega>" \<Omega>] |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1478 |
by (auto simp: count_space_def) |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1479 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1480 |
lemma measurable_count_space_eq1[simp]: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1481 |
"f \<in> measurable (count_space A) M \<longleftrightarrow> f \<in> A \<rightarrow> space M" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1482 |
unfolding measurable_def by simp |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1483 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1484 |
lemma measurable_count_space_eq2: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1485 |
assumes "finite A" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1486 |
shows "f \<in> measurable M (count_space A) \<longleftrightarrow> (f \<in> space M \<rightarrow> A \<and> (\<forall>a\<in>A. f -` {a} \<inter> space M \<in> sets M))" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1487 |
proof - |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1488 |
{ fix X assume "X \<subseteq> A" "f \<in> space M \<rightarrow> A" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1489 |
with `finite A` have "f -` X \<inter> space M = (\<Union>a\<in>X. f -` {a} \<inter> space M)" "finite X" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1490 |
by (auto dest: finite_subset) |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1491 |
moreover assume "\<forall>a\<in>A. f -` {a} \<inter> space M \<in> sets M" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1492 |
ultimately have "f -` X \<inter> space M \<in> sets M" |
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1493 |
using `X \<subseteq> A` by (auto intro!: sets.finite_UN simp del: UN_simps) } |
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1494 |
then show ?thesis |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1495 |
unfolding measurable_def by auto |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1496 |
qed |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1497 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1498 |
lemma measurable_compose_countable: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1499 |
assumes f: "\<And>i::'i::countable. (\<lambda>x. f i x) \<in> measurable M N" and g: "g \<in> measurable M (count_space UNIV)" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1500 |
shows "(\<lambda>x. f (g x) x) \<in> measurable M N" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1501 |
unfolding measurable_def |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1502 |
proof safe |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1503 |
fix x assume "x \<in> space M" then show "f (g x) x \<in> space N" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1504 |
using f[THEN measurable_space] g[THEN measurable_space] by auto |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1505 |
next |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1506 |
fix A assume A: "A \<in> sets N" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1507 |
have "(\<lambda>x. f (g x) x) -` A \<inter> space M = (\<Union>i. (g -` {i} \<inter> space M) \<inter> (f i -` A \<inter> space M))" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1508 |
by auto |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1509 |
also have "\<dots> \<in> sets M" using f[THEN measurable_sets, OF A] g[THEN measurable_sets] |
50244
de72bbe42190
qualified interpretation of sigma_algebra, to avoid name clashes
immler
parents:
50096
diff
changeset
|
1510 |
by (auto intro!: sets.countable_UN measurable_sets) |
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1511 |
finally show "(\<lambda>x. f (g x) x) -` A \<inter> space M \<in> sets M" . |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1512 |
qed |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1513 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1514 |
lemma measurable_count_space_const: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1515 |
"(\<lambda>x. c) \<in> measurable M (count_space UNIV)" |
50003 | 1516 |
by (simp add: measurable_const) |
50002
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1517 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1518 |
lemma measurable_count_space: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1519 |
"f \<in> measurable (count_space A) (count_space UNIV)" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1520 |
by simp |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1521 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1522 |
lemma measurable_compose_rev: |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1523 |
assumes f: "f \<in> measurable L N" and g: "g \<in> measurable M L" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1524 |
shows "(\<lambda>x. f (g x)) \<in> measurable M N" |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1525 |
using measurable_compose[OF g f] . |
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1526 |
|
ce0d316b5b44
add measurability prover; add support for Borel sets
hoelzl
parents:
49834
diff
changeset
|
1527 |
|
47694 | 1528 |
subsection {* Extend measure *} |
1529 |
||
1530 |
definition "extend_measure \<Omega> I G \<mu> = |
|
1531 |
(if (\<exists>\<mu>'. (\<forall>i\<in>I. \<mu>' (G i) = \<mu> i) \<and> measure_space \<Omega> (sigma_sets \<Omega> (G`I)) \<mu>') \<and> \<not> (\<forall>i\<in>I. \<mu> i = 0) |
|
1532 |
then measure_of \<Omega> (G`I) (SOME \<mu>'. (\<forall>i\<in>I. \<mu>' (G i) = \<mu> i) \<and> measure_space \<Omega> (sigma_sets \<Omega> (G`I)) \<mu>') |
|
1533 |
else measure_of \<Omega> (G`I) (\<lambda>_. 0))" |
|
1534 |
||
1535 |
lemma space_extend_measure: "G ` I \<subseteq> Pow \<Omega> \<Longrightarrow> space (extend_measure \<Omega> I G \<mu>) = \<Omega>" |
|
1536 |
unfolding extend_measure_def by simp |
|
1537 |
||
1538 |
lemma sets_extend_measure: "G ` I \<subseteq> Pow \<Omega> \<Longrightarrow> sets (extend_measure \<Omega> I G \<mu>) = sigma_sets \<Omega> (G`I)" |
|
1539 |
unfolding extend_measure_def by simp |
|
1540 |
||
1541 |
lemma emeasure_extend_measure: |
|
1542 |
assumes M: "M = extend_measure \<Omega> I G \<mu>" |
|
1543 |
and eq: "\<And>i. i \<in> I \<Longrightarrow> \<mu>' (G i) = \<mu> i" |
|
1544 |
and ms: "G ` I \<subseteq> Pow \<Omega>" "positive (sets M) \<mu>'" "countably_additive (sets M) \<mu>'" |
|
1545 |
and "i \<in> I" |
|
1546 |
shows "emeasure M (G i) = \<mu> i" |
|
1547 |
proof cases |
|
1548 |
assume *: "(\<forall>i\<in>I. \<mu> i = 0)" |
|
1549 |
with M have M_eq: "M = measure_of \<Omega> (G`I) (\<lambda>_. 0)" |
|
1550 |
by (simp add: extend_measure_def) |
|
1551 |
from measure_space_0[OF ms(1)] ms `i\<in>I` |
|
1552 |
have "emeasure M (G i) = 0" |
|
1553 |
by (intro emeasure_measure_of[OF M_eq]) (auto simp add: M measure_space_def sets_extend_measure) |
|
1554 |
with `i\<in>I` * show ?thesis |
|
1555 |
by simp |
|
1556 |
next |
|
1557 |
def P \<equiv> "\<lambda>\<mu>'. (\<forall>i\<in>I. \<mu>' (G i) = \<mu> i) \<and> measure_space \<Omega> (sigma_sets \<Omega> (G`I)) \<mu>'" |
|
1558 |
assume "\<not> (\<forall>i\<in>I. \<mu> i = 0)" |
|
1559 |
moreover |
|
1560 |
have "measure_space (space M) (sets M) \<mu>'" |
|
1561 |
using ms unfolding measure_space_def by auto default |
|
1562 |
with ms eq have "\<exists>\<mu>'. P \<mu>'" |
|
1563 |
unfolding P_def |
|
1564 |
by (intro exI[of _ \<mu>']) (auto simp add: M space_extend_measure sets_extend_measure) |
|
1565 |
ultimately have M_eq: "M = measure_of \<Omega> (G`I) (Eps P)" |
|
1566 |
by (simp add: M extend_measure_def P_def[symmetric]) |
|
1567 |
||
1568 |
from `\<exists>\<mu>'. P \<mu>'` have P: "P (Eps P)" by (rule someI_ex) |
|
1569 |
show "emeasure M (G i) = \<mu> i" |
|
1570 |
proof (subst emeasure_measure_of[OF M_eq]) |
|
1571 |
have sets_M: "sets M = sigma_sets \<Omega> (G`I)" |
|
1572 |
using M_eq ms by (auto simp: sets_extend_measure) |
|
1573 |
then show "G i \<in> sets M" using `i \<in> I` by auto |
|
1574 |
show "positive (sets M) (Eps P)" "countably_additive (sets M) (Eps P)" "Eps P (G i) = \<mu> i" |
|
1575 |
using P `i\<in>I` by (auto simp add: sets_M measure_space_def P_def) |
|
1576 |
qed fact |
|
1577 |
qed |
|
1578 |
||
1579 |
lemma emeasure_extend_measure_Pair: |
|
1580 |
assumes M: "M = extend_measure \<Omega> {(i, j). I i j} (\<lambda>(i, j). G i j) (\<lambda>(i, j). \<mu> i j)" |
|
1581 |
and eq: "\<And>i j. I i j \<Longrightarrow> \<mu>' (G i j) = \<mu> i j" |
|
1582 |
and ms: "\<And>i j. I i j \<Longrightarrow> G i j \<in> Pow \<Omega>" "positive (sets M) \<mu>'" "countably_additive (sets M) \<mu>'" |
|
1583 |
and "I i j" |
|
1584 |
shows "emeasure M (G i j) = \<mu> i j" |
|
1585 |
using emeasure_extend_measure[OF M _ _ ms(2,3), of "(i,j)"] eq ms(1) `I i j` |
|
1586 |
by (auto simp: subset_eq) |
|
1587 |
||
39090
a2d38b8b693e
Introduced sigma algebra generated by function preimages.
hoelzl
parents:
38656
diff
changeset
|
1588 |
subsection {* Sigma algebra generated by function preimages *} |
a2d38b8b693e
Introduced sigma algebra generated by function preimages.
hoelzl
parents:
38656
diff
changeset
|
1589 |
|
47694 | 1590 |
definition |
1591 |
"vimage_algebra M S f = sigma S ((\<lambda>A. f -` A \<inter> S) ` sets M)" |
|
39090
a2d38b8b693e
Introduced sigma algebra generated by function preimages.
hoelzl
parents:
38656
diff
changeset
|
1592 |
|
47694 | 1593 |
lemma sigma_algebra_preimages: |
40859 | 1594 |
fixes f :: "'x \<Rightarrow> 'a" |
47694 | 1595 |
assumes "f \<in> S \<rightarrow> space M" |
1596 |
shows "sigma_algebra S ((\<lambda>A. f -` A \<inter> S) ` sets M)" |
|
1597 |
(is "sigma_algebra _ (?F ` sets M)") |
|
40859 | 1598 |
proof (simp add: sigma_algebra_iff2, safe) |
1599 |
show "{} \<in> ?F ` sets M" by blast |
|
1600 |
next |
|
47694 | 1601 |
fix A assume "A \<in> sets M" |
1602 |
moreover have "S - ?F A = ?F (space M - A)" |
|
40859 | 1603 |
using assms by auto |
47694 | 1604 |
ultimately show "S - ?F A \<in> ?F ` sets M" |
40859 | 1605 |
by blast |
1606 |
next |
|
47694 | 1607 |
fix A :: "nat \<Rightarrow> 'x set" assume *: "range A \<subseteq> ?F ` M" |
1608 |
have "\<forall>i. \<exists>b. b \<in> M \<and> A i = ?F b" |
|
40859 | 1609 |
proof safe |
1610 |
fix i |
|
47694 | 1611 |
have "A i \<in> ?F ` M" using * by auto |
1612 |
then show "\<exists>b. b \<in> M \<and> A i = ?F b" by auto |
|
40859 | 1613 |
qed |
47694 | 1614 |
from choice[OF this] obtain b where b: "range b \<subseteq> M" "\<And>i. A i = ?F (b i)" |
40859 | 1615 |
by auto |
47694 | 1616 |
then have "(\<Union>i. A i) = ?F (\<Union>i. b i)" by auto |
1617 |
then show "(\<Union>i. A i) \<in> ?F ` M" using b(1) by blast |
|
40859 | 1618 |
qed |
1619 |
||
47694 | 1620 |
lemma sets_vimage_algebra[simp]: |
1621 |
"f \<in> S \<rightarrow> space M \<Longrightarrow> sets (vimage_algebra M S f) = (\<lambda>A. f -` A \<inter> S) ` sets M" |
|
1622 |
using sigma_algebra.sets_measure_of_eq[OF sigma_algebra_preimages, of f S M] |
|
1623 |
by (simp add: vimage_algebra_def) |
|
1624 |
||
1625 |
lemma space_vimage_algebra[simp]: |
|
1626 |
"f \<in> S \<rightarrow> space M \<Longrightarrow> space (vimage_algebra M S f) = S" |
|
1627 |
using sigma_algebra.space_measure_of_eq[OF sigma_algebra_preimages, of f S M] |
|
1628 |
by (simp add: vimage_algebra_def) |
|
1629 |
||
1630 |
lemma in_vimage_algebra[simp]: |
|
1631 |
"f \<in> S \<rightarrow> space M \<Longrightarrow> A \<in> sets (vimage_algebra M S f) \<longleftrightarrow> (\<exists>B\<in>sets M. A = f -` B \<inter> S)" |
|
1632 |
by (simp add: image_iff) |
|
1633 |
||
1634 |
lemma measurable_vimage_algebra: |
|
39090
a2d38b8b693e
Introduced sigma algebra generated by function preimages.
hoelzl
parents:
38656
diff
changeset
|
1635 |
fixes S :: "'c set" assumes "f \<in> S \<rightarrow> space M" |
47694 | 1636 |
shows "f \<in> measurable (vimage_algebra M S f) M" |
1637 |
unfolding measurable_def using assms by force |
|
39090
a2d38b8b693e
Introduced sigma algebra generated by function preimages.
hoelzl
parents:
38656
diff
changeset
|
1638 |
|
47694 | 1639 |
lemma measurable_vimage: |
40859 | 1640 |
fixes g :: "'a \<Rightarrow> 'c" and f :: "'d \<Rightarrow> 'a" |
1641 |
assumes "g \<in> measurable M M2" "f \<in> S \<rightarrow> space M" |
|
47694 | 1642 |
shows "(\<lambda>x. g (f x)) \<in> measurable (vimage_algebra M S f) M2" |
40859 | 1643 |
proof - |
1644 |
note measurable_vimage_algebra[OF assms(2)] |
|
1645 |
from measurable_comp[OF this assms(1)] |
|
1646 |
show ?thesis by (simp add: comp_def) |
|
1647 |
qed |
|
1648 |
||
1649 |
lemma sigma_sets_vimage: |
|
1650 |
assumes "f \<in> S' \<rightarrow> S" and "A \<subseteq> Pow S" |
|
1651 |
shows "sigma_sets S' ((\<lambda>X. f -` X \<inter> S') ` A) = (\<lambda>X. f -` X \<inter> S') ` sigma_sets S A" |
|
1652 |
proof (intro set_eqI iffI) |
|
1653 |
let ?F = "\<lambda>X. f -` X \<inter> S'" |
|
1654 |
fix X assume "X \<in> sigma_sets S' (?F ` A)" |
|
1655 |
then show "X \<in> ?F ` sigma_sets S A" |
|
1656 |
proof induct |
|
1657 |
case (Basic X) then obtain X' where "X = ?F X'" "X' \<in> A" |
|
1658 |
by auto |
|
47694 | 1659 |
then show ?case by auto |
40859 | 1660 |
next |
1661 |
case Empty then show ?case |
|
1662 |
by (auto intro!: image_eqI[of _ _ "{}"] sigma_sets.Empty) |
|
1663 |
next |
|
1664 |
case (Compl X) then obtain X' where X: "X = ?F X'" and "X' \<in> sigma_sets S A" |
|
1665 |
by auto |
|
1666 |
then have "S - X' \<in> sigma_sets S A" |
|
1667 |
by (auto intro!: sigma_sets.Compl) |
|
1668 |
then show ?case |
|
1669 |
using X assms by (auto intro!: image_eqI[where x="S - X'"]) |
|
1670 |
next |
|
1671 |
case (Union F) |
|
1672 |
then have "\<forall>i. \<exists>F'. F' \<in> sigma_sets S A \<and> F i = f -` F' \<inter> S'" |
|
1673 |
by (auto simp: image_iff Bex_def) |
|
1674 |
from choice[OF this] obtain F' where |
|
1675 |
"\<And>i. F' i \<in> sigma_sets S A" and "\<And>i. F i = f -` F' i \<inter> S'" |
|
1676 |
by auto |
|
1677 |
then show ?case |
|
1678 |
by (auto intro!: sigma_sets.Union image_eqI[where x="\<Union>i. F' i"]) |
|
1679 |
qed |
|
1680 |
next |
|
1681 |
let ?F = "\<lambda>X. f -` X \<inter> S'" |
|
1682 |
fix X assume "X \<in> ?F ` sigma_sets S A" |
|
1683 |
then obtain X' where "X' \<in> sigma_sets S A" "X = ?F X'" by auto |
|
1684 |
then show "X \<in> sigma_sets S' (?F ` A)" |
|
1685 |
proof (induct arbitrary: X) |
|
1686 |
case Empty then show ?case by (auto intro: sigma_sets.Empty) |
|
1687 |
next |
|
1688 |
case (Compl X') |
|
1689 |
have "S' - (S' - X) \<in> sigma_sets S' (?F ` A)" |
|
1690 |
apply (rule sigma_sets.Compl) |
|
1691 |
using assms by (auto intro!: Compl.hyps simp: Compl.prems) |
|
1692 |
also have "S' - (S' - X) = X" |
|
1693 |
using assms Compl by auto |
|
1694 |
finally show ?case . |
|
1695 |
next |
|
1696 |
case (Union F) |
|
1697 |
have "(\<Union>i. f -` F i \<inter> S') \<in> sigma_sets S' (?F ` A)" |
|
1698 |
by (intro sigma_sets.Union Union.hyps) simp |
|
1699 |
also have "(\<Union>i. f -` F i \<inter> S') = X" |
|
1700 |
using assms Union by auto |
|
1701 |
finally show ?case . |
|
47694 | 1702 |
qed auto |
39092 | 1703 |
qed |
1704 |
||
38656 | 1705 |
subsection {* A Two-Element Series *} |
1706 |
||
1707 |
definition binaryset :: "'a set \<Rightarrow> 'a set \<Rightarrow> nat \<Rightarrow> 'a set " |
|
50252 | 1708 |
where "binaryset A B = (\<lambda>x. {})(0 := A, Suc 0 := B)" |
38656 | 1709 |
|
1710 |
lemma range_binaryset_eq: "range(binaryset A B) = {A,B,{}}" |
|
1711 |
apply (simp add: binaryset_def) |
|
39302
d7728f65b353
renamed lemmas: ext_iff -> fun_eq_iff, set_ext_iff -> set_eq_iff, set_ext -> set_eqI
nipkow
parents:
39092
diff
changeset
|
1712 |
apply (rule set_eqI) |
38656 | 1713 |
apply (auto simp add: image_iff) |
1714 |
done |
|
1715 |
||
1716 |
lemma UN_binaryset_eq: "(\<Union>i. binaryset A B i) = A \<union> B" |
|
44106 | 1717 |
by (simp add: SUP_def range_binaryset_eq) |
38656 | 1718 |
|
1719 |
section {* Closed CDI *} |
|
1720 |
||
47694 | 1721 |
definition closed_cdi where |
1722 |
"closed_cdi \<Omega> M \<longleftrightarrow> |
|
1723 |
M \<subseteq> Pow \<Omega> & |
|
1724 |
(\<forall>s \<in> M. \<Omega> - s \<in> M) & |
|
1725 |
(\<forall>A. (range A \<subseteq> M) & (A 0 = {}) & (\<forall>n. A n \<subseteq> A (Suc n)) \<longrightarrow> |
|
1726 |
(\<Union>i. A i) \<in> M) & |
|
1727 |
(\<forall>A. (range A \<subseteq> M) & disjoint_family A \<longrightarrow> (\<Union>i::nat. A i) \<in> M)" |
|
38656 | 1728 |
|
1729 |
inductive_set |
|
47694 | 1730 |
smallest_ccdi_sets :: "'a set \<Rightarrow> 'a set set \<Rightarrow> 'a set set" |
1731 |
for \<Omega> M |
|
38656 | 1732 |
where |
1733 |
Basic [intro]: |
|
47694 | 1734 |
"a \<in> M \<Longrightarrow> a \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1735 |
| Compl [intro]: |
47694 | 1736 |
"a \<in> smallest_ccdi_sets \<Omega> M \<Longrightarrow> \<Omega> - a \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1737 |
| Inc: |
47694 | 1738 |
"range A \<in> Pow(smallest_ccdi_sets \<Omega> M) \<Longrightarrow> A 0 = {} \<Longrightarrow> (\<And>n. A n \<subseteq> A (Suc n)) |
1739 |
\<Longrightarrow> (\<Union>i. A i) \<in> smallest_ccdi_sets \<Omega> M" |
|
38656 | 1740 |
| Disj: |
47694 | 1741 |
"range A \<in> Pow(smallest_ccdi_sets \<Omega> M) \<Longrightarrow> disjoint_family A |
1742 |
\<Longrightarrow> (\<Union>i::nat. A i) \<in> smallest_ccdi_sets \<Omega> M" |
|
38656 | 1743 |
|
47694 | 1744 |
lemma (in subset_class) smallest_closed_cdi1: "M \<subseteq> smallest_ccdi_sets \<Omega> M" |
1745 |
by auto |
|
38656 | 1746 |
|
47694 | 1747 |
lemma (in subset_class) smallest_ccdi_sets: "smallest_ccdi_sets \<Omega> M \<subseteq> Pow \<Omega>" |
38656 | 1748 |
apply (rule subsetI) |
1749 |
apply (erule smallest_ccdi_sets.induct) |
|
1750 |
apply (auto intro: range_subsetD dest: sets_into_space) |
|
1751 |
done |
|
1752 |
||
47694 | 1753 |
lemma (in subset_class) smallest_closed_cdi2: "closed_cdi \<Omega> (smallest_ccdi_sets \<Omega> M)" |
1754 |
apply (auto simp add: closed_cdi_def smallest_ccdi_sets) |
|
38656 | 1755 |
apply (blast intro: smallest_ccdi_sets.Inc smallest_ccdi_sets.Disj) + |
1756 |
done |
|
1757 |
||
47694 | 1758 |
lemma closed_cdi_subset: "closed_cdi \<Omega> M \<Longrightarrow> M \<subseteq> Pow \<Omega>" |
38656 | 1759 |
by (simp add: closed_cdi_def) |
1760 |
||
47694 | 1761 |
lemma closed_cdi_Compl: "closed_cdi \<Omega> M \<Longrightarrow> s \<in> M \<Longrightarrow> \<Omega> - s \<in> M" |
38656 | 1762 |
by (simp add: closed_cdi_def) |
1763 |
||
1764 |
lemma closed_cdi_Inc: |
|
47694 | 1765 |
"closed_cdi \<Omega> M \<Longrightarrow> range A \<subseteq> M \<Longrightarrow> A 0 = {} \<Longrightarrow> (!!n. A n \<subseteq> A (Suc n)) \<Longrightarrow> (\<Union>i. A i) \<in> M" |
38656 | 1766 |
by (simp add: closed_cdi_def) |
1767 |
||
1768 |
lemma closed_cdi_Disj: |
|
47694 | 1769 |
"closed_cdi \<Omega> M \<Longrightarrow> range A \<subseteq> M \<Longrightarrow> disjoint_family A \<Longrightarrow> (\<Union>i::nat. A i) \<in> M" |
38656 | 1770 |
by (simp add: closed_cdi_def) |
1771 |
||
1772 |
lemma closed_cdi_Un: |
|
47694 | 1773 |
assumes cdi: "closed_cdi \<Omega> M" and empty: "{} \<in> M" |
1774 |
and A: "A \<in> M" and B: "B \<in> M" |
|
38656 | 1775 |
and disj: "A \<inter> B = {}" |
47694 | 1776 |
shows "A \<union> B \<in> M" |
38656 | 1777 |
proof - |
47694 | 1778 |
have ra: "range (binaryset A B) \<subseteq> M" |
38656 | 1779 |
by (simp add: range_binaryset_eq empty A B) |
1780 |
have di: "disjoint_family (binaryset A B)" using disj |
|
1781 |
by (simp add: disjoint_family_on_def binaryset_def Int_commute) |
|
1782 |
from closed_cdi_Disj [OF cdi ra di] |
|
1783 |
show ?thesis |
|
1784 |
by (simp add: UN_binaryset_eq) |
|
1785 |
qed |
|
1786 |
||
1787 |
lemma (in algebra) smallest_ccdi_sets_Un: |
|
47694 | 1788 |
assumes A: "A \<in> smallest_ccdi_sets \<Omega> M" and B: "B \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1789 |
and disj: "A \<inter> B = {}" |
47694 | 1790 |
shows "A \<union> B \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1791 |
proof - |
47694 | 1792 |
have ra: "range (binaryset A B) \<in> Pow (smallest_ccdi_sets \<Omega> M)" |
38656 | 1793 |
by (simp add: range_binaryset_eq A B smallest_ccdi_sets.Basic) |
1794 |
have di: "disjoint_family (binaryset A B)" using disj |
|
1795 |
by (simp add: disjoint_family_on_def binaryset_def Int_commute) |
|
1796 |
from Disj [OF ra di] |
|
1797 |
show ?thesis |
|
1798 |
by (simp add: UN_binaryset_eq) |
|
1799 |
qed |
|
1800 |
||
1801 |
lemma (in algebra) smallest_ccdi_sets_Int1: |
|
47694 | 1802 |
assumes a: "a \<in> M" |
1803 |
shows "b \<in> smallest_ccdi_sets \<Omega> M \<Longrightarrow> a \<inter> b \<in> smallest_ccdi_sets \<Omega> M" |
|
38656 | 1804 |
proof (induct rule: smallest_ccdi_sets.induct) |
1805 |
case (Basic x) |
|
1806 |
thus ?case |
|
1807 |
by (metis a Int smallest_ccdi_sets.Basic) |
|
1808 |
next |
|
1809 |
case (Compl x) |
|
47694 | 1810 |
have "a \<inter> (\<Omega> - x) = \<Omega> - ((\<Omega> - a) \<union> (a \<inter> x))" |
38656 | 1811 |
by blast |
47694 | 1812 |
also have "... \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1813 |
by (metis smallest_ccdi_sets.Compl a Compl(2) Diff_Int2 Diff_Int_distrib2 |
47694 | 1814 |
Diff_disjoint Int_Diff Int_empty_right smallest_ccdi_sets_Un |
1815 |
smallest_ccdi_sets.Basic smallest_ccdi_sets.Compl) |
|
38656 | 1816 |
finally show ?case . |
1817 |
next |
|
1818 |
case (Inc A) |
|
1819 |
have 1: "(\<Union>i. (\<lambda>i. a \<inter> A i) i) = a \<inter> (\<Union>i. A i)" |
|
1820 |
by blast |
|
47694 | 1821 |
have "range (\<lambda>i. a \<inter> A i) \<in> Pow(smallest_ccdi_sets \<Omega> M)" using Inc |
38656 | 1822 |
by blast |
1823 |
moreover have "(\<lambda>i. a \<inter> A i) 0 = {}" |
|
1824 |
by (simp add: Inc) |
|
1825 |
moreover have "!!n. (\<lambda>i. a \<inter> A i) n \<subseteq> (\<lambda>i. a \<inter> A i) (Suc n)" using Inc |
|
1826 |
by blast |
|
47694 | 1827 |
ultimately have 2: "(\<Union>i. (\<lambda>i. a \<inter> A i) i) \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1828 |
by (rule smallest_ccdi_sets.Inc) |
1829 |
show ?case |
|
1830 |
by (metis 1 2) |
|
1831 |
next |
|
1832 |
case (Disj A) |
|
1833 |
have 1: "(\<Union>i. (\<lambda>i. a \<inter> A i) i) = a \<inter> (\<Union>i. A i)" |
|
1834 |
by blast |
|
47694 | 1835 |
have "range (\<lambda>i. a \<inter> A i) \<in> Pow(smallest_ccdi_sets \<Omega> M)" using Disj |
38656 | 1836 |
by blast |
1837 |
moreover have "disjoint_family (\<lambda>i. a \<inter> A i)" using Disj |
|
1838 |
by (auto simp add: disjoint_family_on_def) |
|
47694 | 1839 |
ultimately have 2: "(\<Union>i. (\<lambda>i. a \<inter> A i) i) \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1840 |
by (rule smallest_ccdi_sets.Disj) |
1841 |
show ?case |
|
1842 |
by (metis 1 2) |
|
1843 |
qed |
|
1844 |
||
1845 |
||
1846 |
lemma (in algebra) smallest_ccdi_sets_Int: |
|
47694 | 1847 |
assumes b: "b \<in> smallest_ccdi_sets \<Omega> M" |
1848 |
shows "a \<in> smallest_ccdi_sets \<Omega> M \<Longrightarrow> a \<inter> b \<in> smallest_ccdi_sets \<Omega> M" |
|
38656 | 1849 |
proof (induct rule: smallest_ccdi_sets.induct) |
1850 |
case (Basic x) |
|
1851 |
thus ?case |
|
1852 |
by (metis b smallest_ccdi_sets_Int1) |
|
1853 |
next |
|
1854 |
case (Compl x) |
|
47694 | 1855 |
have "(\<Omega> - x) \<inter> b = \<Omega> - (x \<inter> b \<union> (\<Omega> - b))" |
38656 | 1856 |
by blast |
47694 | 1857 |
also have "... \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1858 |
by (metis Compl(2) Diff_disjoint Int_Diff Int_commute Int_empty_right b |
1859 |
smallest_ccdi_sets.Compl smallest_ccdi_sets_Un) |
|
1860 |
finally show ?case . |
|
1861 |
next |
|
1862 |
case (Inc A) |
|
1863 |
have 1: "(\<Union>i. (\<lambda>i. A i \<inter> b) i) = (\<Union>i. A i) \<inter> b" |
|
1864 |
by blast |
|
47694 | 1865 |
have "range (\<lambda>i. A i \<inter> b) \<in> Pow(smallest_ccdi_sets \<Omega> M)" using Inc |
38656 | 1866 |
by blast |
1867 |
moreover have "(\<lambda>i. A i \<inter> b) 0 = {}" |
|
1868 |
by (simp add: Inc) |
|
1869 |
moreover have "!!n. (\<lambda>i. A i \<inter> b) n \<subseteq> (\<lambda>i. A i \<inter> b) (Suc n)" using Inc |
|
1870 |
by blast |
|
47694 | 1871 |
ultimately have 2: "(\<Union>i. (\<lambda>i. A i \<inter> b) i) \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1872 |
by (rule smallest_ccdi_sets.Inc) |
1873 |
show ?case |
|
1874 |
by (metis 1 2) |
|
1875 |
next |
|
1876 |
case (Disj A) |
|
1877 |
have 1: "(\<Union>i. (\<lambda>i. A i \<inter> b) i) = (\<Union>i. A i) \<inter> b" |
|
1878 |
by blast |
|
47694 | 1879 |
have "range (\<lambda>i. A i \<inter> b) \<in> Pow(smallest_ccdi_sets \<Omega> M)" using Disj |
38656 | 1880 |
by blast |
1881 |
moreover have "disjoint_family (\<lambda>i. A i \<inter> b)" using Disj |
|
1882 |
by (auto simp add: disjoint_family_on_def) |
|
47694 | 1883 |
ultimately have 2: "(\<Union>i. (\<lambda>i. A i \<inter> b) i) \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1884 |
by (rule smallest_ccdi_sets.Disj) |
1885 |
show ?case |
|
1886 |
by (metis 1 2) |
|
1887 |
qed |
|
1888 |
||
1889 |
lemma (in algebra) sigma_property_disjoint_lemma: |
|
47694 | 1890 |
assumes sbC: "M \<subseteq> C" |
1891 |
and ccdi: "closed_cdi \<Omega> C" |
|
1892 |
shows "sigma_sets \<Omega> M \<subseteq> C" |
|
38656 | 1893 |
proof - |
47694 | 1894 |
have "smallest_ccdi_sets \<Omega> M \<in> {B . M \<subseteq> B \<and> sigma_algebra \<Omega> B}" |
38656 | 1895 |
apply (auto simp add: sigma_algebra_disjoint_iff algebra_iff_Int |
1896 |
smallest_ccdi_sets_Int) |
|
1897 |
apply (metis Union_Pow_eq Union_upper subsetD smallest_ccdi_sets) |
|
1898 |
apply (blast intro: smallest_ccdi_sets.Disj) |
|
1899 |
done |
|
47694 | 1900 |
hence "sigma_sets (\<Omega>) (M) \<subseteq> smallest_ccdi_sets \<Omega> M" |
38656 | 1901 |
by clarsimp |
47694 | 1902 |
(drule sigma_algebra.sigma_sets_subset [where a="M"], auto) |
38656 | 1903 |
also have "... \<subseteq> C" |
1904 |
proof |
|
1905 |
fix x |
|
47694 | 1906 |
assume x: "x \<in> smallest_ccdi_sets \<Omega> M" |
38656 | 1907 |
thus "x \<in> C" |
1908 |
proof (induct rule: smallest_ccdi_sets.induct) |
|
1909 |
case (Basic x) |
|
1910 |
thus ?case |
|
1911 |
by (metis Basic subsetD sbC) |
|
1912 |
next |
|
1913 |
case (Compl x) |
|
1914 |
thus ?case |
|
1915 |
by (blast intro: closed_cdi_Compl [OF ccdi, simplified]) |
|
1916 |
next |
|
1917 |
case (Inc A) |
|
1918 |
thus ?case |
|
1919 |
by (auto intro: closed_cdi_Inc [OF ccdi, simplified]) |
|
1920 |
next |
|
1921 |
case (Disj A) |
|
1922 |
thus ?case |
|
1923 |
by (auto intro: closed_cdi_Disj [OF ccdi, simplified]) |
|
1924 |
qed |
|
1925 |
qed |
|
1926 |
finally show ?thesis . |
|
1927 |
qed |
|
1928 |
||
1929 |
lemma (in algebra) sigma_property_disjoint: |
|
47694 | 1930 |
assumes sbC: "M \<subseteq> C" |
1931 |
and compl: "!!s. s \<in> C \<inter> sigma_sets (\<Omega>) (M) \<Longrightarrow> \<Omega> - s \<in> C" |
|
1932 |
and inc: "!!A. range A \<subseteq> C \<inter> sigma_sets (\<Omega>) (M) |
|
38656 | 1933 |
\<Longrightarrow> A 0 = {} \<Longrightarrow> (!!n. A n \<subseteq> A (Suc n)) |
1934 |
\<Longrightarrow> (\<Union>i. A i) \<in> C" |
|
47694 | 1935 |
and disj: "!!A. range A \<subseteq> C \<inter> sigma_sets (\<Omega>) (M) |
38656 | 1936 |
\<Longrightarrow> disjoint_family A \<Longrightarrow> (\<Union>i::nat. A i) \<in> C" |
47694 | 1937 |
shows "sigma_sets (\<Omega>) (M) \<subseteq> C" |
38656 | 1938 |
proof - |
47694 | 1939 |
have "sigma_sets (\<Omega>) (M) \<subseteq> C \<inter> sigma_sets (\<Omega>) (M)" |
38656 | 1940 |
proof (rule sigma_property_disjoint_lemma) |
47694 | 1941 |
show "M \<subseteq> C \<inter> sigma_sets (\<Omega>) (M)" |
38656 | 1942 |
by (metis Int_greatest Set.subsetI sbC sigma_sets.Basic) |
1943 |
next |
|
47694 | 1944 |
show "closed_cdi \<Omega> (C \<inter> sigma_sets (\<Omega>) (M))" |
38656 | 1945 |
by (simp add: closed_cdi_def compl inc disj) |
1946 |
(metis PowI Set.subsetI le_infI2 sigma_sets_into_sp space_closed |
|
1947 |
IntE sigma_sets.Compl range_subsetD sigma_sets.Union) |
|
1948 |
qed |
|
1949 |
thus ?thesis |
|
1950 |
by blast |
|
1951 |
qed |
|
1952 |
||
50387 | 1953 |
subsection {* Dynkin systems *} |
40859 | 1954 |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
1955 |
locale dynkin_system = subset_class + |
47694 | 1956 |
assumes space: "\<Omega> \<in> M" |
1957 |
and compl[intro!]: "\<And>A. A \<in> M \<Longrightarrow> \<Omega> - A \<in> M" |
|
1958 |
and UN[intro!]: "\<And>A. disjoint_family A \<Longrightarrow> range A \<subseteq> M |
|
1959 |
\<Longrightarrow> (\<Union>i::nat. A i) \<in> M" |
|
40859 | 1960 |
|
47694 | 1961 |
lemma (in dynkin_system) empty[intro, simp]: "{} \<in> M" |
1962 |
using space compl[of "\<Omega>"] by simp |
|
40859 | 1963 |
|
1964 |
lemma (in dynkin_system) diff: |
|
47694 | 1965 |
assumes sets: "D \<in> M" "E \<in> M" and "D \<subseteq> E" |
1966 |
shows "E - D \<in> M" |
|
40859 | 1967 |
proof - |
47694 | 1968 |
let ?f = "\<lambda>x. if x = 0 then D else if x = Suc 0 then \<Omega> - E else {}" |
1969 |
have "range ?f = {D, \<Omega> - E, {}}" |
|
40859 | 1970 |
by (auto simp: image_iff) |
47694 | 1971 |
moreover have "D \<union> (\<Omega> - E) = (\<Union>i. ?f i)" |
40859 | 1972 |
by (auto simp: image_iff split: split_if_asm) |
1973 |
moreover |
|
1974 |
then have "disjoint_family ?f" unfolding disjoint_family_on_def |
|
47694 | 1975 |
using `D \<in> M`[THEN sets_into_space] `D \<subseteq> E` by auto |
1976 |
ultimately have "\<Omega> - (D \<union> (\<Omega> - E)) \<in> M" |
|
40859 | 1977 |
using sets by auto |
47694 | 1978 |
also have "\<Omega> - (D \<union> (\<Omega> - E)) = E - D" |
40859 | 1979 |
using assms sets_into_space by auto |
1980 |
finally show ?thesis . |
|
1981 |
qed |
|
1982 |
||
1983 |
lemma dynkin_systemI: |
|
47694 | 1984 |
assumes "\<And> A. A \<in> M \<Longrightarrow> A \<subseteq> \<Omega>" "\<Omega> \<in> M" |
1985 |
assumes "\<And> A. A \<in> M \<Longrightarrow> \<Omega> - A \<in> M" |
|
1986 |
assumes "\<And> A. disjoint_family A \<Longrightarrow> range A \<subseteq> M |
|
1987 |
\<Longrightarrow> (\<Union>i::nat. A i) \<in> M" |
|
1988 |
shows "dynkin_system \<Omega> M" |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
1989 |
using assms by (auto simp: dynkin_system_def dynkin_system_axioms_def subset_class_def) |
40859 | 1990 |
|
42988 | 1991 |
lemma dynkin_systemI': |
47694 | 1992 |
assumes 1: "\<And> A. A \<in> M \<Longrightarrow> A \<subseteq> \<Omega>" |
1993 |
assumes empty: "{} \<in> M" |
|
1994 |
assumes Diff: "\<And> A. A \<in> M \<Longrightarrow> \<Omega> - A \<in> M" |
|
1995 |
assumes 2: "\<And> A. disjoint_family A \<Longrightarrow> range A \<subseteq> M |
|
1996 |
\<Longrightarrow> (\<Union>i::nat. A i) \<in> M" |
|
1997 |
shows "dynkin_system \<Omega> M" |
|
42988 | 1998 |
proof - |
47694 | 1999 |
from Diff[OF empty] have "\<Omega> \<in> M" by auto |
42988 | 2000 |
from 1 this Diff 2 show ?thesis |
2001 |
by (intro dynkin_systemI) auto |
|
2002 |
qed |
|
2003 |
||
40859 | 2004 |
lemma dynkin_system_trivial: |
47694 | 2005 |
shows "dynkin_system A (Pow A)" |
40859 | 2006 |
by (rule dynkin_systemI) auto |
2007 |
||
2008 |
lemma sigma_algebra_imp_dynkin_system: |
|
47694 | 2009 |
assumes "sigma_algebra \<Omega> M" shows "dynkin_system \<Omega> M" |
40859 | 2010 |
proof - |
47694 | 2011 |
interpret sigma_algebra \<Omega> M by fact |
44890
22f665a2e91c
new fastforce replacing fastsimp - less confusing name
nipkow
parents:
44537
diff
changeset
|
2012 |
show ?thesis using sets_into_space by (fastforce intro!: dynkin_systemI) |
40859 | 2013 |
qed |
2014 |
||
2015 |
subsection "Intersection stable algebras" |
|
2016 |
||
47694 | 2017 |
definition "Int_stable M \<longleftrightarrow> (\<forall> a \<in> M. \<forall> b \<in> M. a \<inter> b \<in> M)" |
40859 | 2018 |
|
2019 |
lemma (in algebra) Int_stable: "Int_stable M" |
|
2020 |
unfolding Int_stable_def by auto |
|
2021 |
||
42981 | 2022 |
lemma Int_stableI: |
47694 | 2023 |
"(\<And>a b. a \<in> A \<Longrightarrow> b \<in> A \<Longrightarrow> a \<inter> b \<in> A) \<Longrightarrow> Int_stable A" |
42981 | 2024 |
unfolding Int_stable_def by auto |
2025 |
||
2026 |
lemma Int_stableD: |
|
47694 | 2027 |
"Int_stable M \<Longrightarrow> a \<in> M \<Longrightarrow> b \<in> M \<Longrightarrow> a \<inter> b \<in> M" |
42981 | 2028 |
unfolding Int_stable_def by auto |
2029 |
||
40859 | 2030 |
lemma (in dynkin_system) sigma_algebra_eq_Int_stable: |
47694 | 2031 |
"sigma_algebra \<Omega> M \<longleftrightarrow> Int_stable M" |
40859 | 2032 |
proof |
47694 | 2033 |
assume "sigma_algebra \<Omega> M" then show "Int_stable M" |
40859 | 2034 |
unfolding sigma_algebra_def using algebra.Int_stable by auto |
2035 |
next |
|
2036 |
assume "Int_stable M" |
|
47694 | 2037 |
show "sigma_algebra \<Omega> M" |
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
2038 |
unfolding sigma_algebra_disjoint_iff algebra_iff_Un |
40859 | 2039 |
proof (intro conjI ballI allI impI) |
47694 | 2040 |
show "M \<subseteq> Pow (\<Omega>)" using sets_into_space by auto |
40859 | 2041 |
next |
47694 | 2042 |
fix A B assume "A \<in> M" "B \<in> M" |
2043 |
then have "A \<union> B = \<Omega> - ((\<Omega> - A) \<inter> (\<Omega> - B))" |
|
2044 |
"\<Omega> - A \<in> M" "\<Omega> - B \<in> M" |
|
40859 | 2045 |
using sets_into_space by auto |
47694 | 2046 |
then show "A \<union> B \<in> M" |
40859 | 2047 |
using `Int_stable M` unfolding Int_stable_def by auto |
2048 |
qed auto |
|
2049 |
qed |
|
2050 |
||
2051 |
subsection "Smallest Dynkin systems" |
|
2052 |
||
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
2053 |
definition dynkin where |
47694 | 2054 |
"dynkin \<Omega> M = (\<Inter>{D. dynkin_system \<Omega> D \<and> M \<subseteq> D})" |
40859 | 2055 |
|
2056 |
lemma dynkin_system_dynkin: |
|
47694 | 2057 |
assumes "M \<subseteq> Pow (\<Omega>)" |
2058 |
shows "dynkin_system \<Omega> (dynkin \<Omega> M)" |
|
40859 | 2059 |
proof (rule dynkin_systemI) |
47694 | 2060 |
fix A assume "A \<in> dynkin \<Omega> M" |
40859 | 2061 |
moreover |
47694 | 2062 |
{ fix D assume "A \<in> D" and d: "dynkin_system \<Omega> D" |
2063 |
then have "A \<subseteq> \<Omega>" by (auto simp: dynkin_system_def subset_class_def) } |
|
2064 |
moreover have "{D. dynkin_system \<Omega> D \<and> M \<subseteq> D} \<noteq> {}" |
|
44890
22f665a2e91c
new fastforce replacing fastsimp - less confusing name
nipkow
parents:
44537
diff
changeset
|
2065 |
using assms dynkin_system_trivial by fastforce |
47694 | 2066 |
ultimately show "A \<subseteq> \<Omega>" |
40859 | 2067 |
unfolding dynkin_def using assms |
47694 | 2068 |
by auto |
40859 | 2069 |
next |
47694 | 2070 |
show "\<Omega> \<in> dynkin \<Omega> M" |
44890
22f665a2e91c
new fastforce replacing fastsimp - less confusing name
nipkow
parents:
44537
diff
changeset
|
2071 |
unfolding dynkin_def using dynkin_system.space by fastforce |
40859 | 2072 |
next |
47694 | 2073 |
fix A assume "A \<in> dynkin \<Omega> M" |
2074 |
then show "\<Omega> - A \<in> dynkin \<Omega> M" |
|
40859 | 2075 |
unfolding dynkin_def using dynkin_system.compl by force |
2076 |
next |
|
2077 |
fix A :: "nat \<Rightarrow> 'a set" |
|
47694 | 2078 |
assume A: "disjoint_family A" "range A \<subseteq> dynkin \<Omega> M" |
2079 |
show "(\<Union>i. A i) \<in> dynkin \<Omega> M" unfolding dynkin_def |
|
40859 | 2080 |
proof (simp, safe) |
47694 | 2081 |
fix D assume "dynkin_system \<Omega> D" "M \<subseteq> D" |
2082 |
with A have "(\<Union>i. A i) \<in> D" |
|
40859 | 2083 |
by (intro dynkin_system.UN) (auto simp: dynkin_def) |
2084 |
then show "(\<Union>i. A i) \<in> D" by auto |
|
2085 |
qed |
|
2086 |
qed |
|
2087 |
||
47694 | 2088 |
lemma dynkin_Basic[intro]: "A \<in> M \<Longrightarrow> A \<in> dynkin \<Omega> M" |
40859 | 2089 |
unfolding dynkin_def by auto |
2090 |
||
2091 |
lemma (in dynkin_system) restricted_dynkin_system: |
|
47694 | 2092 |
assumes "D \<in> M" |
2093 |
shows "dynkin_system \<Omega> {Q. Q \<subseteq> \<Omega> \<and> Q \<inter> D \<in> M}" |
|
40859 | 2094 |
proof (rule dynkin_systemI, simp_all) |
47694 | 2095 |
have "\<Omega> \<inter> D = D" |
2096 |
using `D \<in> M` sets_into_space by auto |
|
2097 |
then show "\<Omega> \<inter> D \<in> M" |
|
2098 |
using `D \<in> M` by auto |
|
40859 | 2099 |
next |
47694 | 2100 |
fix A assume "A \<subseteq> \<Omega> \<and> A \<inter> D \<in> M" |
2101 |
moreover have "(\<Omega> - A) \<inter> D = (\<Omega> - (A \<inter> D)) - (\<Omega> - D)" |
|
40859 | 2102 |
by auto |
47694 | 2103 |
ultimately show "\<Omega> - A \<subseteq> \<Omega> \<and> (\<Omega> - A) \<inter> D \<in> M" |
2104 |
using `D \<in> M` by (auto intro: diff) |
|
40859 | 2105 |
next |
2106 |
fix A :: "nat \<Rightarrow> 'a set" |
|
47694 | 2107 |
assume "disjoint_family A" "range A \<subseteq> {Q. Q \<subseteq> \<Omega> \<and> Q \<inter> D \<in> M}" |
2108 |
then have "\<And>i. A i \<subseteq> \<Omega>" "disjoint_family (\<lambda>i. A i \<inter> D)" |
|
2109 |
"range (\<lambda>i. A i \<inter> D) \<subseteq> M" "(\<Union>x. A x) \<inter> D = (\<Union>x. A x \<inter> D)" |
|
44890
22f665a2e91c
new fastforce replacing fastsimp - less confusing name
nipkow
parents:
44537
diff
changeset
|
2110 |
by ((fastforce simp: disjoint_family_on_def)+) |
47694 | 2111 |
then show "(\<Union>x. A x) \<subseteq> \<Omega> \<and> (\<Union>x. A x) \<inter> D \<in> M" |
40859 | 2112 |
by (auto simp del: UN_simps) |
2113 |
qed |
|
2114 |
||
2115 |
lemma (in dynkin_system) dynkin_subset: |
|
47694 | 2116 |
assumes "N \<subseteq> M" |
2117 |
shows "dynkin \<Omega> N \<subseteq> M" |
|
40859 | 2118 |
proof - |
47694 | 2119 |
have "dynkin_system \<Omega> M" by default |
2120 |
then have "dynkin_system \<Omega> M" |
|
42065
2b98b4c2e2f1
add ring_of_sets and subset_class as basis for algebra
hoelzl
parents:
41983
diff
changeset
|
2121 |
using assms unfolding dynkin_system_def dynkin_system_axioms_def subset_class_def by simp |
47694 | 2122 |
with `N \<subseteq> M` show ?thesis by (auto simp add: dynkin_def) |
40859 | 2123 |
qed |
2124 |
||
2125 |
lemma sigma_eq_dynkin: |
|
47694 | 2126 |
assumes sets: "M \<subseteq> Pow \<Omega>" |
40859 | 2127 |
assumes "Int_stable M" |
47694 | 2128 |
shows "sigma_sets \<Omega> M = dynkin \<Omega> M" |
40859 | 2129 |
proof - |
47694 | 2130 |
have "dynkin \<Omega> M \<subseteq> sigma_sets (\<Omega>) (M)" |
40859 | 2131 |
using sigma_algebra_imp_dynkin_system |
47694 | 2132 |
unfolding dynkin_def sigma_sets_least_sigma_algebra[OF sets] by auto |
40859 | 2133 |
moreover |
47694 | 2134 |
interpret dynkin_system \<Omega> "dynkin \<Omega> M" |
40859 | 2135 |
using dynkin_system_dynkin[OF sets] . |
47694 | 2136 |
have "sigma_algebra \<Omega> (dynkin \<Omega> M)" |
40859 | 2137 |
unfolding sigma_algebra_eq_Int_stable Int_stable_def |
2138 |
proof (intro ballI) |
|
47694 | 2139 |
fix A B assume "A \<in> dynkin \<Omega> M" "B \<in> dynkin \<Omega> M" |
2140 |
let ?D = "\<lambda>E. {Q. Q \<subseteq> \<Omega> \<and> Q \<inter> E \<in> dynkin \<Omega> M}" |
|
2141 |
have "M \<subseteq> ?D B" |
|
40859 | 2142 |
proof |
47694 | 2143 |
fix E assume "E \<in> M" |
2144 |
then have "M \<subseteq> ?D E" "E \<in> dynkin \<Omega> M" |
|
40859 | 2145 |
using sets_into_space `Int_stable M` by (auto simp: Int_stable_def) |
47694 | 2146 |
then have "dynkin \<Omega> M \<subseteq> ?D E" |
2147 |
using restricted_dynkin_system `E \<in> dynkin \<Omega> M` |
|
40859 | 2148 |
by (intro dynkin_system.dynkin_subset) simp_all |
47694 | 2149 |
then have "B \<in> ?D E" |
2150 |
using `B \<in> dynkin \<Omega> M` by auto |
|
2151 |
then have "E \<inter> B \<in> dynkin \<Omega> M" |
|
40859 | 2152 |
by (subst Int_commute) simp |
47694 | 2153 |
then show "E \<in> ?D B" |
2154 |
using sets `E \<in> M` by auto |
|
40859 | 2155 |
qed |
47694 | 2156 |
then have "dynkin \<Omega> M \<subseteq> ?D B" |
2157 |
using restricted_dynkin_system `B \<in> dynkin \<Omega> M` |
|
40859 | 2158 |
by (intro dynkin_system.dynkin_subset) simp_all |
47694 | 2159 |
then show "A \<inter> B \<in> dynkin \<Omega> M" |
2160 |
using `A \<in> dynkin \<Omega> M` sets_into_space by auto |
|
40859 | 2161 |
qed |
47694 | 2162 |
from sigma_algebra.sigma_sets_subset[OF this, of "M"] |
2163 |
have "sigma_sets (\<Omega>) (M) \<subseteq> dynkin \<Omega> M" by auto |
|
2164 |
ultimately have "sigma_sets (\<Omega>) (M) = dynkin \<Omega> M" by auto |
|
40859 | 2165 |
then show ?thesis |
47694 | 2166 |
by (auto simp: dynkin_def) |
40859 | 2167 |
qed |
2168 |
||
2169 |
lemma (in dynkin_system) dynkin_idem: |
|
47694 | 2170 |
"dynkin \<Omega> M = M" |
40859 | 2171 |
proof - |
47694 | 2172 |
have "dynkin \<Omega> M = M" |
40859 | 2173 |
proof |
47694 | 2174 |
show "M \<subseteq> dynkin \<Omega> M" |
40859 | 2175 |
using dynkin_Basic by auto |
47694 | 2176 |
show "dynkin \<Omega> M \<subseteq> M" |
40859 | 2177 |
by (intro dynkin_subset) auto |
2178 |
qed |
|
2179 |
then show ?thesis |
|
47694 | 2180 |
by (auto simp: dynkin_def) |
40859 | 2181 |
qed |
2182 |
||
2183 |
lemma (in dynkin_system) dynkin_lemma: |
|
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
2184 |
assumes "Int_stable E" |
47694 | 2185 |
and E: "E \<subseteq> M" "M \<subseteq> sigma_sets \<Omega> E" |
2186 |
shows "sigma_sets \<Omega> E = M" |
|
40859 | 2187 |
proof - |
47694 | 2188 |
have "E \<subseteq> Pow \<Omega>" |
41689
3e39b0e730d6
the measure valuation is again part of the measure_space type, instead of an explicit parameter to the locale;
hoelzl
parents:
41543
diff
changeset
|
2189 |
using E sets_into_space by force |
47694 | 2190 |
then have "sigma_sets \<Omega> E = dynkin \<Omega> E" |
40859 | 2191 |
using `Int_stable E` by (rule sigma_eq_dynkin) |
47694 | 2192 |
moreover then have "dynkin \<Omega> E = M" |
2193 |
using assms dynkin_subset[OF E(1)] by simp |
|
40859 | 2194 |
ultimately show ?thesis |
47694 | 2195 |
using assms by (auto simp: dynkin_def) |
42864 | 2196 |
qed |
2197 |
||
49789
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2198 |
lemma sigma_sets_induct_disjoint[consumes 3, case_names basic empty compl union]: |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2199 |
assumes "Int_stable G" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2200 |
and closed: "G \<subseteq> Pow \<Omega>" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2201 |
and A: "A \<in> sigma_sets \<Omega> G" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2202 |
assumes basic: "\<And>A. A \<in> G \<Longrightarrow> P A" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2203 |
and empty: "P {}" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2204 |
and compl: "\<And>A. A \<in> sigma_sets \<Omega> G \<Longrightarrow> P A \<Longrightarrow> P (\<Omega> - A)" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2205 |
and union: "\<And>A. disjoint_family A \<Longrightarrow> range A \<subseteq> sigma_sets \<Omega> G \<Longrightarrow> (\<And>i. P (A i)) \<Longrightarrow> P (\<Union>i::nat. A i)" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2206 |
shows "P A" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2207 |
proof - |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2208 |
let ?D = "{ A \<in> sigma_sets \<Omega> G. P A }" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2209 |
interpret sigma_algebra \<Omega> "sigma_sets \<Omega> G" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2210 |
using closed by (rule sigma_algebra_sigma_sets) |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2211 |
from compl[OF _ empty] closed have space: "P \<Omega>" by simp |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2212 |
interpret dynkin_system \<Omega> ?D |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2213 |
by default (auto dest: sets_into_space intro!: space compl union) |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2214 |
have "sigma_sets \<Omega> G = ?D" |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2215 |
by (rule dynkin_lemma) (auto simp: basic `Int_stable G`) |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2216 |
with A show ?thesis by auto |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2217 |
qed |
e0a4cb91a8a9
add induction rule for intersection-stable sigma-sets
hoelzl
parents:
49782
diff
changeset
|
2218 |
|
33271
7be66dee1a5a
New theory Probability, which contains a development of measure theory
paulson
parents:
diff
changeset
|
2219 |
end |