doc-src/TutorialI/Types/document/Numbers.tex
author wenzelm
Thu, 04 Oct 2007 16:59:29 +0200
changeset 24833 9131433b19bb
parent 23504 2b2323124e8e
child 25056 743f3603ba8b
permissions -rw-r--r--
load variable.ML before conv.ML;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
     1
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
     2
\begin{isabellebody}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
     3
\def\isabellecontext{Numbers}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
     4
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
     5
\isadelimtheory
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
     6
\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
     7
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
     8
\endisadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
     9
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    10
\isatagtheory
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    11
\isacommand{theory}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    12
\ Numbers\ \isakeyword{imports}\ Real\ \isakeyword{begin}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    13
\endisatagtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    14
{\isafoldtheory}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    15
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    16
\isadelimtheory
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    17
\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    18
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    19
\endisadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    20
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    21
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    22
\isanewline
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    23
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    24
\endisadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    25
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    26
\isatagML
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    27
\isacommand{ML}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    28
\ {\isachardoublequoteopen}Pretty{\isachardot}setmargin\ {\isadigit{6}}{\isadigit{4}}{\isachardoublequoteclose}\isanewline
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    29
\isacommand{ML}\isamarkupfalse%
22649
6cf96b9f7b9e updated;
wenzelm
parents: 21261
diff changeset
    30
