doc-src/TutorialI/Types/document/Numbers.tex
author paulson
Tue, 28 Jun 2005 15:26:32 +0200
changeset 16585 02cf78f0afce
parent 16523 f8a734dc0fbc
child 17056 05fc32a23b8b
permissions -rw-r--r--
replacing zabs_def by abs_if
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}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
     4
\isanewline
16523
f8a734dc0fbc *** empty log message ***
nipkow
parents: 16353
diff changeset
     5
\isacommand{theory}\ Numbers\ \isakeyword{imports}\ Real\ \isakeyword{begin}\isanewline
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
     6
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
     7
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
     8
\isacommand{ML}\ {\isachardoublequote}Pretty{\isachardot}setmargin\ {\isadigit{6}}{\isadigit{4}}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
     9
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    10
\isacommand{ML}\ {\isachardoublequote}IsarOutput{\isachardot}indent\ {\isacharcolon}{\isacharequal}\ {\isadigit{0}}{\isachardoublequote}\isamarkupfalse%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    11
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    12
\begin{isamarkuptext}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    13
numeric literals; default simprules; can re-orient%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    14
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    15
\isamarkuptrue%
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    16
\isacommand{lemma}\ {\isachardoublequote}{\isadigit{2}}\ {\isacharasterisk}\ m\ {\isacharequal}\ m\ {\isacharplus}\ m{\isachardoublequote}\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    17
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    18
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    19
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    20
\ {\isadigit{1}}{\isachardot}\ {\isacharparenleft}{\isadigit{2}}{\isasymColon}{\isacharprime}a{\isacharparenright}\ {\isacharasterisk}\ m\ {\isacharequal}\ m\ {\isacharplus}\ m%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    21
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    22
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    23
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    24
\isacommand{oops}\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
    25
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    26
\isamarkupfalse%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    27
\isacommand{consts}\ h\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}nat\ {\isasymRightarrow}\ nat{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    28
\isamarkupfalse%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    29
\isacommand{recdef}\ h\ {\isachardoublequote}{\isacharbraceleft}{\isacharbraceright}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    30
{\isachardoublequote}h\ i\ {\isacharequal}\ {\isacharparenleft}if\ i\ {\isacharequal}\ {\isadigit{3}}\ then\ {\isadigit{2}}\ else\ i{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    31
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    32
\begin{isamarkuptext}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    33
\isa{h\ {\isadigit{3}}\ {\isacharequal}\ {\isadigit{2}}}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    34
\isa{h\ i\ {\isacharequal}\ i}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    35
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    36
\isamarkuptrue%
10878
b254d5ad6dd4 auto update
paulson
parents: 10790
diff changeset
    37
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    38
\begin{isamarkuptext}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    39
\begin{isabelle}%
14387
e96d5c42c4b0 Polymorphic treatment of binary arithmetic using axclasses
paulson
parents: 14353
diff changeset
    40
Numeral{\isadigit{0}}\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    41
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    42
\rulename{numeral_0_eq_0}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    43
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    44
\begin{isabelle}%
14387
e96d5c42c4b0 Polymorphic treatment of binary arithmetic using axclasses
paulson
parents: 14353
diff changeset
    45
Numeral{\isadigit{1}}\ {\isacharequal}\ {\isacharparenleft}{\isadigit{1}}{\isasymColon}{\isacharprime}a{\isacharparenright}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    46
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    47
\rulename{numeral_1_eq_1}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    48
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    49
\begin{isabelle}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    50
{\isadigit{2}}\ {\isacharplus}\ n\ {\isacharequal}\ Suc\ {\isacharparenleft}Suc\ n{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    51
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    52
\rulename{add_2_eq_Suc}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    53
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    54
\begin{isabelle}%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
    55
n\ {\isacharplus}\ {\isadigit{2}}\ {\isacharequal}\ Suc\ {\isacharparenleft}Suc\ n{\isacharparenright}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    56
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    57
\rulename{add_2_eq_Suc'}
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    58
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    59
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
    60
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
    61
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    62
\rulename{add_assoc}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    63
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    64
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
    65
a\ {\isacharplus}\ b\ {\isacharequal}\ b\ {\isacharplus}\ a%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    66
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    67
\rulename{add_commute}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    68
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    69
\begin{isabelle}%
14270
342451d763f9 More re-organising of numerical theorems
paulson
parents: 13758
diff changeset
    70
a\ {\isacharplus}\ {\isacharparenleft}b\ {\isacharplus}\ c{\isacharparenright}\ {\isacharequal}\ b\ {\isacharplus}\ {\isacharparenleft}a\ {\isacharplus}\ c{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    71
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
    72
\rulename{add_left_commute}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
    73
49109fe3e919 auto generated
paulson
parents:
diff changeset
    74
these form add_ac; similarly there is mult_ac%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    75
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    76
\isamarkuptrue%
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    77
\isacommand{lemma}\ {\isachardoublequote}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}{\isachardoublequote}\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    78
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    79
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    80
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    81
\ {\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
    82
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    83
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    84
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    85
\isacommand{apply}\ {\isacharparenleft}simp\ add{\isacharcolon}\ add{\isacharunderscore}ac\ mult{\isacharunderscore}ac{\isacharparenright}\isamarkupfalse%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    86
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    87
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    88
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    89
\ {\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
    90
\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
    91
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    92
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    93
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
    94
\isacommand{oops}\isamarkupfalse%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
    95
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    96
\begin{isamarkuptext}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    97
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    98
m\ {\isasymle}\ n\ {\isasymLongrightarrow}\ m\ div\ k\ {\isasymle}\ n\ div\ k%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
    99
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   100
\rulename{div_le_mono}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   101
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   102
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   103
{\isacharparenleft}m\ {\isacharminus}\ n{\isacharparenright}\ {\isacharasterisk}\ k\ {\isacharequal}\ m\ {\isacharasterisk}\ k\ {\isacharminus}\ n\ {\isacharasterisk}\ k%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   104
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   105
\rulename{diff_mult_distrib}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   106
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   107
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   108
m\ mod\ n\ {\isacharasterisk}\ k\ {\isacharequal}\ m\ {\isacharasterisk}\ k\ mod\ {\isacharparenleft}n\ {\isacharasterisk}\ k{\isacharparenright}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   109
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   110
\rulename{mod_mult_distrib}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   111
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   112
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   113
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
   114
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   115
\rulename{nat_diff_split}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   116
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   117
\isamarkuptrue%
12156
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   118
\isacommand{lemma}\ {\isachardoublequote}{\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}{\isachardoublequote}\isanewline
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   119
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   120
\isacommand{apply}\ {\isacharparenleft}clarsimp\ split{\isacharcolon}\ nat{\isacharunderscore}diff{\isacharunderscore}split\ iff\ del{\isacharcolon}\ less{\isacharunderscore}Suc{\isadigit{0}}{\isacharparenright}\isanewline
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   121
\ %
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   122
\isamarkupcmt{\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   123
\ {\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
   124
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   125
}
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   126
\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   127
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   128
\isacommand{apply}\ {\isacharparenleft}subgoal{\isacharunderscore}tac\ {\isachardoublequote}n{\isacharequal}{\isadigit{0}}{\isachardoublequote}{\isacharcomma}\ force{\isacharcomma}\ arith{\isacharparenright}\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   129
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   130
\isacommand{done}\isanewline
12156
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   131
\isanewline
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   132
\isanewline
d2758965362e new-style numerals without leading #, along with generic 0 and 1
paulson
parents: 11870
diff changeset
   133
\isamarkupfalse%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
   134
\isacommand{lemma}\ {\isachardoublequote}{\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}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   135
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   136
\isacommand{apply}\ {\isacharparenleft}simp\ split{\isacharcolon}\ nat{\isacharunderscore}diff{\isacharunderscore}split{\isacharcomma}\ clarify{\isacharparenright}\isanewline
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   137
\ %
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   138
\isamarkupcmt{\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   139
\ {\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
   140
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   141
}
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   142
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   143
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   144
\isacommand{apply}\ {\isacharparenleft}subgoal{\isacharunderscore}tac\ {\isachardoublequote}n{\isacharequal}{\isadigit{0}}\ {\isacharbar}\ n{\isacharequal}{\isadigit{1}}{\isachardoublequote}{\isacharcomma}\ force{\isacharcomma}\ arith{\isacharparenright}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   145
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   146
\isacommand{done}\isamarkupfalse%
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\ 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
   151
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   152
\rulename{mod_if}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   153
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   154
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   155
m\ div\ n\ {\isacharasterisk}\ n\ {\isacharplus}\ m\ mod\ n\ {\isacharequal}\ m%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   156
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   157
\rulename{mod_div_equality}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   158
49109fe3e919 auto generated
paulson
parents:
diff changeset
   159
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   160
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   161
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
   162
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   163
\rulename{div_mult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   164
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   165
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   166
a\ {\isacharasterisk}\ b\ mod\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ mod\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   167
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   168
\rulename{mod_mult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   169
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   170
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   171
a\ div\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\ a\ div\ b\ div\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   172
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   173
\rulename{div_mult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   174
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   175
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   176
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
   177
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   178
\rulename{mod_mult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   179
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   180
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   181
{\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
   182
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   183
\rulename{div_mult_mult1}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   184
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   185
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   186
a\ div\ {\isadigit{0}}\ {\isacharequal}\ {\isadigit{0}}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   187
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   188
\rulename{DIVISION_BY_ZERO_DIV}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   189
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   190
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   191
a\ mod\ {\isadigit{0}}\ {\isacharequal}\ a%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   192
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   193
\rulename{DIVISION_BY_ZERO_MOD}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   194
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   195
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   196
{\isasymlbrakk}m\ dvd\ n{\isacharsemicolon}\ n\ dvd\ m{\isasymrbrakk}\ {\isasymLongrightarrow}\ m\ {\isacharequal}\ n%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   197
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   198
\rulename{dvd_anti_sym}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   199
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   200
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   201
{\isasymlbrakk}k\ dvd\ m{\isacharsemicolon}\ k\ dvd\ n{\isasymrbrakk}\ {\isasymLongrightarrow}\ k\ dvd\ m\ {\isacharplus}\ n%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   202
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   203
\rulename{dvd_add}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   204
49109fe3e919 auto generated
paulson
parents:
diff changeset
   205
For the integers, I'd list a few theorems that somehow involve negative 
13758
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   206
numbers.%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   207
\end{isamarkuptext}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   208
\isamarkuptrue%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   209
%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   210
\begin{isamarkuptext}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   211
Division, remainder of negatives
49109fe3e919 auto generated
paulson
parents:
diff changeset
   212
49109fe3e919 auto generated
paulson
parents:
diff changeset
   213
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   214
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   215
{\isadigit{0}}\ {\isacharless}\ b\ {\isasymLongrightarrow}\ {\isadigit{0}}\ {\isasymle}\ a\ mod\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   216
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   217
\rulename{pos_mod_sign}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   218
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   219
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   220
{\isadigit{0}}\ {\isacharless}\ b\ {\isasymLongrightarrow}\ a\ mod\ b\ {\isacharless}\ b%
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   221
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   222
\rulename{pos_mod_bound}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   223
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   224
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   225
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
   226
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   227
\rulename{neg_mod_sign}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   228
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   229
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   230
b\ {\isacharless}\ {\isadigit{0}}\ {\isasymLongrightarrow}\ b\ {\isacharless}\ a\ mod\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   231
\end{isabelle}
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   232
\rulename{neg_mod_bound}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   233
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   234
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   235
{\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
   236
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   237
\rulename{zdiv_zadd1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   238
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   239
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   240
{\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
   241
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   242
\rulename{zmod_zadd1_eq}
49109fe3e919 auto generated
paulson
parents:
diff changeset
   243
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   244
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   245
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
   246
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   247
\rulename{zdiv_zmult1_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   248
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   249
\begin{isabelle}%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   250
a\ {\isacharasterisk}\ b\ mod\ c\ {\isacharequal}\ a\ {\isacharasterisk}\ {\isacharparenleft}b\ mod\ c{\isacharparenright}\ mod\ c%
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   251
\end{isabelle}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   252
\rulename{zmod_zmult1_eq}
49109fe3e919 auto generated
paulson
parents:
diff changeset
   253
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   254
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   255
{\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
   256
\end{isabelle}
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   257
\rulename{zdiv_zmult2_eq}
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   258
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   259
\begin{isabelle}%
11870
181bd2050cf4 Numerals now work for the integers: the binary numerals for 0 and 1 rewrite
paulson
parents: 11866
diff changeset
   260
{\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
   261
\end{isabelle}
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   262
\rulename{zmod_zmult2_eq}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   263
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   264
\isamarkuptrue%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   265
\isacommand{lemma}\ {\isachardoublequote}abs\ {\isacharparenleft}x{\isacharplus}y{\isacharparenright}\ {\isasymle}\ abs\ x\ {\isacharplus}\ abs\ {\isacharparenleft}y\ {\isacharcolon}{\isacharcolon}\ int{\isacharparenright}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   266
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   267
\isacommand{by}\ arith\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   268
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   269
\isamarkupfalse%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
   270
\isacommand{lemma}\ {\isachardoublequote}abs\ {\isacharparenleft}{\isadigit{2}}{\isacharasterisk}x{\isacharparenright}\ {\isacharequal}\ {\isadigit{2}}\ {\isacharasterisk}\ abs\ {\isacharparenleft}x\ {\isacharcolon}{\isacharcolon}\ int{\isacharparenright}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   271
\isamarkupfalse%
16585
02cf78f0afce replacing zabs_def by abs_if
paulson
parents: 16523
diff changeset
   272
\isacommand{by}\ {\isacharparenleft}simp\ add{\isacharcolon}\ abs{\isacharunderscore}if{\isacharparenright}\isamarkupfalse%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   273
%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   274
\begin{isamarkuptext}%
13758
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   275
Induction rules for the Integers
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   276
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   277
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   278
{\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
   279
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   280
\rulename{int_ge_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   281
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   282
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   283
{\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
   284
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   285
\rulename{int_gr_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   286
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   287
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   288
{\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
   289
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   290
\rulename{int_le_induct}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   291
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   292
\begin{isabelle}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   293
{\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
   294
\end{isabelle}
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   295
\rulename{int_less_induct}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   296
\end{isamarkuptext}%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   297
\isamarkuptrue%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   298
%
ee898d32de21 auto-update
paulson
parents: 12844
diff changeset
   299
\begin{isamarkuptext}%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   300
FIELDS
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   301
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   302
\begin{isabelle}%
15364
0c3891c3528f *** empty log message ***
nipkow
parents: 14400
diff changeset
   303
a\ {\isacharless}\ b\ {\isasymLongrightarrow}\ {\isasymexists}r{\isachargreater}a{\isachardot}\ r\ {\isacharless}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   304
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   305
\rulename{dense}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   306
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   307
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   308
a\ {\isacharasterisk}\ {\isacharparenleft}b\ {\isacharslash}\ c{\isacharparenright}\ {\isacharequal}\ a\ {\isacharasterisk}\ b\ {\isacharslash}\ c%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   309
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   310
\rulename{times_divide_eq_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   311
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   312
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   313
b\ {\isacharslash}\ c\ {\isacharasterisk}\ a\ {\isacharequal}\ b\ {\isacharasterisk}\ a\ {\isacharslash}\ c%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   314
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   315
\rulename{times_divide_eq_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   316
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   317
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   318
a\ {\isacharslash}\ {\isacharparenleft}b\ {\isacharslash}\ c{\isacharparenright}\ {\isacharequal}\ a\ {\isacharasterisk}\ c\ {\isacharslash}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   319
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   320
\rulename{divide_divide_eq_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   321
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   322
\begin{isabelle}%
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   323
a\ {\isacharslash}\ b\ {\isacharslash}\ c\ {\isacharequal}\ a\ {\isacharslash}\ {\isacharparenleft}b\ {\isacharasterisk}\ c{\isacharparenright}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   324
\end{isabelle}
14288
d149e3cbdb39 Moving some theorems from Real/RealArith0.ML
paulson
parents: 14270
diff changeset
   325
\rulename{divide_divide_eq_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   326
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   327
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   328
{\isacharminus}\ {\isacharparenleft}a\ {\isacharslash}\ b{\isacharparenright}\ {\isacharequal}\ {\isacharminus}\ a\ {\isacharslash}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   329
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   330
\rulename{minus_divide_left}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   331
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   332
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   333
{\isacharminus}\ {\isacharparenleft}a\ {\isacharslash}\ b{\isacharparenright}\ {\isacharequal}\ a\ {\isacharslash}\ {\isacharminus}\ b%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   334
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   335
\rulename{minus_divide_right}
10776
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   336
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   337
This last NOT a simprule
985066e9495d updated;
wenzelm
parents: 10696
diff changeset
   338
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   339
\begin{isabelle}%
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   340
{\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
   341
\end{isabelle}
14295
7f115e5c5de4 more general lemmas for Ring_and_Field
paulson
parents: 14288
diff changeset
   342
\rulename{add_divide_distrib}%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   343
\end{isamarkuptext}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   344
\isamarkuptrue%
11708
d27253c4594f *** empty log message ***
wenzelm
parents: 11480
diff changeset
   345
\isacommand{lemma}\ {\isachardoublequote}{\isadigit{3}}{\isacharslash}{\isadigit{4}}\ {\isacharless}\ {\isacharparenleft}{\isadigit{7}}{\isacharslash}{\isadigit{8}}\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isachardoublequote}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   346
\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   347
\isacommand{by}\ simp\ \isanewline
11174
96a533d300a6 revisions in response to comments by Tobias
paulson
parents: 10950
diff changeset
   348
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   349
\isamarkupfalse%
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   350
\isacommand{lemma}\ {\isachardoublequote}P\ {\isacharparenleft}{\isacharparenleft}{\isadigit{3}}{\isacharslash}{\isadigit{4}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}{\isacharslash}{\isadigit{1}}{\isadigit{5}}\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   351
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   352
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   353
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   354
\ {\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
   355
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   356
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   357
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   358
\isacommand{apply}\ simp\isamarkupfalse%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   359
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   360
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   361
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   362
\ {\isadigit{1}}{\isachardot}\ P\ {\isacharparenleft}{\isadigit{2}}\ {\isacharslash}\ {\isadigit{5}}{\isacharparenright}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   363
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   364
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   365
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   366
\isacommand{oops}\isanewline
15481
fc075ae929e4 the new subst tactic, by Lucas Dixon
paulson
parents: 15364
diff changeset
   367
\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   368
\isamarkupfalse%
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   369
\isacommand{lemma}\ {\isachardoublequote}{\isacharparenleft}{\isadigit{3}}{\isacharslash}{\isadigit{4}}{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}{\isadigit{8}}{\isacharslash}{\isadigit{1}}{\isadigit{5}}{\isacharparenright}\ {\isacharless}\ {\isacharparenleft}x\ {\isacharcolon}{\isacharcolon}\ real{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   370
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   371
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   372
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   373
\ {\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
   374
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   375
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   376
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   377
\isacommand{apply}\ simp\isamarkupfalse%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   378
%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   379
\begin{isamarkuptxt}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   380
\begin{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   381
\ {\isadigit{1}}{\isachardot}\ {\isadigit{2}}\ {\isacharless}\ x\ {\isacharasterisk}\ {\isadigit{5}}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   382
\end{isabelle}%
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   383
\end{isamarkuptxt}%
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   384
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   385
\isacommand{oops}\isamarkupfalse%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   386
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   387
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   388
Ring and Field
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   389
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   390
Requires a field, or else an ordered ring
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   391
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   392
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   393
{\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
   394
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   395
\rulename{mult_eq_0_iff}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   396
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   397
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   398
{\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
   399
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   400
\rulename{field_mult_eq_0_iff}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   401
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   402
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   403
{\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
   404
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   405
\rulename{mult_cancel_right}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   406
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   407
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   408
{\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
   409
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   410
\rulename{field_mult_cancel_right}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   411
\end{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   412
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   413
\isacommand{ML}{\isacharbraceleft}{\isacharasterisk}set\ show{\isacharunderscore}sorts{\isacharasterisk}{\isacharbraceright}\isamarkupfalse%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   414
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   415
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   416
effect of show sorts on the above
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   417
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   418
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   419
{\isacharparenleft}{\isacharparenleft}a{\isasymColon}{\isacharprime}a{\isasymColon}field{\isacharparenright}\ {\isacharasterisk}\ {\isacharparenleft}c{\isasymColon}{\isacharprime}a{\isasymColon}field{\isacharparenright}\ {\isacharequal}\ {\isacharparenleft}b{\isasymColon}{\isacharprime}a{\isasymColon}field{\isacharparenright}\ {\isacharasterisk}\ c{\isacharparenright}\ {\isacharequal}\isanewline
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   420
{\isacharparenleft}c\ {\isacharequal}\ {\isacharparenleft}{\isadigit{0}}{\isasymColon}{\isacharprime}a{\isasymColon}field{\isacharparenright}\ {\isasymor}\ a\ {\isacharequal}\ b{\isacharparenright}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   421
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   422
\rulename{field_mult_cancel_right}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   423
\end{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   424
\isamarkuptrue%
16353
94e565ded526 updated;
wenzelm
parents: 15772
diff changeset
   425
\isacommand{ML}{\isacharbraceleft}{\isacharasterisk}reset\ show{\isacharunderscore}sorts{\isacharasterisk}{\isacharbraceright}\isamarkupfalse%
14400
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   426
%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   427
\begin{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   428
absolute value
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   429
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   430
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   431
{\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
   432
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   433
\rulename{abs_mult}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   434
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   435
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   436
{\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
   437
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   438
\rulename{abs_le_iff}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   439
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   440
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   441
{\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
   442
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   443
\rulename{abs_triangle_ineq}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   444
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   445
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   446
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
   447
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   448
\rulename{power_add}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   449
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   450
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   451
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
   452
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   453
\rulename{power_mult}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   454
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   455
\begin{isabelle}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   456
{\isasymbar}a\ {\isacharcircum}\ n{\isasymbar}\ {\isacharequal}\ {\isasymbar}a{\isasymbar}\ {\isacharcircum}\ n%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   457
\end{isabelle}
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   458
\rulename{power_abs}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   459
\end{isamarkuptext}%
6069098854b9 new numerics section using type classes
paulson
parents: 14387
diff changeset
   460
\isamarkuptrue%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   461
\isacommand{end}\isanewline
11866
fbd097aec213 updated;
wenzelm
parents: 11708
diff changeset
   462
\isamarkupfalse%
11187
c6e49929e544 auto-update
paulson
parents: 11174
diff changeset
   463
\end{isabellebody}%
10602
49109fe3e919 auto generated
paulson
parents:
diff changeset
   464
%%% Local Variables:
49109fe3e919 auto generated
paulson
parents:
diff changeset
   465
%%% mode: latex
49109fe3e919 auto generated
paulson
parents:
diff changeset
   466
%%% TeX-master: "root"
49109fe3e919 auto generated
paulson
parents:
diff changeset
   467
%%% End: