author | berghofe |
Fri, 01 Jul 2005 13:54:12 +0200 | |
changeset 16633 | 208ebc9311f2 |
parent 15140 | 322485b816ac |
child 17290 | a39d1430d271 |
permissions | -rw-r--r-- |
10750 | 1 |
(* Title : Filter.thy |
2 |
ID : $Id$ |
|
3 |
Author : Jacques D. Fleuriot |
|
4 |
Copyright : 1998 University of Cambridge |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
5 |
Conversion to Isar and new proofs by Lawrence C Paulson, 2004 |
10750 | 6 |
*) |
7 |
||
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
8 |
header{*Filters and Ultrafilters*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
9 |
|
15131 | 10 |
theory Filter |
15140 | 11 |
imports Zorn |
15131 | 12 |
begin |
10750 | 13 |
|
14 |
constdefs |
|
15 |
||
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
16 |
is_Filter :: "['a set set,'a set] => bool" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
17 |
"is_Filter F S == (F <= Pow(S) & S \<in> F & {} ~: F & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
18 |
(\<forall>u \<in> F. \<forall>v \<in> F. u Int v \<in> F) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
19 |
(\<forall>u v. u \<in> F & u <= v & v <= S --> v \<in> F))" |
10750 | 20 |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
21 |
Filter :: "'a set => 'a set set set" |
10750 | 22 |
"Filter S == {X. is_Filter X S}" |
23 |
||
24 |
(* free filter does not contain any finite set *) |
|
25 |
||
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
26 |
Freefilter :: "'a set => 'a set set set" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
27 |
"Freefilter S == {X. X \<in> Filter S & (\<forall>x \<in> X. ~ finite x)}" |
10750 | 28 |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
29 |
Ultrafilter :: "'a set => 'a set set set" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
30 |
"Ultrafilter S == {X. X \<in> Filter S & (\<forall>A \<in> Pow(S). A \<in> X | S - A \<in> X)}" |
10750 | 31 |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
32 |
FreeUltrafilter :: "'a set => 'a set set set" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
33 |
"FreeUltrafilter S == {X. X \<in> Ultrafilter S & (\<forall>x \<in> X. ~ finite x)}" |
10750 | 34 |
|
35 |
(* A locale makes proof of Ultrafilter Theorem more modular *) |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
36 |
locale (open) UFT = |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
37 |
fixes frechet :: "'a set => 'a set set" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
38 |
and superfrechet :: "'a set => 'a set set set" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
39 |
assumes not_finite_UNIV: "~finite (UNIV :: 'a set)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
40 |
defines frechet_def: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
41 |
"frechet S == {A. finite (S - A)}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
42 |
and superfrechet_def: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
43 |
"superfrechet S == {G. G \<in> Filter S & frechet S <= G}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
44 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
45 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
46 |
(*------------------------------------------------------------------ |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
47 |
Properties of Filters and Freefilters - |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
48 |
rules for intro, destruction etc. |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
49 |
------------------------------------------------------------------*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
50 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
51 |
lemma is_FilterD1: "is_Filter X S ==> X <= Pow(S)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
52 |
apply (simp add: is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
53 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
54 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
55 |
lemma is_FilterD2: "is_Filter X S ==> X ~= {}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
56 |
apply (auto simp add: is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
57 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
58 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
59 |
lemma is_FilterD3: "is_Filter X S ==> {} ~: X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
60 |
apply (simp add: is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
61 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
62 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
63 |
lemma mem_FiltersetI: "is_Filter X S ==> X \<in> Filter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
64 |
apply (simp add: Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
65 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
66 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
67 |
lemma mem_FiltersetD: "X \<in> Filter S ==> is_Filter X S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
68 |
apply (simp add: Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
69 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
70 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
71 |
lemma Filter_empty_not_mem: "X \<in> Filter S ==> {} ~: X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
72 |
apply (erule mem_FiltersetD [THEN is_FilterD3]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
73 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
74 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
75 |
lemmas Filter_empty_not_memE = Filter_empty_not_mem [THEN notE, standard] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
76 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
77 |
lemma mem_FiltersetD1: "[| X \<in> Filter S; A \<in> X; B \<in> X |] ==> A Int B \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
78 |
apply (unfold Filter_def is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
79 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
80 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
81 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
82 |
lemma mem_FiltersetD2: "[| X \<in> Filter S; A \<in> X; A <= B; B <= S|] ==> B \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
83 |
apply (unfold Filter_def is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
84 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
85 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
86 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
87 |
lemma mem_FiltersetD3: "[| X \<in> Filter S; A \<in> X |] ==> A \<in> Pow S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
88 |
apply (unfold Filter_def is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
89 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
90 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
91 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
92 |
lemma mem_FiltersetD4: "X \<in> Filter S ==> S \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
93 |
apply (unfold Filter_def is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
94 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
95 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
96 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
97 |
lemma is_FilterI: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
98 |
"[| X <= Pow(S); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
99 |
S \<in> X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
100 |
X ~= {}; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
101 |
{} ~: X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
102 |
\<forall>u \<in> X. \<forall>v \<in> X. u Int v \<in> X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
103 |
\<forall>u v. u \<in> X & u<=v & v<=S --> v \<in> X |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
104 |
|] ==> is_Filter X S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
105 |
apply (unfold is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
106 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
107 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
108 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
109 |
lemma mem_FiltersetI2: "[| X <= Pow(S); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
110 |
S \<in> X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
111 |
X ~= {}; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
112 |
{} ~: X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
113 |
\<forall>u \<in> X. \<forall>v \<in> X. u Int v \<in> X; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
114 |
\<forall>u v. u \<in> X & u<=v & v<=S --> v \<in> X |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
115 |
|] ==> X \<in> Filter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
116 |
by (blast intro: mem_FiltersetI is_FilterI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
117 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
118 |
lemma is_FilterE_lemma: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
119 |
"is_Filter X S ==> X <= Pow(S) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
120 |
S \<in> X & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
121 |
X ~= {} & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
122 |
{} ~: X & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
123 |
(\<forall>u \<in> X. \<forall>v \<in> X. u Int v \<in> X) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
124 |
(\<forall>u v. u \<in> X & u <= v & v<=S --> v \<in> X)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
125 |
apply (unfold is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
126 |
apply fast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
127 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
128 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
129 |
lemma memFiltersetE_lemma: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
130 |
"X \<in> Filter S ==> X <= Pow(S) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
131 |
S \<in> X & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
132 |
X ~= {} & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
133 |
{} ~: X & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
134 |
(\<forall>u \<in> X. \<forall>v \<in> X. u Int v \<in> X) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
135 |
(\<forall>u v. u \<in> X & u <= v & v<=S --> v \<in> X)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
136 |
by (erule mem_FiltersetD [THEN is_FilterE_lemma]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
137 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
138 |
lemma Freefilter_Filter: "X \<in> Freefilter S ==> X \<in> Filter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
139 |
apply (simp add: Filter_def Freefilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
140 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
141 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
142 |
lemma mem_Freefilter_not_finite: "X \<in> Freefilter S ==> \<forall>y \<in> X. ~finite(y)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
143 |
apply (simp add: Freefilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
144 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
145 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
146 |
lemma mem_FreefiltersetD1: "[| X \<in> Freefilter S; x \<in> X |] ==> ~ finite x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
147 |
apply (blast dest!: mem_Freefilter_not_finite) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
148 |
done |
10750 | 149 |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
150 |
lemmas mem_FreefiltersetE1 = mem_FreefiltersetD1 [THEN notE, standard] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
151 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
152 |
lemma mem_FreefiltersetD2: "[| X \<in> Freefilter S; finite x|] ==> x ~: X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
153 |
apply (blast dest!: mem_Freefilter_not_finite) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
154 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
155 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
156 |
lemma mem_FreefiltersetI1: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
157 |
"[| X \<in> Filter S; \<forall>x. ~(x \<in> X & finite x) |] ==> X \<in> Freefilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
158 |
by (simp add: Freefilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
159 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
160 |
lemma mem_FreefiltersetI2: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
161 |
"[| X \<in> Filter S; \<forall>x. (x ~: X | ~ finite x) |] ==> X \<in> Freefilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
162 |
by (simp add: Freefilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
163 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
164 |
lemma Filter_Int_not_empty: "[| X \<in> Filter S; A \<in> X; B \<in> X |] ==> A Int B ~= {}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
165 |
apply (frule_tac A = "A" and B = "B" in mem_FiltersetD1) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
166 |
apply (auto dest!: Filter_empty_not_mem) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
167 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
168 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
169 |
lemmas Filter_Int_not_emptyE = Filter_Int_not_empty [THEN notE, standard] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
170 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
171 |
subsection{*Ultrafilters and Free Ultrafilters*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
172 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
173 |
lemma Ultrafilter_Filter: "X \<in> Ultrafilter S ==> X \<in> Filter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
174 |
apply (simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
175 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
176 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
177 |
lemma mem_UltrafiltersetD2: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
178 |
"X \<in> Ultrafilter S ==> \<forall>A \<in> Pow(S). A \<in> X | S - A \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
179 |
by (auto simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
180 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
181 |
lemma mem_UltrafiltersetD3: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
182 |
"[|X \<in> Ultrafilter S; A <= S; A ~: X |] ==> S - A \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
183 |
by (auto simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
184 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
185 |
lemma mem_UltrafiltersetD4: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
186 |
"[|X \<in> Ultrafilter S; A <= S; S - A ~: X |] ==> A \<in> X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
187 |
by (auto simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
188 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
189 |
lemma mem_UltrafiltersetI: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
190 |
"[| X \<in> Filter S; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
191 |
\<forall>A \<in> Pow(S). A \<in> X | S - A \<in> X |] ==> X \<in> Ultrafilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
192 |
by (simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
193 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
194 |
lemma FreeUltrafilter_Ultrafilter: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
195 |
"X \<in> FreeUltrafilter S ==> X \<in> Ultrafilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
196 |
by (auto simp add: Ultrafilter_def FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
197 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
198 |
lemma mem_FreeUltrafilter_not_finite: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
199 |
"X \<in> FreeUltrafilter S ==> \<forall>y \<in> X. ~finite(y)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
200 |
by (simp add: FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
201 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
202 |
lemma mem_FreeUltrafiltersetD1: "[| X \<in> FreeUltrafilter S; x \<in> X |] ==> ~ finite x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
203 |
apply (blast dest!: mem_FreeUltrafilter_not_finite) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
204 |
done |
10750 | 205 |
|
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
206 |
lemmas mem_FreeUltrafiltersetE1 = mem_FreeUltrafiltersetD1 [THEN notE, standard] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
207 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
208 |
lemma mem_FreeUltrafiltersetD2: "[| X \<in> FreeUltrafilter S; finite x|] ==> x ~: X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
209 |
apply (blast dest!: mem_FreeUltrafilter_not_finite) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
210 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
211 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
212 |
lemma mem_FreeUltrafiltersetI1: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
213 |
"[| X \<in> Ultrafilter S; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
214 |
\<forall>x. ~(x \<in> X & finite x) |] ==> X \<in> FreeUltrafilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
215 |
by (simp add: FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
216 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
217 |
lemma mem_FreeUltrafiltersetI2: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
218 |
"[| X \<in> Ultrafilter S; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
219 |
\<forall>x. (x ~: X | ~ finite x) |] ==> X \<in> FreeUltrafilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
220 |
by (simp add: FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
221 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
222 |
lemma FreeUltrafilter_iff: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
223 |
"(X \<in> FreeUltrafilter S) = (X \<in> Freefilter S & (\<forall>x \<in> Pow(S). x \<in> X | S - x \<in> X))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
224 |
by (auto simp add: FreeUltrafilter_def Freefilter_def Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
225 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
226 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
227 |
(*------------------------------------------------------------------- |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
228 |
A Filter F on S is an ultrafilter iff it is a maximal filter |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
229 |
i.e. whenever G is a filter on I and F <= F then F = G |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
230 |
--------------------------------------------------------------------*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
231 |
(*--------------------------------------------------------------------- |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
232 |
lemmas that shows existence of an extension to what was assumed to |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
233 |
be a maximal filter. Will be used to derive contradiction in proof of |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
234 |
property of ultrafilter |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
235 |
---------------------------------------------------------------------*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
236 |
lemma lemma_set_extend: "[| F ~= {}; A <= S |] ==> \<exists>x. x \<in> {X. X <= S & (\<exists>f \<in> F. A Int f <= X)}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
237 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
238 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
239 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
240 |
lemma lemma_set_not_empty: "a \<in> X ==> X ~= {}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
241 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
242 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
243 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
244 |
lemma lemma_empty_Int_subset_Compl: "x Int F <= {} ==> F <= - x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
245 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
246 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
247 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
248 |
lemma mem_Filterset_disjI: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
249 |
"[| F \<in> Filter S; A ~: F; A <= S|] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
250 |
==> \<forall>B. B ~: F | ~ B <= A" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
251 |
apply (unfold Filter_def is_Filter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
252 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
253 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
254 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
255 |
lemma Ultrafilter_max_Filter: "F \<in> Ultrafilter S ==> |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
256 |
(F \<in> Filter S & (\<forall>G \<in> Filter S. F <= G --> F = G))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
257 |
apply (auto simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
258 |
apply (drule_tac x = "x" in bspec) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
259 |
apply (erule mem_FiltersetD3 , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
260 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
261 |
apply (drule subsetD , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
262 |
apply (blast dest!: Filter_Int_not_empty) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
263 |
done |
10750 | 264 |
|
265 |
||
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
266 |
(*-------------------------------------------------------------------------------- |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
267 |
This is a very long and tedious proof; need to break it into parts. |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
268 |
Have proof that {X. X <= S & (\<exists>f \<in> F. A Int f <= X)} is a filter as |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
269 |
a lemma |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
270 |
--------------------------------------------------------------------------------*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
271 |
lemma max_Filter_Ultrafilter: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
272 |
"[| F \<in> Filter S; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
273 |
\<forall>G \<in> Filter S. F <= G --> F = G |] ==> F \<in> Ultrafilter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
274 |
apply (simp add: Ultrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
275 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
276 |
apply (rule ccontr) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
277 |
apply (frule mem_FiltersetD [THEN is_FilterD2]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
278 |
apply (frule_tac x = "{X. X <= S & (\<exists>f \<in> F. A Int f <= X) }" in bspec) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
279 |
apply (rule mem_FiltersetI2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
280 |
apply (blast intro: elim:); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
281 |
apply (simp add: ); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
282 |
apply (blast dest: mem_FiltersetD3) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
283 |
apply (erule lemma_set_extend [THEN exE]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
284 |
apply (assumption , erule lemma_set_not_empty) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
285 |
txt{*First we prove @{term "{} \<notin> {X. X \<subseteq> S \<and> (\<exists>f\<in>F. A \<inter> f \<subseteq> X)}"}*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
286 |
apply (clarify ); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
287 |
apply (drule lemma_empty_Int_subset_Compl) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
288 |
apply (frule mem_Filterset_disjI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
289 |
apply assumption; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
290 |
apply (blast intro: elim:); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
291 |
apply (fast dest: mem_FiltersetD3 elim:) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
292 |
txt{*Next case: @{term "u \<inter> v"} is an element*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
293 |
apply (intro ballI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
294 |
apply (simp add: ); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
295 |
apply (rule conjI, blast) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
296 |
apply (clarify ); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
297 |
apply (rule_tac x = "f Int fa" in bexI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
298 |
apply (fast intro: elim:); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
299 |
apply (blast dest: mem_FiltersetD1 elim:) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
300 |
apply force; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
301 |
apply (blast dest: mem_FiltersetD3 elim:) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
302 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
303 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
304 |
lemma Ultrafilter_iff: "(F \<in> Ultrafilter S) = (F \<in> Filter S & (\<forall>G \<in> Filter S. F <= G --> F = G))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
305 |
apply (blast intro!: Ultrafilter_max_Filter max_Filter_Ultrafilter) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
306 |
done |
10750 | 307 |
|
308 |
||
15094
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
309 |
subsection{* A Few Properties of Freefilters*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
310 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
311 |
lemma lemma_Compl_cancel_eq: "F1 Int F2 = ((F1 Int Y) Int F2) Un ((F2 Int (- Y)) Int F1)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
312 |
apply auto |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
313 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
314 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
315 |
lemma finite_IntI1: "finite X ==> finite (X Int Y)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
316 |
apply (erule Int_lower1 [THEN finite_subset]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
317 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
318 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
319 |
lemma finite_IntI2: "finite Y ==> finite (X Int Y)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
320 |
apply (erule Int_lower2 [THEN finite_subset]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
321 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
322 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
323 |
lemma finite_Int_Compl_cancel: "[| finite (F1 Int Y); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
324 |
finite (F2 Int (- Y)) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
325 |
|] ==> finite (F1 Int F2)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
326 |
apply (rule_tac Y1 = "Y" in lemma_Compl_cancel_eq [THEN ssubst]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
327 |
apply (rule finite_UnI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
328 |
apply (auto intro!: finite_IntI1 finite_IntI2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
329 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
330 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
331 |
lemma Freefilter_lemma_not_finite: "U \<in> Freefilter S ==> |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
332 |
~ (\<exists>f1 \<in> U. \<exists>f2 \<in> U. finite (f1 Int x) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
333 |
& finite (f2 Int (- x)))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
334 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
335 |
apply (frule_tac A = "f1" and B = "f2" in Freefilter_Filter [THEN mem_FiltersetD1]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
336 |
apply (drule_tac [3] x = "f1 Int f2" in mem_FreefiltersetD1) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
337 |
apply (drule_tac [4] finite_Int_Compl_cancel) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
338 |
apply auto |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
339 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
340 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
341 |
(* the lemmas below follow *) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
342 |
lemma Freefilter_Compl_not_finite_disjI: "U \<in> Freefilter S ==> |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
343 |
\<forall>f \<in> U. ~ finite (f Int x) | ~finite (f Int (- x))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
344 |
by (blast dest!: Freefilter_lemma_not_finite bspec) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
345 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
346 |
lemma Freefilter_Compl_not_finite_disjI2: "U \<in> Freefilter S ==> (\<forall>f \<in> U. ~ finite (f Int x)) | (\<forall>f \<in> U. ~finite (f Int (- x)))" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
347 |
apply (blast dest!: Freefilter_lemma_not_finite bspec) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
348 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
349 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
350 |
lemma cofinite_Filter: "~ finite (UNIV:: 'a set) ==> {A:: 'a set. finite (- A)} \<in> Filter UNIV" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
351 |
apply (rule mem_FiltersetI2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
352 |
apply (auto simp del: Collect_empty_eq) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
353 |
apply (erule_tac c = "UNIV" in equalityCE) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
354 |
apply auto |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
355 |
apply (erule Compl_anti_mono [THEN finite_subset]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
356 |
apply assumption |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
357 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
358 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
359 |
lemma not_finite_UNIV_disjI: "~finite(UNIV :: 'a set) ==> ~finite (X :: 'a set) | ~finite (- X)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
360 |
apply (drule_tac A1 = "X" in Compl_partition [THEN ssubst]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
361 |
apply simp |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
362 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
363 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
364 |
lemma not_finite_UNIV_Compl: "[| ~finite(UNIV :: 'a set); finite (X :: 'a set) |] ==> ~finite (- X)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
365 |
apply (drule_tac X = "X" in not_finite_UNIV_disjI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
366 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
367 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
368 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
369 |
lemma mem_cofinite_Filter_not_finite: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
370 |
"~ finite (UNIV:: 'a set) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
371 |
==> \<forall>X \<in> {A:: 'a set. finite (- A)}. ~ finite X" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
372 |
by (auto dest: not_finite_UNIV_disjI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
373 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
374 |
lemma cofinite_Freefilter: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
375 |
"~ finite (UNIV:: 'a set) ==> {A:: 'a set. finite (- A)} \<in> Freefilter UNIV" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
376 |
apply (rule mem_FreefiltersetI2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
377 |
apply (rule cofinite_Filter , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
378 |
apply (blast dest!: mem_cofinite_Filter_not_finite) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
379 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
380 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
381 |
(*????Set.thy*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
382 |
lemma UNIV_diff_Compl [simp]: "UNIV - x = - x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
383 |
apply auto |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
384 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
385 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
386 |
lemma FreeUltrafilter_contains_cofinite_set: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
387 |
"[| ~finite(UNIV :: 'a set); (U :: 'a set set): FreeUltrafilter UNIV |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
388 |
|] ==> {X. finite(- X)} <= U" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
389 |
by (auto simp add: Ultrafilter_def FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
390 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
391 |
(*-------------------------------------------------------------------- |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
392 |
We prove: 1. Existence of maximal filter i.e. ultrafilter |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
393 |
2. Freeness property i.e ultrafilter is free |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
394 |
Use a locale to prove various lemmas and then |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
395 |
export main result: The Ultrafilter Theorem |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
396 |
-------------------------------------------------------------------*) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
397 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
398 |
lemma (in UFT) chain_Un_subset_Pow: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
399 |
"!!(c :: 'a set set set). c \<in> chain (superfrechet S) ==> Union c <= Pow S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
400 |
apply (simp add: chain_def superfrechet_def frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
401 |
apply (blast dest: mem_FiltersetD3 elim:) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
402 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
403 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
404 |
lemma (in UFT) mem_chain_psubset_empty: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
405 |
"!!(c :: 'a set set set). c: chain (superfrechet S) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
406 |
==> !x: c. {} < x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
407 |
by (auto simp add: chain_def Filter_def is_Filter_def superfrechet_def frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
408 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
409 |
lemma (in UFT) chain_Un_not_empty: "!!(c :: 'a set set set). |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
410 |
[| c: chain (superfrechet S); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
411 |
c ~= {} |] |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
412 |
==> Union(c) ~= {}" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
413 |
apply (drule mem_chain_psubset_empty) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
414 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
415 |
apply (drule bspec , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
416 |
apply (auto dest: Union_upper bspec simp add: psubset_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
417 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
418 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
419 |
lemma (in UFT) Filter_empty_not_mem_Un: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
420 |
"!!(c :: 'a set set set). c \<in> chain (superfrechet S) ==> {} ~: Union(c)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
421 |
by (auto simp add: is_Filter_def Filter_def chain_def superfrechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
422 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
423 |
lemma (in UFT) Filter_Un_Int: "c \<in> chain (superfrechet S) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
424 |
==> \<forall>u \<in> Union(c). \<forall>v \<in> Union(c). u Int v \<in> Union(c)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
425 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
426 |
apply (frule_tac x = "X" and y = "Xa" in chainD) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
427 |
apply (assumption)+ |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
428 |
apply (drule chainD2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
429 |
apply (erule disjE) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
430 |
apply (rule_tac [2] X = "X" in UnionI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
431 |
apply (rule_tac X = "Xa" in UnionI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
432 |
apply (auto intro: mem_FiltersetD1 simp add: superfrechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
433 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
434 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
435 |
lemma (in UFT) Filter_Un_subset: "c \<in> chain (superfrechet S) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
436 |
==> \<forall>u v. u \<in> Union(c) & |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
437 |
(u :: 'a set) <= v & v <= S --> v \<in> Union(c)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
438 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
439 |
apply (drule chainD2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
440 |
apply (drule subsetD , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
441 |
apply (rule UnionI , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
442 |
apply (auto intro: mem_FiltersetD2 simp add: superfrechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
443 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
444 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
445 |
lemma (in UFT) lemma_mem_chain_Filter: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
446 |
"!!(c :: 'a set set set). |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
447 |
[| c \<in> chain (superfrechet S); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
448 |
x \<in> c |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
449 |
|] ==> x \<in> Filter S" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
450 |
by (auto simp add: chain_def superfrechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
451 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
452 |
lemma (in UFT) lemma_mem_chain_frechet_subset: |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
453 |
"!!(c :: 'a set set set). |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
454 |
[| c \<in> chain (superfrechet S); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
455 |
x \<in> c |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
456 |
|] ==> frechet S <= x" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
457 |
by (auto simp add: chain_def superfrechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
458 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
459 |
lemma (in UFT) Un_chain_mem_cofinite_Filter_set: "!!(c :: 'a set set set). |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
460 |
[| c ~= {}; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
461 |
c \<in> chain (superfrechet (UNIV :: 'a set)) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
462 |
|] ==> Union c \<in> superfrechet (UNIV)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
463 |
apply (simp (no_asm) add: superfrechet_def frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
464 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
465 |
apply (rule mem_FiltersetI2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
466 |
apply (erule chain_Un_subset_Pow) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
467 |
apply (rule UnionI , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
468 |
apply (erule lemma_mem_chain_Filter [THEN mem_FiltersetD4] , assumption) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
469 |
apply (erule chain_Un_not_empty) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
470 |
apply (erule_tac [2] Filter_empty_not_mem_Un) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
471 |
apply (erule_tac [2] Filter_Un_Int) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
472 |
apply (erule_tac [2] Filter_Un_subset) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
473 |
apply (subgoal_tac [2] "xa \<in> frechet (UNIV) ") |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
474 |
apply (blast intro: elim:); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
475 |
apply (rule UnionI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
476 |
apply assumption; |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
477 |
apply (rule lemma_mem_chain_frechet_subset [THEN subsetD]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
478 |
apply (auto simp add: frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
479 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
480 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
481 |
lemma (in UFT) max_cofinite_Filter_Ex: "\<exists>U \<in> superfrechet (UNIV). |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
482 |
\<forall>G \<in> superfrechet (UNIV). U <= G --> U = G" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
483 |
apply (rule Zorn_Lemma2) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
484 |
apply (insert not_finite_UNIV [THEN cofinite_Filter]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
485 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
486 |
apply (rule_tac Q = "c={}" in excluded_middle [THEN disjE]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
487 |
apply (rule_tac x = "Union c" in bexI , blast) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
488 |
apply (rule Un_chain_mem_cofinite_Filter_set); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
489 |
apply (auto simp add: superfrechet_def frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
490 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
491 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
492 |
lemma (in UFT) max_cofinite_Freefilter_Ex: "\<exists>U \<in> superfrechet UNIV. ( |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
493 |
\<forall>G \<in> superfrechet UNIV. U <= G --> U = G) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
494 |
& (\<forall>x \<in> U. ~finite x)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
495 |
apply (insert not_finite_UNIV [THEN UFT.max_cofinite_Filter_Ex]); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
496 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
497 |
apply (rule_tac x = "U" in bexI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
498 |
apply (auto simp add: superfrechet_def frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
499 |
apply (drule_tac c = "- x" in subsetD) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
500 |
apply (simp (no_asm_simp)) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
501 |
apply (frule_tac A = "x" and B = "- x" in mem_FiltersetD1) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
502 |
apply (drule_tac [3] Filter_empty_not_mem) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
503 |
apply (auto ); |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
504 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
505 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
506 |
text{*There exists a free ultrafilter on any infinite set*} |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
507 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
508 |
theorem (in UFT) FreeUltrafilter_ex: "\<exists>U. U \<in> FreeUltrafilter (UNIV :: 'a set)" |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
509 |
apply (simp add: FreeUltrafilter_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
510 |
apply (insert not_finite_UNIV [THEN UFT.max_cofinite_Freefilter_Ex]) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
511 |
apply (simp add: superfrechet_def Ultrafilter_iff frechet_def) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
512 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
513 |
apply (rule_tac x = "U" in exI) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
514 |
apply (safe) |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
515 |
apply blast |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
516 |
done |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
517 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
518 |
theorems FreeUltrafilter_Ex = UFT.FreeUltrafilter_ex |
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
519 |
|
a7d1a3fdc30d
conversion of Hyperreal/{Fact,Filter} to Isar scripts
paulson
parents:
10750
diff
changeset
|
520 |
end |