\ {\isachardoublequoteopen}ThyOutput{\isachardot}indent\ {\isacharcolon}{\isacharequal}\ {\isadigit{0}}{\isachardoublequoteclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    31
\endisatagML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    32
{\isafoldML}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    33
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    34
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    35
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    36
\endisadelimML
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    37
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    38
\begin{isamarkuptext}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    39
numeric literals; default simprules; can re-orient%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    40
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    41
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    42
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    43
\ {\isachardoublequoteopen}{\isadigit{2}}\ {\isacharasterisk}\ m\ {\isacharequal}\ m\ {\isacharplus}\ m{\isachardoublequoteclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    44
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    45
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    46
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    47
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    48
\isatagproof
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    49
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    50
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    51
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    52
\ {\isadigit{1}}{\isachardot}\ {\isacharparenleft}{\isadigit{2}}{\isasymColon}{\isacharprime}a{\isacharparenright}\ {\isacharasterisk}\ m\ {\isacharequal}\ m\ {\isacharplus}\ m%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    53
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    54
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    55
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    56
\isacommand{oops}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    57
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    58
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    59
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    60
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    61
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    62
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    63
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
    64
\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
    65
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    66
\isacommand{consts}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    67
\ h\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequoteopen}nat\ {\isasymRightarrow}\ nat{\isachardoublequoteclose}\isanewline
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    68
\isacommand{recdef}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    69
\ h\ {\isachardoublequoteopen}{\isacharbraceleft}{\isacharbraceright}{\isachardoublequoteclose}\isanewline
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
    70
{\isachardoublequoteopen}h\ i\ {\isacharequal}\ {\isacharparenleft}if\ i\ {\isacharequal}\ {\isadigit{3}}\ then\ {\isadigit{2}}\ else\ i{\isacharparenright}{\isachardoublequoteclose}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    71
\begin{isamarkuptext}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    72
\isa{h\ {\isadigit{3}}\ {\isacharequal}\ {\isadigit{2}}}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    73
\isa{h\ i\ {\isacharequal}\ i}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    74
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    75
\isamarkuptrue%
10878
b254d5ad6dd4 auto update
paulson
parents: 10790
diff changeset
    76
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    77
\begin{isamarkuptext}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    78
\begin{isabelle}%
14387
e96d5c42c4b0 Polymorphic treatment of binary arithmetic using axclasses
paulson
parents: 14353
diff changeset
    79
Numeral{\isadigit{0}}\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    80
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    81
\rulename{numeral_0_eq_0}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    82
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    83
\begin{isabelle}%
14387
e96d5c42c4b0 Polymorphic treatment of binary arithmetic using axclasses
paulson
parents: 14353
diff changeset
    84
Numeral{\isadigit{1}}\ {\isacharequal}\ {\isacharparenleft}{\isadigit{1}}{\isasymColon}{\isacharprime}a{\isacharparenright}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    85
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    86
\rulename{numeral_1_eq_1}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    87
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    88
\begin{isabelle}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    89
{\isadigit{2}}\ {\isacharplus}\ n\ {\isacharequal}\ Suc\ {\isacharparenleft}Suc\ n{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    90
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    91
\rulename{add_2_eq_Suc}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    92
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    93
\begin{isabelle}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    94
n\ {\isacharplus}\ {\isadigit{2}}\ {\isacharequal}\ Suc\ {\isacharparenleft}Suc\ n{\isacharparenright}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    95
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    96
\rulename{add_2_eq_Suc'}
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    97
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    98
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
    99
a\ {\isacharplus}\ b\ {\isacharplus}\ c\ {\isacharequal}\ a\ {\isacharplus}\ {\isacharparenleft}b\ {\isacharplus}\ c{\isacharparenright}%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   100
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   101
\rulename{add_assoc}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   102
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   103
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
   104
a\ {\isacharplus}\ b\ {\isacharequal}\ b\ {\isacharplus}\ a%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   105
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   106
\rulename{add_commute}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   107
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   108
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
   109
a\ {\isacharplus}\ {\isacharparenleft}b\ {\isacharplus}\ c{\isacharparenright}\ {\isacharequal}\ b\ {\isacharplus}\ {\isacharparenleft}a\ {\isacharplus}\ c{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   110
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   111
\rulename{add_left_commute}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   112
49109fe3e919 auto generated
paulson
parents:
diff changeset
   113
these form add_ac; similarly there is mult_ac%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   114
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   115
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   116
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   117
\ {\isachardoublequoteopen}Suc{\isacharparenleft}i\ {\isacharplus}\ j{\isacharasterisk}l{\isacharasterisk}k\ {\isacharplus}\ m{\isacharasterisk}n{\isacharparenright}\ {\isacharequal}\ f\ {\isacharparenleft}n{\isacharasterisk}m\ {\isacharplus}\ i\ {\isacharplus}\ k{\isacharasterisk}j{\isacharasterisk}l{\isacharparenright}{\isachardoublequoteclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   118
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   119
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   120
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   121
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   122
\isatagproof
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   123
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   124
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   125
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   126
\ {\isadigit{1}}{\isachardot}\ Suc\ {\isacharparenleft}i\ {\isacharplus}\ j\ {\isacharasterisk}\ l\ {\isacharasterisk}\ k\ {\isacharplus}\ m\ {\isacharasterisk}\ n{\isacharparenright}\ {\isacharequal}\ f\ {\isacharparenleft}n\ {\isacharasterisk}\ m\ {\isacharplus}\ i\ {\isacharplus}\ k\ {\isacharasterisk}\ j\ {\isacharasterisk}\ l{\isacharparenright}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   127
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   128
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   129
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   130
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   131
\ {\isacharparenleft}simp\ add{\isacharcolon}\ add{\isacharunderscore}ac\ mult{\isacharunderscore}ac{\isacharparenright}%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   132
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   133
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   134
\ {\isadigit{1}}{\isachardot}\ Suc\ {\isacharparenleft}i\ {\isacharplus}\ {\isacharparenleft}m\ {\isacharasterisk}\ n\ {\isacharplus}\ j\ {\isacharasterisk}\ {\isacharparenleft}k\ {\isacharasterisk}\ l{\isacharparenright}{\isacharparenright}{\isacharparenright}\ {\isacharequal}\isanewline
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   135
\isaindent{\ {\isadigit{1}}{\isachardot}\ }f\ {\isacharparenleft}i\ {\isacharplus}\ {\isacharparenleft}m\ {\isacharasterisk}\ n\ {\isacharplus}\ j\ {\isacharasterisk}\ {\isacharparenleft}k\ {\isacharasterisk}\ l{\isacharparenright}{\isacharparenright}{\isacharparenright}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   136
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   137
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   138
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   139
\isacommand{oops}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   140
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   141
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   142
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   143
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   144
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   145
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   146
\endisadelimproof
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   147
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   148
\begin{isamarkuptext}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   149
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   150
m\ {\isasymle}\ n\ {\isasymLongrightarrow}\ m\ div\ k\ {\isasymle}\ n\ div\ k%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   151
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   152
\rulename{div_le_mono}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   153
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   154
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   155
{\isacharparenleft}m\ {\isacharminus}\ n{\isacharparenright}\ {\isacharasterisk}\ k\ {\isacharequal}\ m\ {\isacharasterisk}\ k\ {\isacharminus}\ n\ {\isacharasterisk}\ k%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   156
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   157
\rulename{diff_mult_distrib}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   158
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   159
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   160
m\ mod\ n\ {\isacharasterisk}\ k\ {\isacharequal}\ m\ {\isacharasterisk}\ k\ mod\ {\isacharparenleft}n\ {\isacharasterisk}\ k{\isacharparenright}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   161
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   162
\rulename{mod_mult_distrib}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   163
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   164
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   165
P\ {\isacharparenleft}a\ {\isacharminus}\ b{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}{\isacharparenleft}a\ {\isacharless}\ b\ {\isasymlongrightarrow}\ P\ {\isadigit{0}}{\isacharparenright}\ {\isasymand}\ {\isacharparenleft}{\isasymforall}d{\isachardot}\ a\ {\isacharequal}\ b\ {\isacharplus}\ d\ {\isasymlongrightarrow}\ P\ d{\isacharparenright}{\isacharparenright}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   166
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   167
\rulename{nat_diff_split}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   168
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   169
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   170
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   171
\ {\isachardoublequoteopen}{\isacharparenleft}n\ {\isacharminus}\ {\isadigit{1}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}n\ {\isacharplus}\ {\isadigit{1}}{\isacharparenright}\ {\isacharequal}\ n\ {\isacharasterisk}\ n\ {\isacharminus}\ {\isacharparenleft}{\isadigit{1}}{\isacharcolon}{\isacharcolon}nat{\isacharparenright}{\isachardoublequoteclose}\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   172
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   173
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   174
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   175
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   176
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   177
\isatagproof
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   178
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   179
\ {\isacharparenleft}clarsimp\ split{\isacharcolon}\ nat{\isacharunderscore}diff{\isacharunderscore}split\ iff\ del{\isacharcolon}\ less{\isacharunderscore}Suc{\isadigit{0}}{\isacharparenright}\isanewline
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   180
\ %
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   181
\isamarkupcmt{\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   182
\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}d{\isachardot}\ {\isasymlbrakk}n\ {\isacharless}\ Suc\ {\isadigit{0}}{\isacharsemicolon}\ n\ {\isacharasterisk}\ n\ {\isacharequal}\ Suc\ d{\isasymrbrakk}\ {\isasymLongrightarrow}\ d\ {\isacharequal}\ {\isadigit{0}}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   183
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   184
}
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   185
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   186
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   187
\ {\isacharparenleft}subgoal{\isacharunderscore}tac\ {\isachardoublequoteopen}n{\isacharequal}{\isadigit{0}}{\isachardoublequoteclose}{\isacharcomma}\ force{\isacharcomma}\ arith{\isacharparenright}\isanewline
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   188
\isacommand{done}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   189
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   190
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   191
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   192
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   193
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   194
\isanewline
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   195
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   196
\endisadelimproof
12156
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   197
\isanewline
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   198
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   199
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   200
\ {\isachardoublequoteopen}{\isacharparenleft}n\ {\isacharminus}\ {\isadigit{2}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}n\ {\isacharplus}\ {\isadigit{2}}{\isacharparenright}\ {\isacharequal}\ n\ {\isacharasterisk}\ n\ {\isacharminus}\ {\isacharparenleft}{\isadigit{4}}{\isacharcolon}{\isacharcolon}nat{\isacharparenright}{\isachardoublequoteclose}\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   201
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   202
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   203
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   204
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   205
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   206
\isatagproof
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   207
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   208
\ {\isacharparenleft}simp\ split{\isacharcolon}\ nat{\isacharunderscore}diff{\isacharunderscore}split{\isacharcomma}\ clarify{\isacharparenright}\isanewline
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   209
\ %
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   210
\isamarkupcmt{\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   211
\ {\isadigit{1}}{\isachardot}\ {\isasymAnd}d{\isachardot}\ {\isasymlbrakk}n\ {\isacharless}\ {\isadigit{2}}{\isacharsemicolon}\ n\ {\isacharasterisk}\ n\ {\isacharequal}\ {\isadigit{4}}\ {\isacharplus}\ d{\isasymrbrakk}\ {\isasymLongrightarrow}\ d\ {\isacharequal}\ {\isadigit{0}}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   212
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   213
}
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   214
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   215
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   216
\ {\isacharparenleft}subgoal{\isacharunderscore}tac\ {\isachardoublequoteopen}n{\isacharequal}{\isadigit{0}}\ {\isacharbar}\ n{\isacharequal}{\isadigit{1}}{\isachardoublequoteclose}{\isacharcomma}\ force{\isacharcomma}\ arith{\isacharparenright}\isanewline
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   217
\isacommand{done}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   218
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   219
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   220
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   221
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   222
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   223
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   224
\endisadelimproof
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   225
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   226
\begin{isamarkuptext}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   227
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   228
m\ mod\ n\ {\isacharequal}\ {\isacharparenleft}if\ m\ {\isacharless}\ n\ then\ m\ else\ {\isacharparenleft}m\ {\isacharminus}\ n{\isacharparenright}\ mod\ n{\isacharparenright}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   229
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   230
\rulename{mod_if}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   231
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   232
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   233
m\ div\ n\ {\isacharasterisk}\ n\ {\isacharplus}\ m\ mod\ n\ {\isacharequal}\ m%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   234
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   235
\rulename{mod_div_equality}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   236
49109fe3e919 auto generated
paulson
parents:
diff changeset
   237
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   238
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   239
a\ {\isacharasterisk}\ b\ div\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ div\ c{\isacharparenright}\ {\isacharplus}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ div\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   240
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   241
\rulename{div_mult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   242
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   243
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   244
a\ {\isacharasterisk}\ b\ mod\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ mod\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   245
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   246
\rulename{mod_mult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   247
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   248
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   249
a\ div\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ a\ div\ b\ div\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   250
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   251
\rulename{div_mult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   252
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   253
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   254
a\ mod\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ b\ {\isacharasterisk}\ {\isacharparenleft}a\ div\ b\ mod\ c{\isacharparenright}\ {\isacharplus}\ a\ mod\ b%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   255
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   256
\rulename{mod_mult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   257
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   258
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   259
{\isadigit{0}}\ {\isacharless}\ c\ {\isasymLongrightarrow}\ c\ {\isacharasterisk}\ a\ div\ {\isacharparenleft}c\ {\isacharasterisk}\ b{\isacharparenright}\ {\isacharequal}\ a\ div\ b%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   260
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   261
\rulename{div_mult_mult1}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   262
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   263
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   264
a\ div\ {\isadigit{0}}\ {\isacharequal}\ {\isadigit{0}}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   265
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   266
\rulename{DIVISION_BY_ZERO_DIV}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   267
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   268
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   269
a\ mod\ {\isadigit{0}}\ {\isacharequal}\ a%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   270
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   271
\rulename{DIVISION_BY_ZERO_MOD}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   272
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   273
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   274
{\isasymlbrakk}m\ dvd\ n{\isacharsemicolon}\ n\ dvd\ m{\isasymrbrakk}\ {\isasymLongrightarrow}\ m\ {\isacharequal}\ n%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   275
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   276
\rulename{dvd_anti_sym}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   277
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   278
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   279
{\isasymlbrakk}k\ dvd\ m{\isacharsemicolon}\ k\ dvd\ n{\isasymrbrakk}\ {\isasymLongrightarrow}\ k\ dvd\ m\ {\isacharplus}\ n%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   280
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   281
\rulename{dvd_add}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   282
49109fe3e919 auto generated
paulson
parents:
diff changeset
   283
For the integers, I'd list a few theorems that somehow involve negative 
13758
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   284
numbers.%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   285
\end{isamarkuptext}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   286
\isamarkuptrue%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   287
%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   288
\begin{isamarkuptext}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   289
Division, remainder of negatives
49109fe3e919 auto generated
paulson
parents:
diff changeset
   290
49109fe3e919 auto generated
paulson
parents:
diff changeset
   291
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   292
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   293
{\isadigit{0}}\ {\isacharless}\ b\ {\isasymLongrightarrow}\ {\isadigit{0}}\ {\isasymle}\ a\ mod\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   294
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   295
\rulename{pos_mod_sign}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   296
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   297
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   298
{\isadigit{0}}\ {\isacharless}\ b\ {\isasymLongrightarrow}\ a\ mod\ b\ {\isacharless}\ b%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   299
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   300
\rulename{pos_mod_bound}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   301
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   302
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   303
b\ {\isacharless}\ {\isadigit{0}}\ {\isasymLongrightarrow}\ a\ mod\ b\ {\isasymle}\ {\isadigit{0}}%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   304
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   305
\rulename{neg_mod_sign}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   306
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   307
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   308
b\ {\isacharless}\ {\isadigit{0}}\ {\isasymLongrightarrow}\ b\ {\isacharless}\ a\ mod\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   309
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   310
\rulename{neg_mod_bound}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   311
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   312
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   313
{\isacharparenleft}a\ {\isacharplus}\ b{\isacharparenright}\ div\ c\ {\isacharequal}\ a\ div\ c\ {\isacharplus}\ b\ div\ c\ {\isacharplus}\ {\isacharparenleft}a\ mod\ c\ {\isacharplus}\ b\ mod\ c{\isacharparenright}\ div\ c%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   314
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   315
\rulename{zdiv_zadd1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   316
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   317
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   318
{\isacharparenleft}a\ {\isacharplus}\ b{\isacharparenright}\ mod\ c\ {\isacharequal}\ {\isacharparenleft}a\ mod\ c\ {\isacharplus}\ b\ mod\ c{\isacharparenright}\ mod\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   319
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   320
\rulename{zmod_zadd1_eq}
49109fe3e919 auto generated
paulson
parents:
diff changeset
   321
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   322
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   323
a\ {\isacharasterisk}\ b\ div\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ div\ c{\isacharparenright}\ {\isacharplus}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ div\ c%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   324
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   325
\rulename{zdiv_zmult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   326
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   327
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   328
a\ {\isacharasterisk}\ b\ mod\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ mod\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   329
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   330
\rulename{zmod_zmult1_eq}
49109fe3e919 auto generated
paulson
parents:
diff changeset
   331
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   332
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   333
{\isadigit{0}}\ {\isacharless}\ c\ {\isasymLongrightarrow}\ a\ div\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ a\ div\ b\ div\ c%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   334
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   335
\rulename{zdiv_zmult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   336
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   337
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   338
{\isadigit{0}}\ {\isacharless}\ c\ {\isasymLongrightarrow}\ a\ mod\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ b\ {\isacharasterisk}\ {\isacharparenleft}a\ div\ b\ mod\ c{\isacharparenright}\ {\isacharplus}\ a\ mod\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   339
\end{isabelle}
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   340
\rulename{zmod_zmult2_eq}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   341
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   342
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   343
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   344
\ {\isachardoublequoteopen}abs\ {\isacharparenleft}x{\isacharplus}y{\isacharparenright}\ {\isasymle}\ abs\ x\ {\isacharplus}\ abs\ {\isacharparenleft}y\ {\isacharcolon}{\isacharcolon}\ int{\isacharparenright}{\isachardoublequoteclose}\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   345
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   346
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   347
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   348
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   349
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   350
\isatagproof
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   351
\isacommand{by}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   352
\ arith%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   353
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   354
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   355
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   356
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   357
\isanewline
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   358
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   359
\endisadelimproof
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   360
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   361
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   362
\ {\isachardoublequoteopen}abs\ {\isacharparenleft}{\isadigit{2}}{\isacharasterisk}x{\isacharparenright}\ {\isacharequal}\ {\isadigit{2}}\ {\isacharasterisk}\ abs\ {\isacharparenleft}x\ {\isacharcolon}{\isacharcolon}\ int{\isacharparenright}{\isachardoublequoteclose}\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   363
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   364
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   365
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   366
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   367
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   368
\isatagproof
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   369
\isacommand{by}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   370
\ {\isacharparenleft}simp\ add{\isacharcolon}\ abs{\isacharunderscore}if{\isacharparenright}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   371
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   372
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   373
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   374
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   375
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   376
\endisadelimproof
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   377
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   378
\begin{isamarkuptext}%
13758
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   379
Induction rules for the Integers
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   380
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   381
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   382
{\isasymlbrakk}k\ {\isasymle}\ i{\isacharsemicolon}\ P\ k{\isacharsemicolon}\ {\isasymAnd}i{\isachardot}\ {\isasymlbrakk}k\ {\isasymle}\ i{\isacharsemicolon}\ P\ i{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ {\isacharparenleft}i\ {\isacharplus}\ {\isadigit{1}}{\isacharparenright}{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ i%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   383
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   384
\rulename{int_ge_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   385
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   386
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   387
{\isasymlbrakk}k\ {\isacharless}\ i{\isacharsemicolon}\ P\ {\isacharparenleft}k\ {\isacharplus}\ {\isadigit{1}}{\isacharparenright}{\isacharsemicolon}\ {\isasymAnd}i{\isachardot}\ {\isasymlbrakk}k\ {\isacharless}\ i{\isacharsemicolon}\ P\ i{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ {\isacharparenleft}i\ {\isacharplus}\ {\isadigit{1}}{\isacharparenright}{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ i%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   388
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   389
\rulename{int_gr_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   390
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   391
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   392
{\isasymlbrakk}i\ {\isasymle}\ k{\isacharsemicolon}\ P\ k{\isacharsemicolon}\ {\isasymAnd}i{\isachardot}\ {\isasymlbrakk}i\ {\isasymle}\ k{\isacharsemicolon}\ P\ i{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ {\isacharparenleft}i\ {\isacharminus}\ {\isadigit{1}}{\isacharparenright}{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ i%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   393
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   394
\rulename{int_le_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   395
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   396
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   397
{\isasymlbrakk}i\ {\isacharless}\ k{\isacharsemicolon}\ P\ {\isacharparenleft}k\ {\isacharminus}\ {\isadigit{1}}{\isacharparenright}{\isacharsemicolon}\ {\isasymAnd}i{\isachardot}\ {\isasymlbrakk}i\ {\isacharless}\ k{\isacharsemicolon}\ P\ i{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ {\isacharparenleft}i\ {\isacharminus}\ {\isadigit{1}}{\isacharparenright}{\isasymrbrakk}\ {\isasymLongrightarrow}\ P\ i%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   398
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   399
\rulename{int_less_induct}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   400
\end{isamarkuptext}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   401
\isamarkuptrue%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   402
%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   403
\begin{isamarkuptext}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   404
FIELDS
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   405
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   406
\begin{isabelle}%
19654
2c02a8054616 updated;
wenzelm
parents: 19288
diff changeset
   407
a\ {\isacharless}\ b\ {\isasymLongrightarrow}\ {\isasymexists}r{\isachargreater}a{\isachardot}\ r\ {\isacharless}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   408
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   409
\rulename{dense}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   410
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   411
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   412
a\ {\isacharasterisk}\ {\isacharparenleft}b\ {\isacharslash}\ c{\isacharparenright}\ {\isacharequal}\ a\ {\isacharasterisk}\ b\ {\isacharslash}\ c%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   413
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   414
\rulename{times_divide_eq_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   415
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   416
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   417
b\ {\isacharslash}\ c\ {\isacharasterisk}\ a\ {\isacharequal}\ b\ {\isacharasterisk}\ a\ {\isacharslash}\ c%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   418
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   419
\rulename{times_divide_eq_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   420
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   421
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   422
a\ {\isacharslash}\ {\isacharparenleft}b\ {\isacharslash}\ c{\isacharparenright}\ {\isacharequal}\ a\ {\isacharasterisk}\ c\ {\isacharslash}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   423
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   424
\rulename{divide_divide_eq_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   425
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   426
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   427
a\ {\isacharslash}\ b\ {\isacharslash}\ c\ {\isacharequal}\ a\ {\isacharslash}\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   428
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   429
\rulename{divide_divide_eq_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   430
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   431
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   432
{\isacharminus}\ {\isacharparenleft}a\ {\isacharslash}\ b{\isacharparenright}\ {\isacharequal}\ {\isacharminus}\ a\ {\isacharslash}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   433
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   434
\rulename{minus_divide_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   435
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   436
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   437
{\isacharminus}\ {\isacharparenleft}a\ {\isacharslash}\ b{\isacharparenright}\ {\isacharequal}\ a\ {\isacharslash}\ {\isacharminus}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   438
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   439
\rulename{minus_divide_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   440
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   441
This last NOT a simprule
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   442
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   443
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   444
{\isacharparenleft}a\ {\isacharplus}\ b{\isacharparenright}\ {\isacharslash}\ c\ {\isacharequal}\ a\ {\isacharslash}\ c\ {\isacharplus}\ b\ {\isacharslash}\ c%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   445
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   446
\rulename{add_divide_distrib}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   447
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   448
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   449
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   450
\ {\isachardoublequoteopen}{\isadigit{3}}{\isacharslash}{\isadigit{4}}\ {\isacharless}\ {\isacharparenleft}{\isadigit{7}}{\isacharslash}{\isadigit{8}}\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isachardoublequoteclose}\isanewline
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   451
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   452
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   453
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   454
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   455
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   456
\isatagproof
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   457
\isacommand{by}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   458
\ simp%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   459
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   460
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   461
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   462
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   463
\ \isanewline
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   464
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   465
\endisadelimproof
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   466
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   467
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   468
\ {\isachardoublequoteopen}P\ {\isacharparenleft}{\isacharparenleft}{\isadigit{3}}{\isacharslash}{\isadigit{4}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}{\isacharslash}{\isadigit{1}}{\isadigit{5}}\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isacharparenright}{\isachardoublequoteclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   469
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   470
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   471
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   472
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   473
\isatagproof
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   474
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   475
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   476
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   477
\ {\isadigit{1}}{\isachardot}\ P\ {\isacharparenleft}{\isadigit{3}}\ {\isacharslash}\ {\isadigit{4}}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}\ {\isacharslash}\ {\isadigit{1}}{\isadigit{5}}{\isacharparenright}{\isacharparenright}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   478
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   479
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   480
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   481
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   482
\ simp%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   483
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   484
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   485
\ {\isadigit{1}}{\isachardot}\ P\ {\isacharparenleft}{\isadigit{2}}\ {\isacharslash}\ {\isadigit{5}}{\isacharparenright}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   486
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   487
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   488
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   489
\isacommand{oops}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   490
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   491
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   492
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   493
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   494
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   495
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   496
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   497
\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   498
\isanewline
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   499
\isacommand{lemma}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   500
\ {\isachardoublequoteopen}{\isacharparenleft}{\isadigit{3}}{\isacharslash}{\isadigit{4}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}{\isacharslash}{\isadigit{1}}{\isadigit{5}}{\isacharparenright}\ {\isacharless}\ {\isacharparenleft}x\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isachardoublequoteclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   501
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   502
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   503
\endisadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   504
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   505
\isatagproof
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   506
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   507
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   508
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   509
\ {\isadigit{1}}{\isachardot}\ {\isadigit{3}}\ {\isacharslash}\ {\isadigit{4}}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}\ {\isacharslash}\ {\isadigit{1}}{\isadigit{5}}{\isacharparenright}\ {\isacharless}\ x%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   510
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   511
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   512
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   513
\isacommand{apply}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   514
\ simp%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   515
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   516
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   517
\ {\isadigit{1}}{\isachardot}\ {\isadigit{2}}\ {\isacharless}\ x\ {\isacharasterisk}\ {\isadigit{5}}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   518
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   519
\end{isamarkuptxt}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   520
\isamarkuptrue%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   521
\isacommand{oops}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   522
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   523
\endisatagproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   524
{\isafoldproof}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   525
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   526
\isadelimproof
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   527
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   528
\endisadelimproof
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   529
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   530
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   531
Ring and Field
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   532
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   533
Requires a field, or else an ordered ring
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   534
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   535
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   536
{\isacharparenleft}a\ {\isacharasterisk}\ b\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}a\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}\ {\isasymor}\ b\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}{\isacharparenright}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   537
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   538
\rulename{mult_eq_0_iff}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   539
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   540
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   541
{\isacharparenleft}a\ {\isacharasterisk}\ c\ {\isacharequal}\ b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}c\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}\ {\isasymor}\ a\ {\isacharequal}\ b{\isacharparenright}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   542
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   543
\rulename{mult_cancel_right}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   544
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   545
\begin{isabelle}%
23504
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   546
{\isacharparenleft}c\ {\isacharasterisk}\ a\ {\isacharequal}\ c\ {\isacharasterisk}\ b{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}c\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}\ {\isasymor}\ a\ {\isacharequal}\ b{\isacharparenright}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   547
\end{isabelle}
23504
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   548
\rulename{mult_cancel_left}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   549
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   550
\isamarkuptrue%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   551
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   552
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   553
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   554
\endisadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   555
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   556
\isatagML
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   557
\isacommand{ML}\isamarkupfalse%
17181
5f42dd5e6570 updated;
wenzelm
parents: 17175
diff changeset
   558
{\isacharverbatimopen}set\ show{\isacharunderscore}sorts{\isacharverbatimclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   559
\endisatagML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   560
{\isafoldML}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   561
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   562
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   563
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   564
\endisadelimML
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   565
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   566
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   567
effect of show sorts on the above
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   568
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   569
\begin{isabelle}%
23504
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   570
{\isacharparenleft}{\isacharparenleft}c{\isasymColon}{\isacharprime}a{\isasymColon}ring{\isacharunderscore}no{\isacharunderscore}zero{\isacharunderscore}divisors{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}a{\isasymColon}{\isacharprime}a{\isasymColon}ring{\isacharunderscore}no{\isacharunderscore}zero{\isacharunderscore}divisors{\isacharparenright}\ {\isacharequal}\isanewline
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   571
\isaindent{{\isacharparenleft}}c\ {\isacharasterisk}\ {\isacharparenleft}b{\isasymColon}{\isacharprime}a{\isasymColon}ring{\isacharunderscore}no{\isacharunderscore}zero{\isacharunderscore}divisors{\isacharparenright}{\isacharparenright}\ {\isacharequal}\isanewline
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   572
{\isacharparenleft}c\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isasymColon}ring{\isacharunderscore}no{\isacharunderscore}zero{\isacharunderscore}divisors{\isacharparenright}\ {\isasymor}\ a\ {\isacharequal}\ b{\isacharparenright}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   573
\end{isabelle}
23504
2b2323124e8e changes for type class ring_no_zero_divisors
paulson
parents: 23498
diff changeset
   574
\rulename{mult_cancel_left}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   575
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   576
\isamarkuptrue%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   577
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   578
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   579
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   580
\endisadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   581
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   582
\isatagML
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   583
\isacommand{ML}\isamarkupfalse%
17181
5f42dd5e6570 updated;
wenzelm
parents: 17175
diff changeset
   584
{\isacharverbatimopen}reset\ show{\isacharunderscore}sorts{\isacharverbatimclose}%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   585
\endisatagML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   586
{\isafoldML}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   587
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   588
\isadelimML
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   589
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   590
\endisadelimML
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   591
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   592
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   593
absolute value
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   594
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   595
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   596
{\isasymbar}a\ {\isacharasterisk}\ b{\isasymbar}\ {\isacharequal}\ {\isasymbar}a{\isasymbar}\ {\isacharasterisk}\ {\isasymbar}b{\isasymbar}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   597
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   598
\rulename{abs_mult}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   599
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   600
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   601
{\isacharparenleft}{\isasymbar}a{\isasymbar}\ {\isasymle}\ b{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}a\ {\isasymle}\ b\ {\isasymand}\ {\isacharminus}\ a\ {\isasymle}\ b{\isacharparenright}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   602
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   603
\rulename{abs_le_iff}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   604
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   605
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   606
{\isasymbar}a\ {\isacharplus}\ b{\isasymbar}\ {\isasymle}\ {\isasymbar}a{\isasymbar}\ {\isacharplus}\ {\isasymbar}b{\isasymbar}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   607
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   608
\rulename{abs_triangle_ineq}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   609
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   610
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   611
a\ {\isacharcircum}\ {\isacharparenleft}m\ {\isacharplus}\ n{\isacharparenright}\ {\isacharequal}\ a\ {\isacharcircum}\ m\ {\isacharasterisk}\ a\ {\isacharcircum}\ n%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   612
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   613
\rulename{power_add}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   614
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   615
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   616
a\ {\isacharcircum}\ {\isacharparenleft}m\ {\isacharasterisk}\ n{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}a\ {\isacharcircum}\ m{\isacharparenright}\ {\isacharcircum}\ n%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   617
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   618
\rulename{power_mult}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   619
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   620
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   621
{\isasymbar}a\ {\isacharcircum}\ n{\isasymbar}\ {\isacharequal}\ {\isasymbar}a{\isasymbar}\ {\isacharcircum}\ n%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   622
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   623
\rulename{power_abs}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   624
\end{isamarkuptext}%
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   625
\isamarkuptrue%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   626
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   627
\isadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   628
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   629
\endisadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   630
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   631
\isatagtheory
17175
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   632
\isacommand{end}\isamarkupfalse%
1eced27ee0e1 updated;
wenzelm
parents: 17056
diff changeset
   633
%
17056
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   634
\endisatagtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   635
{\isafoldtheory}%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   636
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   637
\isadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   638
%
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   639
\endisadelimtheory
05fc32a23b8b updated;
wenzelm
parents: 16585
diff changeset
   640
\isanewline
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   641
\end{isabellebody}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   642
%%% Local Variables:
49109fe3e919 auto generated
paulson
parents:
diff changeset
   643
%%% mode: latex
49109fe3e919 auto generated
paulson
parents:
diff changeset
   644
%%% TeX-master: "root"
49109fe3e919 auto generated
paulson
parents:
diff changeset
   645
%%% End: