author | noschinl |
Tue, 20 Dec 2011 18:46:05 +0100 | |
changeset 45936 | 0724e56b5dea |
parent 43543 | eb8b4851b039 |
permissions | -rw-r--r-- |
27063 | 1 |
% |
2 |
\begin{isabellebody}% |
|
3 |
\def\isabellecontext{Examples{\isadigit{2}}}% |
|
4 |
% |
|
5 |
\isadelimtheory |
|
6 |
% |
|
7 |
\endisadelimtheory |
|
8 |
% |
|
9 |
\isatagtheory |
|
27080 | 10 |
\isacommand{theory}\isamarkupfalse% |
11 |
\ Examples{\isadigit{2}}\isanewline |
|
12 |
\isakeyword{imports}\ Examples\isanewline |
|
13 |
\isakeyword{begin}% |
|
27063 | 14 |
\endisatagtheory |
15 |
{\isafoldtheory}% |
|
16 |
% |
|
17 |
\isadelimtheory |
|
18 |
% |
|
19 |
\endisadelimtheory |
|
20 |
% |
|
21 |
\begin{isamarkuptext}% |
|
32981 | 22 |
\vspace{-5ex}% |
27063 | 23 |
\end{isamarkuptext}% |
24 |
\isamarkuptrue% |
|
25 |
% |
|
26 |
\isadelimvisible |
|
32981 | 27 |
\ \ % |
27063 | 28 |
\endisadelimvisible |
29 |
% |
|
30 |
\isatagvisible |
|
31 |
\isacommand{interpretation}\isamarkupfalse% |
|
40406 | 32 |
\ int{\isaliteral{3A}{\isacharcolon}}\ partial{\isaliteral{5F}{\isacharunderscore}}order\ {\isaliteral{22}{\isachardoublequoteopen}}op\ {\isaliteral{5C3C6C653E}{\isasymle}}\ {\isaliteral{3A}{\isacharcolon}}{\isaliteral{3A}{\isacharcolon}}\ {\isaliteral{5B}{\isacharbrackleft}}int{\isaliteral{2C}{\isacharcomma}}\ int{\isaliteral{5D}{\isacharbrackright}}\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ bool{\isaliteral{22}{\isachardoublequoteclose}}\isanewline |
43543
eb8b4851b039
While reading equations of an interpretation, already allow syntax provided by the interpretation base.
ballarin
parents:
40406
diff
changeset
|
33 |
\ \ \ \ \isakeyword{where}\ {\isaliteral{22}{\isachardoublequoteopen}}int{\isaliteral{2E}{\isachardot}}less\ x\ y\ {\isaliteral{3D}{\isacharequal}}\ {\isaliteral{28}{\isacharparenleft}}x\ {\isaliteral{3C}{\isacharless}}\ y{\isaliteral{29}{\isacharparenright}}{\isaliteral{22}{\isachardoublequoteclose}}\isanewline |
32981 | 34 |
\ \ \isacommand{proof}\isamarkupfalse% |
40406 | 35 |
\ {\isaliteral{2D}{\isacharminus}}% |
27063 | 36 |
\begin{isamarkuptxt}% |
32983 | 37 |
\normalsize The goals are now: |
38 |
\begin{isabelle}% |
|
40406 | 39 |
\ {\isadigit{1}}{\isaliteral{2E}{\isachardot}}\ partial{\isaliteral{5F}{\isacharunderscore}}order\ op\ {\isaliteral{5C3C6C653E}{\isasymle}}\isanewline |
40 |
\ {\isadigit{2}}{\isaliteral{2E}{\isachardot}}\ partial{\isaliteral{5F}{\isacharunderscore}}order{\isaliteral{2E}{\isachardot}}less\ op\ {\isaliteral{5C3C6C653E}{\isasymle}}\ x\ y\ {\isaliteral{3D}{\isacharequal}}\ {\isaliteral{28}{\isacharparenleft}}x\ {\isaliteral{3C}{\isacharless}}\ y{\isaliteral{29}{\isacharparenright}}% |
|
27063 | 41 |
\end{isabelle} |
40406 | 42 |
The proof that~\isa{{\isaliteral{5C3C6C653E}{\isasymle}}} is a partial order is as above.% |
27063 | 43 |
\end{isamarkuptxt}% |
44 |
\isamarkuptrue% |
|
32981 | 45 |
\ \ \ \ \isacommand{show}\isamarkupfalse% |
40406 | 46 |
\ {\isaliteral{22}{\isachardoublequoteopen}}partial{\isaliteral{5F}{\isacharunderscore}}order\ {\isaliteral{28}{\isacharparenleft}}op\ {\isaliteral{5C3C6C653E}{\isasymle}}\ {\isaliteral{3A}{\isacharcolon}}{\isaliteral{3A}{\isacharcolon}}\ int\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ int\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ bool{\isaliteral{29}{\isacharparenright}}{\isaliteral{22}{\isachardoublequoteclose}}\isanewline |
32981 | 47 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse% |
40406 | 48 |
\ unfold{\isaliteral{5F}{\isacharunderscore}}locales\ auto% |
27063 | 49 |
\begin{isamarkuptxt}% |
32981 | 50 |
\normalsize The second goal is shown by unfolding the |
40406 | 51 |
definition of \isa{partial{\isaliteral{5F}{\isacharunderscore}}order{\isaliteral{2E}{\isachardot}}less}.% |
27063 | 52 |
\end{isamarkuptxt}% |
53 |
\isamarkuptrue% |
|
32981 | 54 |
\ \ \ \ \isacommand{show}\isamarkupfalse% |
43543
eb8b4851b039
While reading equations of an interpretation, already allow syntax provided by the interpretation base.
ballarin
parents:
40406
diff
changeset
|
55 |
\ {\isaliteral{22}{\isachardoublequoteopen}}partial{\isaliteral{5F}{\isacharunderscore}}order{\isaliteral{2E}{\isachardot}}less\ op\ {\isaliteral{5C3C6C653E}{\isasymle}}\ x\ y\ {\isaliteral{3D}{\isacharequal}}\ {\isaliteral{28}{\isacharparenleft}}x\ {\isaliteral{3C}{\isacharless}}\ y{\isaliteral{29}{\isacharparenright}}{\isaliteral{22}{\isachardoublequoteclose}}\isanewline |
32981 | 56 |
\ \ \ \ \ \ \isacommand{unfolding}\isamarkupfalse% |
40406 | 57 |
\ partial{\isaliteral{5F}{\isacharunderscore}}order{\isaliteral{2E}{\isachardot}}less{\isaliteral{5F}{\isacharunderscore}}def\ {\isaliteral{5B}{\isacharbrackleft}}OF\ {\isaliteral{60}{\isacharbackquoteopen}}partial{\isaliteral{5F}{\isacharunderscore}}order\ op\ {\isaliteral{5C3C6C653E}{\isasymle}}{\isaliteral{60}{\isacharbackquoteclose}}{\isaliteral{5D}{\isacharbrackright}}\isanewline |
32981 | 58 |
\ \ \ \ \ \ \isacommand{by}\isamarkupfalse% |
27063 | 59 |
\ auto\isanewline |
32981 | 60 |
\ \ \isacommand{qed}\isamarkupfalse% |
27063 | 61 |
% |
62 |
\endisatagvisible |
|
63 |
{\isafoldvisible}% |
|
64 |
% |
|
65 |
\isadelimvisible |
|
66 |
% |
|
67 |
\endisadelimvisible |
|
68 |
% |
|
69 |
\begin{isamarkuptext}% |
|
32981 | 70 |
Note that the above proof is not in the context of the |
40406 | 71 |
interpreted locale. Hence, the premise of \isa{partial{\isaliteral{5F}{\isacharunderscore}}order{\isaliteral{2E}{\isachardot}}less{\isaliteral{5F}{\isacharunderscore}}def} is discharged manually with \isa{OF}.% |
27063 | 72 |
\end{isamarkuptext}% |
73 |
\isamarkuptrue% |
|
74 |
% |
|
75 |
\isadelimtheory |
|
76 |
% |
|
77 |
\endisadelimtheory |
|
78 |
% |
|
79 |
\isatagtheory |
|
27080 | 80 |
\isacommand{end}\isamarkupfalse% |
27063 | 81 |
% |
82 |
\endisatagtheory |
|
83 |
{\isafoldtheory}% |
|
84 |
% |
|
85 |
\isadelimtheory |
|
86 |
% |
|
87 |
\endisadelimtheory |
|
27080 | 88 |
\isanewline |
27063 | 89 |
\end{isabellebody}% |
90 |
%%% Local Variables: |
|
91 |
%%% mode: latex |
|
92 |
%%% TeX-master: "root" |
|
93 |
%%% End: |