27063
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
|
3 |
\def\isabellecontext{Examples}%
|
|
4 |
%
|
|
5 |
\isadelimtheory
|
27080
|
6 |
\isanewline
|
|
7 |
\isanewline
|
27063
|
8 |
%
|
|
9 |
\endisadelimtheory
|
|
10 |
%
|
|
11 |
\isatagtheory
|
27080
|
12 |
\isacommand{theory}\isamarkupfalse%
|
|
13 |
\ Examples\isanewline
|
27375
|
14 |
\isakeyword{imports}\ Main\ GCD\isanewline
|
27080
|
15 |
\isakeyword{begin}%
|
27063
|
16 |
\endisatagtheory
|
|
17 |
{\isafoldtheory}%
|
|
18 |
%
|
|
19 |
\isadelimtheory
|
27080
|
20 |
\isanewline
|
27063
|
21 |
%
|
|
22 |
\endisadelimtheory
|
|
23 |
%
|
27080
|
24 |
\isadeliminvisible
|
|
25 |
\isanewline
|
|
26 |
%
|
|
27 |
\endisadeliminvisible
|
|
28 |
%
|
|
29 |
\isataginvisible
|
|
30 |
\isacommand{hide}\isamarkupfalse%
|
|
31 |
\ const\ Lattices{\isachardot}lattice\isanewline
|
|
32 |
\isacommand{pretty{\isacharunderscore}setmargin}\isamarkupfalse%
|
|
33 |
\ {\isadigit{6}}{\isadigit{5}}%
|
|
34 |
\endisataginvisible
|
|
35 |
{\isafoldinvisible}%
|
|
36 |
%
|
|
37 |
\isadeliminvisible
|
|
38 |
%
|
|
39 |
\endisadeliminvisible
|
|
40 |
%
|
27063
|
41 |
\isamarkupsection{Introduction%
|
|
42 |
}
|
|
43 |
\isamarkuptrue%
|
|
44 |
%
|
|
45 |
\begin{isamarkuptext}%
|
|
46 |
Locales are based on contexts. A \emph{context} can be seen as a
|
|
47 |
formula schema
|
|
48 |
\[
|
|
49 |
\isa{{\isasymAnd}x\isactrlsub {\isadigit{1}}{\isasymdots}x\isactrlsub n{\isachardot}\ {\isasymlbrakk}\ A\isactrlsub {\isadigit{1}}{\isacharsemicolon}\ {\isasymdots}\ {\isacharsemicolon}A\isactrlsub m\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ {\isasymdots}}
|
|
50 |
\]
|
|
51 |
where variables \isa{x\isactrlsub {\isadigit{1}}}, \ldots, \isa{x\isactrlsub n} are called
|
|
52 |
\emph{parameters} and the premises $\isa{A\isactrlsub {\isadigit{1}}}, \ldots,
|
|
53 |
\isa{A\isactrlsub m}$ \emph{assumptions}. A formula \isa{C}
|
|
54 |
is a \emph{theorem} in the context if it is a conclusion
|
|
55 |
\[
|
|
56 |
%\label{eq-fact-in-context}
|
|
57 |
\isa{{\isasymAnd}x\isactrlsub {\isadigit{1}}{\isasymdots}x\isactrlsub n{\isachardot}\ {\isasymlbrakk}\ A\isactrlsub {\isadigit{1}}{\isacharsemicolon}\ {\isasymdots}\ {\isacharsemicolon}A\isactrlsub m\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ C}.
|
|
58 |
\]
|
|
59 |
Isabelle/Isar's notion of context goes beyond this logical view.
|
|
60 |
Its contexts record, in a consecutive order, proved
|
|
61 |
conclusions along with attributes, which
|
|
62 |
may control proof procedures. Contexts also contain syntax information
|
|
63 |
for parameters and for terms depending on them.%
|
|
64 |
\end{isamarkuptext}%
|
|
65 |
\isamarkuptrue%
|
|
66 |
%
|
|
67 |
\isamarkupsection{Simple Locales%
|
|
68 |
}
|
|
69 |
\isamarkuptrue%
|
|
70 |
%
|
|
71 |
\begin{isamarkuptext}%
|
|
72 |
Locales can be seen as persistent contexts. In its simplest form, a
|
|
73 |
\emph{locale declaration} consists of a sequence of context elements
|
|
74 |
declaring parameters (keyword \isakeyword{fixes}) and assumptions
|
|
75 |
(keyword \isakeyword{assumes}). The following is the specification of
|
|
76 |
partial orders, as locale \isa{partial{\isacharunderscore}order}.%
|
|
77 |
\end{isamarkuptext}%
|
|
78 |
\isamarkuptrue%
|
|
79 |
\ \ \isacommand{locale}\isamarkupfalse%
|
|
80 |
\ partial{\isacharunderscore}order\ {\isacharequal}\isanewline
|
|
81 |
\ \ \ \ \isakeyword{fixes}\ le\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequoteopen}{\isacharprime}a\ {\isasymRightarrow}\ {\isacharprime}a\ {\isasymRightarrow}\ bool{\isachardoublequoteclose}\ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequoteopen}{\isasymsqsubseteq}{\isachardoublequoteclose}\ {\isadigit{5}}{\isadigit{0}}{\isacharparenright}\isanewline
|
|
82 |
\ \ \ \ \isakeyword{assumes}\ refl\ {\isacharbrackleft}intro{\isacharcomma}\ simp{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
83 |
\ \ \ \ \ \ \isakeyword{and}\ anti{\isacharunderscore}sym\ {\isacharbrackleft}intro{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}{\isasymlbrakk}\ x\ {\isasymsqsubseteq}\ y{\isacharsemicolon}\ y\ {\isasymsqsubseteq}\ x\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ x\ {\isacharequal}\ y{\isachardoublequoteclose}\isanewline
|
|
84 |
\ \ \ \ \ \ \isakeyword{and}\ trans\ {\isacharbrackleft}trans{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}{\isasymlbrakk}\ x\ {\isasymsqsubseteq}\ y{\isacharsemicolon}\ y\ {\isasymsqsubseteq}\ z\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}%
|
|
85 |
\begin{isamarkuptext}%
|
|
86 |
The parameter of this locale is \isa{le}, with infix syntax
|
|
87 |
\isa{{\isasymsqsubseteq}}. There is an implicit type parameter \isa{{\isacharprime}a}. It
|
|
88 |
is not necessary to declare parameter types: most general types will
|
|
89 |
be inferred from the context elements for all parameters.
|
|
90 |
|
|
91 |
The above declaration not only introduces the locale, it also
|
|
92 |
defines the \emph{locale predicate} \isa{partial{\isacharunderscore}order} with
|
|
93 |
definition \isa{partial{\isacharunderscore}order{\isacharunderscore}def}:
|
|
94 |
\begin{isabelle}%
|
|
95 |
\ \ partial{\isacharunderscore}order\ {\isacharquery}le\ {\isasymequiv}\isanewline
|
|
96 |
\isaindent{\ \ }{\isacharparenleft}{\isasymforall}x{\isachardot}\ {\isacharquery}le\ x\ x{\isacharparenright}\ {\isasymand}\isanewline
|
|
97 |
\isaindent{\ \ }{\isacharparenleft}{\isasymforall}x\ y{\isachardot}\ {\isacharquery}le\ x\ y\ {\isasymlongrightarrow}\ {\isacharquery}le\ y\ x\ {\isasymlongrightarrow}\ x\ {\isacharequal}\ y{\isacharparenright}\ {\isasymand}\isanewline
|
|
98 |
\isaindent{\ \ }{\isacharparenleft}{\isasymforall}x\ y\ z{\isachardot}\ {\isacharquery}le\ x\ y\ {\isasymlongrightarrow}\ {\isacharquery}le\ y\ z\ {\isasymlongrightarrow}\ {\isacharquery}le\ x\ z{\isacharparenright}%
|
|
99 |
\end{isabelle}
|
|
100 |
|
|
101 |
The specification of a locale is fixed, but its list of conclusions
|
|
102 |
may be extended through Isar commands that take a \emph{target} argument.
|
|
103 |
In the following, \isakeyword{definition} and
|
|
104 |
\isakeyword{theorem} are illustrated.
|
|
105 |
Table~\ref{tab:commands-with-target} lists Isar commands that accept
|
|
106 |
a target. There are various ways of specifying the target. A
|
|
107 |
target for a single command may be indicated with keyword
|
|
108 |
\isakeyword{in} in the following way:
|
|
109 |
|
|
110 |
\begin{table}
|
|
111 |
\hrule
|
|
112 |
\vspace{2ex}
|
|
113 |
\begin{center}
|
|
114 |
\begin{tabular}{ll}
|
|
115 |
\isakeyword{definition} & definition through an equation \\
|
|
116 |
\isakeyword{inductive} & inductive definition \\
|
|
117 |
\isakeyword{fun}, \isakeyword{function} & recursive function \\
|
|
118 |
\isakeyword{abbreviation} & syntactic abbreviation \\
|
|
119 |
\isakeyword{theorem}, etc.\ & theorem statement with proof \\
|
|
120 |
\isakeyword{theorems}, etc.\ & redeclaration of theorems
|
|
121 |
\end{tabular}
|
|
122 |
\end{center}
|
|
123 |
\hrule
|
|
124 |
\caption{Isar commands that accept a target.}
|
|
125 |
\label{tab:commands-with-target}
|
|
126 |
\end{table}%
|
|
127 |
\end{isamarkuptext}%
|
|
128 |
\isamarkuptrue%
|
|
129 |
\ \ \isacommand{definition}\isamarkupfalse%
|
|
130 |
\ {\isacharparenleft}\isakeyword{in}\ partial{\isacharunderscore}order{\isacharparenright}\isanewline
|
|
131 |
\ \ \ \ less\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequoteopen}{\isacharprime}a\ {\isasymRightarrow}\ {\isacharprime}a\ {\isasymRightarrow}\ bool{\isachardoublequoteclose}\ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequoteopen}{\isasymsqsubset}{\isachardoublequoteclose}\ {\isadigit{5}}{\isadigit{0}}{\isacharparenright}\isanewline
|
|
132 |
\ \ \ \ \isakeyword{where}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqsubset}\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqsubseteq}\ y\ {\isasymand}\ x\ {\isasymnoteq}\ y{\isacharparenright}{\isachardoublequoteclose}%
|
|
133 |
\begin{isamarkuptext}%
|
|
134 |
A definition in a locale depends on the locale parameters.
|
|
135 |
Here, a global constant \isa{partial{\isacharunderscore}order{\isachardot}less} is declared, which is lifted over the
|
|
136 |
locale parameter \isa{le}. Its definition is the global theorem
|
|
137 |
\isa{partial{\isacharunderscore}order{\isachardot}less{\isacharunderscore}def}:
|
|
138 |
\begin{isabelle}%
|
|
139 |
\ \ partial{\isacharunderscore}order\ {\isacharquery}le\ {\isasymLongrightarrow}\isanewline
|
|
140 |
\isaindent{\ \ }partial{\isacharunderscore}order{\isachardot}less\ {\isacharquery}le\ {\isacharquery}x\ {\isacharquery}y\ {\isacharequal}\ {\isacharparenleft}{\isacharquery}le\ {\isacharquery}x\ {\isacharquery}y\ {\isasymand}\ {\isacharquery}x\ {\isasymnoteq}\ {\isacharquery}y{\isacharparenright}%
|
|
141 |
\end{isabelle}
|
|
142 |
At the same time, the locale is extended by syntax information
|
|
143 |
hiding this construction in the context of the locale. That is,
|
|
144 |
\isa{partial{\isacharunderscore}order{\isachardot}less\ le} is printed and parsed as infix
|
|
145 |
\isa{{\isasymsqsubset}}. Finally, the conclusion of the definition is added to
|
|
146 |
the locale, \isa{less{\isacharunderscore}def}:
|
|
147 |
\begin{isabelle}%
|
|
148 |
\ \ {\isacharparenleft}{\isacharquery}x\ {\isasymsqsubset}\ {\isacharquery}y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}{\isacharquery}x\ {\isasymsqsubseteq}\ {\isacharquery}y\ {\isasymand}\ {\isacharquery}x\ {\isasymnoteq}\ {\isacharquery}y{\isacharparenright}%
|
|
149 |
\end{isabelle}%
|
|
150 |
\end{isamarkuptext}%
|
|
151 |
\isamarkuptrue%
|
|
152 |
%
|
|
153 |
\begin{isamarkuptext}%
|
|
154 |
As an example of a theorem statement in the locale, here is the
|
|
155 |
derivation of a transitivity law.%
|
|
156 |
\end{isamarkuptext}%
|
|
157 |
\isamarkuptrue%
|
|
158 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
159 |
\ {\isacharparenleft}\isakeyword{in}\ partial{\isacharunderscore}order{\isacharparenright}\ less{\isacharunderscore}le{\isacharunderscore}trans\ {\isacharbrackleft}trans{\isacharbrackright}{\isacharcolon}\isanewline
|
|
160 |
\ \ \ \ {\isachardoublequoteopen}{\isasymlbrakk}\ x\ {\isasymsqsubset}\ y{\isacharsemicolon}\ y\ {\isasymsqsubseteq}\ z\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ x\ {\isasymsqsubset}\ z{\isachardoublequoteclose}\isanewline
|
|
161 |
%
|
|
162 |
\isadelimvisible
|
|
163 |
\ \ \ \ %
|
|
164 |
\endisadelimvisible
|
|
165 |
%
|
|
166 |
\isatagvisible
|
|
167 |
\isacommand{unfolding}\isamarkupfalse%
|
|
168 |
\ less{\isacharunderscore}def\ \isacommand{by}\isamarkupfalse%
|
|
169 |
\ {\isacharparenleft}blast\ intro{\isacharcolon}\ trans{\isacharparenright}%
|
|
170 |
\endisatagvisible
|
|
171 |
{\isafoldvisible}%
|
|
172 |
%
|
|
173 |
\isadelimvisible
|
|
174 |
%
|
|
175 |
\endisadelimvisible
|
|
176 |
%
|
|
177 |
\begin{isamarkuptext}%
|
|
178 |
In the context of the proof, assumptions and theorems of the
|
|
179 |
locale may be used. Attributes are effective: \isa{anti{\isacharunderscore}sym} was
|
|
180 |
declared as introduction rule, hence it is in the context's set of
|
|
181 |
rules used by the classical reasoner by default.%
|
|
182 |
\end{isamarkuptext}%
|
|
183 |
\isamarkuptrue%
|
|
184 |
%
|
|
185 |
\begin{isamarkuptext}%
|
|
186 |
When working with locales, sequences of commands with the same
|
|
187 |
target are frequent. A block of commands, delimited by
|
|
188 |
\isakeyword{begin} and \isakeyword{end}, makes a theory-like style
|
|
189 |
of working possible. All commands inside the block refer to the
|
|
190 |
same target. A block may immediately follow a locale
|
|
191 |
declaration, which makes that locale the target. Alternatively the
|
|
192 |
target for a block may be given with the \isakeyword{context}
|
|
193 |
command.
|
|
194 |
|
|
195 |
In the block below, notions of infimum and supremum together with
|
|
196 |
theorems are introduced for partial orders.%
|
|
197 |
\end{isamarkuptext}%
|
|
198 |
\isamarkuptrue%
|
|
199 |
\ \ \isacommand{context}\isamarkupfalse%
|
|
200 |
\ partial{\isacharunderscore}order\ \isakeyword{begin}\isanewline
|
|
201 |
\isanewline
|
|
202 |
\ \ \isacommand{definition}\isamarkupfalse%
|
|
203 |
\isanewline
|
|
204 |
\ \ \ \ is{\isacharunderscore}inf\ \isakeyword{where}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i\ {\isacharequal}\isanewline
|
|
205 |
\ \ \ \ \ \ {\isacharparenleft}i\ {\isasymsqsubseteq}\ x\ {\isasymand}\ i\ {\isasymsqsubseteq}\ y\ {\isasymand}\ {\isacharparenleft}{\isasymforall}z{\isachardot}\ z\ {\isasymsqsubseteq}\ x\ {\isasymand}\ z\ {\isasymsqsubseteq}\ y\ {\isasymlongrightarrow}\ z\ {\isasymsqsubseteq}\ i{\isacharparenright}{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
206 |
\isanewline
|
|
207 |
\ \ \isacommand{definition}\isamarkupfalse%
|
|
208 |
\isanewline
|
|
209 |
\ \ \ \ is{\isacharunderscore}sup\ \isakeyword{where}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s\ {\isacharequal}\isanewline
|
|
210 |
\ \ \ \ \ \ {\isacharparenleft}x\ {\isasymsqsubseteq}\ s\ {\isasymand}\ y\ {\isasymsqsubseteq}\ s\ {\isasymand}\ {\isacharparenleft}{\isasymforall}z{\isachardot}\ x\ {\isasymsqsubseteq}\ z\ {\isasymand}\ y\ {\isasymsqsubseteq}\ z\ {\isasymlongrightarrow}\ s\ {\isasymsqsubseteq}\ z{\isacharparenright}{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
211 |
%
|
|
212 |
\isadeliminvisible
|
|
213 |
\isanewline
|
|
214 |
\ \ %
|
|
215 |
\endisadeliminvisible
|
|
216 |
%
|
|
217 |
\isataginvisible
|
|
218 |
\isacommand{lemma}\isamarkupfalse%
|
|
219 |
\ is{\isacharunderscore}infI\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}i\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ i\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\isanewline
|
|
220 |
\ \ \ \ \ \ {\isacharparenleft}{\isasymAnd}z{\isachardot}\ z\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ i{\isacharparenright}\ {\isasymLongrightarrow}\ is{\isacharunderscore}inf\ x\ y\ i{\isachardoublequoteclose}\isanewline
|
|
221 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
222 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}inf{\isacharunderscore}def{\isacharparenright}\ blast\isanewline
|
|
223 |
\isanewline
|
|
224 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
225 |
\ is{\isacharunderscore}inf{\isacharunderscore}lower\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
226 |
\ \ \ \ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i\ {\isasymLongrightarrow}\ {\isacharparenleft}i\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ i\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ C{\isacharparenright}\ {\isasymLongrightarrow}\ C{\isachardoublequoteclose}\isanewline
|
|
227 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
228 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}inf{\isacharunderscore}def{\isacharparenright}\ blast\isanewline
|
|
229 |
\isanewline
|
|
230 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
231 |
\ is{\isacharunderscore}inf{\isacharunderscore}greatest\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
232 |
\ \ \ \ \ \ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ i{\isachardoublequoteclose}\isanewline
|
|
233 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
234 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}inf{\isacharunderscore}def{\isacharparenright}\ blast%
|
|
235 |
\endisataginvisible
|
|
236 |
{\isafoldinvisible}%
|
|
237 |
%
|
|
238 |
\isadeliminvisible
|
|
239 |
\isanewline
|
|
240 |
%
|
|
241 |
\endisadeliminvisible
|
|
242 |
\isanewline
|
|
243 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
244 |
\ is{\isacharunderscore}inf{\isacharunderscore}uniq{\isacharcolon}\ {\isachardoublequoteopen}{\isasymlbrakk}is{\isacharunderscore}inf\ x\ y\ i{\isacharsemicolon}\ is{\isacharunderscore}inf\ x\ y\ i{\isacharprime}{\isasymrbrakk}\ {\isasymLongrightarrow}\ i\ {\isacharequal}\ i{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
245 |
%
|
|
246 |
\isadelimproof
|
|
247 |
\ \ %
|
|
248 |
\endisadelimproof
|
|
249 |
%
|
|
250 |
\isatagproof
|
|
251 |
\isacommand{proof}\isamarkupfalse%
|
|
252 |
\ {\isacharminus}\isanewline
|
|
253 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
254 |
\ inf{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isachardoublequoteclose}\isanewline
|
|
255 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
256 |
\ inf{\isacharprime}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
257 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
258 |
\ {\isacharquery}thesis\isanewline
|
|
259 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
260 |
\ {\isacharparenleft}rule\ anti{\isacharunderscore}sym{\isacharparenright}\isanewline
|
|
261 |
\ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
262 |
\ inf{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
263 |
\ {\isachardoublequoteopen}i\ {\isasymsqsubseteq}\ i{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
264 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
265 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}greatest{\isacharparenright}\isanewline
|
|
266 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
267 |
\ inf\ \isacommand{show}\isamarkupfalse%
|
|
268 |
\ {\isachardoublequoteopen}i\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
269 |
\isanewline
|
|
270 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
271 |
\ inf\ \isacommand{show}\isamarkupfalse%
|
|
272 |
\ {\isachardoublequoteopen}i\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
273 |
\isanewline
|
|
274 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
275 |
\isanewline
|
|
276 |
\ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
277 |
\ inf\ \isacommand{show}\isamarkupfalse%
|
|
278 |
\ {\isachardoublequoteopen}i{\isacharprime}\ {\isasymsqsubseteq}\ i{\isachardoublequoteclose}\isanewline
|
|
279 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
280 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}greatest{\isacharparenright}\isanewline
|
|
281 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
282 |
\ inf{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
283 |
\ {\isachardoublequoteopen}i{\isacharprime}\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
284 |
\isanewline
|
|
285 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
286 |
\ inf{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
287 |
\ {\isachardoublequoteopen}i{\isacharprime}\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
288 |
\isanewline
|
|
289 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
290 |
\isanewline
|
|
291 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
292 |
\isanewline
|
|
293 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
294 |
%
|
|
295 |
\endisatagproof
|
|
296 |
{\isafoldproof}%
|
|
297 |
%
|
|
298 |
\isadelimproof
|
|
299 |
\isanewline
|
|
300 |
%
|
|
301 |
\endisadelimproof
|
|
302 |
%
|
|
303 |
\isadeliminvisible
|
|
304 |
\isanewline
|
|
305 |
\ \ %
|
|
306 |
\endisadeliminvisible
|
|
307 |
%
|
|
308 |
\isataginvisible
|
|
309 |
\isacommand{theorem}\isamarkupfalse%
|
|
310 |
\ is{\isacharunderscore}inf{\isacharunderscore}related\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ is{\isacharunderscore}inf\ x\ y\ x{\isachardoublequoteclose}\isanewline
|
|
311 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
312 |
\ {\isacharminus}\isanewline
|
|
313 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
314 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
315 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
316 |
\ {\isacharquery}thesis\isanewline
|
|
317 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
318 |
\isanewline
|
|
319 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
320 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
321 |
\isanewline
|
|
322 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
323 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
324 |
\ fact\isanewline
|
|
325 |
\ \ \ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
326 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
327 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{show}\isamarkupfalse%
|
|
328 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
329 |
\ fact\isanewline
|
|
330 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
331 |
\isanewline
|
|
332 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
333 |
\isanewline
|
|
334 |
\isanewline
|
|
335 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
336 |
\ is{\isacharunderscore}supI\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\isanewline
|
|
337 |
\ \ \ \ \ \ {\isacharparenleft}{\isasymAnd}z{\isachardot}\ x\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ s\ {\isasymsqsubseteq}\ z{\isacharparenright}\ {\isasymLongrightarrow}\ is{\isacharunderscore}sup\ x\ y\ s{\isachardoublequoteclose}\isanewline
|
|
338 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
339 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}sup{\isacharunderscore}def{\isacharparenright}\ blast\isanewline
|
|
340 |
\isanewline
|
|
341 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
342 |
\ is{\isacharunderscore}sup{\isacharunderscore}least\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
343 |
\ \ \ \ \ \ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s\ {\isasymLongrightarrow}\ x\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ s\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
344 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
345 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}sup{\isacharunderscore}def{\isacharparenright}\ blast\isanewline
|
|
346 |
\isanewline
|
|
347 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
348 |
\ is{\isacharunderscore}sup{\isacharunderscore}upper\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
349 |
\ \ \ \ \ \ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s\ {\isasymLongrightarrow}\ {\isacharparenleft}x\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\ C{\isacharparenright}\ {\isasymLongrightarrow}\ C{\isachardoublequoteclose}\isanewline
|
|
350 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
351 |
\ {\isacharparenleft}unfold\ is{\isacharunderscore}sup{\isacharunderscore}def{\isacharparenright}\ blast%
|
|
352 |
\endisataginvisible
|
|
353 |
{\isafoldinvisible}%
|
|
354 |
%
|
|
355 |
\isadeliminvisible
|
|
356 |
\isanewline
|
|
357 |
%
|
|
358 |
\endisadeliminvisible
|
|
359 |
\isanewline
|
|
360 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
361 |
\ is{\isacharunderscore}sup{\isacharunderscore}uniq{\isacharcolon}\ {\isachardoublequoteopen}{\isasymlbrakk}is{\isacharunderscore}sup\ x\ y\ s{\isacharsemicolon}\ is{\isacharunderscore}sup\ x\ y\ s{\isacharprime}{\isasymrbrakk}\ {\isasymLongrightarrow}\ s\ {\isacharequal}\ s{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
362 |
%
|
|
363 |
\isadelimproof
|
|
364 |
\ \ %
|
|
365 |
\endisadelimproof
|
|
366 |
%
|
|
367 |
\isatagproof
|
|
368 |
\isacommand{proof}\isamarkupfalse%
|
|
369 |
\ {\isacharminus}\isanewline
|
|
370 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
371 |
\ sup{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isachardoublequoteclose}\isanewline
|
|
372 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
373 |
\ sup{\isacharprime}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
374 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
375 |
\ {\isacharquery}thesis\isanewline
|
|
376 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
377 |
\ {\isacharparenleft}rule\ anti{\isacharunderscore}sym{\isacharparenright}\isanewline
|
|
378 |
\ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
379 |
\ sup\ \isacommand{show}\isamarkupfalse%
|
|
380 |
\ {\isachardoublequoteopen}s\ {\isasymsqsubseteq}\ s{\isacharprime}{\isachardoublequoteclose}\isanewline
|
|
381 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
382 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}least{\isacharparenright}\isanewline
|
|
383 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
384 |
\ sup{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
385 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ s{\isacharprime}{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
386 |
\isanewline
|
|
387 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
388 |
\ sup{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
389 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ s{\isacharprime}{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
390 |
\isanewline
|
|
391 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
392 |
\isanewline
|
|
393 |
\ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
394 |
\ sup{\isacharprime}\ \isacommand{show}\isamarkupfalse%
|
|
395 |
\ {\isachardoublequoteopen}s{\isacharprime}\ {\isasymsqsubseteq}\ s{\isachardoublequoteclose}\isanewline
|
|
396 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
397 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}least{\isacharparenright}\isanewline
|
|
398 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
399 |
\ sup\ \isacommand{show}\isamarkupfalse%
|
|
400 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ s{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
401 |
\isanewline
|
|
402 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
403 |
\ sup\ \isacommand{show}\isamarkupfalse%
|
|
404 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ s{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
405 |
\isanewline
|
|
406 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
407 |
\isanewline
|
|
408 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
409 |
\isanewline
|
|
410 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
411 |
%
|
|
412 |
\endisatagproof
|
|
413 |
{\isafoldproof}%
|
|
414 |
%
|
|
415 |
\isadelimproof
|
|
416 |
\isanewline
|
|
417 |
%
|
|
418 |
\endisadelimproof
|
|
419 |
%
|
|
420 |
\isadeliminvisible
|
|
421 |
\isanewline
|
|
422 |
\ \ %
|
|
423 |
\endisadeliminvisible
|
|
424 |
%
|
|
425 |
\isataginvisible
|
|
426 |
\isacommand{theorem}\isamarkupfalse%
|
|
427 |
\ is{\isacharunderscore}sup{\isacharunderscore}related\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ is{\isacharunderscore}sup\ x\ y\ y{\isachardoublequoteclose}\isanewline
|
|
428 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
429 |
\ {\isacharminus}\isanewline
|
|
430 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
431 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
432 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
433 |
\ {\isacharquery}thesis\isanewline
|
|
434 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
435 |
\isanewline
|
|
436 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
437 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
438 |
\ fact\isanewline
|
|
439 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
440 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
441 |
\isanewline
|
|
442 |
\ \ \ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
443 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
444 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
445 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
446 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
447 |
\ fact\isanewline
|
|
448 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
449 |
\isanewline
|
|
450 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
451 |
%
|
|
452 |
\endisataginvisible
|
|
453 |
{\isafoldinvisible}%
|
|
454 |
%
|
|
455 |
\isadeliminvisible
|
|
456 |
\isanewline
|
|
457 |
%
|
|
458 |
\endisadeliminvisible
|
|
459 |
\isanewline
|
|
460 |
\ \ \isacommand{end}\isamarkupfalse%
|
|
461 |
%
|
|
462 |
\begin{isamarkuptext}%
|
|
463 |
In fact, many more theorems need to be shown for a usable
|
|
464 |
theory of partial orders. The
|
|
465 |
above two serve as illustrative examples.%
|
|
466 |
\end{isamarkuptext}%
|
|
467 |
\isamarkuptrue%
|
|
468 |
%
|
|
469 |
\begin{isamarkuptext}%
|
|
470 |
Two commands are provided to inspect locales:
|
|
471 |
\isakeyword{print\_locales} lists the names of all locales of the
|
|
472 |
theory; \isakeyword{print\_locale}~$n$ prints the parameters and
|
|
473 |
assumptions of locale $n$; \isakeyword{print\_locale!}~$n$
|
|
474 |
additionally outputs the conclusions.
|
|
475 |
|
|
476 |
The syntax of the locale commands discussed in this tutorial is
|
|
477 |
shown in Table~\ref{tab:commands}. See the
|
|
478 |
Isabelle/Isar Reference Manual~\cite{IsarRef}
|
|
479 |
for full documentation.%
|
|
480 |
\end{isamarkuptext}%
|
|
481 |
\isamarkuptrue%
|
|
482 |
%
|
|
483 |
\isamarkupsection{Import%
|
|
484 |
}
|
|
485 |
\isamarkuptrue%
|
|
486 |
%
|
|
487 |
\begin{isamarkuptext}%
|
|
488 |
\label{sec:import}
|
|
489 |
|
|
490 |
Algebraic structures are commonly defined by adding operations and
|
|
491 |
properties to existing structures. For example, partial orders
|
|
492 |
are extended to lattices and total orders. Lattices are extended to
|
|
493 |
distributive lattices.
|
|
494 |
|
|
495 |
With locales, this inheritance is achieved through \emph{import} of a
|
|
496 |
locale. The import comes before the context elements.%
|
|
497 |
\end{isamarkuptext}%
|
|
498 |
\isamarkuptrue%
|
|
499 |
\ \ \isacommand{locale}\isamarkupfalse%
|
|
500 |
\ lattice\ {\isacharequal}\ partial{\isacharunderscore}order\ {\isacharplus}\isanewline
|
|
501 |
\ \ \ \ \isakeyword{assumes}\ ex{\isacharunderscore}inf{\isacharcolon}\ {\isachardoublequoteopen}{\isasymexists}inf{\isachardot}\ partial{\isacharunderscore}order{\isachardot}is{\isacharunderscore}inf\ le\ x\ y\ inf{\isachardoublequoteclose}\isanewline
|
|
502 |
\ \ \ \ \ \ \isakeyword{and}\ ex{\isacharunderscore}sup{\isacharcolon}\ {\isachardoublequoteopen}{\isasymexists}sup{\isachardot}\ partial{\isacharunderscore}order{\isachardot}is{\isacharunderscore}sup\ le\ x\ y\ sup{\isachardoublequoteclose}\isanewline
|
|
503 |
\ \ \isakeyword{begin}%
|
|
504 |
\begin{isamarkuptext}%
|
|
505 |
Note that the assumptions above refer to the predicates for infimum
|
|
506 |
and supremum defined in \isa{partial{\isacharunderscore}order}. In the current
|
|
507 |
implementation of locales, syntax from definitions of the imported
|
|
508 |
locale is unavailable in the locale declaration, neither are their
|
|
509 |
names. Hence we refer to the constants of the theory. The names
|
|
510 |
and syntax is available below, in the context of the locale.%
|
|
511 |
\end{isamarkuptext}%
|
|
512 |
\isamarkuptrue%
|
|
513 |
\ \ \isacommand{definition}\isamarkupfalse%
|
|
514 |
\isanewline
|
|
515 |
\ \ \ \ meet\ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequoteopen}{\isasymsqinter}{\isachardoublequoteclose}\ {\isadigit{7}}{\isadigit{0}}{\isacharparenright}\ \isakeyword{where}\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isacharequal}\ {\isacharparenleft}THE\ inf{\isachardot}\ is{\isacharunderscore}inf\ x\ y\ inf{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
516 |
\isanewline
|
|
517 |
\ \ \isacommand{definition}\isamarkupfalse%
|
|
518 |
\isanewline
|
|
519 |
\ \ \ \ join\ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequoteopen}{\isasymsqunion}{\isachardoublequoteclose}\ {\isadigit{6}}{\isadigit{5}}{\isacharparenright}\ \isakeyword{where}\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isacharequal}\ {\isacharparenleft}THE\ sup{\isachardot}\ is{\isacharunderscore}sup\ x\ y\ sup{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
520 |
%
|
|
521 |
\isadeliminvisible
|
|
522 |
\isanewline
|
|
523 |
\ \ %
|
|
524 |
\endisadeliminvisible
|
|
525 |
%
|
|
526 |
\isataginvisible
|
|
527 |
\isacommand{lemma}\isamarkupfalse%
|
|
528 |
\ meet{\isacharunderscore}equality\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i\ {\isasymLongrightarrow}\ x\ {\isasymsqinter}\ y\ {\isacharequal}\ i{\isachardoublequoteclose}\isanewline
|
|
529 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
530 |
\ {\isacharparenleft}unfold\ meet{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
531 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
532 |
\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isachardoublequoteclose}\isanewline
|
|
533 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
534 |
\ \isacommand{show}\isamarkupfalse%
|
|
535 |
\ {\isachardoublequoteopen}{\isacharparenleft}THE\ i{\isachardot}\ is{\isacharunderscore}inf\ x\ y\ i{\isacharparenright}\ {\isacharequal}\ i{\isachardoublequoteclose}\isanewline
|
|
536 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
537 |
\ {\isacharparenleft}rule\ the{\isacharunderscore}equality{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}uniq\ {\isacharbrackleft}OF\ {\isacharunderscore}\ {\isacharbackquoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isacharbackquoteclose}{\isacharbrackright}{\isacharparenright}\isanewline
|
|
538 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
539 |
\isanewline
|
|
540 |
\isanewline
|
|
541 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
542 |
\ meetI\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
543 |
\ \ \ \ \ \ {\isachardoublequoteopen}i\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ i\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ {\isacharparenleft}{\isasymAnd}z{\isachardot}\ z\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ i{\isacharparenright}\ {\isasymLongrightarrow}\ x\ {\isasymsqinter}\ y\ {\isacharequal}\ i{\isachardoublequoteclose}\isanewline
|
|
544 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
545 |
\ {\isacharparenleft}rule\ meet{\isacharunderscore}equality{\isacharcomma}\ rule\ is{\isacharunderscore}infI{\isacharparenright}\ blast{\isacharplus}\isanewline
|
|
546 |
\isanewline
|
|
547 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
548 |
\ is{\isacharunderscore}inf{\isacharunderscore}meet\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ {\isacharparenleft}x\ {\isasymsqinter}\ y{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
549 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
550 |
\ {\isacharparenleft}unfold\ meet{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
551 |
\ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
552 |
\ ex{\isacharunderscore}inf\ \isacommand{obtain}\isamarkupfalse%
|
|
553 |
\ i\ \isakeyword{where}\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
554 |
\isanewline
|
|
555 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
556 |
\ \isacommand{show}\isamarkupfalse%
|
|
557 |
\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ {\isacharparenleft}THE\ i{\isachardot}\ is{\isacharunderscore}inf\ x\ y\ i{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
558 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
559 |
\ {\isacharparenleft}rule\ theI{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}uniq\ {\isacharbrackleft}OF\ {\isacharunderscore}\ {\isacharbackquoteopen}is{\isacharunderscore}inf\ x\ y\ i{\isacharbackquoteclose}{\isacharbrackright}{\isacharparenright}\isanewline
|
|
560 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
561 |
\isanewline
|
|
562 |
\isanewline
|
|
563 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
564 |
\ meet{\isacharunderscore}left\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
565 |
\ \ \ \ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
566 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
567 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}lower{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}meet{\isacharparenright}\isanewline
|
|
568 |
\isanewline
|
|
569 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
570 |
\ meet{\isacharunderscore}right\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
571 |
\ \ \ \ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
572 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
573 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}lower{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}meet{\isacharparenright}\isanewline
|
|
574 |
\isanewline
|
|
575 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
576 |
\ meet{\isacharunderscore}le\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
577 |
\ \ \ \ {\isachardoublequoteopen}{\isasymlbrakk}\ z\ {\isasymsqsubseteq}\ x{\isacharsemicolon}\ z\ {\isasymsqsubseteq}\ y\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ z\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ y{\isachardoublequoteclose}\isanewline
|
|
578 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
579 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}greatest{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}inf{\isacharunderscore}meet{\isacharparenright}\isanewline
|
|
580 |
\isanewline
|
|
581 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
582 |
\ join{\isacharunderscore}equality\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s\ {\isasymLongrightarrow}\ x\ {\isasymsqunion}\ y\ {\isacharequal}\ s{\isachardoublequoteclose}\isanewline
|
|
583 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
584 |
\ {\isacharparenleft}unfold\ join{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
585 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
586 |
\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isachardoublequoteclose}\isanewline
|
|
587 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
588 |
\ \isacommand{show}\isamarkupfalse%
|
|
589 |
\ {\isachardoublequoteopen}{\isacharparenleft}THE\ s{\isachardot}\ is{\isacharunderscore}sup\ x\ y\ s{\isacharparenright}\ {\isacharequal}\ s{\isachardoublequoteclose}\isanewline
|
|
590 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
591 |
\ {\isacharparenleft}rule\ the{\isacharunderscore}equality{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}uniq\ {\isacharbrackleft}OF\ {\isacharunderscore}\ {\isacharbackquoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isacharbackquoteclose}{\isacharbrackright}{\isacharparenright}\isanewline
|
|
592 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
593 |
\isanewline
|
|
594 |
\isanewline
|
|
595 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
596 |
\ joinI\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ s\ {\isasymLongrightarrow}\isanewline
|
|
597 |
\ \ \ \ \ \ {\isacharparenleft}{\isasymAnd}z{\isachardot}\ x\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ y\ {\isasymsqsubseteq}\ z\ {\isasymLongrightarrow}\ s\ {\isasymsqsubseteq}\ z{\isacharparenright}\ {\isasymLongrightarrow}\ x\ {\isasymsqunion}\ y\ {\isacharequal}\ s{\isachardoublequoteclose}\isanewline
|
|
598 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
599 |
\ {\isacharparenleft}rule\ join{\isacharunderscore}equality{\isacharcomma}\ rule\ is{\isacharunderscore}supI{\isacharparenright}\ blast{\isacharplus}\isanewline
|
|
600 |
\isanewline
|
|
601 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
602 |
\ is{\isacharunderscore}sup{\isacharunderscore}join\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ {\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
603 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
604 |
\ {\isacharparenleft}unfold\ join{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
605 |
\ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
606 |
\ ex{\isacharunderscore}sup\ \isacommand{obtain}\isamarkupfalse%
|
|
607 |
\ s\ \isakeyword{where}\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
608 |
\isanewline
|
|
609 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
610 |
\ \isacommand{show}\isamarkupfalse%
|
|
611 |
\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ {\isacharparenleft}THE\ s{\isachardot}\ is{\isacharunderscore}sup\ x\ y\ s{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
612 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
613 |
\ {\isacharparenleft}rule\ theI{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}uniq\ {\isacharbrackleft}OF\ {\isacharunderscore}\ {\isacharbackquoteopen}is{\isacharunderscore}sup\ x\ y\ s{\isacharbackquoteclose}{\isacharbrackright}{\isacharparenright}\isanewline
|
|
614 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
615 |
\isanewline
|
|
616 |
\isanewline
|
|
617 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
618 |
\ join{\isacharunderscore}left\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
619 |
\ \ \ \ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\isanewline
|
|
620 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
621 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}upper{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}join{\isacharparenright}\isanewline
|
|
622 |
\isanewline
|
|
623 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
624 |
\ join{\isacharunderscore}right\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
625 |
\ \ \ \ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\isanewline
|
|
626 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
627 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}upper{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}join{\isacharparenright}\isanewline
|
|
628 |
\isanewline
|
|
629 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
630 |
\ join{\isacharunderscore}le\ {\isacharbrackleft}intro{\isacharquery}{\isacharbrackright}{\isacharcolon}\isanewline
|
|
631 |
\ \ \ \ {\isachardoublequoteopen}{\isasymlbrakk}\ x\ {\isasymsqsubseteq}\ z{\isacharsemicolon}\ y\ {\isasymsqsubseteq}\ z\ {\isasymrbrakk}\ {\isasymLongrightarrow}\ x\ {\isasymsqunion}\ y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
632 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
633 |
\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}least{\isacharparenright}\ {\isacharparenleft}rule\ is{\isacharunderscore}sup{\isacharunderscore}join{\isacharparenright}\isanewline
|
|
634 |
\isanewline
|
|
635 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
636 |
\ meet{\isacharunderscore}assoc{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqinter}\ y{\isacharparenright}\ {\isasymsqinter}\ z\ {\isacharequal}\ x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
637 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
638 |
\ {\isacharparenleft}rule\ meetI{\isacharparenright}\isanewline
|
|
639 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
640 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ y{\isachardoublequoteclose}\isanewline
|
|
641 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
642 |
\isanewline
|
|
643 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
644 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
645 |
\isanewline
|
|
646 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
647 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
648 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
649 |
\ {\isacharminus}\isanewline
|
|
650 |
\ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
651 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ y\ {\isasymsqinter}\ z{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
652 |
\isanewline
|
|
653 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
654 |
\ \isacommand{have}\isamarkupfalse%
|
|
655 |
\ {\isachardoublequoteopen}{\isasymdots}\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
656 |
\isanewline
|
|
657 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
658 |
\ \isacommand{show}\isamarkupfalse%
|
|
659 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
660 |
\isanewline
|
|
661 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
662 |
\isanewline
|
|
663 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
664 |
\isanewline
|
|
665 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
666 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
667 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
668 |
\ {\isacharminus}\isanewline
|
|
669 |
\ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
670 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ y\ {\isasymsqinter}\ z{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
671 |
\isanewline
|
|
672 |
\ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
673 |
\ \isacommand{have}\isamarkupfalse%
|
|
674 |
\ {\isachardoublequoteopen}{\isasymdots}\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
675 |
\isanewline
|
|
676 |
\ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
677 |
\ \isacommand{show}\isamarkupfalse%
|
|
678 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
679 |
\isanewline
|
|
680 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
681 |
\isanewline
|
|
682 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
683 |
\ w\ \isacommand{assume}\isamarkupfalse%
|
|
684 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ y{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
685 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
686 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
687 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
688 |
\isanewline
|
|
689 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
690 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
691 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
692 |
\ {\isacharminus}\isanewline
|
|
693 |
\ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
694 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
695 |
\ fact\isanewline
|
|
696 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
697 |
\ \isacommand{have}\isamarkupfalse%
|
|
698 |
\ {\isachardoublequoteopen}{\isasymdots}\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
699 |
\isanewline
|
|
700 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
701 |
\ \isacommand{show}\isamarkupfalse%
|
|
702 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
703 |
\isanewline
|
|
704 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
705 |
\isanewline
|
|
706 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
707 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ y\ {\isasymsqinter}\ z{\isachardoublequoteclose}\isanewline
|
|
708 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
709 |
\isanewline
|
|
710 |
\ \ \ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
711 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
712 |
\ \ \ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
713 |
\ {\isacharminus}\isanewline
|
|
714 |
\ \ \ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
715 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ x\ {\isasymsqinter}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
716 |
\ fact\isanewline
|
|
717 |
\ \ \ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
718 |
\ \isacommand{have}\isamarkupfalse%
|
|
719 |
\ {\isachardoublequoteopen}{\isasymdots}\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
720 |
\isanewline
|
|
721 |
\ \ \ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
722 |
\ \isacommand{show}\isamarkupfalse%
|
|
723 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
724 |
\isanewline
|
|
725 |
\ \ \ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
726 |
\isanewline
|
|
727 |
\ \ \ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
728 |
\ {\isachardoublequoteopen}w\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
729 |
\ fact\isanewline
|
|
730 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
731 |
\isanewline
|
|
732 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
733 |
\isanewline
|
|
734 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
735 |
\isanewline
|
|
736 |
\isanewline
|
|
737 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
738 |
\ meet{\isacharunderscore}commute{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isacharequal}\ y\ {\isasymsqinter}\ x{\isachardoublequoteclose}\isanewline
|
|
739 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
740 |
\ {\isacharparenleft}rule\ meetI{\isacharparenright}\isanewline
|
|
741 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
742 |
\ {\isachardoublequoteopen}y\ {\isasymsqinter}\ x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
743 |
\isanewline
|
|
744 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
745 |
\ {\isachardoublequoteopen}y\ {\isasymsqinter}\ x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
746 |
\isanewline
|
|
747 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
748 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
749 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
750 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
751 |
\ \isacommand{show}\isamarkupfalse%
|
|
752 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ y\ {\isasymsqinter}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
753 |
\isanewline
|
|
754 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
755 |
\isanewline
|
|
756 |
\isanewline
|
|
757 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
758 |
\ meet{\isacharunderscore}join{\isacharunderscore}absorb{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
759 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
760 |
\ {\isacharparenleft}rule\ meetI{\isacharparenright}\isanewline
|
|
761 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
762 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
763 |
\isanewline
|
|
764 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
765 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
766 |
\isanewline
|
|
767 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
768 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
769 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\isanewline
|
|
770 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
771 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
772 |
\ fact\isanewline
|
|
773 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
774 |
\isanewline
|
|
775 |
\isanewline
|
|
776 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
777 |
\ join{\isacharunderscore}assoc{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqunion}\ z\ {\isacharequal}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
778 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
779 |
\ {\isacharparenleft}rule\ joinI{\isacharparenright}\isanewline
|
|
780 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
781 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
782 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
783 |
\isanewline
|
|
784 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
785 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
786 |
\isanewline
|
|
787 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
788 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
789 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
790 |
\ {\isacharminus}\isanewline
|
|
791 |
\ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
792 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ y\ {\isasymsqunion}\ z{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
793 |
\isanewline
|
|
794 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
795 |
\ \isacommand{have}\isamarkupfalse%
|
|
796 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
797 |
\isanewline
|
|
798 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
799 |
\ \isacommand{show}\isamarkupfalse%
|
|
800 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
801 |
\isanewline
|
|
802 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
803 |
\isanewline
|
|
804 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
805 |
\isanewline
|
|
806 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
807 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
808 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
809 |
\ {\isacharminus}\isanewline
|
|
810 |
\ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
811 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ y\ {\isasymsqunion}\ z{\isachardoublequoteclose}\ \ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
812 |
\isanewline
|
|
813 |
\ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
814 |
\ \isacommand{have}\isamarkupfalse%
|
|
815 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
816 |
\isanewline
|
|
817 |
\ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
818 |
\ \isacommand{show}\isamarkupfalse%
|
|
819 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
820 |
\isanewline
|
|
821 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
822 |
\isanewline
|
|
823 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
824 |
\ w\ \isacommand{assume}\isamarkupfalse%
|
|
825 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\isanewline
|
|
826 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
827 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\isanewline
|
|
828 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
829 |
\isanewline
|
|
830 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
831 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\isanewline
|
|
832 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
833 |
\ {\isacharminus}\isanewline
|
|
834 |
\ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
835 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
836 |
\isanewline
|
|
837 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
838 |
\ \isacommand{have}\isamarkupfalse%
|
|
839 |
\ {\isachardoublequoteopen}{\isasymdots}\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
840 |
\ fact\isanewline
|
|
841 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
842 |
\ \isacommand{show}\isamarkupfalse%
|
|
843 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
844 |
\isanewline
|
|
845 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
846 |
\isanewline
|
|
847 |
\ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
848 |
\ {\isachardoublequoteopen}y\ {\isasymsqunion}\ z\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\isanewline
|
|
849 |
\ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
850 |
\isanewline
|
|
851 |
\ \ \ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
852 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\isanewline
|
|
853 |
\ \ \ \ \ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
854 |
\ {\isacharminus}\isanewline
|
|
855 |
\ \ \ \ \ \ \ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
856 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
857 |
\isanewline
|
|
858 |
\ \ \ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
859 |
\ \isacommand{have}\isamarkupfalse%
|
|
860 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
861 |
\ fact\isanewline
|
|
862 |
\ \ \ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
863 |
\ \isacommand{show}\isamarkupfalse%
|
|
864 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
865 |
\isanewline
|
|
866 |
\ \ \ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
867 |
\isanewline
|
|
868 |
\ \ \ \ \ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
869 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ w{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
870 |
\ fact\isanewline
|
|
871 |
\ \ \ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
872 |
\isanewline
|
|
873 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
874 |
\isanewline
|
|
875 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
876 |
\isanewline
|
|
877 |
\isanewline
|
|
878 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
879 |
\ join{\isacharunderscore}commute{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isacharequal}\ y\ {\isasymsqunion}\ x{\isachardoublequoteclose}\isanewline
|
|
880 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
881 |
\ {\isacharparenleft}rule\ joinI{\isacharparenright}\isanewline
|
|
882 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
883 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymsqunion}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
884 |
\isanewline
|
|
885 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
886 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ y\ {\isasymsqunion}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
887 |
\isanewline
|
|
888 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
889 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
890 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
891 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
892 |
\ \isacommand{show}\isamarkupfalse%
|
|
893 |
\ {\isachardoublequoteopen}y\ {\isasymsqunion}\ x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
894 |
\isanewline
|
|
895 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
896 |
\isanewline
|
|
897 |
\isanewline
|
|
898 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
899 |
\ join{\isacharunderscore}meet{\isacharunderscore}absorb{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ {\isacharparenleft}x\ {\isasymsqinter}\ y{\isacharparenright}\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
900 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
901 |
\ {\isacharparenleft}rule\ joinI{\isacharparenright}\isanewline
|
|
902 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
903 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
904 |
\isanewline
|
|
905 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
906 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
907 |
\isanewline
|
|
908 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
909 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
910 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
911 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
912 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
913 |
\ fact\isanewline
|
|
914 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
915 |
\isanewline
|
|
916 |
\isanewline
|
|
917 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
918 |
\ meet{\isacharunderscore}idem{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ x\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
919 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
920 |
\ {\isacharminus}\isanewline
|
|
921 |
\ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
922 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}x\ {\isasymsqunion}\ {\isacharparenleft}x\ {\isasymsqinter}\ x{\isacharparenright}{\isacharparenright}\ {\isacharequal}\ x{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
923 |
\ {\isacharparenleft}rule\ meet{\isacharunderscore}join{\isacharunderscore}absorb{\isacharparenright}\isanewline
|
|
924 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
925 |
\ \isacommand{have}\isamarkupfalse%
|
|
926 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ {\isacharparenleft}x\ {\isasymsqinter}\ x{\isacharparenright}\ {\isacharequal}\ x{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
927 |
\ {\isacharparenleft}rule\ join{\isacharunderscore}meet{\isacharunderscore}absorb{\isacharparenright}\isanewline
|
|
928 |
\ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
929 |
\ \isacommand{show}\isamarkupfalse%
|
|
930 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
931 |
\isanewline
|
|
932 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
933 |
\isanewline
|
|
934 |
\isanewline
|
|
935 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
936 |
\ meet{\isacharunderscore}related\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ x\ {\isasymsqinter}\ y\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
937 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
938 |
\ {\isacharparenleft}rule\ meetI{\isacharparenright}\isanewline
|
|
939 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
940 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
941 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
942 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
943 |
\isanewline
|
|
944 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
945 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
946 |
\ fact\isanewline
|
|
947 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
948 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
949 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
950 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
951 |
\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
952 |
\ fact\isanewline
|
|
953 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
954 |
\isanewline
|
|
955 |
\isanewline
|
|
956 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
957 |
\ meet{\isacharunderscore}related{\isadigit{2}}\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ x\ {\isasymsqinter}\ y\ {\isacharequal}\ y{\isachardoublequoteclose}\isanewline
|
|
958 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
959 |
\ {\isacharparenleft}drule\ meet{\isacharunderscore}related{\isacharparenright}\ {\isacharparenleft}simp\ add{\isacharcolon}\ meet{\isacharunderscore}commute{\isacharparenright}\isanewline
|
|
960 |
\isanewline
|
|
961 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
962 |
\ join{\isacharunderscore}related\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymLongrightarrow}\ x\ {\isasymsqunion}\ y\ {\isacharequal}\ y{\isachardoublequoteclose}\isanewline
|
|
963 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
964 |
\ {\isacharparenleft}rule\ joinI{\isacharparenright}\isanewline
|
|
965 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
966 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
967 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
968 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
969 |
\isanewline
|
|
970 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
971 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
972 |
\ fact\isanewline
|
|
973 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
974 |
\ z\ \isacommand{assume}\isamarkupfalse%
|
|
975 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isakeyword{and}\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
976 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
977 |
\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
978 |
\ fact\isanewline
|
|
979 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
980 |
\isanewline
|
|
981 |
\isanewline
|
|
982 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
983 |
\ join{\isacharunderscore}related{\isadigit{2}}\ {\isacharbrackleft}elim{\isacharquery}{\isacharbrackright}{\isacharcolon}\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x\ {\isasymLongrightarrow}\ x\ {\isasymsqunion}\ y\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
984 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
985 |
\ {\isacharparenleft}drule\ join{\isacharunderscore}related{\isacharparenright}\ {\isacharparenleft}simp\ add{\isacharcolon}\ join{\isacharunderscore}commute{\isacharparenright}\isanewline
|
|
986 |
\isanewline
|
|
987 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
988 |
\ meet{\isacharunderscore}connection{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqsubseteq}\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqinter}\ y\ {\isacharequal}\ x{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
989 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
990 |
\isanewline
|
|
991 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
992 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
993 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
994 |
\ \isacommand{have}\isamarkupfalse%
|
|
995 |
\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
996 |
\isanewline
|
|
997 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
998 |
\ \isacommand{show}\isamarkupfalse%
|
|
999 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isacharequal}\ x{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1000 |
\isanewline
|
|
1001 |
\ \ \isacommand{next}\isamarkupfalse%
|
|
1002 |
\isanewline
|
|
1003 |
\ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
1004 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1005 |
\isanewline
|
|
1006 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1007 |
\ \isacommand{assume}\isamarkupfalse%
|
|
1008 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ y\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
1009 |
\ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
1010 |
\ \isacommand{show}\isamarkupfalse%
|
|
1011 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
1012 |
\isanewline
|
|
1013 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
1014 |
\isanewline
|
|
1015 |
\isanewline
|
|
1016 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
1017 |
\ join{\isacharunderscore}connection{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqsubseteq}\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqunion}\ y\ {\isacharequal}\ y{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1018 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
1019 |
\isanewline
|
|
1020 |
\ \ \ \ \isacommand{assume}\isamarkupfalse%
|
|
1021 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\isanewline
|
|
1022 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
1023 |
\ \isacommand{have}\isamarkupfalse%
|
|
1024 |
\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1025 |
\isanewline
|
|
1026 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
1027 |
\ \isacommand{show}\isamarkupfalse%
|
|
1028 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isacharequal}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1029 |
\isanewline
|
|
1030 |
\ \ \isacommand{next}\isamarkupfalse%
|
|
1031 |
\isanewline
|
|
1032 |
\ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
1033 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ x\ {\isasymsqunion}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1034 |
\isanewline
|
|
1035 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1036 |
\ \isacommand{assume}\isamarkupfalse%
|
|
1037 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ y\ {\isacharequal}\ y{\isachardoublequoteclose}\isanewline
|
|
1038 |
\ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
1039 |
\ \isacommand{show}\isamarkupfalse%
|
|
1040 |
\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y{\isachardoublequoteclose}\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
1041 |
\isanewline
|
|
1042 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
1043 |
\isanewline
|
|
1044 |
\isanewline
|
|
1045 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
1046 |
\ meet{\isacharunderscore}connection{\isadigit{2}}{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqsubseteq}\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}y\ {\isasymsqinter}\ x\ {\isacharequal}\ x{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1047 |
\ \ \ \ \isacommand{using}\isamarkupfalse%
|
|
1048 |
\ meet{\isacharunderscore}commute\ meet{\isacharunderscore}connection\ \isacommand{by}\isamarkupfalse%
|
|
1049 |
\ simp\isanewline
|
|
1050 |
\isanewline
|
|
1051 |
\ \ \isacommand{theorem}\isamarkupfalse%
|
|
1052 |
\ join{\isacharunderscore}connection{\isadigit{2}}{\isacharcolon}\ {\isachardoublequoteopen}{\isacharparenleft}x\ {\isasymsqsubseteq}\ y{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqunion}\ y\ {\isacharequal}\ y{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1053 |
\ \ \ \ \isacommand{using}\isamarkupfalse%
|
|
1054 |
\ join{\isacharunderscore}commute\ join{\isacharunderscore}connection\ \isacommand{by}\isamarkupfalse%
|
|
1055 |
\ simp%
|
|
1056 |
\begin{isamarkuptext}%
|
|
1057 |
Naming according to Jacobson I, p.\ 459.%
|
|
1058 |
\end{isamarkuptext}%
|
|
1059 |
\isamarkuptrue%
|
|
1060 |
\ \ \isacommand{lemmas}\isamarkupfalse%
|
|
1061 |
\ L{\isadigit{1}}\ {\isacharequal}\ join{\isacharunderscore}commute\ meet{\isacharunderscore}commute\isanewline
|
|
1062 |
\ \ \isacommand{lemmas}\isamarkupfalse%
|
|
1063 |
\ L{\isadigit{2}}\ {\isacharequal}\ join{\isacharunderscore}assoc\ meet{\isacharunderscore}assoc\isanewline
|
|
1064 |
\ \ \isanewline
|
|
1065 |
\ \ \isacommand{lemmas}\isamarkupfalse%
|
|
1066 |
\ L{\isadigit{4}}\ {\isacharequal}\ join{\isacharunderscore}meet{\isacharunderscore}absorb\ meet{\isacharunderscore}join{\isacharunderscore}absorb%
|
|
1067 |
\endisataginvisible
|
|
1068 |
{\isafoldinvisible}%
|
|
1069 |
%
|
|
1070 |
\isadeliminvisible
|
|
1071 |
\isanewline
|
|
1072 |
%
|
|
1073 |
\endisadeliminvisible
|
|
1074 |
\isanewline
|
|
1075 |
\ \ \isacommand{end}\isamarkupfalse%
|
|
1076 |
%
|
|
1077 |
\begin{isamarkuptext}%
|
|
1078 |
Locales for total orders and distributive lattices follow.
|
|
1079 |
Each comes with an example theorem.%
|
|
1080 |
\end{isamarkuptext}%
|
|
1081 |
\isamarkuptrue%
|
|
1082 |
\ \ \isacommand{locale}\isamarkupfalse%
|
|
1083 |
\ total{\isacharunderscore}order\ {\isacharequal}\ partial{\isacharunderscore}order\ {\isacharplus}\isanewline
|
|
1084 |
\ \ \ \ \isakeyword{assumes}\ total{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymor}\ y\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
1085 |
\isanewline
|
|
1086 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
1087 |
\ {\isacharparenleft}\isakeyword{in}\ total{\isacharunderscore}order{\isacharparenright}\ less{\isacharunderscore}total{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubset}\ y\ {\isasymor}\ x\ {\isacharequal}\ y\ {\isasymor}\ y\ {\isasymsqsubset}\ x{\isachardoublequoteclose}\isanewline
|
|
1088 |
%
|
|
1089 |
\isadelimproof
|
|
1090 |
\ \ \ \ %
|
|
1091 |
\endisadelimproof
|
|
1092 |
%
|
|
1093 |
\isatagproof
|
|
1094 |
\isacommand{using}\isamarkupfalse%
|
|
1095 |
\ total\isanewline
|
|
1096 |
\ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1097 |
\ {\isacharparenleft}unfold\ less{\isacharunderscore}def{\isacharparenright}\ blast%
|
|
1098 |
\endisatagproof
|
|
1099 |
{\isafoldproof}%
|
|
1100 |
%
|
|
1101 |
\isadelimproof
|
|
1102 |
\isanewline
|
|
1103 |
%
|
|
1104 |
\endisadelimproof
|
|
1105 |
\isanewline
|
|
1106 |
\ \ \isacommand{locale}\isamarkupfalse%
|
|
1107 |
\ distrib{\isacharunderscore}lattice\ {\isacharequal}\ lattice\ {\isacharplus}\isanewline
|
|
1108 |
\ \ \ \ \isakeyword{assumes}\ meet{\isacharunderscore}distr{\isacharcolon}\isanewline
|
|
1109 |
\ \ \ \ \ \ {\isachardoublequoteopen}lattice{\isachardot}meet\ le\ x\ {\isacharparenleft}lattice{\isachardot}join\ le\ y\ z{\isacharparenright}\ {\isacharequal}\isanewline
|
|
1110 |
\ \ \ \ \ \ lattice{\isachardot}join\ le\ {\isacharparenleft}lattice{\isachardot}meet\ le\ x\ y{\isacharparenright}\ {\isacharparenleft}lattice{\isachardot}meet\ le\ x\ z{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1111 |
\isanewline
|
|
1112 |
\ \ \isacommand{lemma}\isamarkupfalse%
|
|
1113 |
\ {\isacharparenleft}\isakeyword{in}\ distrib{\isacharunderscore}lattice{\isacharparenright}\ join{\isacharunderscore}distr{\isacharcolon}\isanewline
|
|
1114 |
\ \ \ \ {\isachardoublequoteopen}x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqinter}\ {\isacharparenleft}x\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\ \ \isanewline
|
|
1115 |
%
|
|
1116 |
\isadelimproof
|
|
1117 |
\ \ \ \ %
|
|
1118 |
\endisadelimproof
|
|
1119 |
%
|
|
1120 |
\isatagproof
|
|
1121 |
\isacommand{proof}\isamarkupfalse%
|
|
1122 |
\ {\isacharminus}\isanewline
|
|
1123 |
\ \ \ \ \isacommand{have}\isamarkupfalse%
|
|
1124 |
\ {\isachardoublequoteopen}x\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqunion}\ {\isacharparenleft}x\ {\isasymsqinter}\ z{\isacharparenright}{\isacharparenright}\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1125 |
\ {\isacharparenleft}simp\ add{\isacharcolon}\ L{\isadigit{4}}{\isacharparenright}\isanewline
|
|
1126 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1127 |
\ \isacommand{have}\isamarkupfalse%
|
|
1128 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ x\ {\isasymsqunion}\ {\isacharparenleft}{\isacharparenleft}x\ {\isasymsqinter}\ z{\isacharparenright}\ {\isasymsqunion}\ {\isacharparenleft}y\ {\isasymsqinter}\ z{\isacharparenright}{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1129 |
\ {\isacharparenleft}simp\ add{\isacharcolon}\ L{\isadigit{2}}{\isacharparenright}\isanewline
|
|
1130 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1131 |
\ \isacommand{have}\isamarkupfalse%
|
|
1132 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ x\ {\isasymsqunion}\ {\isacharparenleft}{\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqinter}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1133 |
\ {\isacharparenleft}simp\ add{\isacharcolon}\ L{\isadigit{1}}\ meet{\isacharunderscore}distr{\isacharparenright}\isanewline
|
|
1134 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1135 |
\ \isacommand{have}\isamarkupfalse%
|
|
1136 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ {\isacharparenleft}{\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqinter}\ x{\isacharparenright}\ {\isasymsqunion}\ {\isacharparenleft}{\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqinter}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1137 |
\ {\isacharparenleft}simp\ add{\isacharcolon}\ L{\isadigit{1}}\ L{\isadigit{4}}{\isacharparenright}\isanewline
|
|
1138 |
\ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1139 |
\ \isacommand{have}\isamarkupfalse%
|
|
1140 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ {\isacharparenleft}x\ {\isasymsqunion}\ y{\isacharparenright}\ {\isasymsqinter}\ {\isacharparenleft}x\ {\isasymsqunion}\ z{\isacharparenright}{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1141 |
\ {\isacharparenleft}simp\ add{\isacharcolon}\ meet{\isacharunderscore}distr{\isacharparenright}\isanewline
|
|
1142 |
\ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
1143 |
\ \isacommand{show}\isamarkupfalse%
|
|
1144 |
\ {\isacharquery}thesis\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
1145 |
\isanewline
|
|
1146 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
1147 |
%
|
|
1148 |
\endisatagproof
|
|
1149 |
{\isafoldproof}%
|
|
1150 |
%
|
|
1151 |
\isadelimproof
|
|
1152 |
%
|
|
1153 |
\endisadelimproof
|
|
1154 |
%
|
|
1155 |
\begin{isamarkuptext}%
|
|
1156 |
The locale hierachy obtained through these declarations is shown in Figure~\ref{fig:lattices}(a).
|
|
1157 |
|
|
1158 |
\begin{figure}
|
|
1159 |
\hrule \vspace{2ex}
|
|
1160 |
\begin{center}
|
|
1161 |
\subfigure[Declared hierachy]{
|
|
1162 |
\begin{tikzpicture}
|
|
1163 |
\node (po) at (0,0) {\isa{partial{\isacharunderscore}order}};
|
|
1164 |
\node (lat) at (-1.5,-1) {\isa{lattice}};
|
|
1165 |
\node (dlat) at (-1.5,-2) {\isa{distrib{\isacharunderscore}lattice}};
|
|
1166 |
\node (to) at (1.5,-1) {\isa{total{\isacharunderscore}order}};
|
|
1167 |
\draw (po) -- (lat);
|
|
1168 |
\draw (lat) -- (dlat);
|
|
1169 |
\draw (po) -- (to);
|
|
1170 |
% \draw[->, dashed] (lat) -- (to);
|
|
1171 |
\end{tikzpicture}
|
|
1172 |
} \\
|
|
1173 |
\subfigure[Total orders are lattices]{
|
|
1174 |
\begin{tikzpicture}
|
|
1175 |
\node (po) at (0,0) {\isa{partial{\isacharunderscore}order}};
|
|
1176 |
\node (lat) at (0,-1) {\isa{lattice}};
|
|
1177 |
\node (dlat) at (-1.5,-2) {\isa{distrib{\isacharunderscore}lattice}};
|
|
1178 |
\node (to) at (1.5,-2) {\isa{total{\isacharunderscore}order}};
|
|
1179 |
\draw (po) -- (lat);
|
|
1180 |
\draw (lat) -- (dlat);
|
|
1181 |
\draw (lat) -- (to);
|
|
1182 |
% \draw[->, dashed] (dlat) -- (to);
|
|
1183 |
\end{tikzpicture}
|
|
1184 |
} \quad
|
|
1185 |
\subfigure[Total orders are distributive lattices]{
|
|
1186 |
\begin{tikzpicture}
|
|
1187 |
\node (po) at (0,0) {\isa{partial{\isacharunderscore}order}};
|
|
1188 |
\node (lat) at (0,-1) {\isa{lattice}};
|
|
1189 |
\node (dlat) at (0,-2) {\isa{distrib{\isacharunderscore}lattice}};
|
|
1190 |
\node (to) at (0,-3) {\isa{total{\isacharunderscore}order}};
|
|
1191 |
\draw (po) -- (lat);
|
|
1192 |
\draw (lat) -- (dlat);
|
|
1193 |
\draw (dlat) -- (to);
|
|
1194 |
\end{tikzpicture}
|
|
1195 |
}
|
|
1196 |
\end{center}
|
|
1197 |
\hrule
|
|
1198 |
\caption{Hierarchy of Lattice Locales.}
|
|
1199 |
\label{fig:lattices}
|
|
1200 |
\end{figure}%
|
|
1201 |
\end{isamarkuptext}%
|
|
1202 |
\isamarkuptrue%
|
|
1203 |
%
|
|
1204 |
\isamarkupsection{Changing the Locale Hierarchy%
|
|
1205 |
}
|
|
1206 |
\isamarkuptrue%
|
|
1207 |
%
|
|
1208 |
\begin{isamarkuptext}%
|
|
1209 |
\label{sec:changing-the-hierarchy}
|
|
1210 |
|
|
1211 |
Total orders are lattices. Hence, by deriving the lattice
|
|
1212 |
axioms for total orders, the hierarchy may be changed
|
|
1213 |
and \isa{lattice} be placed between \isa{partial{\isacharunderscore}order}
|
|
1214 |
and \isa{total{\isacharunderscore}order}, as shown in Figure~\ref{fig:lattices}(b).
|
|
1215 |
Changes to the locale hierarchy may be declared
|
|
1216 |
with the \isakeyword{interpretation} command.%
|
|
1217 |
\end{isamarkuptext}%
|
|
1218 |
\isamarkuptrue%
|
|
1219 |
%
|
|
1220 |
\isadelimvisible
|
|
1221 |
\ \ %
|
|
1222 |
\endisadelimvisible
|
|
1223 |
%
|
|
1224 |
\isatagvisible
|
|
1225 |
\isacommand{interpretation}\isamarkupfalse%
|
|
1226 |
\ total{\isacharunderscore}order\ {\isasymsubseteq}\ lattice%
|
|
1227 |
\begin{isamarkuptxt}%
|
|
1228 |
This enters the context of locale \isa{total{\isacharunderscore}order}, in
|
|
1229 |
which the goal \begin{isabelle}%
|
|
1230 |
\ {\isadigit{1}}{\isachardot}\ lattice\ op\ {\isasymsqsubseteq}%
|
|
1231 |
\end{isabelle} must be shown. First, the
|
|
1232 |
locale predicate needs to be unfolded --- for example using its
|
|
1233 |
definition or by introduction rules
|
|
1234 |
provided by the locale package. The methods \isa{intro{\isacharunderscore}locales}
|
|
1235 |
and \isa{unfold{\isacharunderscore}locales} automate this. They are aware of the
|
|
1236 |
current context and dependencies between locales and automatically
|
|
1237 |
discharge goals implied by these. While \isa{unfold{\isacharunderscore}locales}
|
|
1238 |
always unfolds locale predicates to assumptions, \isa{intro{\isacharunderscore}locales} only unfolds definitions along the locale
|
|
1239 |
hierarchy, leaving a goal consisting of predicates defined by the
|
|
1240 |
locale package. Occasionally the latter is of advantage since the goal
|
|
1241 |
is smaller.
|
|
1242 |
|
|
1243 |
For the current goal, we would like to get hold of
|
|
1244 |
the assumptions of \isa{lattice}, hence \isa{unfold{\isacharunderscore}locales}
|
|
1245 |
is appropriate.%
|
|
1246 |
\end{isamarkuptxt}%
|
|
1247 |
\isamarkuptrue%
|
|
1248 |
\ \ \isacommand{proof}\isamarkupfalse%
|
|
1249 |
\ unfold{\isacharunderscore}locales%
|
|
1250 |
\begin{isamarkuptxt}%
|
|
1251 |
Since both \isa{lattice} and \isa{total{\isacharunderscore}order}
|
|
1252 |
inherit \isa{partial{\isacharunderscore}order}, the assumptions of the latter are
|
|
1253 |
discharged, and the only subgoals that remain are the assumptions
|
|
1254 |
introduced in \isa{lattice} \begin{isabelle}%
|
|
1255 |
\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}x\ y{\isachardot}\ {\isasymexists}inf{\isachardot}\ is{\isacharunderscore}inf\ x\ y\ inf\isanewline
|
|
1256 |
\ {\isadigit{2}}{\isachardot}\ {\isasymAnd}x\ y{\isachardot}\ {\isasymexists}sup{\isachardot}\ is{\isacharunderscore}sup\ x\ y\ sup%
|
|
1257 |
\end{isabelle}
|
|
1258 |
The proof for the first subgoal is%
|
|
1259 |
\end{isamarkuptxt}%
|
|
1260 |
\isamarkuptrue%
|
|
1261 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
1262 |
\ x\ y\isanewline
|
|
1263 |
\ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
1264 |
\ total\ \isacommand{have}\isamarkupfalse%
|
|
1265 |
\ {\isachardoublequoteopen}is{\isacharunderscore}inf\ x\ y\ {\isacharparenleft}if\ x\ {\isasymsqsubseteq}\ y\ then\ x\ else\ y{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1266 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1267 |
\ {\isacharparenleft}auto\ simp{\isacharcolon}\ is{\isacharunderscore}inf{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
1268 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
1269 |
\ \isacommand{show}\isamarkupfalse%
|
|
1270 |
\ {\isachardoublequoteopen}{\isasymexists}inf{\isachardot}\ is{\isacharunderscore}inf\ x\ y\ inf{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1271 |
%
|
|
1272 |
\begin{isamarkuptxt}%
|
|
1273 |
The proof for the second subgoal is analogous and not
|
|
1274 |
reproduced here.%
|
|
1275 |
\end{isamarkuptxt}%
|
|
1276 |
\isamarkuptrue%
|
|
1277 |
%
|
|
1278 |
\endisatagvisible
|
|
1279 |
{\isafoldvisible}%
|
|
1280 |
%
|
|
1281 |
\isadelimvisible
|
|
1282 |
%
|
|
1283 |
\endisadelimvisible
|
|
1284 |
%
|
|
1285 |
\isadeliminvisible
|
|
1286 |
\ \ %
|
|
1287 |
\endisadeliminvisible
|
|
1288 |
%
|
|
1289 |
\isataginvisible
|
|
1290 |
\isacommand{next}\isamarkupfalse%
|
|
1291 |
\isanewline
|
|
1292 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
1293 |
\ x\ y\isanewline
|
|
1294 |
\ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
1295 |
\ total\ \isacommand{have}\isamarkupfalse%
|
|
1296 |
\ {\isachardoublequoteopen}is{\isacharunderscore}sup\ x\ y\ {\isacharparenleft}if\ x\ {\isasymsqsubseteq}\ y\ then\ y\ else\ x{\isacharparenright}{\isachardoublequoteclose}\isanewline
|
|
1297 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1298 |
\ {\isacharparenleft}auto\ simp{\isacharcolon}\ is{\isacharunderscore}sup{\isacharunderscore}def{\isacharparenright}\isanewline
|
|
1299 |
\ \ \ \ \isacommand{then}\isamarkupfalse%
|
|
1300 |
\ \isacommand{show}\isamarkupfalse%
|
|
1301 |
\ {\isachardoublequoteopen}{\isasymexists}sup{\isachardot}\ is{\isacharunderscore}sup\ x\ y\ sup{\isachardoublequoteclose}\ \isacommand{{\isachardot}{\isachardot}}\isamarkupfalse%
|
|
1302 |
%
|
|
1303 |
\endisataginvisible
|
|
1304 |
{\isafoldinvisible}%
|
|
1305 |
%
|
|
1306 |
\isadeliminvisible
|
|
1307 |
%
|
|
1308 |
\endisadeliminvisible
|
|
1309 |
%
|
|
1310 |
\isadelimvisible
|
|
1311 |
\ %
|
|
1312 |
\endisadelimvisible
|
|
1313 |
%
|
|
1314 |
\isatagvisible
|
|
1315 |
\isacommand{qed}\isamarkupfalse%
|
|
1316 |
%
|
|
1317 |
\endisatagvisible
|
|
1318 |
{\isafoldvisible}%
|
|
1319 |
%
|
|
1320 |
\isadelimvisible
|
|
1321 |
%
|
|
1322 |
\endisadelimvisible
|
|
1323 |
%
|
|
1324 |
\begin{isamarkuptext}%
|
|
1325 |
Similarly, total orders are distributive lattices.%
|
|
1326 |
\end{isamarkuptext}%
|
|
1327 |
\isamarkuptrue%
|
|
1328 |
\ \ \isacommand{interpretation}\isamarkupfalse%
|
|
1329 |
\ total{\isacharunderscore}order\ {\isasymsubseteq}\ distrib{\isacharunderscore}lattice\isanewline
|
|
1330 |
%
|
|
1331 |
\isadelimproof
|
|
1332 |
\ \ %
|
|
1333 |
\endisadelimproof
|
|
1334 |
%
|
|
1335 |
\isatagproof
|
|
1336 |
\isacommand{proof}\isamarkupfalse%
|
|
1337 |
\ unfold{\isacharunderscore}locales\isanewline
|
|
1338 |
\ \ \ \ \isacommand{fix}\isamarkupfalse%
|
|
1339 |
\ x\ y\ z\isanewline
|
|
1340 |
\ \ \ \ \isacommand{show}\isamarkupfalse%
|
|
1341 |
\ {\isachardoublequoteopen}x\ {\isasymsqinter}\ {\isacharparenleft}y\ {\isasymsqunion}\ z{\isacharparenright}\ {\isacharequal}\ x\ {\isasymsqinter}\ y\ {\isasymsqunion}\ x\ {\isasymsqinter}\ z{\isachardoublequoteclose}\ {\isacharparenleft}\isakeyword{is}\ {\isachardoublequoteopen}{\isacharquery}l\ {\isacharequal}\ {\isacharquery}r{\isachardoublequoteclose}{\isacharparenright}%
|
|
1342 |
\begin{isamarkuptxt}%
|
|
1343 |
Jacobson I, p.\ 462%
|
|
1344 |
\end{isamarkuptxt}%
|
|
1345 |
\isamarkuptrue%
|
|
1346 |
\ \ \ \ \isacommand{proof}\isamarkupfalse%
|
|
1347 |
\ {\isacharminus}\isanewline
|
|
1348 |
\ \ \ \ \ \ \isacommand{{\isacharbraceleft}}\isamarkupfalse%
|
|
1349 |
\ \isacommand{assume}\isamarkupfalse%
|
|
1350 |
\ c{\isacharcolon}\ {\isachardoublequoteopen}y\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\ {\isachardoublequoteopen}z\ {\isasymsqsubseteq}\ x{\isachardoublequoteclose}\isanewline
|
|
1351 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
1352 |
\ c\ \isacommand{have}\isamarkupfalse%
|
|
1353 |
\ {\isachardoublequoteopen}{\isacharquery}l\ {\isacharequal}\ y\ {\isasymsqunion}\ z{\isachardoublequoteclose}\isanewline
|
|
1354 |
\ \ \ \ \ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1355 |
\ {\isacharparenleft}metis\ c\ join{\isacharunderscore}connection{\isadigit{2}}\ join{\isacharunderscore}related{\isadigit{2}}\ meet{\isacharunderscore}related{\isadigit{2}}\ total{\isacharparenright}\isanewline
|
|
1356 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1357 |
\ \isacommand{from}\isamarkupfalse%
|
|
1358 |
\ c\ \isacommand{have}\isamarkupfalse%
|
|
1359 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ {\isacharquery}r{\isachardoublequoteclose}\ \isacommand{by}\isamarkupfalse%
|
|
1360 |
\ {\isacharparenleft}metis\ meet{\isacharunderscore}related{\isadigit{2}}{\isacharparenright}\isanewline
|
|
1361 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
1362 |
\ \isacommand{have}\isamarkupfalse%
|
|
1363 |
\ {\isachardoublequoteopen}{\isacharquery}l\ {\isacharequal}\ {\isacharquery}r{\isachardoublequoteclose}\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
1364 |
\ \isacommand{{\isacharbraceright}}\isamarkupfalse%
|
|
1365 |
\isanewline
|
|
1366 |
\ \ \ \ \ \ \isacommand{moreover}\isamarkupfalse%
|
|
1367 |
\isanewline
|
|
1368 |
\ \ \ \ \ \ \isacommand{{\isacharbraceleft}}\isamarkupfalse%
|
|
1369 |
\ \isacommand{assume}\isamarkupfalse%
|
|
1370 |
\ c{\isacharcolon}\ {\isachardoublequoteopen}x\ {\isasymsqsubseteq}\ y\ {\isasymor}\ x\ {\isasymsqsubseteq}\ z{\isachardoublequoteclose}\isanewline
|
|
1371 |
\ \ \ \ \ \ \ \ \isacommand{from}\isamarkupfalse%
|
|
1372 |
\ c\ \isacommand{have}\isamarkupfalse%
|
|
1373 |
\ {\isachardoublequoteopen}{\isacharquery}l\ {\isacharequal}\ x{\isachardoublequoteclose}\isanewline
|
|
1374 |
\ \ \ \ \ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1375 |
\ {\isacharparenleft}metis\ join{\isacharunderscore}connection{\isadigit{2}}\ join{\isacharunderscore}related{\isadigit{2}}\ meet{\isacharunderscore}connection\ total\ trans{\isacharparenright}\isanewline
|
|
1376 |
\ \ \ \ \ \ \ \ \isacommand{also}\isamarkupfalse%
|
|
1377 |
\ \isacommand{from}\isamarkupfalse%
|
|
1378 |
\ c\ \isacommand{have}\isamarkupfalse%
|
|
1379 |
\ {\isachardoublequoteopen}{\isachardot}{\isachardot}{\isachardot}\ {\isacharequal}\ {\isacharquery}r{\isachardoublequoteclose}\isanewline
|
|
1380 |
\ \ \ \ \ \ \ \ \ \ \isacommand{by}\isamarkupfalse%
|
|
1381 |
\ {\isacharparenleft}metis\ join{\isacharunderscore}commute\ join{\isacharunderscore}related{\isadigit{2}}\ meet{\isacharunderscore}connection\ meet{\isacharunderscore}related{\isadigit{2}}\ total{\isacharparenright}\isanewline
|
|
1382 |
\ \ \ \ \ \ \ \ \isacommand{finally}\isamarkupfalse%
|
|
1383 |
\ \isacommand{have}\isamarkupfalse%
|
|
1384 |
\ {\isachardoublequoteopen}{\isacharquery}l\ {\isacharequal}\ {\isacharquery}r{\isachardoublequoteclose}\ \isacommand{{\isachardot}}\isamarkupfalse%
|
|
1385 |
\ \isacommand{{\isacharbraceright}}\isamarkupfalse%
|
|
1386 |
\isanewline
|
|
1387 |
\ \ \ \ \ \ \isacommand{moreover}\isamarkupfalse%
|
|
1388 |
\ \isacommand{note}\isamarkupfalse%
|
|
1389 |
\ total\isanewline
|
|
1390 |
\ \ \ \ \ \ \isacommand{ultimately}\isamarkupfalse%
|
|
1391 |
\ \isacommand{show}\isamarkupfalse%
|
|
1392 |
\ {\isacharquery}thesis\ \isacommand{by}\isamarkupfalse%
|
|
1393 |
\ blast\isanewline
|
|
1394 |
\ \ \ \ \isacommand{qed}\isamarkupfalse%
|
|
1395 |
\isanewline
|
|
1396 |
\ \ \isacommand{qed}\isamarkupfalse%
|
|
1397 |
%
|
|
1398 |
\endisatagproof
|
|
1399 |
{\isafoldproof}%
|
|
1400 |
%
|
|
1401 |
\isadelimproof
|
|
1402 |
%
|
|
1403 |
\endisadelimproof
|
|
1404 |
%
|
|
1405 |
\begin{isamarkuptext}%
|
|
1406 |
The locale hierarchy is now as shown in Figure~\ref{fig:lattices}(c).%
|
|
1407 |
\end{isamarkuptext}%
|
|
1408 |
\isamarkuptrue%
|
|
1409 |
%
|
|
1410 |
\isadelimtheory
|
|
1411 |
%
|
|
1412 |
\endisadelimtheory
|
|
1413 |
%
|
|
1414 |
\isatagtheory
|
27080
|
1415 |
\isacommand{end}\isamarkupfalse%
|
27063
|
1416 |
%
|
|
1417 |
\endisatagtheory
|
|
1418 |
{\isafoldtheory}%
|
|
1419 |
%
|
|
1420 |
\isadelimtheory
|
|
1421 |
%
|
|
1422 |
\endisadelimtheory
|
27080
|
1423 |
\isanewline
|
27063
|
1424 |
\end{isabellebody}%
|
|
1425 |
%%% Local Variables:
|
|
1426 |
%%% mode: latex
|
|
1427 |
%%% TeX-master: "root"
|
|
1428 |
%%% End:
|