NEWS
author webertj
Fri, 23 Sep 2005 23:28:59 +0200
changeset 17619 026f7bbc8a0f
parent 17597 dac8dd2272cd
child 17641 5ec55c1fa116
permissions -rw-r--r--
new sat tactic
wenzelm@5363
     1
Isabelle NEWS -- history user-relevant changes
wenzelm@5363
     2
==============================================
wenzelm@2553
     3
wenzelm@17398
     4
New in Isabelle2005 (September 2005)
wenzelm@17398
     5
------------------------------------
wenzelm@14655
     6
wenzelm@14655
     7
*** General ***
wenzelm@14655
     8
nipkow@15130
     9
* Theory headers: the new header syntax for Isar theories is
nipkow@15130
    10
nipkow@15130
    11
  theory <name>
wenzelm@16234
    12
  imports <theory1> ... <theoryN>
wenzelm@16234
    13
  uses <file1> ... <fileM>
nipkow@15130
    14
  begin
nipkow@15130
    15
wenzelm@16234
    16
where the 'uses' part is optional.  The previous syntax
wenzelm@16234
    17
wenzelm@16234
    18
  theory <name> = <theory1> + ... + <theoryN>:
wenzelm@16234
    19
wenzelm@16717
    20
will disappear in the next release.  Use isatool fixheaders to convert
wenzelm@16717
    21
existing theory files.  Note that there is no change in ancient
wenzelm@17371
    22
non-Isar theories now, but these will disappear soon.
nipkow@15130
    23
berghofe@15475
    24
* Theory loader: parent theories can now also be referred to via
wenzelm@16234
    25
relative and absolute paths.
wenzelm@16234
    26
wenzelm@17408
    27
* Command 'find_theorems' searches for a list of criteria instead of a
wenzelm@17408
    28
list of constants. Known criteria are: intro, elim, dest, name:string,
wenzelm@17408
    29
simp:term, and any term. Criteria can be preceded by '-' to select
wenzelm@17408
    30
theorems that do not match. Intro, elim, dest select theorems that
wenzelm@17408
    31
match the current goal, name:s selects theorems whose fully qualified
wenzelm@17408
    32
name contain s, and simp:term selects all simplification rules whose
wenzelm@17408
    33
lhs match term.  Any other term is interpreted as pattern and selects
wenzelm@17408
    34
all theorems matching the pattern. Available in ProofGeneral under
wenzelm@17408
    35
'ProofGeneral -> Find Theorems' or C-c C-f.  Example:
wenzelm@16234
    36
wenzelm@17275
    37
  C-c C-f (100) "(_::nat) + _ + _" intro -name: "HOL."
wenzelm@16234
    38
wenzelm@16234
    39
prints the last 100 theorems matching the pattern "(_::nat) + _ + _",
wenzelm@16234
    40
matching the current goal as introduction rule and not having "HOL."
wenzelm@16234
    41
in their name (i.e. not being defined in theory HOL).
wenzelm@16234
    42
wenzelm@17408
    43
* Command 'thms_containing' has been discontinued in favour of
wenzelm@17408
    44
'find_theorems'; INCOMPATIBILITY.
wenzelm@17408
    45
wenzelm@17385
    46
* Communication with Proof General is now 8bit clean, which means that
wenzelm@17385
    47
Unicode text in UTF-8 encoding may be used within theory texts (both
wenzelm@17408
    48
formal and informal parts).  Cf. option -U of the Isabelle Proof
wenzelm@17538
    49
General interface.  Here are some simple examples (cf. src/HOL/ex):
wenzelm@17538
    50
wenzelm@17538
    51
  http://isabelle.in.tum.de/library/HOL/ex/Hebrew.html
wenzelm@17538
    52
  http://isabelle.in.tum.de/library/HOL/ex/Chinese.html
wenzelm@17385
    53
wenzelm@17425
    54
* Improved efficiency of the Simplifier and, to a lesser degree, the
wenzelm@17425
    55
Classical Reasoner.  Typical big applications run around 2 times
wenzelm@17425
    56
faster.
wenzelm@17425
    57
wenzelm@17519
    58
* ProofGeneral interface: the default settings no longer prefer xemacs
wenzelm@17519
    59
over GNU emacs.  Users typically need to experiment with various
wenzelm@17519
    60
variations on PROOFGENERAL_OPTIONS="... -p emacs" to find the most
wenzelm@17519
    61
stable Emacs version on their platform.
wenzelm@17519
    62
wenzelm@16234
    63
wenzelm@16234
    64
*** Document preparation ***
wenzelm@16234
    65
wenzelm@16234
    66
* Commands 'display_drafts' and 'print_drafts' perform simple output
wenzelm@16234
    67
of raw sources.  Only those symbols that do not require additional
wenzelm@16234
    68
LaTeX packages (depending on comments in isabellesym.sty) are
wenzelm@16234
    69
displayed properly, everything else is left verbatim.  isatool display
wenzelm@16234
    70
and isatool print are used as front ends (these are subject to the
wenzelm@16234
    71
DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively).
wenzelm@16234
    72
wenzelm@17047
    73
* Command tags control specific markup of certain regions of text,
wenzelm@17047
    74
notably folding and hiding.  Predefined tags include "theory" (for
wenzelm@17047
    75
theory begin and end), "proof" for proof commands, and "ML" for
wenzelm@17047
    76
commands involving ML code; the additional tags "visible" and
wenzelm@17047
    77
"invisible" are unused by default.  Users may give explicit tag
wenzelm@17047
    78
specifications in the text, e.g. ''by %invisible (auto)''.  The
wenzelm@17047
    79
interpretation of tags is determined by the LaTeX job during document
wenzelm@17047
    80
preparation: see option -V of isatool usedir, or options -n and -t of
wenzelm@17047
    81
isatool document, or even the LaTeX macros \isakeeptag, \isafoldtag,
wenzelm@17047
    82
\isadroptag.
wenzelm@17047
    83
wenzelm@17047
    84
Several document versions may be produced at the same time via isatool
wenzelm@17047
    85
usedir (the generated index.html will link all of them).  Typical
wenzelm@17047
    86
specifications include ''-V document=theory,proof,ML'' to present
wenzelm@17047
    87
theory/proof/ML parts faithfully, ''-V outline=/proof,/ML'' to fold
wenzelm@17047
    88
proof and ML commands, and ''-V mutilated=-theory,-proof,-ML'' to omit
wenzelm@17047
    89
these parts without any formal replacement text.  The Isabelle site
wenzelm@17047
    90
default settings produce ''document'' and ''outline'' versions as
wenzelm@17047
    91
specified above.
wenzelm@16234
    92
haftmann@17402
    93
* Several new antiquotations:
wenzelm@16234
    94
wenzelm@16234
    95
  @{term_type term} prints a term with its type annotated;
wenzelm@16234
    96
wenzelm@16234
    97
  @{typeof term} prints the type of a term;
wenzelm@16234
    98
wenzelm@16234
    99
  @{const const} is the same as @{term const}, but checks that the
wenzelm@16234
   100
  argument is a known logical constant;
wenzelm@16234
   101
wenzelm@16234
   102
  @{term_style style term} and @{thm_style style thm} print a term or
wenzelm@16234
   103
  theorem applying a "style" to it
wenzelm@16234
   104
wenzelm@17117
   105
  @{ML text}
wenzelm@17117
   106
wenzelm@16234
   107
Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of
wenzelm@16234
   108
definitions, equations, inequations etc., 'concl' printing only the
schirmer@17393
   109
conclusion of a meta-logical statement theorem, and 'prem1' .. 'prem19'
wenzelm@16234
   110
to print the specified premise.  TermStyle.add_style provides an ML
wenzelm@16234
   111
interface for introducing further styles.  See also the "LaTeX Sugar"
wenzelm@17117
   112
document practical applications.  The ML antiquotation prints
wenzelm@17117
   113
type-checked ML expressions verbatim.
wenzelm@16234
   114
wenzelm@17259
   115
* Markup commands 'chapter', 'section', 'subsection', 'subsubsection',
wenzelm@17259
   116
and 'text' support optional locale specification '(in loc)', which
wenzelm@17269
   117
specifies the default context for interpreting antiquotations.  For
wenzelm@17269
   118
example: 'text (in lattice) {* @{thm inf_assoc}*}'.
wenzelm@17259
   119
wenzelm@17259
   120
* Option 'locale=NAME' of antiquotations specifies an alternative
wenzelm@17259
   121
context interpreting the subsequent argument.  For example: @{thm
wenzelm@17269
   122
[locale=lattice] inf_assoc}.
wenzelm@17259
   123
wenzelm@17097
   124
* Proper output of proof terms (@{prf ...} and @{full_prf ...}) within
wenzelm@17097
   125
a proof context.
wenzelm@17097
   126
wenzelm@17097
   127
* Proper output of antiquotations for theory commands involving a
wenzelm@17097
   128
proof context (such as 'locale' or 'theorem (in loc) ...').
wenzelm@17097
   129
wenzelm@17193
   130
* Delimiters of outer tokens (string etc.) now produce separate LaTeX
wenzelm@17193
   131
macros (\isachardoublequoteopen, isachardoublequoteclose etc.).
wenzelm@17193
   132
wenzelm@17193
   133
* isatool usedir: new option -C (default true) controls whether option
wenzelm@17193
   134
-D should include a copy of the original document directory; -C false
wenzelm@17193
   135
prevents unwanted effects such as copying of administrative CVS data.
wenzelm@17193
   136
wenzelm@16234
   137
wenzelm@16234
   138
*** Pure ***
wenzelm@16234
   139
wenzelm@16234
   140
* Considerably improved version of 'constdefs' command.  Now performs
wenzelm@16234
   141
automatic type-inference of declared constants; additional support for
wenzelm@16234
   142
local structure declarations (cf. locales and HOL records), see also
wenzelm@16234
   143
isar-ref manual.  Potential INCOMPATIBILITY: need to observe strictly
wenzelm@16234
   144
sequential dependencies of definitions within a single 'constdefs'
wenzelm@16234
   145
section; moreover, the declared name needs to be an identifier.  If
wenzelm@16234
   146
all fails, consider to fall back on 'consts' and 'defs' separately.
wenzelm@16234
   147
wenzelm@16234
   148
* Improved indexed syntax and implicit structures.  First of all,
wenzelm@16234
   149
indexed syntax provides a notational device for subscripted
wenzelm@16234
   150
application, using the new syntax \<^bsub>term\<^esub> for arbitrary
wenzelm@16234
   151
expressions.  Secondly, in a local context with structure
wenzelm@16234
   152
declarations, number indexes \<^sub>n or the empty index (default
wenzelm@16234
   153
number 1) refer to a certain fixed variable implicitly; option
wenzelm@16234
   154
show_structs controls printing of implicit structures.  Typical
wenzelm@16234
   155
applications of these concepts involve record types and locales.
wenzelm@16234
   156
wenzelm@16234
   157
* New command 'no_syntax' removes grammar declarations (and
wenzelm@16234
   158
translations) resulting from the given syntax specification, which is
wenzelm@16234
   159
interpreted in the same manner as for the 'syntax' command.
wenzelm@16234
   160
wenzelm@16234
   161
* 'Advanced' translation functions (parse_translation etc.) may depend
wenzelm@16234
   162
on the signature of the theory context being presently used for
wenzelm@16234
   163
parsing/printing, see also isar-ref manual.
wenzelm@16234
   164
wenzelm@16856
   165
* Improved 'oracle' command provides a type-safe interface to turn an
wenzelm@16856
   166
ML expression of type theory -> T -> term into a primitive rule of
wenzelm@16856
   167
type theory -> T -> thm (i.e. the functionality of Thm.invoke_oracle
wenzelm@16856
   168
is already included here); see also FOL/ex/IffExample.thy;
wenzelm@16856
   169
INCOMPATIBILITY.
wenzelm@16856
   170
wenzelm@17275
   171
* axclass: name space prefix for class "c" is now "c_class" (was "c"
wenzelm@17275
   172
before); "cI" is no longer bound, use "c.intro" instead.
wenzelm@17275
   173
INCOMPATIBILITY.  This change avoids clashes of fact bindings for
wenzelm@17275
   174
axclasses vs. locales.
wenzelm@17275
   175
wenzelm@16234
   176
* Improved internal renaming of symbolic identifiers -- attach primes
wenzelm@16234
   177
instead of base 26 numbers.
wenzelm@16234
   178
wenzelm@16234
   179
* New flag show_question_marks controls printing of leading question
wenzelm@16234
   180
marks in schematic variable names.
wenzelm@16234
   181
wenzelm@16234
   182
* In schematic variable names, *any* symbol following \<^isub> or
wenzelm@16234
   183
\<^isup> is now treated as part of the base name.  For example, the
wenzelm@16234
   184
following works without printing of awkward ".0" indexes:
wenzelm@16234
   185
wenzelm@16234
   186
  lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1"
wenzelm@16234
   187
    by simp
wenzelm@16234
   188
wenzelm@16234
   189
* Inner syntax includes (*(*nested*) comments*).
wenzelm@16234
   190
wenzelm@17548
   191
* Pretty printer now supports unbreakable blocks, specified in mixfix
wenzelm@16234
   192
annotations as "(00...)".
wenzelm@16234
   193
wenzelm@16234
   194
* Clear separation of logical types and nonterminals, where the latter
wenzelm@16234
   195
may only occur in 'syntax' specifications or type abbreviations.
wenzelm@16234
   196
Before that distinction was only partially implemented via type class
wenzelm@16234
   197
"logic" vs. "{}".  Potential INCOMPATIBILITY in rare cases of improper
wenzelm@16234
   198
use of 'types'/'consts' instead of 'nonterminals'/'syntax'.  Some very
wenzelm@16234
   199
exotic syntax specifications may require further adaption
wenzelm@16234
   200
(e.g. Cube/Base.thy).
wenzelm@16234
   201
wenzelm@16234
   202
* Removed obsolete type class "logic", use the top sort {} instead.
wenzelm@16234
   203
Note that non-logical types should be declared as 'nonterminals'
wenzelm@16234
   204
rather than 'types'.  INCOMPATIBILITY for new object-logic
wenzelm@16234
   205
specifications.
wenzelm@16234
   206
wenzelm@17535
   207
* 'defs': more well-formedness checks of overloaded definitions.
wenzelm@17535
   208
ballarin@17095
   209
* Attributes 'induct' and 'cases': type or set names may now be
ballarin@17095
   210
locally fixed variables as well.
ballarin@17095
   211
wenzelm@16234
   212
* Simplifier: can now control the depth to which conditional rewriting
wenzelm@16234
   213
is traced via the PG menu Isabelle -> Settings -> Trace Simp Depth
wenzelm@16234
   214
Limit.
wenzelm@16234
   215
wenzelm@16234
   216
* Simplifier: simplification procedures may now take the current
wenzelm@16234
   217
simpset into account (cf. Simplifier.simproc(_i) / mk_simproc
wenzelm@16234
   218
interface), which is very useful for calling the Simplifier
wenzelm@16234
   219
recursively.  Minor INCOMPATIBILITY: the 'prems' argument of simprocs
wenzelm@16234
   220
is gone -- use prems_of_ss on the simpset instead.  Moreover, the
wenzelm@16234
   221
low-level mk_simproc no longer applies Logic.varify internally, to
wenzelm@16234
   222
allow for use in a context of fixed variables.
wenzelm@16234
   223
wenzelm@16234
   224
* thin_tac now works even if the assumption being deleted contains !!
wenzelm@16234
   225
or ==>.  More generally, erule now works even if the major premise of
wenzelm@16234
   226
the elimination rule contains !! or ==>.
wenzelm@16234
   227
wenzelm@17597
   228
* Method 'rules' has been renamed to 'iprover'. INCOMPATIBILITY.
nipkow@17590
   229
wenzelm@16234
   230
* Reorganized bootstrapping of the Pure theories; CPure is now derived
wenzelm@16234
   231
from Pure, which contains all common declarations already.  Both
wenzelm@16234
   232
theories are defined via plain Isabelle/Isar .thy files.
wenzelm@16234
   233
INCOMPATIBILITY: elements of CPure (such as the CPure.intro /
wenzelm@16234
   234
CPure.elim / CPure.dest attributes) now appear in the Pure name space;
wenzelm@16234
   235
use isatool fixcpure to adapt your theory and ML sources.
wenzelm@16234
   236
wenzelm@16234
   237
* New syntax 'name(i-j, i-, i, ...)' for referring to specific
wenzelm@16234
   238
selections of theorems in named facts via index ranges.
wenzelm@16234
   239
wenzelm@17097
   240
* 'print_theorems': in theory mode, really print the difference
wenzelm@17097
   241
wrt. the last state (works for interactive theory development only),
wenzelm@17097
   242
in proof mode print all local facts (cf. 'print_facts');
wenzelm@17097
   243
wenzelm@17397
   244
* 'hide': option '(open)' hides only base names.
wenzelm@17397
   245
wenzelm@17275
   246
* More efficient treatment of intermediate checkpoints in interactive
wenzelm@17275
   247
theory development.
wenzelm@17275
   248
wenzelm@16234
   249
wenzelm@16234
   250
*** Locales ***
ballarin@17095
   251
wenzelm@17385
   252
* New commands for the interpretation of locale expressions in
wenzelm@17385
   253
theories (1), locales (2) and proof contexts (3).  These generate
wenzelm@17385
   254
proof obligations from the expression specification.  After the
wenzelm@17385
   255
obligations have been discharged, theorems of the expression are added
wenzelm@17385
   256
to the theory, target locale or proof context.  The synopsis of the
wenzelm@17385
   257
commands is a follows:
wenzelm@17385
   258
ballarin@17095
   259
  (1) interpretation expr inst
ballarin@17095
   260
  (2) interpretation target < expr
ballarin@17095
   261
  (3) interpret expr inst
wenzelm@17385
   262
ballarin@17095
   263
Interpretation in theories and proof contexts require a parameter
ballarin@17095
   264
instantiation of terms from the current context.  This is applied to
wenzelm@17385
   265
specifications and theorems of the interpreted expression.
wenzelm@17385
   266
Interpretation in locales only permits parameter renaming through the
wenzelm@17385
   267
locale expression.  Interpretation is smart in that interpretations
wenzelm@17385
   268
that are active already do not occur in proof obligations, neither are
wenzelm@17385
   269
instantiated theorems stored in duplicate.  Use 'print_interps' to
wenzelm@17385
   270
inspect active interpretations of a particular locale.  For details,
ballarin@17436
   271
see the Isar Reference manual.  Examples can be found in
ballarin@17436
   272
HOL/Finite_Set.thy and HOL/Algebra/UnivPoly.thy.
wenzelm@16234
   273
wenzelm@16234
   274
INCOMPATIBILITY: former 'instantiate' has been withdrawn, use
wenzelm@16234
   275
'interpret' instead.
wenzelm@16234
   276
wenzelm@17385
   277
* New context element 'constrains' for adding type constraints to
wenzelm@17385
   278
parameters.
wenzelm@17385
   279
wenzelm@17385
   280
* Context expressions: renaming of parameters with syntax
wenzelm@17385
   281
redeclaration.
ballarin@17095
   282
ballarin@17095
   283
* Locale declaration: 'includes' disallowed.
ballarin@17095
   284
wenzelm@16234
   285
* Proper static binding of attribute syntax -- i.e. types / terms /
wenzelm@16234
   286
facts mentioned as arguments are always those of the locale definition
wenzelm@16234
   287
context, independently of the context of later invocations.  Moreover,
wenzelm@16234
   288
locale operations (renaming and type / term instantiation) are applied
wenzelm@16234
   289
to attribute arguments as expected.
wenzelm@16234
   290
wenzelm@16234
   291
INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of
wenzelm@16234
   292
actual attributes; rare situations may require Attrib.attribute to
wenzelm@16234
   293
embed those attributes into Attrib.src that lack concrete syntax.
wenzelm@16234
   294
Attribute implementations need to cooperate properly with the static
wenzelm@16234
   295
binding mechanism.  Basic parsers Args.XXX_typ/term/prop and
wenzelm@16234
   296
Attrib.XXX_thm etc. already do the right thing without further
wenzelm@16234
   297
intervention.  Only unusual applications -- such as "where" or "of"
wenzelm@16234
   298
(cf. src/Pure/Isar/attrib.ML), which process arguments depending both
wenzelm@16234
   299
on the context and the facts involved -- may have to assign parsed
wenzelm@16234
   300
values to argument tokens explicitly.
wenzelm@16234
   301
wenzelm@16234
   302
* Changed parameter management in theorem generation for long goal
wenzelm@16234
   303
statements with 'includes'.  INCOMPATIBILITY: produces a different
wenzelm@16234
   304
theorem statement in rare situations.
wenzelm@16234
   305
ballarin@17228
   306
* Locale inspection command 'print_locale' omits notes elements.  Use
ballarin@17228
   307
'print_locale!' to have them included in the output.
ballarin@17228
   308
wenzelm@16234
   309
wenzelm@16234
   310
*** Provers ***
wenzelm@16234
   311
wenzelm@16234
   312
* Provers/hypsubst.ML: improved version of the subst method, for
wenzelm@16234
   313
single-step rewriting: it now works in bound variable contexts. New is
wenzelm@16234
   314
'subst (asm)', for rewriting an assumption.  INCOMPATIBILITY: may
wenzelm@16234
   315
rewrite a different subterm than the original subst method, which is
wenzelm@16234
   316
still available as 'simplesubst'.
berghofe@15475
   317
wenzelm@16013
   318
* Provers/quasi.ML: new transitivity reasoners for transitivity only
wenzelm@16234
   319
and quasi orders.
ballarin@15103
   320
wenzelm@16013
   321
* Provers/trancl.ML: new transitivity reasoner for transitive and
wenzelm@16234
   322
reflexive-transitive closure of relations.
ballarin@15076
   323
wenzelm@16013
   324
* Provers/blast.ML: new reference depth_limit to make blast's depth
wenzelm@16234
   325
limit (previously hard-coded with a value of 20) user-definable.
wenzelm@15801
   326
wenzelm@16013
   327
* Provers/simplifier.ML has been moved to Pure, where Simplifier.setup
wenzelm@16234
   328
is peformed already.  Object-logics merely need to finish their
wenzelm@16234
   329
initial simpset configuration as before.  INCOMPATIBILITY.
berghofe@15436
   330
wenzelm@15703
   331
wenzelm@15703
   332
*** HOL ***
wenzelm@15703
   333
wenzelm@16234
   334
* Symbolic syntax of Hilbert Choice Operator is now as follows:
wenzelm@15703
   335
wenzelm@15703
   336
  syntax (epsilon)
wenzelm@15703
   337
    "_Eps" :: "[pttrn, bool] => 'a"    ("(3\<some>_./ _)" [0, 10] 10)
wenzelm@15703
   338
wenzelm@16234
   339
The symbol \<some> is displayed as the alternative epsilon of LaTeX
wenzelm@16234
   340
and x-symbol; use option '-m epsilon' to get it actually printed.
wenzelm@16234
   341
Moreover, the mathematically important symbolic identifier \<epsilon>
wenzelm@16234
   342
becomes available as variable, constant etc.  INCOMPATIBILITY,
wenzelm@16234
   343
wenzelm@16234
   344
* "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x".
wenzelm@16234
   345
Similarly for all quantifiers: "ALL x > y" etc.  The x-symbol for >=
wenzelm@17371
   346
is \<ge>. New transitivity rules have been added to HOL/Orderings.thy to
avigad@17016
   347
support corresponding Isar calculations.
wenzelm@16234
   348
wenzelm@16234
   349
* "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>"
wenzelm@16234
   350
instead of ":".
wenzelm@16234
   351
wenzelm@16234
   352
* theory SetInterval: changed the syntax for open intervals:
wenzelm@16234
   353
wenzelm@16234
   354
  Old       New
wenzelm@16234
   355
  {..n(}    {..<n}
wenzelm@16234
   356
  {)n..}    {n<..}
wenzelm@16234
   357
  {m..n(}   {m..<n}
wenzelm@16234
   358
  {)m..n}   {m<..n}
wenzelm@16234
   359
  {)m..n(}  {m<..<n}
wenzelm@16234
   360
wenzelm@16234
   361
The old syntax is still supported but will disappear in the next
wenzelm@16234
   362
release.  For conversion use the following Emacs search and replace
wenzelm@16234
   363
patterns (these are not perfect but work quite well):
wenzelm@15703
   364
wenzelm@15703
   365
  {)\([^\.]*\)\.\.  ->  {\1<\.\.}
wenzelm@15703
   366
  \.\.\([^(}]*\)(}  ->  \.\.<\1}
wenzelm@15703
   367
wenzelm@17533
   368
* Theory Commutative_Ring (in Library): method comm_ring for proving
wenzelm@17533
   369
equalities in commutative rings; method 'algebra' provides a generic
wenzelm@17533
   370
interface.
wenzelm@17389
   371
wenzelm@17389
   372
* Theory Finite_Set: changed the syntax for 'setsum', summation over
wenzelm@16234
   373
finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is
wenzelm@17371
   374
now either "SUM x:A. e" or "\<Sum>x \<in> A. e". The bound variable can
paulson@17189
   375
be a tuple pattern.
wenzelm@16234
   376
wenzelm@16234
   377
Some new syntax forms are available:
wenzelm@16234
   378
wenzelm@16234
   379
  "\<Sum>x | P. e"      for     "setsum (%x. e) {x. P}"
wenzelm@16234
   380
  "\<Sum>x = a..b. e"   for     "setsum (%x. e) {a..b}"
wenzelm@16234
   381
  "\<Sum>x = a..<b. e"  for     "setsum (%x. e) {a..<b}"
wenzelm@16234
   382
  "\<Sum>x < k. e"      for     "setsum (%x. e) {..<k}"
wenzelm@16234
   383
wenzelm@16234
   384
The latter form "\<Sum>x < k. e" used to be based on a separate
wenzelm@16234
   385
function "Summation", which has been discontinued.
wenzelm@16234
   386
wenzelm@16234
   387
* theory Finite_Set: in structured induction proofs, the insert case
wenzelm@16234
   388
is now 'case (insert x F)' instead of the old counterintuitive 'case
wenzelm@16234
   389
(insert F x)'.
wenzelm@16234
   390
wenzelm@16234
   391
* The 'refute' command has been extended to support a much larger
wenzelm@16234
   392
fragment of HOL, including axiomatic type classes, constdefs and
wenzelm@16234
   393
typedefs, inductive datatypes and recursion.
wenzelm@16234
   394
webertj@17619
   395
* New tactic 'sat' to prove propositional tautologies.  Requires
webertj@17619
   396
zChaff with proof generation to be installed.
webertj@17619
   397
wenzelm@16234
   398
* Datatype induction via method 'induct' now preserves the name of the
wenzelm@16234
   399
induction variable. For example, when proving P(xs::'a list) by
wenzelm@16234
   400
induction on xs, the induction step is now P(xs) ==> P(a#xs) rather
wenzelm@16234
   401
than P(list) ==> P(a#list) as previously.  Potential INCOMPATIBILITY
wenzelm@16234
   402
in unstructured proof scripts.
wenzelm@16234
   403
wenzelm@16234
   404
* Reworked implementation of records.  Improved scalability for
wenzelm@16234
   405
records with many fields, avoiding performance problems for type
wenzelm@16234
   406
inference. Records are no longer composed of nested field types, but
wenzelm@16234
   407
of nested extension types. Therefore the record type only grows linear
wenzelm@16234
   408
in the number of extensions and not in the number of fields.  The
wenzelm@16234
   409
top-level (users) view on records is preserved.  Potential
wenzelm@16234
   410
INCOMPATIBILITY only in strange cases, where the theory depends on the
wenzelm@16234
   411
old record representation. The type generated for a record is called
wenzelm@16234
   412
<record_name>_ext_type.
wenzelm@16234
   413
wenzelm@16234
   414
Flag record_quick_and_dirty_sensitive can be enabled to skip the
wenzelm@16234
   415
proofs triggered by a record definition or a simproc (if
wenzelm@16234
   416
quick_and_dirty is enabled).  Definitions of large records can take
wenzelm@16234
   417
quite long.
wenzelm@16234
   418
wenzelm@16234
   419
New simproc record_upd_simproc for simplification of multiple record
wenzelm@16234
   420
updates enabled by default.  Moreover, trivial updates are also
wenzelm@16234
   421
removed: r(|x := x r|) = r.  INCOMPATIBILITY: old proofs break
wenzelm@16234
   422
occasionally, since simplification is more powerful by default.
wenzelm@16234
   423
wenzelm@17275
   424
* typedef: proper support for polymorphic sets, which contain extra
wenzelm@17275
   425
type-variables in the term.
wenzelm@17275
   426
wenzelm@16234
   427
* Simplifier: automatically reasons about transitivity chains
wenzelm@16234
   428
involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics
wenzelm@16234
   429
provided by Provers/trancl.ML as additional solvers.  INCOMPATIBILITY:
wenzelm@16234
   430
old proofs break occasionally as simplification may now solve more
wenzelm@16234
   431
goals than previously.
wenzelm@16234
   432
wenzelm@16234
   433
* Simplifier: converts x <= y into x = y if assumption y <= x is
wenzelm@16234
   434
present.  Works for all partial orders (class "order"), in particular
wenzelm@16234
   435
numbers and sets.  For linear orders (e.g. numbers) it treats ~ x < y
wenzelm@16234
   436
just like y <= x.
wenzelm@16234
   437
wenzelm@16234
   438
* Simplifier: new simproc for "let x = a in f x".  If a is a free or
wenzelm@16234
   439
bound variable or a constant then the let is unfolded.  Otherwise
wenzelm@16234
   440
first a is simplified to b, and then f b is simplified to g. If
wenzelm@16234
   441
possible we abstract b from g arriving at "let x = b in h x",
wenzelm@16234
   442
otherwise we unfold the let and arrive at g.  The simproc can be
wenzelm@16234
   443
enabled/disabled by the reference use_let_simproc.  Potential
wenzelm@16234
   444
INCOMPATIBILITY since simplification is more powerful by default.
webertj@15776
   445
paulson@16563
   446
* Classical reasoning: the meson method now accepts theorems as arguments.
paulson@16563
   447
paulson@17595
   448
* Prover support: pre-release of the Isabelle-ATP linkup, which runs background
paulson@17595
   449
jobs to provide advice on the provability of subgoals.
paulson@17595
   450
wenzelm@16891
   451
* Theory OrderedGroup and Ring_and_Field: various additions and
wenzelm@16891
   452
improvements to faciliate calculations involving equalities and
wenzelm@16891
   453
inequalities.
wenzelm@16891
   454
wenzelm@16891
   455
The following theorems have been eliminated or modified
wenzelm@16891
   456
(INCOMPATIBILITY):
avigad@16888
   457
avigad@16888
   458
  abs_eq             now named abs_of_nonneg
wenzelm@17371
   459
  abs_of_ge_0        now named abs_of_nonneg
wenzelm@17371
   460
  abs_minus_eq       now named abs_of_nonpos
avigad@16888
   461
  imp_abs_id         now named abs_of_nonneg
avigad@16888
   462
  imp_abs_neg_id     now named abs_of_nonpos
avigad@16888
   463
  mult_pos           now named mult_pos_pos
avigad@16888
   464
  mult_pos_le        now named mult_nonneg_nonneg
avigad@16888
   465
  mult_pos_neg_le    now named mult_nonneg_nonpos
avigad@16888
   466
  mult_pos_neg2_le   now named mult_nonneg_nonpos2
avigad@16888
   467
  mult_neg           now named mult_neg_neg
avigad@16888
   468
  mult_neg_le        now named mult_nonpos_nonpos
avigad@16888
   469
wenzelm@16891
   470
* Theory Parity: added rules for simplifying exponents.
wenzelm@16891
   471
nipkow@17092
   472
* Theory List:
nipkow@17092
   473
nipkow@17092
   474
The following theorems have been eliminated or modified
nipkow@17092
   475
(INCOMPATIBILITY):
nipkow@17092
   476
nipkow@17092
   477
  list_all_Nil       now named list_all.simps(1)
nipkow@17092
   478
  list_all_Cons      now named list_all.simps(2)
nipkow@17092
   479
  list_all_conv      now named list_all_iff
nipkow@17092
   480
  set_mem_eq         now named mem_iff
nipkow@17092
   481
wenzelm@16929
   482
* Theories SetsAndFunctions and BigO (see HOL/Library) support
wenzelm@16929
   483
asymptotic "big O" calculations.  See the notes in BigO.thy.
wenzelm@16929
   484
avigad@16888
   485
avigad@16888
   486
*** HOL-Complex ***
avigad@16888
   487
wenzelm@16891
   488
* Theory RealDef: better support for embedding natural numbers and
wenzelm@16891
   489
integers in the reals.
wenzelm@16891
   490
wenzelm@16891
   491
The following theorems have been eliminated or modified
wenzelm@16891
   492
(INCOMPATIBILITY):
wenzelm@16891
   493
avigad@17016
   494
  exp_ge_add_one_self  now requires no hypotheses
avigad@17016
   495
  real_of_int_add      reversed direction of equality (use [symmetric])
avigad@17016
   496
  real_of_int_minus    reversed direction of equality (use [symmetric])
avigad@17016
   497
  real_of_int_diff     reversed direction of equality (use [symmetric])
avigad@17016
   498
  real_of_int_mult     reversed direction of equality (use [symmetric])
wenzelm@16891
   499
wenzelm@16891
   500
* Theory RComplete: expanded support for floor and ceiling functions.
avigad@16888
   501
avigad@16962
   502
* Theory Ln is new, with properties of the natural logarithm
avigad@16962
   503
wenzelm@17423
   504
* Hyperreal: There is a new type constructor "star" for making
wenzelm@17423
   505
nonstandard types.  The old type names are now type synonyms:
wenzelm@17423
   506
wenzelm@17423
   507
  hypreal = real star
wenzelm@17423
   508
  hypnat = nat star
wenzelm@17423
   509
  hcomplex = complex star
wenzelm@17423
   510
wenzelm@17423
   511
* Hyperreal: Many groups of similarly-defined constants have been
huffman@17442
   512
replaced by polymorphic versions (INCOMPATIBILITY):
wenzelm@17423
   513
wenzelm@17423
   514
  star_of <-- hypreal_of_real, hypnat_of_nat, hcomplex_of_complex
wenzelm@17423
   515
wenzelm@17423
   516
  starset      <-- starsetNat, starsetC
wenzelm@17423
   517
  *s*          <-- *sNat*, *sc*
wenzelm@17423
   518
  starset_n    <-- starsetNat_n, starsetC_n
wenzelm@17423
   519
  *sn*         <-- *sNatn*, *scn*
wenzelm@17423
   520
  InternalSets <-- InternalNatSets, InternalCSets
wenzelm@17423
   521
huffman@17442
   522
  starfun      <-- starfun{Nat,Nat2,C,RC,CR}
wenzelm@17423
   523
  *f*          <-- *fNat*, *fNat2*, *fc*, *fRc*, *fcR*
huffman@17442
   524
  starfun_n    <-- starfun{Nat,Nat2,C,RC,CR}_n
wenzelm@17423
   525
  *fn*         <-- *fNatn*, *fNat2n*, *fcn*, *fRcn*, *fcRn*
huffman@17442
   526
  InternalFuns <-- InternalNatFuns, InternalNatFuns2, Internal{C,RC,CR}Funs
wenzelm@17423
   527
wenzelm@17423
   528
* Hyperreal: Many type-specific theorems have been removed in favor of
huffman@17442
   529
theorems specific to various axiomatic type classes (INCOMPATIBILITY):
huffman@17442
   530
huffman@17442
   531
  add_commute <-- {hypreal,hypnat,hcomplex}_add_commute
huffman@17442
   532
  add_assoc   <-- {hypreal,hypnat,hcomplex}_add_assocs
huffman@17442
   533
  OrderedGroup.add_0 <-- {hypreal,hypnat,hcomplex}_add_zero_left
huffman@17442
   534
  OrderedGroup.add_0_right <-- {hypreal,hcomplex}_add_zero_right
wenzelm@17423
   535
  right_minus <-- hypreal_add_minus
huffman@17442
   536
  left_minus <-- {hypreal,hcomplex}_add_minus_left
huffman@17442
   537
  mult_commute <-- {hypreal,hypnat,hcomplex}_mult_commute
huffman@17442
   538
  mult_assoc <-- {hypreal,hypnat,hcomplex}_mult_assoc
huffman@17442
   539
  mult_1_left <-- {hypreal,hypnat}_mult_1, hcomplex_mult_one_left
wenzelm@17423
   540
  mult_1_right <-- hcomplex_mult_one_right
wenzelm@17423
   541
  mult_zero_left <-- hcomplex_mult_zero_left
huffman@17442
   542
  left_distrib <-- {hypreal,hypnat,hcomplex}_add_mult_distrib
wenzelm@17423
   543
  right_distrib <-- hypnat_add_mult_distrib2
huffman@17442
   544
  zero_neq_one <-- {hypreal,hypnat,hcomplex}_zero_not_eq_one
wenzelm@17423
   545
  right_inverse <-- hypreal_mult_inverse
wenzelm@17423
   546
  left_inverse <-- hypreal_mult_inverse_left, hcomplex_mult_inv_left
huffman@17442
   547
  order_refl <-- {hypreal,hypnat}_le_refl
huffman@17442
   548
  order_trans <-- {hypreal,hypnat}_le_trans
huffman@17442
   549
  order_antisym <-- {hypreal,hypnat}_le_anti_sym
huffman@17442
   550
  order_less_le <-- {hypreal,hypnat}_less_le
huffman@17442
   551
  linorder_linear <-- {hypreal,hypnat}_le_linear
huffman@17442
   552
  add_left_mono <-- {hypreal,hypnat}_add_left_mono
huffman@17442
   553
  mult_strict_left_mono <-- {hypreal,hypnat}_mult_less_mono2
wenzelm@17423
   554
  add_nonneg_nonneg <-- hypreal_le_add_order
wenzelm@17423
   555
wenzelm@17423
   556
* Hyperreal: Separate theorems having to do with type-specific
wenzelm@17423
   557
versions of constants have been merged into theorems that apply to the
huffman@17442
   558
new polymorphic constants (INCOMPATIBILITY):
huffman@17442
   559
huffman@17442
   560
  STAR_UNIV_set <-- {STAR_real,NatStar_real,STARC_complex}_set
huffman@17442
   561
  STAR_empty_set <-- {STAR,NatStar,STARC}_empty_set
huffman@17442
   562
  STAR_Un <-- {STAR,NatStar,STARC}_Un
huffman@17442
   563
  STAR_Int <-- {STAR,NatStar,STARC}_Int
huffman@17442
   564
  STAR_Compl <-- {STAR,NatStar,STARC}_Compl
huffman@17442
   565
  STAR_subset <-- {STAR,NatStar,STARC}_subset
huffman@17442
   566
  STAR_mem <-- {STAR,NatStar,STARC}_mem
huffman@17442
   567
  STAR_mem_Compl <-- {STAR,STARC}_mem_Compl
huffman@17442
   568
  STAR_diff <-- {STAR,STARC}_diff
huffman@17442
   569
  STAR_star_of_image_subset <-- {STAR_hypreal_of_real, NatStar_hypreal_of_real,
huffman@17442
   570
    STARC_hcomplex_of_complex}_image_subset
huffman@17442
   571
  starset_n_Un <-- starset{Nat,C}_n_Un
huffman@17442
   572
  starset_n_Int <-- starset{Nat,C}_n_Int
huffman@17442
   573
  starset_n_Compl <-- starset{Nat,C}_n_Compl
huffman@17442
   574
  starset_n_diff <-- starset{Nat,C}_n_diff
huffman@17442
   575
  InternalSets_Un <-- Internal{Nat,C}Sets_Un
huffman@17442
   576
  InternalSets_Int <-- Internal{Nat,C}Sets_Int
huffman@17442
   577
  InternalSets_Compl <-- Internal{Nat,C}Sets_Compl
huffman@17442
   578
  InternalSets_diff <-- Internal{Nat,C}Sets_diff
huffman@17442
   579
  InternalSets_UNIV_diff <-- Internal{Nat,C}Sets_UNIV_diff
huffman@17442
   580
  InternalSets_starset_n <-- Internal{Nat,C}Sets_starset{Nat,C}_n
huffman@17442
   581
  starset_starset_n_eq <-- starset{Nat,C}_starset{Nat,C}_n_eq
huffman@17442
   582
  starset_n_starset <-- starset{Nat,C}_n_starset{Nat,C}
huffman@17442
   583
  starfun_n_starfun <-- starfun{Nat,Nat2,C,RC,CR}_n_starfun{Nat,Nat2,C,RC,CR}
huffman@17442
   584
  starfun <-- starfun{Nat,Nat2,C,RC,CR}
huffman@17442
   585
  starfun_mult <-- starfun{Nat,Nat2,C,RC,CR}_mult
huffman@17442
   586
  starfun_add <-- starfun{Nat,Nat2,C,RC,CR}_add
huffman@17442
   587
  starfun_minus <-- starfun{Nat,Nat2,C,RC,CR}_minus
huffman@17442
   588
  starfun_diff <-- starfun{C,RC,CR}_diff
huffman@17442
   589
  starfun_o <-- starfun{NatNat2,Nat2,_stafunNat,C,C_starfunRC,_starfunCR}_o
huffman@17442
   590
  starfun_o2 <-- starfun{NatNat2,_stafunNat,C,C_starfunRC,_starfunCR}_o2
huffman@17442
   591
  starfun_const_fun <-- starfun{Nat,Nat2,C,RC,CR}_const_fun
huffman@17442
   592
  starfun_inverse <-- starfun{Nat,C,RC,CR}_inverse
huffman@17442
   593
  starfun_eq <-- starfun{Nat,Nat2,C,RC,CR}_eq
huffman@17442
   594
  starfun_eq_iff <-- starfun{C,RC,CR}_eq_iff
wenzelm@17423
   595
  starfun_Id <-- starfunC_Id
huffman@17442
   596
  starfun_approx <-- starfun{Nat,CR}_approx
huffman@17442
   597
  starfun_capprox <-- starfun{C,RC}_capprox
wenzelm@17423
   598
  starfun_abs <-- starfunNat_rabs
huffman@17442
   599
  starfun_lambda_cancel <-- starfun{C,CR,RC}_lambda_cancel
huffman@17442
   600
  starfun_lambda_cancel2 <-- starfun{C,CR,RC}_lambda_cancel2
wenzelm@17423
   601
  starfun_mult_HFinite_approx <-- starfunCR_mult_HFinite_capprox
huffman@17442
   602
  starfun_mult_CFinite_capprox <-- starfun{C,RC}_mult_CFinite_capprox
huffman@17442
   603
  starfun_add_capprox <-- starfun{C,RC}_add_capprox
wenzelm@17423
   604
  starfun_add_approx <-- starfunCR_add_approx
wenzelm@17423
   605
  starfun_inverse_inverse <-- starfunC_inverse_inverse
huffman@17442
   606
  starfun_divide <-- starfun{C,CR,RC}_divide
huffman@17442
   607
  starfun_n <-- starfun{Nat,C}_n
huffman@17442
   608
  starfun_n_mult <-- starfun{Nat,C}_n_mult
huffman@17442
   609
  starfun_n_add <-- starfun{Nat,C}_n_add
wenzelm@17423
   610
  starfun_n_add_minus <-- starfunNat_n_add_minus
huffman@17442
   611
  starfun_n_const_fun <-- starfun{Nat,C}_n_const_fun
huffman@17442
   612
  starfun_n_minus <-- starfun{Nat,C}_n_minus
huffman@17442
   613
  starfun_n_eq <-- starfun{Nat,C}_n_eq
huffman@17442
   614
huffman@17442
   615
  star_n_add <-- {hypreal,hypnat,hcomplex}_add
huffman@17442
   616
  star_n_minus <-- {hypreal,hcomplex}_minus
huffman@17442
   617
  star_n_diff <-- {hypreal,hcomplex}_diff
huffman@17442
   618
  star_n_mult <-- {hypreal,hcomplex}_mult
huffman@17442
   619
  star_n_inverse <-- {hypreal,hcomplex}_inverse
huffman@17442
   620
  star_n_le <-- {hypreal,hypnat}_le
huffman@17442
   621
  star_n_less <-- {hypreal,hypnat}_less
huffman@17442
   622
  star_n_zero_num <-- {hypreal,hypnat,hcomplex}_zero_num
huffman@17442
   623
  star_n_one_num <-- {hypreal,hypnat,hcomplex}_one_num
wenzelm@17423
   624
  star_n_abs <-- hypreal_hrabs
wenzelm@17423
   625
  star_n_divide <-- hcomplex_divide
wenzelm@17423
   626
huffman@17442
   627
  star_of_add <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_add
huffman@17442
   628
  star_of_minus <-- {hypreal_of_real,hcomplex_of_complex}_minus
wenzelm@17423
   629
  star_of_diff <-- hypreal_of_real_diff
huffman@17442
   630
  star_of_mult <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_mult
huffman@17442
   631
  star_of_one <-- {hypreal_of_real,hcomplex_of_complex}_one
huffman@17442
   632
  star_of_zero <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_zero
huffman@17442
   633
  star_of_le <-- {hypreal_of_real,hypnat_of_nat}_le_iff
huffman@17442
   634
  star_of_less <-- {hypreal_of_real,hypnat_of_nat}_less_iff
huffman@17442
   635
  star_of_eq <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_eq_iff
huffman@17442
   636
  star_of_inverse <-- {hypreal_of_real,hcomplex_of_complex}_inverse
huffman@17442
   637
  star_of_divide <-- {hypreal_of_real,hcomplex_of_complex}_divide
huffman@17442
   638
  star_of_of_nat <-- {hypreal_of_real,hcomplex_of_complex}_of_nat
huffman@17442
   639
  star_of_of_int <-- {hypreal_of_real,hcomplex_of_complex}_of_int
huffman@17442
   640
  star_of_number_of <-- {hypreal,hcomplex}_number_of
wenzelm@17423
   641
  star_of_number_less <-- number_of_less_hypreal_of_real_iff
wenzelm@17423
   642
  star_of_number_le <-- number_of_le_hypreal_of_real_iff
wenzelm@17423
   643
  star_of_eq_number <-- hypreal_of_real_eq_number_of_iff
wenzelm@17423
   644
  star_of_less_number <-- hypreal_of_real_less_number_of_iff
wenzelm@17423
   645
  star_of_le_number <-- hypreal_of_real_le_number_of_iff
wenzelm@17423
   646
  star_of_power <-- hypreal_of_real_power
wenzelm@17423
   647
  star_of_eq_0 <-- hcomplex_of_complex_zero_iff
wenzelm@17423
   648
huffman@17442
   649
* Hyperreal: new method "transfer" that implements the transfer
huffman@17442
   650
principle of nonstandard analysis. With a subgoal that mentions
huffman@17442
   651
nonstandard types like "'a star", the command "apply transfer"
huffman@17442
   652
replaces it with an equivalent one that mentions only standard types.
huffman@17442
   653
To be successful, all free variables must have standard types; non-
huffman@17442
   654
standard variables must have explicit universal quantifiers.
huffman@17442
   655
wenzelm@15703
   656
wenzelm@15703
   657
*** HOLCF ***
wenzelm@15703
   658
wenzelm@17533
   659
* Discontinued special version of 'constdefs' (which used to support
wenzelm@17533
   660
continuous functions) in favor of the general Pure one with full
wenzelm@17533
   661
type-inference.
wenzelm@17533
   662
wenzelm@17533
   663
* New simplification procedure for solving continuity conditions; it
wenzelm@17533
   664
is much faster on terms with many nested lambda abstractions (cubic
huffman@17442
   665
instead of exponential time).
huffman@17442
   666
wenzelm@17533
   667
* New syntax for domain package: selector names are now optional.
huffman@17442
   668
Parentheses should be omitted unless argument is lazy, for example:
huffman@17442
   669
huffman@17442
   670
  domain 'a stream = cons "'a" (lazy "'a stream")
huffman@17442
   671
wenzelm@17533
   672
* New command 'fixrec' for defining recursive functions with pattern
wenzelm@17533
   673
matching; defining multiple functions with mutual recursion is also
wenzelm@17533
   674
supported.  Patterns may include the constants cpair, spair, up, sinl,
wenzelm@17533
   675
sinr, or any data constructor defined by the domain package. The given
wenzelm@17533
   676
equations are proven as rewrite rules. See HOLCF/ex/Fixrec_ex.thy for
wenzelm@17533
   677
syntax and examples.
wenzelm@17533
   678
wenzelm@17533
   679
* New commands 'cpodef' and 'pcpodef' for defining predicate subtypes
wenzelm@17533
   680
of cpo and pcpo types. Syntax is exactly like the 'typedef' command,
wenzelm@17533
   681
but the proof obligation additionally includes an admissibility
wenzelm@17533
   682
requirement. The packages generate instances of class cpo or pcpo,
wenzelm@17533
   683
with continuity and strictness theorems for Rep and Abs.
huffman@17442
   684
huffman@17584
   685
* HOLCF: Many theorems have been renamed according to a more standard naming
huffman@17584
   686
scheme (INCOMPATIBILITY):
huffman@17584
   687
huffman@17584
   688
  foo_inject:  "foo$x = foo$y ==> x = y"
huffman@17584
   689
  foo_eq:      "(foo$x = foo$y) = (x = y)"
huffman@17584
   690
  foo_less:    "(foo$x << foo$y) = (x << y)"
huffman@17584
   691
  foo_strict:  "foo$UU = UU"
huffman@17584
   692
  foo_defined: "... ==> foo$x ~= UU"
huffman@17584
   693
  foo_defined_iff: "(foo$x = UU) = (x = UU)"
huffman@17584
   694
wenzelm@15703
   695
wenzelm@15703
   696
*** ZF ***
wenzelm@15703
   697
wenzelm@16234
   698
* ZF/ex: theories Group and Ring provide examples in abstract algebra,
wenzelm@16234
   699
including the First Isomorphism Theorem (on quotienting by the kernel
wenzelm@16234
   700
of a homomorphism).
wenzelm@15703
   701
wenzelm@15703
   702
* ZF/Simplifier: install second copy of type solver that actually
wenzelm@16234
   703
makes use of TC rules declared to Isar proof contexts (or locales);
wenzelm@16234
   704
the old version is still required for ML proof scripts.
wenzelm@15703
   705
wenzelm@15703
   706
wenzelm@17445
   707
*** Cube ***
wenzelm@17445
   708
wenzelm@17445
   709
* Converted to Isar theory format; use locales instead of axiomatic
wenzelm@17445
   710
theories.
wenzelm@17445
   711
wenzelm@17445
   712
wenzelm@15703
   713
*** ML ***
wenzelm@15703
   714
wenzelm@15973
   715
* Pure/library.ML no longer defines its own option datatype, but uses
wenzelm@16234
   716
that of the SML basis, which has constructors NONE and SOME instead of
wenzelm@16234
   717
None and Some, as well as exception Option.Option instead of OPTION.
wenzelm@16234
   718
The functions the, if_none, is_some, is_none have been adapted
wenzelm@16234
   719
accordingly, while Option.map replaces apsome.
wenzelm@15973
   720
wenzelm@16860
   721
* Pure/library.ML: the exception LIST has been given up in favour of
wenzelm@16860
   722
the standard exceptions Empty and Subscript, as well as
wenzelm@16860
   723
Library.UnequalLengths.  Function like Library.hd and Library.tl are
wenzelm@16860
   724
superceded by the standard hd and tl functions etc.
wenzelm@16860
   725
wenzelm@16860
   726
A number of basic list functions are no longer exported to the ML
wenzelm@16860
   727
toplevel, as they are variants of predefined functions.  The following
wenzelm@16234
   728
suggests how one can translate existing code:
wenzelm@15973
   729
wenzelm@15973
   730
    rev_append xs ys = List.revAppend (xs, ys)
wenzelm@15973
   731
    nth_elem (i, xs) = List.nth (xs, i)
wenzelm@15973
   732
    last_elem xs = List.last xs
wenzelm@15973
   733
    flat xss = List.concat xss
wenzelm@16234
   734
    seq fs = List.app fs
wenzelm@15973
   735
    partition P xs = List.partition P xs
wenzelm@15973
   736
    mapfilter f xs = List.mapPartial f xs
wenzelm@15973
   737
wenzelm@16860
   738
* Pure/library.ML: several combinators for linear functional
wenzelm@16860
   739
transformations, notably reverse application and composition:
wenzelm@16860
   740
wenzelm@17371
   741
  x |> f                f #> g
wenzelm@17371
   742
  (x, y) |-> f          f #-> g
wenzelm@16860
   743
haftmann@17495
   744
* Pure/library.ML: introduced/changed precedence of infix operators:
haftmann@17495
   745
haftmann@17495
   746
  infix 1 |> |-> ||> ||>> |>> |>>> #> #->;
haftmann@17495
   747
  infix 2 ?;
haftmann@17495
   748
  infix 3 o oo ooo oooo;
haftmann@17495
   749
  infix 4 ~~ upto downto;
haftmann@17495
   750
haftmann@17495
   751
Maybe INCOMPATIBILITY when any of those is used in conjunction with other
haftmann@17495
   752
infix operators.
haftmann@17495
   753
wenzelm@17408
   754
* Pure/library.ML: natural list combinators fold, fold_rev, and
haftmann@16869
   755
fold_map support linear functional transformations and nesting.  For
wenzelm@16860
   756
example:
wenzelm@16860
   757
wenzelm@16860
   758
  fold f [x1, ..., xN] y =
wenzelm@16860
   759
    y |> f x1 |> ... |> f xN
wenzelm@16860
   760
wenzelm@16860
   761
  (fold o fold) f [xs1, ..., xsN] y =
wenzelm@16860
   762
    y |> fold f xs1 |> ... |> fold f xsN
wenzelm@16860
   763
wenzelm@16860
   764
  fold f [x1, ..., xN] =
wenzelm@16860
   765
    f x1 #> ... #> f xN
wenzelm@16860
   766
wenzelm@16860
   767
  (fold o fold) f [xs1, ..., xsN] =
wenzelm@16860
   768
    fold f xs1 #> ... #> fold f xsN
wenzelm@16860
   769
wenzelm@17408
   770
* Pure/library.ML: the following selectors on type 'a option are
wenzelm@17408
   771
available:
wenzelm@17408
   772
wenzelm@17408
   773
  the:               'a option -> 'a  (*partial*)
wenzelm@17408
   774
  these:             'a option -> 'a  where 'a = 'b list
haftmann@17402
   775
  the_default: 'a -> 'a option -> 'a
haftmann@17402
   776
  the_list:          'a option -> 'a list
haftmann@17402
   777
wenzelm@17408
   778
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
wenzelm@17408
   779
basic operations for association lists, following natural argument
haftmann@17564
   780
order; moreover the explicit equality predicate passed here avoids
haftmann@17495
   781
potentially expensive polymorphic runtime equality checks.
haftmann@17495
   782
The old functions may be expressed as follows:
wenzelm@17408
   783
wenzelm@17408
   784
  assoc = uncurry (AList.lookup (op =))
wenzelm@17408
   785
  assocs = these oo AList.lookup (op =)
wenzelm@17408
   786
  overwrite = uncurry (AList.update (op =)) o swap
wenzelm@17408
   787
haftmann@17564
   788
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
haftmann@17564
   789
haftmann@17564
   790
  val make: ('a -> 'b) -> 'a list -> ('a * 'b) list
haftmann@17564
   791
  val find: ('a * 'b -> bool) -> ('c * 'b) list -> 'a -> 'c list
haftmann@17564
   792
haftmann@17564
   793
replacing make_keylist and keyfilter (occassionally used)
haftmann@17564
   794
Naive rewrites:
haftmann@17564
   795
haftmann@17564
   796
  make_keylist = AList.make
haftmann@17564
   797
  keyfilter = AList.find (op =)
haftmann@17564
   798
haftmann@17564
   799
* eq_fst and eq_snd now take explicit equality parameter, thus
haftmann@17564
   800
  avoiding eqtypes. Naive rewrites:
haftmann@17564
   801
haftmann@17564
   802
    eq_fst = eq_fst (op =)
haftmann@17564
   803
    eq_snd = eq_snd (op =)
haftmann@17564
   804
haftmann@17564
   805
* Removed deprecated apl and apr (rarely used).
haftmann@17564
   806
  Naive rewrites:
haftmann@17564
   807
haftmann@17564
   808
    apl (n, op) =>>= curry op n
haftmann@17564
   809
    apr (op, m) =>>= fn n => op (n, m)
haftmann@17564
   810
wenzelm@17408
   811
* Pure/General: structure OrdList (cf. Pure/General/ord_list.ML)
wenzelm@17408
   812
provides a reasonably efficient light-weight implementation of sets as
wenzelm@17408
   813
lists.
wenzelm@17408
   814
wenzelm@17408
   815
* Pure/General: generic tables (cf. Pure/General/table.ML) provide a
wenzelm@17408
   816
few new operations; existing lookup and update are now curried to
wenzelm@17408
   817
follow natural argument order (for use with fold etc.);
wenzelm@17408
   818
INCOMPATIBILITY, use (uncurry Symtab.lookup) etc. as last resort.
wenzelm@17408
   819
wenzelm@17408
   820
* Pure/General: output via the Isabelle channels of
wenzelm@17408
   821
writeln/warning/error etc. is now passed through Output.output, with a
wenzelm@17408
   822
hook for arbitrary transformations depending on the print_mode
wenzelm@17408
   823
(cf. Output.add_mode -- the first active mode that provides a output
wenzelm@17408
   824
function wins).  Already formatted output may be embedded into further
wenzelm@17408
   825
text via Output.raw; the result of Pretty.string_of/str_of and derived
wenzelm@17408
   826
functions (string_of_term/cterm/thm etc.) is already marked raw to
wenzelm@17408
   827
accommodate easy composition of diagnostic messages etc.  Programmers
wenzelm@17408
   828
rarely need to care about Output.output or Output.raw at all, with
wenzelm@17408
   829
some notable exceptions: Output.output is required when bypassing the
wenzelm@17408
   830
standard channels (writeln etc.), or in token translations to produce
wenzelm@17408
   831
properly formatted results; Output.raw is required when capturing
wenzelm@17408
   832
already output material that will eventually be presented to the user
wenzelm@17408
   833
a second time.  For the default print mode, both Output.output and
wenzelm@17408
   834
Output.raw have no effect.
wenzelm@17408
   835
wenzelm@17408
   836
* Pure/General: Output.time_accumulator NAME creates an operator ('a
wenzelm@17408
   837
-> 'b) -> 'a -> 'b to measure runtime and count invocations; the
wenzelm@17408
   838
cumulative results are displayed at the end of a batch session.
wenzelm@17408
   839
wenzelm@17408
   840
* Pure/General: File.sysify_path and File.quote_sysify path have been
wenzelm@17408
   841
replaced by File.platform_path and File.shell_path (with appropriate
wenzelm@17408
   842
hooks).  This provides a clean interface for unusual systems where the
wenzelm@17408
   843
internal and external process view of file names are different.
wenzelm@17408
   844
wenzelm@16689
   845
* Pure: more efficient orders for basic syntactic entities: added
wenzelm@16689
   846
fast_string_ord, fast_indexname_ord, fast_term_ord; changed sort_ord
wenzelm@16689
   847
and typ_ord to use fast_string_ord and fast_indexname_ord (term_ord is
wenzelm@16689
   848
NOT affected); structures Symtab, Vartab, Typtab, Termtab use the fast
wenzelm@16689
   849
orders now -- potential INCOMPATIBILITY for code that depends on a
wenzelm@16689
   850
particular order for Symtab.keys, Symtab.dest, etc. (consider using
wenzelm@16689
   851
Library.sort_strings on result).
wenzelm@16689
   852
wenzelm@17408
   853
* Pure/term.ML: combinators fold_atyps, fold_aterms, fold_term_types,
wenzelm@17408
   854
fold_types traverse types/terms from left to right, observing natural
wenzelm@17408
   855
argument order.  Supercedes previous foldl_XXX versions, add_frees,
wenzelm@17408
   856
add_vars etc. have been adapted as well: INCOMPATIBILITY.
wenzelm@17408
   857
wenzelm@16151
   858
* Pure: name spaces have been refined, with significant changes of the
wenzelm@16234
   859
internal interfaces -- INCOMPATIBILITY.  Renamed cond_extern(_table)
wenzelm@16234
   860
to extern(_table).  The plain name entry path is superceded by a
wenzelm@16234
   861
general 'naming' context, which also includes the 'policy' to produce
wenzelm@16234
   862
a fully qualified name and external accesses of a fully qualified
wenzelm@16234
   863
name; NameSpace.extend is superceded by context dependent
wenzelm@16234
   864
Sign.declare_name.  Several theory and proof context operations modify
wenzelm@16234
   865
the naming context.  Especially note Theory.restore_naming and
wenzelm@16234
   866
ProofContext.restore_naming to get back to a sane state; note that
wenzelm@16234
   867
Theory.add_path is no longer sufficient to recover from
wenzelm@16234
   868
Theory.absolute_path in particular.
wenzelm@16234
   869
wenzelm@16234
   870
* Pure: new flags short_names (default false) and unique_names
wenzelm@16234
   871
(default true) for controlling output of qualified names.  If
wenzelm@16234
   872
short_names is set, names are printed unqualified.  If unique_names is
wenzelm@16234
   873
reset, the name prefix is reduced to the minimum required to achieve
wenzelm@16234
   874
the original result when interning again, even if there is an overlap
wenzelm@16234
   875
with earlier declarations.
wenzelm@16151
   876
wenzelm@16456
   877
* Pure/TheoryDataFun: change of the argument structure; 'prep_ext' is
wenzelm@16456
   878
now 'extend', and 'merge' gets an additional Pretty.pp argument
wenzelm@16456
   879
(useful for printing error messages).  INCOMPATIBILITY.
wenzelm@16456
   880
wenzelm@16456
   881
* Pure: major reorganization of the theory context.  Type Sign.sg and
wenzelm@16456
   882
Theory.theory are now identified, referring to the universal
wenzelm@16456
   883
Context.theory (see Pure/context.ML).  Actual signature and theory
wenzelm@16456
   884
content is managed as theory data.  The old code and interfaces were
wenzelm@16456
   885
spread over many files and structures; the new arrangement introduces
wenzelm@16456
   886
considerable INCOMPATIBILITY to gain more clarity:
wenzelm@16456
   887
wenzelm@16456
   888
  Context -- theory management operations (name, identity, inclusion,
wenzelm@16456
   889
    parents, ancestors, merge, etc.), plus generic theory data;
wenzelm@16456
   890
wenzelm@16456
   891
  Sign -- logical signature and syntax operations (declaring consts,
wenzelm@16456
   892
    types, etc.), plus certify/read for common entities;
wenzelm@16456
   893
wenzelm@16456
   894
  Theory -- logical theory operations (stating axioms, definitions,
wenzelm@16456
   895
    oracles), plus a copy of logical signature operations (consts,
wenzelm@16456
   896
    types, etc.); also a few basic management operations (Theory.copy,
wenzelm@16456
   897
    Theory.merge, etc.)
wenzelm@16456
   898
wenzelm@16456
   899
The most basic sign_of operations (Theory.sign_of, Thm.sign_of_thm
wenzelm@16456
   900
etc.) as well as the sign field in Thm.rep_thm etc. have been retained
wenzelm@16456
   901
for convenience -- they merely return the theory.
wenzelm@16456
   902
wenzelm@17193
   903
* Pure: type Type.tsig is superceded by theory in most interfaces.
wenzelm@17193
   904
wenzelm@16547
   905
* Pure: the Isar proof context type is already defined early in Pure
wenzelm@16547
   906
as Context.proof (note that ProofContext.context and Proof.context are
wenzelm@16547
   907
aliases, where the latter is the preferred name).  This enables other
wenzelm@16547
   908
Isabelle components to refer to that type even before Isar is present.
wenzelm@16547
   909
wenzelm@16373
   910
* Pure/sign/theory: discontinued named name spaces (i.e. classK,
wenzelm@16373
   911
typeK, constK, axiomK, oracleK), but provide explicit operations for
wenzelm@16373
   912
any of these kinds.  For example, Sign.intern typeK is now
wenzelm@16373
   913
Sign.intern_type, Theory.hide_space Sign.typeK is now
wenzelm@16373
   914
Theory.hide_types.  Also note that former
wenzelm@16373
   915
Theory.hide_classes/types/consts are now
wenzelm@16373
   916
Theory.hide_classes_i/types_i/consts_i, while the non '_i' versions
wenzelm@16373
   917
internalize their arguments!  INCOMPATIBILITY.
wenzelm@16373
   918
wenzelm@16506
   919
* Pure: get_thm interface (of PureThy and ProofContext) expects
wenzelm@16506
   920
datatype thmref (with constructors Name and NameSelection) instead of
wenzelm@16506
   921
plain string -- INCOMPATIBILITY;
wenzelm@16506
   922
wenzelm@16151
   923
* Pure: cases produced by proof methods specify options, where NONE
wenzelm@16234
   924
means to remove case bindings -- INCOMPATIBILITY in
wenzelm@16234
   925
(RAW_)METHOD_CASES.
wenzelm@16151
   926
wenzelm@16373
   927
* Pure: the following operations retrieve axioms or theorems from a
wenzelm@16373
   928
theory node or theory hierarchy, respectively:
wenzelm@16373
   929
wenzelm@16373
   930
  Theory.axioms_of: theory -> (string * term) list
wenzelm@16373
   931
  Theory.all_axioms_of: theory -> (string * term) list
wenzelm@16373
   932
  PureThy.thms_of: theory -> (string * thm) list
wenzelm@16373
   933
  PureThy.all_thms_of: theory -> (string * thm) list
wenzelm@16373
   934
wenzelm@16718
   935
* Pure: print_tac now outputs the goal through the trace channel.
wenzelm@16718
   936
wenzelm@17408
   937
* Isar toplevel: improved diagnostics, mostly for Poly/ML only.
wenzelm@17408
   938
Reference Toplevel.debug (default false) controls detailed printing
wenzelm@17408
   939
and tracing of low-level exceptions; Toplevel.profiling (default 0)
wenzelm@17408
   940
controls execution profiling -- set to 1 for time and 2 for space
wenzelm@17408
   941
(both increase the runtime).
wenzelm@17408
   942
wenzelm@17408
   943
* Isar session: The initial use of ROOT.ML is now always timed,
wenzelm@17408
   944
i.e. the log will show the actual process times, in contrast to the
wenzelm@17408
   945
elapsed wall-clock time that the outer shell wrapper produces.
wenzelm@17408
   946
wenzelm@17408
   947
* Simplifier: improved handling of bound variables (nameless
wenzelm@16997
   948
representation, avoid allocating new strings).  Simprocs that invoke
wenzelm@16997
   949
the Simplifier recursively should use Simplifier.inherit_bounds to
wenzelm@16997
   950
avoid local name clashes.
wenzelm@16997
   951
wenzelm@17408
   952
* Provers: Simplifier and Classical Reasoner now support proof context
wenzelm@17408
   953
dependent plug-ins (simprocs, solvers, wrappers etc.).  These extra
wenzelm@17408
   954
components are stored in the theory and patched into the
wenzelm@16234
   955
simpset/claset when used in an Isar proof context.  Context dependent
wenzelm@16234
   956
components are maintained by the following theory operations:
wenzelm@16234
   957
wenzelm@16234
   958
  Simplifier.add_context_simprocs
wenzelm@16234
   959
  Simplifier.del_context_simprocs
wenzelm@16234
   960
  Simplifier.set_context_subgoaler
wenzelm@16234
   961
  Simplifier.reset_context_subgoaler
wenzelm@16234
   962
  Simplifier.add_context_looper
wenzelm@16234
   963
  Simplifier.del_context_looper
wenzelm@16234
   964
  Simplifier.add_context_unsafe_solver
wenzelm@16234
   965
  Simplifier.add_context_safe_solver
wenzelm@16234
   966
wenzelm@16234
   967
  Classical.add_context_safe_wrapper
wenzelm@16234
   968
  Classical.del_context_safe_wrapper
wenzelm@16234
   969
  Classical.add_context_unsafe_wrapper
wenzelm@16234
   970
  Classical.del_context_unsafe_wrapper
wenzelm@16234
   971
wenzelm@16234
   972
IMPORTANT NOTE: proof tools (methods etc.) need to use
wenzelm@16234
   973
local_simpset_of and local_claset_of to instead of the primitive
wenzelm@16234
   974
Simplifier.get_local_simpset and Classical.get_local_claset,
wenzelm@16234
   975
respectively, in order to see the context dependent fields!
wenzelm@16234
   976
wenzelm@17166
   977
* ML functions legacy_bindings and use_legacy_bindings produce ML fact
wenzelm@17166
   978
bindings for all theorems stored within a given theory; this may help
wenzelm@17166
   979
in porting non-Isar theories to Isar ones, while keeping ML proof
wenzelm@17166
   980
scripts for the time being.
wenzelm@17166
   981
wenzelm@17457
   982
* ML operator HTML.with_charset specifies the charset begin used for
wenzelm@17457
   983
generated HTML files.  For example:
wenzelm@17457
   984
wenzelm@17457
   985
  HTML.with_charset "utf-8" use_thy "Hebrew";
wenzelm@17538
   986
  HTML.with_charset "utf-8" use_thy "Chinese";
wenzelm@17457
   987
wenzelm@16234
   988
wenzelm@16234
   989
*** System ***
wenzelm@16234
   990
wenzelm@16234
   991
* Allow symlinks to all proper Isabelle executables (Isabelle,
wenzelm@16234
   992
isabelle, isatool etc.).
wenzelm@16234
   993
wenzelm@16234
   994
* ISABELLE_DOC_FORMAT setting specifies preferred document format (for
wenzelm@16234
   995
isatool doc, isatool mkdir, display_drafts etc.).
wenzelm@16234
   996
wenzelm@16234
   997
* isatool usedir: option -f allows specification of the ML file to be
wenzelm@16234
   998
used by Isabelle; default is ROOT.ML.
wenzelm@16234
   999
wenzelm@16251
  1000
* New isatool version outputs the version identifier of the Isabelle
wenzelm@16251
  1001
distribution being used.
wenzelm@16251
  1002
wenzelm@16251
  1003
* HOL: new isatool dimacs2hol converts files in DIMACS CNF format
wenzelm@16234
  1004
(containing Boolean satisfiability problems) into Isabelle/HOL
wenzelm@16234
  1005
theories.
paulson@14885
  1006
paulson@14885
  1007
wenzelm@14655
  1008
wenzelm@14606
  1009
New in Isabelle2004 (April 2004)
wenzelm@14606
  1010
--------------------------------
wenzelm@13280
  1011
skalberg@14171
  1012
*** General ***
skalberg@14171
  1013
ballarin@14398
  1014
* Provers/order.ML:  new efficient reasoner for partial and linear orders.
ballarin@14398
  1015
  Replaces linorder.ML.
ballarin@14398
  1016
wenzelm@14606
  1017
* Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic
wenzelm@14606
  1018
  (\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler
skalberg@14173
  1019
  (\<a>...\<z>), are now considered normal letters, and can therefore
skalberg@14173
  1020
  be used anywhere where an ASCII letter (a...zA...Z) has until
skalberg@14173
  1021
  now. COMPATIBILITY: This obviously changes the parsing of some
skalberg@14173
  1022
  terms, especially where a symbol has been used as a binder, say
skalberg@14173
  1023
  '\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed
skalberg@14173
  1024
  as an identifier.  Fix it by inserting a space around former
skalberg@14173
  1025
  symbols.  Call 'isatool fixgreek' to try to fix parsing errors in
skalberg@14173
  1026
  existing theory and ML files.
skalberg@14171
  1027
paulson@14237
  1028
* Pure: Macintosh and Windows line-breaks are now allowed in theory files.
paulson@14237
  1029
wenzelm@14731
  1030
* Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now
wenzelm@14731
  1031
  allowed in identifiers. Similar to Greek letters \<^isub> is now considered
wenzelm@14731
  1032
  a normal (but invisible) letter. For multiple letter subscripts repeat
wenzelm@14731
  1033
  \<^isub> like this: x\<^isub>1\<^isub>2.
kleing@14233
  1034
kleing@14333
  1035
* Pure: There are now sub-/superscripts that can span more than one
kleing@14333
  1036
  character. Text between \<^bsub> and \<^esub> is set in subscript in
wenzelm@14606
  1037
  ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in
wenzelm@14606
  1038
  superscript. The new control characters are not identifier parts.
kleing@14333
  1039
schirmer@14561
  1040
* Pure: Control-symbols of the form \<^raw:...> will literally print the
wenzelm@14606
  1041
  content of "..." to the latex file instead of \isacntrl... . The "..."
wenzelm@14606
  1042
  may consist of any printable characters excluding the end bracket >.
schirmer@14361
  1043
paulson@14237
  1044
* Pure: Using new Isar command "finalconsts" (or the ML functions
paulson@14237
  1045
  Theory.add_finals or Theory.add_finals_i) it is now possible to
paulson@14237
  1046
  declare constants "final", which prevents their being given a definition
paulson@14237
  1047
  later.  It is useful for constants whose behaviour is fixed axiomatically
skalberg@14224
  1048
  rather than definitionally, such as the meta-logic connectives.
skalberg@14224
  1049
wenzelm@14606
  1050
* Pure: 'instance' now handles general arities with general sorts
wenzelm@14606
  1051
  (i.e. intersections of classes),
skalberg@14503
  1052
kleing@14547
  1053
* Presentation: generated HTML now uses a CSS style sheet to make layout
wenzelm@14731
  1054
  (somewhat) independent of content. It is copied from lib/html/isabelle.css.
kleing@14547
  1055
  It can be changed to alter the colors/layout of generated pages.
kleing@14547
  1056
wenzelm@14556
  1057
ballarin@14175
  1058
*** Isar ***
ballarin@14175
  1059
ballarin@14508
  1060
* Tactic emulation methods rule_tac, erule_tac, drule_tac, frule_tac,
ballarin@14508
  1061
  cut_tac, subgoal_tac and thin_tac:
ballarin@14175
  1062
  - Now understand static (Isar) contexts.  As a consequence, users of Isar
ballarin@14175
  1063
    locales are no longer forced to write Isar proof scripts.
ballarin@14175
  1064
    For details see Isar Reference Manual, paragraph 4.3.2: Further tactic
ballarin@14175
  1065
    emulations.
ballarin@14175
  1066
  - INCOMPATIBILITY: names of variables to be instantiated may no
ballarin@14211
  1067
    longer be enclosed in quotes.  Instead, precede variable name with `?'.
ballarin@14211
  1068
    This is consistent with the instantiation attribute "where".
ballarin@14211
  1069
ballarin@14257
  1070
* Attributes "where" and "of":
ballarin@14285
  1071
  - Now take type variables of instantiated theorem into account when reading
ballarin@14285
  1072
    the instantiation string.  This fixes a bug that caused instantiated
ballarin@14285
  1073
    theorems to have too special types in some circumstances.
ballarin@14285
  1074
  - "where" permits explicit instantiations of type variables.
ballarin@14257
  1075
wenzelm@14556
  1076
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm@14556
  1077
  current facts ("this"), admitting arbitrary combinations with "then"
wenzelm@14556
  1078
  and derived forms.
kleing@14283
  1079
ballarin@14211
  1080
* Locales:
ballarin@14211
  1081
  - Goal statements involving the context element "includes" no longer
ballarin@14211
  1082
    generate theorems with internal delta predicates (those ending on
ballarin@14211
  1083
    "_axioms") in the premise.
ballarin@14211
  1084
    Resolve particular premise with <locale>.intro to obtain old form.
ballarin@14211
  1085
  - Fixed bug in type inference ("unify_frozen") that prevented mix of target
ballarin@14211
  1086
    specification and "includes" elements in goal statement.
ballarin@14254
  1087
  - Rule sets <locale>.intro and <locale>.axioms no longer declared as
ballarin@14254
  1088
    [intro?] and [elim?] (respectively) by default.
ballarin@14508
  1089
  - Experimental command for instantiation of locales in proof contexts:
ballarin@14551
  1090
        instantiate <label>[<attrs>]: <loc>
ballarin@14508
  1091
    Instantiates locale <loc> and adds all its theorems to the current context
ballarin@14551
  1092
    taking into account their attributes.  Label and attrs are optional
ballarin@14551
  1093
    modifiers, like in theorem declarations.  If present, names of
ballarin@14551
  1094
    instantiated theorems are qualified with <label>, and the attributes
ballarin@14551
  1095
    <attrs> are applied after any attributes these theorems might have already.
ballarin@14551
  1096
      If the locale has assumptions, a chained fact of the form
ballarin@14508
  1097
    "<loc> t1 ... tn" is expected from which instantiations of the parameters
ballarin@14551
  1098
    are derived.  The command does not support old-style locales declared
ballarin@14551
  1099
    with "locale (open)".
ballarin@14551
  1100
      A few (very simple) examples can be found in FOL/ex/LocaleInst.thy.
ballarin@14175
  1101
ballarin@14175
  1102
* HOL: Tactic emulation methods induct_tac and case_tac understand static
ballarin@14175
  1103
  (Isar) contexts.
ballarin@14175
  1104
wenzelm@14556
  1105
kleing@14136
  1106
*** HOL ***
kleing@14136
  1107
kleing@14624
  1108
* Proof import: new image HOL4 contains the imported library from
kleing@14624
  1109
  the HOL4 system with about 2500 theorems. It is imported by
kleing@14624
  1110
  replaying proof terms produced by HOL4 in Isabelle. The HOL4 image
kleing@14624
  1111
  can be used like any other Isabelle image.  See
kleing@14624
  1112
  HOL/Import/HOL/README for more information.
kleing@14624
  1113
ballarin@14398
  1114
* Simplifier:
ballarin@14398
  1115
  - Much improved handling of linear and partial orders.
ballarin@14398
  1116
    Reasoners for linear and partial orders are set up for type classes
ballarin@14398
  1117
    "linorder" and "order" respectively, and are added to the default simpset
ballarin@14398
  1118
    as solvers.  This means that the simplifier can build transitivity chains
ballarin@14398
  1119
    to solve goals from the assumptions.
ballarin@14398
  1120
  - INCOMPATIBILITY: old proofs break occasionally.  Typically, applications
ballarin@14398
  1121
    of blast or auto after simplification become unnecessary because the goal
ballarin@14398
  1122
    is solved by simplification already.
ballarin@14398
  1123
wenzelm@14731
  1124
* Numerics: new theory Ring_and_Field contains over 250 basic numerical laws,
paulson@14389
  1125
    all proved in axiomatic type classes for semirings, rings and fields.
paulson@14389
  1126
paulson@14389
  1127
* Numerics:
paulson@14389
  1128
  - Numeric types (nat, int, and in HOL-Complex rat, real, complex, etc.) are
wenzelm@14731
  1129
    now formalized using the Ring_and_Field theory mentioned above.
paulson@14389
  1130
  - INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently
paulson@14389
  1131
    than before, because now they are set up once in a generic manner.
wenzelm@14731
  1132
  - INCOMPATIBILITY: many type-specific arithmetic laws have gone.
paulson@14480
  1133
    Look for the general versions in Ring_and_Field (and Power if they concern
paulson@14480
  1134
    exponentiation).
paulson@14389
  1135
paulson@14401
  1136
* Type "rat" of the rational numbers is now available in HOL-Complex.
paulson@14389
  1137
schirmer@14255
  1138
* Records:
schirmer@14255
  1139
  - Record types are now by default printed with their type abbreviation
schirmer@14255
  1140
    instead of the list of all field types. This can be configured via
schirmer@14255
  1141
    the reference "print_record_type_abbr".
wenzelm@14731
  1142
  - Simproc "record_upd_simproc" for simplification of multiple updates added
schirmer@14255
  1143
    (not enabled by default).
schirmer@14427
  1144
  - Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp.
schirmer@14427
  1145
    EX x. x = sel r to True (not enabled by default).
schirmer@14255
  1146
  - Tactic "record_split_simp_tac" to split and simplify records added.
wenzelm@14731
  1147
kleing@14136
  1148
* 'specification' command added, allowing for definition by
skalberg@14224
  1149
  specification.  There is also an 'ax_specification' command that
skalberg@14224
  1150
  introduces the new constants axiomatically.
kleing@14136
  1151
nipkow@14375
  1152
* arith(_tac) is now able to generate counterexamples for reals as well.
nipkow@14375
  1153
ballarin@14399
  1154
* HOL-Algebra: new locale "ring" for non-commutative rings.
ballarin@14399
  1155
paulson@14243
  1156
* HOL-ex: InductiveInvariant_examples illustrates advanced recursive function
kleing@14610
  1157
  definitions, thanks to Sava Krsti\'{c} and John Matthews.
kleing@14610
  1158
wenzelm@14731
  1159
* HOL-Matrix: a first theory for matrices in HOL with an application of
kleing@14610
  1160
  matrix theory to linear programming.
kleing@14136
  1161
nipkow@14380
  1162
* Unions and Intersections:
nipkow@15119
  1163
  The latex output syntax of UN and INT has been changed
nipkow@15119
  1164
  from "\Union x \in A. B" to "\Union_{x \in A} B"
nipkow@15119
  1165
  i.e. the index formulae has become a subscript.
nipkow@15119
  1166
  Similarly for "\Union x. B", and for \Inter instead of \Union.
nipkow@14380
  1167
kleing@14418
  1168
* Unions and Intersections over Intervals:
wenzelm@14731
  1169
  There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is
wenzelm@14731
  1170
  also an x-symbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A"
kleing@14418
  1171
  like in normal math, and corresponding versions for < and for intersection.
kleing@14418
  1172
nipkow@15677
  1173
* HOL/List: Ordering "lexico" is renamed "lenlex" and the standard
nipkow@15677
  1174
  lexicographic dictonary ordering has been added as "lexord".
nipkow@15677
  1175
paulson@14401
  1176
* ML: the legacy theory structures Int and List have been removed. They had
paulson@14401
  1177
  conflicted with ML Basis Library structures having the same names.
nipkow@14380
  1178
webertj@14464
  1179
* 'refute' command added to search for (finite) countermodels.  Only works
webertj@14464
  1180
  for a fragment of HOL.  The installation of an external SAT solver is
webertj@14464
  1181
  highly recommended.  See "HOL/Refute.thy" for details.
webertj@14464
  1182
berghofe@14602
  1183
* 'quickcheck' command: Allows to find counterexamples by evaluating
berghofe@14602
  1184
  formulae under an assignment of free variables to random values.
berghofe@14602
  1185
  In contrast to 'refute', it can deal with inductive datatypes,
berghofe@14602
  1186
  but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy"
berghofe@14602
  1187
  for examples.
webertj@14464
  1188
wenzelm@14606
  1189
oheimb@14536
  1190
*** HOLCF ***
oheimb@14536
  1191
oheimb@14536
  1192
* Streams now come with concatenation and are part of the HOLCF image
oheimb@14536
  1193
wenzelm@14572
  1194
wenzelm@14572
  1195
kleing@14136
  1196
New in Isabelle2003 (May 2003)
wenzelm@14606
  1197
------------------------------
kleing@14136
  1198
wenzelm@13280
  1199
*** General ***
wenzelm@13280
  1200
berghofe@13618
  1201
* Provers/simplifier:
berghofe@13618
  1202
nipkow@13781
  1203
  - Completely reimplemented method simp (ML: Asm_full_simp_tac):
berghofe@13618
  1204
    Assumptions are now subject to complete mutual simplification,
berghofe@13618
  1205
    not just from left to right. The simplifier now preserves
berghofe@13618
  1206
    the order of assumptions.
berghofe@13618
  1207
berghofe@13618
  1208
    Potential INCOMPATIBILITY:
berghofe@13618
  1209
nipkow@13781
  1210
    -- simp sometimes diverges where the old version did
nipkow@13781
  1211
       not, e.g. invoking simp on the goal
berghofe@13618
  1212
berghofe@13618
  1213
        [| P (f x); y = x; f x = f y |] ==> Q
berghofe@13618
  1214
nipkow@13781
  1215
       now gives rise to the infinite reduction sequence
nipkow@13781
  1216
nipkow@13781
  1217
        P(f x) --(f x = f y)--> P(f y) --(y = x)--> P(f x) --(f x = f y)--> ...
nipkow@13781
  1218
nipkow@13781
  1219
       Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this
nipkow@13781
  1220
       kind of problem.
nipkow@13781
  1221
nipkow@13781
  1222
    -- Tactics combining classical reasoner and simplification (such as auto)
nipkow@13781
  1223
       are also affected by this change, because many of them rely on
nipkow@13781
  1224
       simp. They may sometimes diverge as well or yield a different numbers
nipkow@13781
  1225
       of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto
nipkow@13781
  1226
       in case of problems. Sometimes subsequent calls to the classical
nipkow@13781
  1227
       reasoner will fail because a preceeding call to the simplifier too
nipkow@13781
  1228
       eagerly simplified the goal, e.g. deleted redundant premises.
berghofe@13618
  1229
berghofe@13618
  1230
  - The simplifier trace now shows the names of the applied rewrite rules
berghofe@13618
  1231
nipkow@13829
  1232
  - You can limit the number of recursive invocations of the simplifier
nipkow@13829
  1233
    during conditional rewriting (where the simplifie tries to solve the
nipkow@13829
  1234
    conditions before applying the rewrite rule):
nipkow@13829
  1235
    ML "simp_depth_limit := n"
nipkow@13829
  1236
    where n is an integer. Thus you can force termination where previously
nipkow@13829
  1237
    the simplifier would diverge.
nipkow@13829
  1238
ballarin@13835
  1239
  - Accepts free variables as head terms in congruence rules.  Useful in Isar.
nipkow@13829
  1240
ballarin@13938
  1241
  - No longer aborts on failed congruence proof.  Instead, the
ballarin@13938
  1242
    congruence is ignored.
ballarin@13938
  1243
berghofe@14008
  1244
* Pure: New generic framework for extracting programs from constructive
berghofe@14008
  1245
  proofs. See HOL/Extraction.thy for an example instantiation, as well
berghofe@14008
  1246
  as HOL/Extraction for some case studies.
berghofe@14008
  1247
nipkow@13868
  1248
* Pure: The main goal of the proof state is no longer shown by default, only
nipkow@13868
  1249
the subgoals. This behaviour is controlled by a new flag.
ballarin@13835
  1250
   PG menu: Isabelle/Isar -> Settings -> Show Main Goal
nipkow@13815
  1251
(ML: Proof.show_main_goal).
nipkow@13815
  1252
nipkow@13815
  1253
* Pure: You can find all matching introduction rules for subgoal 1, i.e. all
nipkow@13815
  1254
rules whose conclusion matches subgoal 1:
nipkow@13815
  1255
      PG menu: Isabelle/Isar -> Show me -> matching rules
nipkow@13815
  1256
The rules are ordered by how closely they match the subgoal.
nipkow@13815
  1257
In particular, rules that solve a subgoal outright are displayed first
nipkow@13815
  1258
(or rather last, the way they are printed).
nipkow@13815
  1259
(ML: ProofGeneral.print_intros())
nipkow@13815
  1260
nipkow@13815
  1261
* Pure: New flag trace_unify_fail causes unification to print
nipkow@13781
  1262
diagnostic information (PG: in trace buffer) when it fails. This is
nipkow@13781
  1263
useful for figuring out why single step proofs like rule, erule or
nipkow@13781
  1264
assumption failed.
nipkow@13781
  1265
nipkow@13815
  1266
* Pure: Locale specifications now produce predicate definitions
wenzelm@13410
  1267
according to the body of text (covering assumptions modulo local
wenzelm@13410
  1268
definitions); predicate "loc_axioms" covers newly introduced text,
wenzelm@13410
  1269
while "loc" is cumulative wrt. all included locale expressions; the
wenzelm@13410
  1270
latter view is presented only on export into the global theory
wenzelm@13410
  1271
context; potential INCOMPATIBILITY, use "(open)" option to fall back
wenzelm@13410
  1272
on the old view without predicates;
wenzelm@13410
  1273
wenzelm@13459
  1274
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm@13459
  1275
parameters (as in CASL, for example); just specify something like
wenzelm@13459
  1276
``var x + var y + struct M'' as import;
wenzelm@13459
  1277
wenzelm@13463
  1278
* Pure: improved thms_containing: proper indexing of facts instead of
wenzelm@13463
  1279
raw theorems; check validity of results wrt. current name space;
wenzelm@13463
  1280
include local facts of proof configuration (also covers active
wenzelm@13541
  1281
locales), cover fixed variables in index; may use "_" in term
wenzelm@13541
  1282
specification; an optional limit for the number of printed facts may
wenzelm@13541
  1283
be given (the default is 40);
wenzelm@13541
  1284
wenzelm@13541
  1285
* Pure: disallow duplicate fact bindings within new-style theory files
wenzelm@13541
  1286
(batch-mode only);
wenzelm@13540
  1287
wenzelm@13463
  1288
* Provers: improved induct method: assumptions introduced by case
wenzelm@13463
  1289
"foo" are split into "foo.hyps" (from the rule) and "foo.prems" (from
wenzelm@13463
  1290
the goal statement); "foo" still refers to all facts collectively;
wenzelm@13463
  1291
paulson@13550
  1292
* Provers: the function blast.overloaded has been removed: all constants
paulson@13550
  1293
are regarded as potentially overloaded, which improves robustness in exchange
paulson@13550
  1294
for slight decrease in efficiency;
paulson@13550
  1295
nipkow@13781
  1296
* Provers/linorder: New generic prover for transitivity reasoning over
nipkow@13781
  1297
linear orders.  Note: this prover is not efficient!
nipkow@13781
  1298
wenzelm@13522
  1299
* Isar: preview of problems to finish 'show' now produce an error
wenzelm@13522
  1300
rather than just a warning (in interactive mode);
wenzelm@13522
  1301
wenzelm@13280
  1302
nipkow@13158
  1303
*** HOL ***
nipkow@13158
  1304
nipkow@13899
  1305
* arith(_tac)
nipkow@13899
  1306
nipkow@13899
  1307
 - Produces a counter example if it cannot prove a goal.
nipkow@13899
  1308
   Note that the counter example may be spurious if the goal is not a formula
nipkow@13899
  1309
   of quantifier-free linear arithmetic.
nipkow@13899
  1310
   In ProofGeneral the counter example appears in the trace buffer.
nipkow@13899
  1311
nipkow@13899
  1312
 - Knows about div k and mod k where k is a numeral of type nat or int.
nipkow@13899
  1313
nipkow@13899
  1314
 - Calls full Presburger arithmetic (by Amine Chaieb) if quantifier-free
nipkow@13899
  1315
   linear arithmetic fails. This takes account of quantifiers and divisibility.
wenzelm@14731
  1316
   Presburger arithmetic can also be called explicitly via presburger(_tac).
nipkow@13899
  1317
nipkow@13899
  1318
* simp's arithmetic capabilities have been enhanced a bit: it now
nipkow@13899
  1319
takes ~= in premises into account (by performing a case split);
nipkow@13899
  1320
nipkow@13899
  1321
* simp reduces "m*(n div m) + n mod m" to n, even if the two summands
nipkow@13899
  1322
are distributed over a sum of terms;
nipkow@13899
  1323
ballarin@13735
  1324
* New tactic "trans_tac" and method "trans" instantiate
ballarin@13735
  1325
Provers/linorder.ML for axclasses "order" and "linorder" (predicates
wenzelm@14731
  1326
"<=", "<" and "=").
wenzelm@14731
  1327
wenzelm@14731
  1328
* function INCOMPATIBILITIES: Pi-sets have been redefined and moved from main
paulson@13587
  1329
HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp";
paulson@13587
  1330
wenzelm@13443
  1331
* 'typedef' command has new option "open" to suppress the set
wenzelm@13443
  1332
definition;
wenzelm@13443
  1333
wenzelm@13522
  1334
* functions Min and Max on finite sets have been introduced (theory
wenzelm@13522
  1335
Finite_Set);
nipkow@13492
  1336
wenzelm@13443
  1337
* attribute [symmetric] now works for relations as well; it turns
wenzelm@13443
  1338
(x,y) : R^-1 into (y,x) : R, and vice versa;
wenzelm@13443
  1339
nipkow@13613
  1340
* induct over a !!-quantified statement (say !!x1..xn):
nipkow@13613
  1341
  each "case" automatically performs "fix x1 .. xn" with exactly those names.
nipkow@13613
  1342
nipkow@13899
  1343
* Map: `empty' is no longer a constant but a syntactic abbreviation for
nipkow@13899
  1344
%x. None. Warning: empty_def now refers to the previously hidden definition
nipkow@13899
  1345
of the empty set.
nipkow@13899
  1346
ballarin@14018
  1347
* Algebra: formalization of classical algebra.  Intended as base for
ballarin@14018
  1348
any algebraic development in Isabelle.  Currently covers group theory
ballarin@14018
  1349
(up to Sylow's theorem) and ring theory (Universal Property of
ballarin@14018
  1350
Univariate Polynomials).  Contributions welcome;
paulson@13960
  1351
paulson@13960
  1352
* GroupTheory: deleted, since its material has been moved to Algebra;
paulson@13960
  1353
wenzelm@14731
  1354
* Complex: new directory of the complex numbers with numeric constants,
wenzelm@14731
  1355
nonstandard complex numbers, and some complex analysis, standard and
paulson@13966
  1356
nonstandard (Jacques Fleuriot);
paulson@13966
  1357
paulson@13966
  1358
* HOL-Complex: new image for analysis, replacing HOL-Real and HOL-Hyperreal;
paulson@13966
  1359
wenzelm@14731
  1360
* Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques
paulson@13966
  1361
Fleuriot);
paulson@13960
  1362
wenzelm@13549
  1363
* Real/HahnBanach: updated and adapted to locales;
wenzelm@13549
  1364
ballarin@13995
  1365
* NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad,
ballarin@13995
  1366
Gray and Kramer);
paulson@13872
  1367
paulson@13872
  1368
* UNITY: added the Meier-Sanders theory of progress sets;
paulson@13872
  1369
kleing@14011
  1370
* MicroJava: bytecode verifier and lightweight bytecode verifier
kleing@14011
  1371
as abstract algorithms, instantiated to the JVM;
kleing@14011
  1372
schirmer@14010
  1373
* Bali: Java source language formalization. Type system, operational
schirmer@14010
  1374
semantics, axiomatic semantics. Supported language features:
schirmer@14010
  1375
classes, interfaces, objects,virtual methods, static methods,
schirmer@14010
  1376
static/instance fields, arrays, access modifiers, definite
schirmer@14010
  1377
assignment, exceptions.
wenzelm@13549
  1378
kleing@14011
  1379
wenzelm@13549
  1380
*** ZF ***
wenzelm@13549
  1381
webertj@15154
  1382
* ZF/Constructible: consistency proof for AC (Gdel's constructible
wenzelm@13549
  1383
universe, etc.);
wenzelm@13549
  1384
paulson@13872
  1385
* Main ZF: virtually all theories converted to new-style format;
nipkow@13518
  1386
wenzelm@13280
  1387
wenzelm@13478
  1388
*** ML ***
wenzelm@13478
  1389
wenzelm@13478
  1390
* Pure: Tactic.prove provides sane interface for internal proofs;
wenzelm@13478
  1391
omits the infamous "standard" operation, so this is more appropriate
wenzelm@13478
  1392
than prove_goalw_cterm in many situations (e.g. in simprocs);
wenzelm@13478
  1393
wenzelm@13478
  1394
* Pure: improved error reporting of simprocs;
wenzelm@13478
  1395
wenzelm@13478
  1396
* Provers: Simplifier.simproc(_i) provides sane interface for setting
wenzelm@13478
  1397
up simprocs;
wenzelm@13478
  1398
wenzelm@13478
  1399
kleing@13953
  1400
*** Document preparation ***
kleing@13953
  1401
kleing@13953
  1402
* uses \par instead of \\ for line breaks in theory text. This may
kleing@13953
  1403
shift some page breaks in large documents. To get the old behaviour
kleing@13953
  1404
use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex.
kleing@13953
  1405
wenzelm@14731
  1406
* minimized dependencies of isabelle.sty and isabellesym.sty on
kleing@13953
  1407
other packages
kleing@13953
  1408
kleing@13953
  1409
* \<euro> now needs package babel/greek instead of marvosym (which
kleing@13953
  1410
broke \Rightarrow)
kleing@13953
  1411
wenzelm@14731
  1412
* normal size for \<zero>...\<nine> (uses \mathbf instead of
kleing@13954
  1413
textcomp package)
kleing@13953
  1414
wenzelm@13280
  1415
wenzelm@14572
  1416
wenzelm@12984
  1417
New in Isabelle2002 (March 2002)
wenzelm@12984
  1418
--------------------------------
wenzelm@11474
  1419
wenzelm@11572
  1420
*** Document preparation ***
wenzelm@11572
  1421
wenzelm@11842
  1422
* greatly simplified document preparation setup, including more
wenzelm@11842
  1423
graceful interpretation of isatool usedir -i/-d/-D options, and more
wenzelm@11842
  1424
instructive isatool mkdir; users should basically be able to get
wenzelm@12899
  1425
started with "isatool mkdir HOL Test && isatool make"; alternatively,
wenzelm@12899
  1426
users may run a separate document processing stage manually like this:
wenzelm@12899
  1427
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm@11842
  1428
wenzelm@11842
  1429
* theory dependency graph may now be incorporated into documents;
wenzelm@11842
  1430
isatool usedir -g true will produce session_graph.eps/.pdf for use
wenzelm@11842
  1431
with \includegraphics of LaTeX;
wenzelm@11842
  1432
wenzelm@11864
  1433
* proper spacing of consecutive markup elements, especially text
wenzelm@11864
  1434
blocks after section headings;
wenzelm@11864
  1435
wenzelm@11572
  1436
* support bold style (for single symbols only), input syntax is like
wenzelm@11572
  1437
this: "\<^bold>\<alpha>" or "\<^bold>A";
wenzelm@11572
  1438
wenzelm@11814
  1439
* \<bullet> is now output as bold \cdot by default, which looks much
wenzelm@11572
  1440
better in printed text;
wenzelm@11572
  1441
wenzelm@11712
  1442
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm@11712
  1443
note that these symbols are currently unavailable in Proof General /
wenzelm@12769
  1444
X-Symbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>;
wenzelm@12690
  1445
wenzelm@12690
  1446
* isatool latex no longer depends on changed TEXINPUTS, instead
wenzelm@12690
  1447
isatool document copies the Isabelle style files to the target
wenzelm@12690
  1448
location;
wenzelm@11712
  1449
wenzelm@11572
  1450
wenzelm@11633
  1451
*** Isar ***
wenzelm@11633
  1452
wenzelm@12312
  1453
* Pure/Provers: improved proof by cases and induction;
wenzelm@12280
  1454
  - 'case' command admits impromptu naming of parameters (such as
wenzelm@12280
  1455
    "case (Suc n)");
wenzelm@12280
  1456
  - 'induct' method divinates rule instantiation from the inductive
wenzelm@12280
  1457
    claim; no longer requires excessive ?P bindings for proper
wenzelm@12280
  1458
    instantiation of cases;
wenzelm@12280
  1459
  - 'induct' method properly enumerates all possibilities of set/type
wenzelm@12280
  1460
    rules; as a consequence facts may be also passed through *type*
wenzelm@12280
  1461
    rules without further ado;
wenzelm@12280
  1462
  - 'induct' method now derives symbolic cases from the *rulified*
wenzelm@12280
  1463
    rule (before it used to rulify cases stemming from the internal
wenzelm@12280
  1464
    atomized version); this means that the context of a non-atomic
wenzelm@12280
  1465
    statement becomes is included in the hypothesis, avoiding the
wenzelm@12280
  1466
    slightly cumbersome show "PROP ?case" form;
wenzelm@12280
  1467
  - 'induct' may now use elim-style induction rules without chaining
wenzelm@12280
  1468
    facts, using ``missing'' premises from the goal state; this allows
wenzelm@12280
  1469
    rules stemming from inductive sets to be applied in unstructured
wenzelm@12280
  1470
    scripts, while still benefitting from proper handling of non-atomic
wenzelm@12280
  1471
    statements; NB: major inductive premises need to be put first, all
wenzelm@12280
  1472
    the rest of the goal is passed through the induction;
wenzelm@12280
  1473
  - 'induct' proper support for mutual induction involving non-atomic
wenzelm@12280
  1474
    rule statements (uses the new concept of simultaneous goals, see
wenzelm@12280
  1475
    below);
wenzelm@12853
  1476
  - append all possible rule selections, but only use the first
wenzelm@12853
  1477
    success (no backtracking);
wenzelm@11995
  1478
  - removed obsolete "(simplified)" and "(stripped)" options of methods;
wenzelm@12754
  1479
  - undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm@12754
  1480
  - added 'print_induct_rules' (covered by help item in recent Proof
wenzelm@12754
  1481
    General versions);
wenzelm@11995
  1482
  - moved induct/cases attributes to Pure, methods to Provers;
wenzelm@11995
  1483
  - generic method setup instantiated for FOL and HOL;
wenzelm@11986
  1484
wenzelm@12163
  1485
* Pure: support multiple simultaneous goal statements, for example
wenzelm@12163
  1486
"have a: A and b: B" (same for 'theorem' etc.); being a pure
wenzelm@12163
  1487
meta-level mechanism, this acts as if several individual goals had
wenzelm@12163
  1488
been stated separately; in particular common proof methods need to be
wenzelm@12163
  1489
repeated in order to cover all claims; note that a single elimination
wenzelm@12163
  1490
step is *not* sufficient to establish the two conjunctions, so this
wenzelm@12163
  1491
fails:
wenzelm@12163
  1492
wenzelm@12163
  1493
  assume "A & B" then have A and B ..   (*".." fails*)
wenzelm@12163
  1494
wenzelm@12163
  1495
better use "obtain" in situations as above; alternative refer to
wenzelm@12163
  1496
multi-step methods like 'auto', 'simp_all', 'blast+' etc.;
wenzelm@12163
  1497
wenzelm@12078
  1498
* Pure: proper integration with ``locales''; unlike the original
webertj@15154
  1499
version by Florian Kammller, Isar locales package high-level proof
wenzelm@12078
  1500
contexts rather than raw logical ones (e.g. we admit to include
wenzelm@12280
  1501
attributes everywhere); operations on locales include merge and
wenzelm@12964
  1502
rename; support for implicit arguments (``structures''); simultaneous
wenzelm@12964
  1503
type-inference over imports and text; see also HOL/ex/Locales.thy for
wenzelm@12964
  1504
some examples;
wenzelm@12078
  1505
wenzelm@12707
  1506
* Pure: the following commands have been ``localized'', supporting a
wenzelm@12707
  1507
target locale specification "(in name)": 'lemma', 'theorem',
wenzelm@12707
  1508
'corollary', 'lemmas', 'theorems', 'declare'; the results will be
wenzelm@12707
  1509
stored both within the locale and at the theory level (exported and
wenzelm@12707
  1510
qualified by the locale name);
wenzelm@12707
  1511
wenzelm@12964
  1512
* Pure: theory goals may now be specified in ``long'' form, with
wenzelm@12964
  1513
ad-hoc contexts consisting of arbitrary locale elements. for example
wenzelm@12964
  1514
``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and
wenzelm@12964
  1515
definitions may be given, too); the result is a meta-level rule with
wenzelm@12964
  1516
the context elements being discharged in the obvious way;
wenzelm@12964
  1517
wenzelm@12964
  1518
* Pure: new proof command 'using' allows to augment currently used
wenzelm@12964
  1519
facts after a goal statement ('using' is syntactically analogous to
wenzelm@12964
  1520
'apply', but acts on the goal's facts only); this allows chained facts
wenzelm@12964
  1521
to be separated into parts given before and after a claim, as in
wenzelm@12964
  1522
``from a and b have C using d and e <proof>'';
wenzelm@12078
  1523
wenzelm@11722
  1524
* Pure: renamed "antecedent" case to "rule_context";
wenzelm@11722
  1525
wenzelm@12964
  1526
* Pure: new 'judgment' command records explicit information about the
wenzelm@12964
  1527
object-logic embedding (used by several tools internally); no longer
wenzelm@12964
  1528
use hard-wired "Trueprop";
wenzelm@12964
  1529
wenzelm@11738
  1530
* Pure: added 'corollary' command;
wenzelm@11738
  1531
wenzelm@11722
  1532
* Pure: fixed 'token_translation' command;
wenzelm@11722
  1533
wenzelm@11899
  1534
* Pure: removed obsolete 'exported' attribute;
wenzelm@11899
  1535
wenzelm@11933
  1536
* Pure: dummy pattern "_" in is/let is now automatically lifted over
wenzelm@11933
  1537
bound variables: "ALL x. P x --> Q x" (is "ALL x. _ --> ?C x")
wenzelm@11899
  1538
supersedes more cumbersome ... (is "ALL x. _ x --> ?C x");
wenzelm@11899
  1539
wenzelm@11952
  1540
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm@11952
  1541
statements (atomic meta-level propositions); setup controlled via
wenzelm@11952
  1542
rewrite rules declarations of 'atomize' attribute; example
wenzelm@11952
  1543
application: 'induct' method with proper rule statements in improper
wenzelm@11952
  1544
proof *scripts*;
wenzelm@11952
  1545
wenzelm@12106
  1546
* Pure: emulation of instantiation tactics (rule_tac, cut_tac, etc.)
wenzelm@12106
  1547
now consider the syntactic context of assumptions, giving a better
wenzelm@12106
  1548
chance to get type-inference of the arguments right (this is
wenzelm@12106
  1549
especially important for locales);
wenzelm@12106
  1550
wenzelm@12312
  1551
* Pure: "sorry" no longer requires quick_and_dirty in interactive
wenzelm@12312
  1552
mode;
wenzelm@12312
  1553
wenzelm@12405
  1554
* Pure/obtain: the formal conclusion "thesis", being marked as
wenzelm@12405
  1555
``internal'', may no longer be reference directly in the text;
wenzelm@12405
  1556
potential INCOMPATIBILITY, may need to use "?thesis" in rare
wenzelm@12405
  1557
situations;
wenzelm@12405
  1558
wenzelm@12405
  1559
* Pure: generic 'sym' attribute which declares a rule both as pure
wenzelm@12405
  1560
'elim?' and for the 'symmetric' operation;
wenzelm@12405
  1561
wenzelm@12877
  1562
* Pure: marginal comments ``--'' may now occur just anywhere in the
wenzelm@12877
  1563
text; the fixed correlation with particular command syntax has been
wenzelm@12877
  1564
discontinued;
wenzelm@12877
  1565
berghofe@13023
  1566
* Pure: new method 'rules' is particularly well-suited for proof
berghofe@13023
  1567
search in intuitionistic logic; a bit slower than 'blast' or 'fast',
berghofe@13023
  1568
but often produces more compact proof terms with less detours;
berghofe@13023
  1569
wenzelm@12364
  1570
* Pure/Provers/classical: simplified integration with pure rule
wenzelm@12364
  1571
attributes and methods; the classical "intro?/elim?/dest?"
wenzelm@12364
  1572
declarations coincide with the pure ones; the "rule" method no longer
wenzelm@12364
  1573
includes classically swapped intros; "intro" and "elim" methods no
wenzelm@12364
  1574
longer pick rules from the context; also got rid of ML declarations
wenzelm@12364
  1575
AddXIs/AddXEs/AddXDs; all of this has some potential for
wenzelm@12364
  1576
INCOMPATIBILITY;
wenzelm@12364
  1577
wenzelm@12405
  1578
* Provers/classical: attribute 'swapped' produces classical inversions
wenzelm@12405
  1579
of introduction rules;
wenzelm@12405
  1580
wenzelm@12364
  1581
* Provers/simplifier: 'simplified' attribute may refer to explicit
wenzelm@12364
  1582
rules instead of full simplifier context; 'iff' attribute handles
wenzelm@12364
  1583
conditional rules;
wenzelm@11936
  1584
wenzelm@11745
  1585
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm@11745
  1586
wenzelm@11690
  1587
* HOL: 'recdef' now fails on unfinished automated proofs, use
wenzelm@11633
  1588
"(permissive)" option to recover old behavior;
wenzelm@11633
  1589
wenzelm@11933
  1590
* HOL: 'inductive' no longer features separate (collective) attributes
wenzelm@11933
  1591
for 'intros' (was found too confusing);
wenzelm@11933
  1592
wenzelm@12405
  1593
* HOL: properly declared induction rules less_induct and
wenzelm@12405
  1594
wf_induct_rule;
wenzelm@12405
  1595
kleing@11788
  1596
wenzelm@11474
  1597
*** HOL ***
wenzelm@11474
  1598
wenzelm@11702
  1599
* HOL: moved over to sane numeral syntax; the new policy is as
wenzelm@11702
  1600
follows:
wenzelm@11702
  1601
wenzelm@11702
  1602
  - 0 and 1 are polymorphic constants, which are defined on any
wenzelm@11702
  1603
  numeric type (nat, int, real etc.);
wenzelm@11702
  1604
wenzelm@11702
  1605
  - 2, 3, 4, ... and -1, -2, -3, ... are polymorphic numerals, based
wenzelm@11702
  1606
  binary representation internally;
wenzelm@11702
  1607
wenzelm@11702
  1608
  - type nat has special constructor Suc, and generally prefers Suc 0
wenzelm@11702
  1609
  over 1::nat and Suc (Suc 0) over 2::nat;
wenzelm@11702
  1610
wenzelm@12364
  1611
This change may cause significant problems of INCOMPATIBILITY; here
wenzelm@12364
  1612
are some hints on converting existing sources:
wenzelm@11702
  1613
wenzelm@11702
  1614
  - due to the new "num" token, "-0" and "-1" etc. are now atomic
wenzelm@11702
  1615
  entities, so expressions involving "-" (unary or binary minus) need
wenzelm@11702
  1616
  to be spaced properly;
wenzelm@11702
  1617
wenzelm@11702
  1618
  - existing occurrences of "1" may need to be constraint "1::nat" or
wenzelm@11702
  1619
  even replaced by Suc 0; similar for old "2";
wenzelm@11702
  1620
wenzelm@11702
  1621
  - replace "#nnn" by "nnn", and "#-nnn" by "-nnn";
wenzelm@11702
  1622
wenzelm@11702
  1623
  - remove all special provisions on numerals in proofs;
wenzelm@11702
  1624
wenzelm@13042
  1625
* HOL: simp rules nat_number expand numerals on nat to Suc/0
wenzelm@12837
  1626
representation (depends on bin_arith_simps in the default context);
wenzelm@12837
  1627
wenzelm@12736
  1628
* HOL: symbolic syntax for x^2 (numeral 2);
wenzelm@12736
  1629
wenzelm@12335
  1630
* HOL: the class of all HOL types is now called "type" rather than
wenzelm@12335
  1631
"term"; INCOMPATIBILITY, need to adapt references to this type class
wenzelm@12335
  1632
in axclass/classes, instance/arities, and (usually rare) occurrences
wenzelm@12335
  1633
in typings (of consts etc.); internally the class is called
wenzelm@12335
  1634
"HOL.type", ML programs should refer to HOLogic.typeS;
wenzelm@12335
  1635
wenzelm@12280
  1636
* HOL/record package improvements:
wenzelm@12280
  1637
  - new derived operations "fields" to build a partial record section,
wenzelm@12280
  1638
    "extend" to promote a fixed record to a record scheme, and
wenzelm@12280
  1639
    "truncate" for the reverse; cf. theorems "xxx.defs", which are *not*
wenzelm@12280
  1640
    declared as simp by default;
wenzelm@12587
  1641
  - shared operations ("more", "fields", etc.) now need to be always
wenzelm@12587
  1642
    qualified) --- potential INCOMPATIBILITY;
wenzelm@12280
  1643
  - removed "make_scheme" operations (use "make" with "extend") --
wenzelm@12280
  1644
    INCOMPATIBILITY;
wenzelm@11937
  1645
  - removed "more" class (simply use "term") -- INCOMPATIBILITY;
wenzelm@12253
  1646
  - provides cases/induct rules for use with corresponding Isar
wenzelm@12253
  1647
    methods (for concrete records, record schemes, concrete more
wenzelm@12280
  1648
    parts, and schematic more parts -- in that order);
wenzelm@11930
  1649
  - internal definitions directly based on a light-weight abstract
wenzelm@11930
  1650
    theory of product types over typedef rather than datatype;
wenzelm@11930
  1651
berghofe@13023
  1652
* HOL: generic code generator for generating executable ML code from
berghofe@13023
  1653
specifications; specific support for HOL constructs such as inductive
berghofe@13023
  1654
datatypes and sets, as well as recursive functions; can be invoked
berghofe@13023
  1655
via 'generate_code' theory section;
berghofe@13023
  1656
wenzelm@11933
  1657
* HOL: canonical cases/induct rules for n-tuples (n = 3..7);
wenzelm@11933
  1658
paulson@13824
  1659
* HOL: consolidated and renamed several theories.  In particular:
wenzelm@14731
  1660
        Ord.thy has been absorbed into HOL.thy
wenzelm@14731
  1661
        String.thy has been absorbed into List.thy
wenzelm@14731
  1662
wenzelm@11802
  1663
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm@11802
  1664
(beware of argument permutation!);
wenzelm@11802
  1665
wenzelm@11657
  1666
* HOL: linorder_less_split superseded by linorder_cases;
wenzelm@11657
  1667
wenzelm@12917
  1668
* HOL/List: "nodups" renamed to "distinct";
nipkow@12889
  1669
wenzelm@11633
  1670
* HOL: added "The" definite description operator; move Hilbert's "Eps"
paulson@13824
  1671
to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES:
paulson@13824
  1672
  - Ex_def has changed, now need to use some_eq_ex
wenzelm@11437
  1673
wenzelm@11572
  1674
* HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so
wenzelm@11572
  1675
in this (rare) case use:
wenzelm@11572
  1676
wenzelm@11572
  1677
  delSWrapper "split_all_tac"
wenzelm@11572
  1678
  addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac)
wenzelm@11572
  1679
wenzelm@11572
  1680
* HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS
wenzelm@11474
  1681
MAY FAIL;
nipkow@11361
  1682
wenzelm@11572
  1683
* HOL: introduced f^n = f o ... o f; warning: due to the limits of
wenzelm@11572
  1684
Isabelle's type classes, ^ on functions and relations has too general
wenzelm@11572
  1685
a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be
wenzelm@11572
  1686
necessary to attach explicit type constraints;
nipkow@11307
  1687
wenzelm@12917
  1688
* HOL/Relation: the prefix name of the infix "O" has been changed from
wenzelm@12917
  1689
"comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been
wenzelm@12917
  1690
renamed accordingly (eg "compI" -> "rel_compI").
nipkow@12489
  1691
wenzelm@11487
  1692
* HOL: syntax translations now work properly with numerals and records
wenzelm@11487
  1693
expressions;
wenzelm@11474
  1694
wenzelm@12457
  1695
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm@12457
  1696
of "lam" -- INCOMPATIBILITY;
wenzelm@11474
  1697
wenzelm@11933
  1698
* HOL: got rid of some global declarations (potential INCOMPATIBILITY
wenzelm@11933
  1699
for ML tools): const "()" renamed "Product_Type.Unity", type "unit"
wenzelm@11933
  1700
renamed "Product_Type.unit";
wenzelm@11611
  1701
nipkow@12564
  1702
* HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl
nipkow@12564
  1703
wenzelm@12924
  1704
* HOL: removed obsolete theorem "optionE" (use "option.exhaust", or
wenzelm@12924
  1705
the "cases" method);
wenzelm@12924
  1706
wenzelm@12597
  1707
* HOL/GroupTheory: group theory examples including Sylow's theorem (by
webertj@15154
  1708
Florian Kammller);
wenzelm@12597
  1709
wenzelm@12608
  1710
* HOL/IMP: updated and converted to new-style theory format; several
wenzelm@12608
  1711
parts turned into readable document, with proper Isar proof texts and
wenzelm@12608
  1712
some explanations (by Gerwin Klein);
wenzelm@12597
  1713
wenzelm@12734
  1714
* HOL-Real: added Complex_Numbers (by Gertrud Bauer);
wenzelm@12734
  1715
wenzelm@12690
  1716
* HOL-Hyperreal is now a logic image;
wenzelm@12690
  1717
wenzelm@11611
  1718
wenzelm@12022
  1719
*** HOLCF ***
wenzelm@12022
  1720
wenzelm@12622
  1721
* Isar: consts/constdefs supports mixfix syntax for continuous
wenzelm@12622
  1722
operations;
wenzelm@12622
  1723
wenzelm@12622
  1724
* Isar: domain package adapted to new-style theory format, e.g. see
wenzelm@12622
  1725
HOLCF/ex/Dnat.thy;
wenzelm@12622
  1726
wenzelm@12622
  1727
* theory Lift: proper use of rep_datatype lift instead of ML hacks --
wenzelm@12280
  1728
potential INCOMPATIBILITY; now use plain induct_tac instead of former
wenzelm@12280
  1729
lift.induct_tac, always use UU instead of Undef;
wenzelm@12022
  1730
wenzelm@12597
  1731
* HOLCF/IMP: updated and converted to new-style theory;
wenzelm@12597
  1732
wenzelm@12022
  1733
wenzelm@11474
  1734
*** ZF ***
wenzelm@11474
  1735
wenzelm@12622
  1736
* Isar: proper integration of logic-specific tools and packages,
wenzelm@12622
  1737
including theory commands '(co)inductive', '(co)datatype',
wenzelm@12622
  1738
'rep_datatype', 'inductive_cases', as well as methods 'ind_cases',
wenzelm@12622
  1739
'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC');
wenzelm@12622
  1740
wenzelm@12622
  1741
* theory Main no longer includes AC; for the Axiom of Choice, base
wenzelm@12622
  1742
your theory on Main_ZFC;
wenzelm@12622
  1743
wenzelm@12622
  1744
* the integer library now covers quotients and remainders, with many
wenzelm@12622
  1745
laws relating division to addition, multiplication, etc.;
paulson@12563
  1746
wenzelm@12280
  1747
* ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a
wenzelm@12280
  1748
typeless version of the formalism;
wenzelm@12280
  1749
wenzelm@13025
  1750
* ZF/AC, Coind, IMP, Resid: updated and converted to new-style theory
wenzelm@13025
  1751
format;
wenzelm@12608
  1752
wenzelm@12280
  1753
* ZF/Induct: new directory for examples of inductive definitions,
wenzelm@12608
  1754
including theory Multiset for multiset orderings; converted to
wenzelm@12608
  1755
new-style theory format;
wenzelm@12177
  1756
wenzelm@13025
  1757
* ZF: many new theorems about lists, ordinals, etc.;
paulson@12850
  1758
wenzelm@11474
  1759
wenzelm@11474
  1760
*** General ***
wenzelm@11474
  1761
wenzelm@12280
  1762
* Pure/kernel: meta-level proof terms (by Stefan Berghofer); reference
wenzelm@12280
  1763
variable proof controls level of detail: 0 = no proofs (only oracle
wenzelm@12280
  1764
dependencies), 1 = lemma dependencies, 2 = compact proof terms; see
wenzelm@12280
  1765
also ref manual for further ML interfaces;
wenzelm@12280
  1766
wenzelm@12280
  1767
* Pure/axclass: removed obsolete ML interface
wenzelm@12280
  1768
goal_subclass/goal_arity;
wenzelm@12280
  1769
wenzelm@12280
  1770
* Pure/syntax: new token syntax "num" for plain numerals (without "#"
wenzelm@12280
  1771
of "xnum"); potential INCOMPATIBILITY, since -0, -1 etc. are now
wenzelm@12280
  1772
separate tokens, so expressions involving minus need to be spaced
wenzelm@12280
  1773
properly;
wenzelm@12280
  1774
wenzelm@12312
  1775
* Pure/syntax: support non-oriented infixes, using keyword "infix"
wenzelm@12312
  1776
rather than "infixl" or "infixr";
wenzelm@12312
  1777
wenzelm@12312
  1778
* Pure/syntax: concrete syntax for dummy type variables admits genuine
wenzelm@12312
  1779
sort constraint specifications in type inference; e.g. "x::_::foo"
wenzelm@12312
  1780
ensures that the type of "x" is of sort "foo" (but not necessarily a
wenzelm@12312
  1781
type variable);
wenzelm@12280
  1782
wenzelm@12280
  1783
* Pure/syntax: print modes "type_brackets" and "no_type_brackets"
wenzelm@12280
  1784
control output of nested => (types); the default behavior is
wenzelm@12280
  1785
"type_brackets";
wenzelm@12280
  1786
wenzelm@12280
  1787
* Pure/syntax: builtin parse translation for "_constify" turns valued
wenzelm@11817
  1788
tokens into AST constants;
wenzelm@11474
  1789
wenzelm@12280
  1790
* Pure/syntax: prefer later declarations of translations and print
wenzelm@12280
  1791
translation functions; potential INCOMPATIBILITY: need to reverse
wenzelm@12280
  1792
multiple declarations for same syntax element constant;
wenzelm@12280
  1793
wenzelm@12832
  1794
* Pure/show_hyps reset by default (in accordance to existing Isar
wenzelm@12832
  1795
practice);
wenzelm@12832
  1796
wenzelm@12280
  1797
* Provers/classical: renamed addaltern to addafter, addSaltern to
wenzelm@12280
  1798
addSafter;
wenzelm@12280
  1799
wenzelm@12280
  1800
* Provers/clasimp: ``iff'' declarations now handle conditional rules
wenzelm@12280
  1801
as well;
wenzelm@12253
  1802
wenzelm@12538
  1803
* system: tested support for MacOS X; should be able to get Isabelle +
wenzelm@12538
  1804
Proof General to work in a plain Terminal after installing Poly/ML
wenzelm@12538
  1805
(e.g. from the Isabelle distribution area) and GNU bash alone
wenzelm@12538
  1806
(e.g. from http://www.apple.com); full X11, XEmacs and X-Symbol
wenzelm@12538
  1807
support requires further installations, e.g. from
wenzelm@12538
  1808
http://fink.sourceforge.net/);
wenzelm@12538
  1809
wenzelm@12280
  1810
* system: support Poly/ML 4.1.1 (able to manage larger heaps);
wenzelm@11551
  1811
wenzelm@12753
  1812
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm@12753
  1813
of 40 MB), cf. ML_OPTIONS;
wenzelm@12753
  1814
wenzelm@11633
  1815
* system: Proof General keywords specification is now part of the
wenzelm@11633
  1816
Isabelle distribution (see etc/isar-keywords.el);
wenzelm@11633
  1817
wenzelm@12728
  1818
* system: support for persistent Proof General sessions (refrain from
wenzelm@12728
  1819
outdating all loaded theories on startup); user may create writable
wenzelm@12728
  1820
logic images like this: ``isabelle -q HOL Test'';
wenzelm@12597
  1821
wenzelm@11551
  1822
* system: smart selection of Isabelle process versus Isabelle
wenzelm@11572
  1823
interface, accommodates case-insensitive file systems (e.g. HFS+); may
wenzelm@11572
  1824
run both "isabelle" and "Isabelle" even if file names are badly
wenzelm@11572
  1825
damaged (executable inspects the case of the first letter of its own
wenzelm@11572
  1826
name); added separate "isabelle-process" and "isabelle-interface";
wenzelm@11551
  1827
wenzelm@12472
  1828
* system: refrain from any attempt at filtering input streams; no
wenzelm@12472
  1829
longer support ``8bit'' encoding of old isabelle font, instead proper
wenzelm@12472
  1830
iso-latin characters may now be used; the related isatools
wenzelm@12472
  1831
"symbolinput" and "nonascii" have disappeared as well;
wenzelm@12472
  1832
wenzelm@12472
  1833
* system: removed old "xterm" interface (the print modes "xterm" and
wenzelm@12472
  1834
"xterm_color" are still available for direct use in a suitable
wenzelm@12472
  1835
terminal);
wenzelm@12472
  1836
paulson@11314
  1837
oheimb@11169
  1838
wenzelm@11062
  1839
New in Isabelle99-2 (February 2001)
wenzelm@11062
  1840
-----------------------------------
wenzelm@11062
  1841
nipkow@10224
  1842
*** Overview of INCOMPATIBILITIES ***
nipkow@10224
  1843
paulson@11241
  1844
* HOL: please note that theories in the Library and elsewhere often use the
paulson@11241
  1845
new-style (Isar) format; to refer to their theorems in an ML script you must
wenzelm@12622
  1846
bind them to ML identifers by e.g.      val thm_name = thm "thm_name";
paulson@11241
  1847
wenzelm@11043
  1848
* HOL: inductive package no longer splits induction rule aggressively,
wenzelm@11043
  1849
but only as far as specified by the introductions given; the old
oheimb@11130
  1850
format may be recovered via ML function complete_split_rule or attribute
wenzelm@11043
  1851
'split_rule (complete)';
wenzelm@11043
  1852
wenzelm@10998
  1853
* HOL: induct renamed to lfp_induct, lfp_Tarski to lfp_unfold,
wenzelm@10998
  1854
gfp_Tarski to gfp_unfold;
nipkow@10224
  1855
paulson@10288
  1856
* HOL: contrapos, contrapos2 renamed to contrapos_nn, contrapos_pp;
paulson@10288
  1857
wenzelm@10858
  1858
* HOL: infix "dvd" now has priority 50 rather than 70 (because it is a
wenzelm@10858
  1859
relation); infix "^^" has been renamed "``"; infix "``" has been
wenzelm@10858
  1860
renamed "`"; "univalent" has been renamed "single_valued";
nipkow@10793
  1861
wenzelm@10998
  1862
* HOL/Real: "rinv" and "hrinv" replaced by overloaded "inverse"
wenzelm@10998
  1863
operation;
wenzelm@10998
  1864
nipkow@10868
  1865
* HOLCF: infix "`" has been renamed "$"; the symbol syntax is \<cdot>;
nipkow@10856
  1866
wenzelm@10391
  1867
* Isar: 'obtain' no longer declares "that" fact as simp/intro;
wenzelm@10391
  1868
wenzelm@10401
  1869
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm@10401
  1870
consequence, it is no longer monotonic wrt. the local goal context
wenzelm@10401
  1871
(which is now passed through the inductive cases);
wenzelm@10401
  1872
wenzelm@10976
  1873
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm@10976
  1874
\<gg> to \<ggreater>;
wenzelm@10976
  1875
nipkow@10224
  1876
wenzelm@10245
  1877
*** Document preparation ***
wenzelm@10245
  1878
wenzelm@10858
  1879
* \isabellestyle{NAME} selects version of Isabelle output (currently
wenzelm@10858
  1880
available: are "it" for near math-mode best-style output, "sl" for
wenzelm@10858
  1881
slanted text style, and "tt" for plain type-writer; if no
wenzelm@10858
  1882
\isabellestyle command is given, output is according to slanted
wenzelm@10858
  1883
type-writer);
wenzelm@10858
  1884
wenzelm@10322
  1885
* support sub/super scripts (for single symbols only), input syntax is
wenzelm@10322
  1886
like this: "A\<^sup>*" or "A\<^sup>\<star>";
wenzelm@10322
  1887
wenzelm@10858
  1888
* some more standard symbols; see Appendix A of the system manual for
wenzelm@11062
  1889
the complete list of symbols defined in isabellesym.sty;
wenzelm@10858
  1890
wenzelm@10998
  1891
* improved isabelle style files; more abstract symbol implementation
wenzelm@10998
  1892
(should now use \isamath{...} and \isatext{...} in custom symbol
wenzelm@10998
  1893
definitions);
wenzelm@10998
  1894
wenzelm@10634
  1895
* antiquotation @{goals} and @{subgoals} for output of *dynamic* goals
wenzelm@10634
  1896
state; Note that presentation of goal states does not conform to
wenzelm@10634
  1897
actual human-readable proof documents.  Please do not include goal
wenzelm@10634
  1898
states into document output unless you really know what you are doing!
wenzelm@10322
  1899
wenzelm@11062
  1900
* proper indentation of antiquoted output with proportional LaTeX
wenzelm@11062
  1901
fonts;
wenzelm@10862
  1902
wenzelm@11050
  1903
* no_document ML operator temporarily disables LaTeX document
wenzelm@11050
  1904
generation;
wenzelm@11050
  1905
wenzelm@11062
  1906
* isatool unsymbolize tunes sources for plain ASCII communication;
wenzelm@11062
  1907
wenzelm@10322
  1908
wenzelm@10306
  1909
*** Isar ***
wenzelm@10306
  1910
wenzelm@10547
  1911
* Pure: Isar now suffers initial goal statements to contain unbound
wenzelm@10547
  1912
schematic variables (this does not conform to actual readable proof
wenzelm@10547
  1913
documents, due to unpredictable outcome and non-compositional proof
wenzelm@10547
  1914
checking); users who know what they are doing may use schematic goals
wenzelm@10547
  1915
for Prolog-style synthesis of proven results;
wenzelm@10547
  1916
wenzelm@10391
  1917
* Pure: assumption method (an implicit finishing) now handles actual
wenzelm@10391
  1918
rules as well;
wenzelm@10391
  1919
wenzelm@10391
  1920
* Pure: improved 'obtain' --- moved to Pure, insert "that" into
wenzelm@10391
  1921
initial goal, declare "that" only as Pure intro (only for single
wenzelm@10391
  1922
steps); the "that" rule assumption may now be involved in implicit
wenzelm@10391
  1923
finishing, thus ".." becomes a feasible for trivial obtains;
wenzelm@10391
  1924
wenzelm@10391
  1925
* Pure: default proof step now includes 'intro_classes'; thus trivial
wenzelm@10391
  1926
instance proofs may be performed by "..";
wenzelm@10391
  1927
wenzelm@10391
  1928
* Pure: ?thesis / ?this / "..." now work for pure meta-level
wenzelm@10391
  1929
statements as well;
wenzelm@10306
  1930
wenzelm@11097
  1931
* Pure: more robust selection of calculational rules;
wenzelm@11097
  1932
wenzelm@10858
  1933
* Pure: the builtin notion of 'finished' goal now includes the ==-refl
wenzelm@10858
  1934
rule (as well as the assumption rule);
wenzelm@10858
  1935
wenzelm@10858
  1936
* Pure: 'thm_deps' command visualizes dependencies of theorems and
wenzelm@10858
  1937
lemmas, using the graph browser tool;
wenzelm@10858
  1938
wenzelm@10944
  1939
* Pure: predict failure of "show" in interactive mode;
wenzelm@10944
  1940
wenzelm@11016
  1941
* Pure: 'thms_containing' now takes actual terms as arguments;
wenzelm@11016
  1942
wenzelm@10401
  1943
* HOL: improved method 'induct' --- now handles non-atomic goals
wenzelm@10401
  1944
(potential INCOMPATIBILITY); tuned error handling;
wenzelm@10401
  1945
wenzelm@10557
  1946
* HOL: cases and induct rules now provide explicit hints about the
wenzelm@10547
  1947
number of facts to be consumed (0 for "type" and 1 for "set" rules);
wenzelm@10547
  1948
any remaining facts are inserted into the goal verbatim;
wenzelm@10547
  1949
wenzelm@10858
  1950
* HOL: local contexts (aka cases) may now contain term bindings as
wenzelm@10858
  1951
well; the 'cases' and 'induct' methods new provide a ?case binding for
wenzelm@10858
  1952
the result to be shown in each case;
wenzelm@10858
  1953
wenzelm@10770
  1954
* HOL: added 'recdef_tc' command;
wenzelm@10770
  1955
wenzelm@11016
  1956
* isatool convert assists in eliminating legacy ML scripts;
wenzelm@11016
  1957
wenzelm@10306
  1958
wenzelm@10245
  1959
*** HOL ***
wenzelm@10245
  1960
wenzelm@10245
  1961
* HOL/Library: a collection of generic theories to be used together
wenzelm@10245
  1962
with main HOL; the theory loader path already includes this directory
wenzelm@10245
  1963
by default; the following existing theories have been moved here:
wenzelm@10245
  1964
HOL/Induct/Multiset, HOL/Induct/Acc (as Accessible_Part), HOL/While
wenzelm@10337
  1965
(as While_Combinator), HOL/Lex/Prefix (as List_Prefix);
wenzelm@10245
  1966
wenzelm@10966
  1967
* HOL/Unix: "Some aspects of Unix file-system security", a typical
wenzelm@10966
  1968
modelling and verification task performed in Isabelle/HOL +
wenzelm@10966
  1969
Isabelle/Isar + Isabelle document preparation (by Markus Wenzel).
wenzelm@10966
  1970
wenzelm@11094
  1971
* HOL/Algebra: special summation operator SUM no longer exists, it has
wenzelm@11094
  1972
been replaced by setsum; infix 'assoc' now has priority 50 (like
wenzelm@11094
  1973
'dvd'); axiom 'one_not_zero' has been moved from axclass 'ring' to
wenzelm@11094
  1974
'domain', this makes the theory consistent with mathematical
wenzelm@11094
  1975
literature;
wenzelm@11094
  1976
wenzelm@10514
  1977
* HOL basics: added overloaded operations "inverse" and "divide"
wenzelm@10726
  1978
(infix "/"), syntax for generic "abs" operation, generic summation
wenzelm@11094
  1979
operator \<Sum>;
wenzelm@10452
  1980
wenzelm@10391
  1981
* HOL/typedef: simplified package, provide more useful rules (see also
wenzelm@10391
  1982
HOL/subset.thy);
wenzelm@10391
  1983
wenzelm@10915
  1984
* HOL/datatype: induction rule for arbitrarily branching datatypes is
wenzelm@10915
  1985
now expressed as a proper nested rule (old-style tactic scripts may
wenzelm@10915
  1986
require atomize_strip_tac to cope with non-atomic premises);
wenzelm@10915
  1987
wenzelm@10915
  1988
* HOL: renamed theory "Prod" to "Product_Type", renamed "split" rule
wenzelm@10915
  1989
to "split_conv" (old name still available for compatibility);
wenzelm@10915
  1990
wenzelm@10915
  1991
* HOL: improved concrete syntax for strings (e.g. allows translation
wenzelm@10915
  1992
rules with string literals);
wenzelm@10915
  1993
paulson@12245
  1994
* HOL-Real-Hyperreal: this extends HOL-Real with the hyperreals
paulson@12245
  1995
 and Fleuriot's mechanization of analysis, including the transcendental
paulson@12245
  1996
 functions for the reals;
paulson@10756
  1997
wenzelm@11094
  1998
* HOL/Real, HOL/Hyperreal: improved arithmetic simplification;
wenzelm@10391
  1999
wenzelm@10858
  2000
paulson@10474
  2001
*** CTT ***
paulson@10474
  2002
wenzelm@10547
  2003
* CTT: x-symbol support for Pi, Sigma, -->, : (membership); note that
wenzelm@10547
  2004
"lam" is displayed as TWO lambda-symbols
paulson@10474
  2005
wenzelm@10547
  2006
* CTT: theory Main now available, containing everything (that is, Bool
wenzelm@10547
  2007
and Arith);
wenzelm@10547
  2008
paulson@10474
  2009
wenzelm@10391
  2010
*** General ***
wenzelm@10391
  2011
wenzelm@10547
  2012
* Pure: the Simplifier has been implemented properly as a derived rule
wenzelm@10547
  2013
outside of the actual kernel (at last!); the overall performance
wenzelm@10547
  2014
penalty in practical applications is about 50%, while reliability of
wenzelm@10547
  2015
the Isabelle inference kernel has been greatly improved;
wenzelm@10547
  2016
wenzelm@11112
  2017
* print modes "brackets" and "no_brackets" control output of nested =>
wenzelm@11112
  2018
(types) and ==> (props); the default behaviour is "brackets";
wenzelm@11112
  2019
wenzelm@10391
  2020
* Provers: fast_tac (and friends) now handle actual object-logic rules
wenzelm@10391
  2021
as assumptions as well;
wenzelm@10391
  2022
wenzelm@11124
  2023
* system: support Poly/ML 4.0;
wenzelm@11124
  2024
wenzelm@11124
  2025
* system: isatool install handles KDE version 1 or 2;
wenzelm@11124
  2026
wenzelm@10391
  2027
wenzelm@10245
  2028
wenzelm@10103
  2029
New in Isabelle99-1 (October 2000)
wenzelm@10103
  2030
----------------------------------
wenzelm@8015
  2031
wenzelm@10003
  2032
*** Overview of INCOMPATIBILITIES ***
paulson@8014
  2033
wenzelm@8848
  2034
* HOL: simplification of natural numbers is much changed; to partly
wenzelm@8848
  2035
recover the old behaviour (e.g. to prevent n+n rewriting to #2*n)
wenzelm@8848
  2036
issue the following ML commands:
wenzelm@8848
  2037
wenzelm@8848
  2038
  Delsimprocs Nat_Numeral_Simprocs.cancel_numerals;
wenzelm@8848
  2039
  Delsimprocs [Nat_Numeral_Simprocs.combine_numerals];
paulson@8788
  2040
wenzelm@10129
  2041
* HOL: simplification no longer dives into case-expressions; this is
wenzelm@10129
  2042
controlled by "t.weak_case_cong" for each datatype t;
paulson@8967
  2043
wenzelm@10003
  2044
* HOL: nat_less_induct renamed to less_induct;
wenzelm@10003
  2045
wenzelm@10003
  2046
* HOL: systematic renaming of the SOME (Eps) rules, may use isatool
wenzelm@10003
  2047
fixsome to patch .thy and .ML sources automatically;
wenzelm@10003
  2048
wenzelm@10003
  2049
  select_equality  -> some_equality
wenzelm@10003
  2050
  select_eq_Ex     -> some_eq_ex
wenzelm@10003
  2051
  selectI2EX       -> someI2_ex
wenzelm@10003
  2052
  selectI2         -> someI2
wenzelm@10003
  2053
  selectI          -> someI
wenzelm@10003
  2054
  select1_equality -> some1_equality
wenzelm@10003
  2055
  Eps_sym_eq       -> some_sym_eq_trivial
wenzelm@10003
  2056
  Eps_eq           -> some_eq_trivial
wenzelm@10003
  2057
wenzelm@10003
  2058
* HOL: exhaust_tac on datatypes superceded by new generic case_tac;
wenzelm@10003
  2059
wenzelm@10003
  2060
* HOL: removed obsolete theorem binding expand_if (refer to split_if
wenzelm@10003
  2061
instead);
wenzelm@10003
  2062
wenzelm@10003
  2063
* HOL: the recursion equations generated by 'recdef' are now called
wenzelm@10003
  2064
f.simps instead of f.rules;
wenzelm@10003
  2065
wenzelm@10003
  2066
* HOL: qed_spec_mp now also handles bounded ALL as well;
wenzelm@10003
  2067
wenzelm@10003
  2068
* HOL: 0 is now overloaded, so the type constraint ":: nat" may
wenzelm@10003
  2069
sometimes be needed;
wenzelm@10003
  2070
wenzelm@10003
  2071
* HOL: the constant for "f``x" is now "image" rather than "op ``";
paulson@8014
  2072
paulson@10065
  2073
* HOL: the constant for "f-``x" is now "vimage" rather than "op -``";
paulson@10065
  2074
wenzelm@9330
  2075
* HOL: the disjoint sum is now "<+>" instead of "Plus"; the cartesian
wenzelm@9330
  2076
product is now "<*>" instead of "Times"; the lexicographic product is
wenzelm@9330
  2077
now "<*lex*>" instead of "**";
nipkow@8705
  2078
wenzelm@10003
  2079
* HOL: theory Sexp is now in HOL/Induct examples (it used to be part
wenzelm@10003
  2080
of main HOL, but was unused); better use HOL's datatype package;
paulson@9971
  2081
wenzelm@10137
  2082
* HOL: removed "symbols" syntax for constant "override" of theory Map;
wenzelm@10137
  2083
the old syntax may be recovered as follows:
wenzelm@10137
  2084
wenzelm@10137
  2085
  syntax (symbols)
wenzelm@10137
  2086
    override  :: "('a ~=> 'b) => ('a ~=> 'b) => ('a ~=> 'b)"
wenzelm@10137
  2087
      (infixl "\\<oplus>" 100)
wenzelm@10137
  2088
wenzelm@8848
  2089
* HOL/Real: "rabs" replaced by overloaded "abs" function;
wenzelm@8848
  2090
wenzelm@8887
  2091
* HOL/ML: even fewer consts are declared as global (see theories Ord,
wenzelm@8887
  2092
Lfp, Gfp, WF); this only affects ML packages that refer to const names
wenzelm@8887
  2093
internally;
wenzelm@8887
  2094
wenzelm@10003
  2095
* HOL and ZF: syntax for quotienting wrt an equivalence relation
wenzelm@10003
  2096
changed from A/r to A//r;
wenzelm@9908
  2097
wenzelm@10003
  2098
* ZF: new treatment of arithmetic (nat & int) may break some old
wenzelm@10003
  2099
proofs;
paulson@9388
  2100
wenzelm@10003
  2101
* Isar: renamed some attributes (RS -> THEN, simplify -> simplified,
wenzelm@10003
  2102
rulify -> rule_format, elimify -> elim_format, ...);
paulson@9542
  2103
wenzelm@9941
  2104
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  2105
intro/intro!/intro!! flags to intro!/intro/intro? (in most cases, one
wenzelm@9937
  2106
should have to change intro!! to intro? only); replaced "delrule" by
wenzelm@9937
  2107
"rule del";
wenzelm@9437
  2108
wenzelm@9612
  2109
* Isar/HOL: renamed "intrs" to "intros" in inductive definitions;
wenzelm@9612
  2110
wenzelm@9437
  2111
* Provers: strengthened force_tac by using new first_best_tac;
oheimb@9402
  2112
wenzelm@10003
  2113
* LaTeX document preparation: several changes of isabelle.sty (see
wenzelm@10003
  2114
lib/texinputs);
wenzelm@8729
  2115
paulson@8014
  2116
wenzelm@8487
  2117
*** Document preparation ***
wenzelm@8358
  2118
wenzelm@9198
  2119
* formal comments (text blocks etc.) in new-style theories may now
wenzelm@9753
  2120
contain antiquotations of thm/prop/term/typ/text to be presented
wenzelm@9753
  2121
according to latex print mode; concrete syntax is like this:
wenzelm@9753
  2122
@{term[show_types] "f(x) = a + x"};
wenzelm@9198
  2123
wenzelm@8358
  2124
* isatool mkdir provides easy setup of Isabelle session directories,
wenzelm@8518
  2125
including proper document sources;
wenzelm@8358
  2126
wenzelm@8358
  2127
* generated LaTeX sources are now deleted after successful run
wenzelm@8358
  2128
(isatool document -c); may retain a copy somewhere else via -D option
wenzelm@8358
  2129
of isatool usedir;
wenzelm@8358
  2130
wenzelm@8566
  2131
* isatool usedir -D now lets isatool latex -o sty update the Isabelle
wenzelm@10003
  2132
style files, achieving self-contained LaTeX sources and simplifying
wenzelm@10003
  2133
LaTeX debugging;
wenzelm@8566
  2134
wenzelm@8518
  2135
* old-style theories now produce (crude) LaTeX output as well;
wenzelm@8358
  2136
wenzelm@9057
  2137
* browser info session directories are now self-contained (may be put
wenzelm@9437
  2138
on WWW server seperately); improved graphs of nested sessions; removed
wenzelm@9437
  2139
graph for 'all sessions';
wenzelm@9057
  2140
wenzelm@10003
  2141
* several improvements in isabelle style files; \isabellestyle{it}
wenzelm@10003
  2142
produces fake math mode output; \isamarkupheader is now \section by
wenzelm@10003
  2143
default; see lib/texinputs/isabelle.sty etc.;
wenzelm@9489
  2144
wenzelm@8358
  2145
wenzelm@8184
  2146
*** Isar ***
wenzelm@8184
  2147
wenzelm@10003
  2148
* Isar/Pure: local results and corresponding term bindings are now
wenzelm@10003
  2149
subject to Hindley-Milner polymorphism (similar to ML); this
wenzelm@10003
  2150
accommodates incremental type-inference very nicely;
wenzelm@8283
  2151
wenzelm@10003
  2152
* Isar/Pure: new derived language element 'obtain' supports
wenzelm@10003
  2153
generalized existence reasoning;
wenzelm@8621
  2154
wenzelm@10003
  2155
* Isar/Pure: new calculational elements 'moreover' and 'ultimately'
wenzelm@10003
  2156
support accumulation of results, without applying any rules yet;
wenzelm@10003
  2157
useful to collect intermediate results without explicit name
wenzelm@10003
  2158
references, and for use with transitivity rules with more than 2
wenzelm@10003
  2159
premises;
wenzelm@8184
  2160
wenzelm@10003
  2161
* Isar/Pure: scalable support for case-analysis type proofs: new
wenzelm@10003
  2162
'case' language element refers to local contexts symbolically, as
wenzelm@10003
  2163
produced by certain proof methods; internally, case names are attached
wenzelm@10003
  2164
to theorems as "tags";
wenzelm@8440
  2165
wenzelm@10003
  2166
* Isar/Pure: theory command 'hide' removes declarations from
wenzelm@9330
  2167
class/type/const name spaces;
wenzelm@9330
  2168
wenzelm@10003
  2169
* Isar/Pure: theory command 'defs' supports option "(overloaded)" to
wenzelm@9330
  2170
indicate potential overloading;
wenzelm@9330
  2171
wenzelm@10003
  2172
* Isar/Pure: changed syntax of local blocks from {{ }} to { };
wenzelm@8921
  2173
wenzelm@10003
  2174
* Isar/Pure: syntax of sorts made 'inner', i.e. have to write
wenzelm@10003
  2175
"{a,b,c}" instead of {a,b,c};
wenzelm@9612
  2176
wenzelm@10003
  2177
* Isar/Pure now provides its own version of intro/elim/dest
wenzelm@10003
  2178
attributes; useful for building new logics, but beware of confusion
wenzelm@10003
  2179
with the version in Provers/classical;
wenzelm@8921
  2180
wenzelm@10003
  2181
* Isar/Pure: the local context of (non-atomic) goals is provided via
wenzelm@10003
  2182
case name 'antecedent';
wenzelm@8621
  2183
wenzelm@10003
  2184
* Isar/Pure: removed obsolete 'transfer' attribute (transfer of thms
wenzelm@10003
  2185
to the current context is now done automatically);
wenzelm@8991
  2186
wenzelm@10003
  2187
* Isar/Pure: theory command 'method_setup' provides a simple interface
wenzelm@10003
  2188
for definining proof methods in ML;
wenzelm@9011
  2189
wenzelm@10003
  2190
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  2191
intro/intro!/intro!! flags to intro!/intro/intro? (INCOMPATIBILITY, in
wenzelm@9941
  2192
most cases, one should have to change intro!! to intro? only);
wenzelm@9941
  2193
replaced "delrule" by "rule del";
wenzelm@8283
  2194
wenzelm@10003
  2195
* Isar/Provers: new 'hypsubst' method, plain 'subst' method and
wenzelm@10003
  2196
'symmetric' attribute (the latter supercedes [RS sym]);
wenzelm@9612
  2197
wenzelm@10003
  2198
* Isar/Provers: splitter support (via 'split' attribute and 'simp'
wenzelm@10003
  2199
method modifier); 'simp' method: 'only:' modifier removes loopers as
wenzelm@10003
  2200
well (including splits);
wenzelm@10003
  2201
wenzelm@10003
  2202
* Isar/Provers: Simplifier and Classical methods now support all kind
wenzelm@10003
  2203
of modifiers used in the past, including 'cong', 'iff', etc.
wenzelm@10003
  2204
wenzelm@10003
  2205
* Isar/Provers: added 'fastsimp' and 'clarsimp' methods (combination
wenzelm@10003
  2206
of Simplifier and Classical reasoner);
wenzelm@10003
  2207
wenzelm@10003
  2208
* Isar/HOL: new proof method 'cases' and improved version of 'induct'
wenzelm@10003
  2209
now support named cases; major packages (inductive, datatype, primrec,
wenzelm@10003
  2210
recdef) support case names and properly name parameters;
wenzelm@10003
  2211
wenzelm@10003
  2212
* Isar/HOL: new transitivity rules for substitution in inequalities --
wenzelm@10003
  2213
monotonicity conditions are extracted to be proven at end of
wenzelm@10003
  2214
calculations;
wenzelm@10003
  2215
wenzelm@10003
  2216
* Isar/HOL: removed 'case_split' thm binding, should use 'cases' proof
wenzelm@10003
  2217
method anyway;
wenzelm@10003
  2218
wenzelm@10003
  2219
* Isar/HOL: removed old expand_if = split_if; theorems if_splits =
wenzelm@10003
  2220
split_if split_if_asm; datatype package provides theorems foo.splits =
wenzelm@10003
  2221
foo.split foo.split_asm for each datatype;
wenzelm@10003
  2222
wenzelm@10003
  2223
* Isar/HOL: tuned inductive package, rename "intrs" to "intros"
wenzelm@10003
  2224
(potential INCOMPATIBILITY), emulation of mk_cases feature for proof
wenzelm@10003
  2225
scripts: new 'inductive_cases' command and 'ind_cases' method; (Note:
wenzelm@10003
  2226
use "(cases (simplified))" method in proper proof texts);
wenzelm@10003
  2227
wenzelm@10003
  2228
* Isar/HOL: added global 'arith_split' attribute for 'arith' method;
wenzelm@10003
  2229
wenzelm@10003
  2230
* Isar: names of theorems etc. may be natural numbers as well;
wenzelm@10003
  2231
wenzelm@10003
  2232
* Isar: 'pr' command: optional arguments for goals_limit and
wenzelm@9724
  2233
ProofContext.prems_limit; no longer prints theory contexts, but only
wenzelm@9724
  2234
proof states;
wenzelm@8487
  2235
wenzelm@10003
  2236
* Isar: diagnostic commands 'pr', 'thm', 'prop', 'term', 'typ' admit
wenzelm@8518
  2237
additional print modes to be specified; e.g. "pr(latex)" will print
wenzelm@8518
  2238
proof state according to the Isabelle LaTeX style;
wenzelm@8487
  2239
wenzelm@10003
  2240
* Isar: improved support for emulating tactic scripts, including proof
wenzelm@9612
  2241
methods 'rule_tac' etc., 'cut_tac', 'thin_tac', 'subgoal_tac',
wenzelm@9612
  2242
'rename_tac', 'rotate_tac', 'tactic', and 'case_tac' / 'induct_tac'
wenzelm@9612
  2243
(for HOL datatypes);
wenzelm@8534
  2244
wenzelm@10003
  2245
* Isar: simplified (more robust) goal selection of proof methods: 1st
wenzelm@10003
  2246
goal, all goals, or explicit goal specifier (tactic emulation); thus
wenzelm@10003
  2247
'proof method scripts' have to be in depth-first order;
wenzelm@8673
  2248
wenzelm@10003
  2249
* Isar: tuned 'let' syntax: replaced 'as' keyword by 'and';
wenzelm@8729
  2250
wenzelm@10003
  2251
* Isar: removed 'help' command, which hasn't been too helpful anyway;
wenzelm@10003
  2252
should instead use individual commands for printing items
wenzelm@10003
  2253
(print_commands, print_methods etc.);
wenzelm@9224
  2254
wenzelm@10003
  2255
* Isar: added 'nothing' --- the empty list of theorems;
wenzelm@9239
  2256
wenzelm@8184
  2257
paulson@8014
  2258
*** HOL ***
paulson@8014
  2259
wenzelm@10080
  2260
* HOL/MicroJava: formalization of a fragment of Java, together with a
wenzelm@10080
  2261
corresponding virtual machine and a specification of its bytecode
wenzelm@10080
  2262
verifier and a lightweight bytecode verifier, including proofs of
wenzelm@10080
  2263
type-safety; by Gerwin Klein, Tobias Nipkow, David von Oheimb, and
wenzelm@10080
  2264
Cornelia Pusch (see also the homepage of project Bali at
wenzelm@10080
  2265
http://isabelle.in.tum.de/Bali/);
wenzelm@10080
  2266
wenzelm@8518
  2267
* HOL/Algebra: new theory of rings and univariate polynomials, by
wenzelm@8518
  2268
Clemens Ballarin;
paulson@8014
  2269
wenzelm@10157
  2270
* HOL/NumberTheory: fundamental Theorem of Arithmetic, Chinese
wenzelm@10003
  2271
Remainder Theorem, Fermat/Euler Theorem, Wilson's Theorem, by Thomas M
wenzelm@10003
  2272
Rasmussen;
wenzelm@8007
  2273
wenzelm@10157
  2274
* HOL/Lattice: fundamental concepts of lattice theory and order
wenzelm@10157
  2275
structures, including duals, properties of bounds versus algebraic
wenzelm@10157
  2276
laws, lattice operations versus set-theoretic ones, the Knaster-Tarski
wenzelm@10157
  2277
Theorem for complete lattices etc.; may also serve as a demonstration
wenzelm@10157
  2278
for abstract algebraic reasoning using axiomatic type classes, and
wenzelm@10157
  2279
mathematics-style proof in Isabelle/Isar; by Markus Wenzel;
wenzelm@10157
  2280
wenzelm@10003
  2281
* HOL/Prolog: a (bare-bones) implementation of Lambda-Prolog, by David
wenzelm@10003
  2282
von Oheimb;
wenzelm@8570
  2283
wenzelm@10164
  2284
* HOL/IMPP: extension of IMP with local variables and mutually
wenzelm@10164
  2285
recursive procedures, by David von Oheimb;
wenzelm@10164
  2286
wenzelm@10003
  2287
* HOL/Lambda: converted into new-style theory and document;
paulson@9542
  2288
wenzelm@10003
  2289
* HOL/ex/Multiquote: example of multiple nested quotations and
wenzelm@10003
  2290
anti-quotations -- basically a generalized version of de-Bruijn
wenzelm@10003
  2291
representation; very useful in avoiding lifting of operations;
wenzelm@8848
  2292
wenzelm@9612
  2293
* HOL/record: added general record equality rule to simpset; fixed
wenzelm@9612
  2294
select-update simplification procedure to handle extended records as
wenzelm@9612
  2295
well; admit "r" as field name;
paulson@9542
  2296
paulson@8967
  2297
* HOL: 0 is now overloaded over the new sort "zero", allowing its use with
paulson@8967
  2298
other numeric types and also as the identity of groups, rings, etc.;
paulson@8967
  2299
paulson@8967
  2300
* HOL: new axclass plus_ac0 for addition with the AC-laws and 0 as identity.
paulson@8967
  2301
Types nat and int belong to this axclass;
paulson@8967
  2302
wenzelm@10003
  2303
* HOL: greatly improved simplification involving numerals of type nat, int, real:
paulson@8788
  2304
   (i + #8 + j) = Suc k simplifies to  #7 + (i + j) = k
paulson@8832
  2305
   i*j + k + j*#3*i     simplifies to  #4*(i*j) + k
paulson@8832
  2306
  two terms #m*u and #n*u are replaced by #(m+n)*u
paulson@8832
  2307
    (where #m, #n and u can implicitly be 1; this is simproc combine_numerals)
paulson@8832
  2308
  and the term/formula #m*u+x ~~ #n*u+y simplifies simplifies to #(m-n)+x ~~ y
paulson@8832
  2309
    or x ~~ #(n-m)+y, where ~~ is one of = < <= or - (simproc cancel_numerals);
paulson@8736
  2310
wenzelm@10003
  2311
* HOL: meson_tac is available (previously in ex/meson.ML); it is a
wenzelm@10003
  2312
powerful prover for predicate logic but knows nothing of clasets; see
wenzelm@10003
  2313
ex/mesontest.ML and ex/mesontest2.ML for example applications;
paulson@9835
  2314
wenzelm@8848
  2315
* HOL: new version of "case_tac" subsumes both boolean case split and
wenzelm@8440
  2316
"exhaust_tac" on datatypes; INCOMPATIBILITY: exhaust_tac no longer
wenzelm@8518
  2317
exists, may define val exhaust_tac = case_tac for ad-hoc portability;
wenzelm@8440
  2318
wenzelm@8848
  2319
* HOL: simplification no longer dives into case-expressions: only the
wenzelm@10129
  2320
selector expression is simplified, but not the remaining arms; to
wenzelm@10129
  2321
enable full simplification of case-expressions for datatype t, you may
wenzelm@10129
  2322
remove t.weak_case_cong from the simpset, either globally (Delcongs
wenzelm@10129
  2323
[thm"t.weak_case_cong"];) or locally (delcongs [...]).
nipkow@8603
  2324
wenzelm@8848
  2325
* HOL/recdef: the recursion equations generated by 'recdef' for
wenzelm@8848
  2326
function 'f' are now called f.simps instead of f.rules; if all
wenzelm@8848
  2327
termination conditions are proved automatically, these simplification
wenzelm@8848
  2328
rules are added to the simpset, as in primrec; rules may be named
wenzelm@8848
  2329
individually as well, resulting in a separate list of theorems for
wenzelm@8848
  2330
each equation;
wenzelm@8848
  2331
wenzelm@9489
  2332
* HOL/While is a new theory that provides a while-combinator. It
wenzelm@9489
  2333
permits the definition of tail-recursive functions without the
wenzelm@9489
  2334
provision of a termination measure. The latter is necessary once the
wenzelm@9489
  2335
invariant proof rule for while is applied.
nipkow@9457
  2336
wenzelm@10003
  2337
* HOL: new (overloaded) notation for the set of elements below/above
wenzelm@10003
  2338
some element: {..u}, {..u(}, {l..}, {)l..}. See theory SetInterval.
nipkow@8925
  2339
wenzelm@8848
  2340
* HOL: theorems impI, allI, ballI bound as "strip";
wenzelm@8848
  2341
wenzelm@10003
  2342
* HOL: new tactic induct_thm_tac: thm -> string -> int -> tactic
nipkow@9746
  2343
induct_tac th "x1 ... xn" expects th to have a conclusion of the form
nipkow@9746
  2344
P v1 ... vn and abbreviates res_inst_tac [("v1","x1"),...,("vn","xn")] th;
nipkow@9746
  2345
wenzelm@10003
  2346
* HOL/Real: "rabs" replaced by overloaded "abs" function;
nipkow@9737
  2347
wenzelm@10003
  2348
* HOL: theory Sexp now in HOL/Induct examples (it used to be part of
wenzelm@10003
  2349
main HOL, but was unused);
nipkow@8626
  2350
wenzelm@10003
  2351
* HOL: fewer consts declared as global (e.g. have to refer to
wenzelm@10003
  2352
"Lfp.lfp" instead of "lfp" internally; affects ML packages only);
wenzelm@8887
  2353
wenzelm@10003
  2354
* HOL: tuned AST representation of nested pairs, avoiding bogus output
wenzelm@10003
  2355
in case of overlap with user translations (e.g. judgements over
wenzelm@10003
  2356
tuples); (note that the underlying logical represenation is still
wenzelm@10003
  2357
bogus);
wenzelm@9349
  2358
nipkow@8412
  2359
paulson@9542
  2360
*** ZF ***
paulson@9542
  2361
wenzelm@10003
  2362
* ZF: simplification automatically cancels common terms in arithmetic
wenzelm@10003
  2363
expressions over nat and int;
paulson@9542
  2364
wenzelm@10003
  2365
* ZF: new treatment of nat to minimize type-checking: all operators
wenzelm@10003
  2366
coerce their operands to a natural number using the function natify,
wenzelm@10003
  2367
making the algebraic laws unconditional;
paulson@9542
  2368
wenzelm@10003
  2369
* ZF: as above, for int: operators coerce their operands to an integer
wenzelm@10003
  2370
using the function intify;
paulson@9542
  2371
wenzelm@10003
  2372
* ZF: the integer library now contains many of the usual laws for the
wenzelm@10003
  2373
orderings, including $<=, and monotonicity laws for $+ and $*;
paulson@9542
  2374
wenzelm@10003
  2375
* ZF: new example ZF/ex/NatSum to demonstrate integer arithmetic
wenzelm@10003
  2376
simplification;
paulson@9542
  2377
wenzelm@10003
  2378
* FOL and ZF: AddIffs now available, giving theorems of the form P<->Q
wenzelm@10003
  2379
to the simplifier and classical reasoner simultaneously;
paulson@9388
  2380
paulson@9388
  2381
wenzelm@8358
  2382
*** General ***
wenzelm@8358
  2383
wenzelm@10003
  2384
* Provers: blast_tac now handles actual object-logic rules as
wenzelm@10003
  2385
assumptions; note that auto_tac uses blast_tac internally as well;
wenzelm@10003
  2386
wenzelm@10003
  2387
* Provers: new functions rulify/rulify_no_asm: thm -> thm for turning
wenzelm@10003
  2388
outer -->/All/Ball into ==>/!!; qed_spec_mp now uses rulify_no_asm;
wenzelm@10003
  2389
wenzelm@9941
  2390
* Provers: delrules now handles destruct rules as well (no longer need
wenzelm@9941
  2391
explicit make_elim);
wenzelm@9941
  2392
wenzelm@10003
  2393
* Provers: Blast_tac now warns of and ignores "weak elimination rules" e.g.
wenzelm@10003
  2394
  [| inj ?f;          ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  2395
use instead the strong form,
wenzelm@10003
  2396
  [| inj ?f; ~ ?W ==> ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  2397
in HOL, FOL and ZF the function cla_make_elim will create such rules
wenzelm@10003
  2398
from destruct-rules;
wenzelm@9489
  2399
wenzelm@9709
  2400
* Provers: Simplifier.easy_setup provides a fast path to basic
wenzelm@9709
  2401
Simplifier setup for new object-logics;
wenzelm@9349
  2402
wenzelm@9709
  2403
* Pure: AST translation rules no longer require constant head on LHS;
wenzelm@8729
  2404
wenzelm@9709
  2405
* Pure: improved name spaces: ambiguous output is qualified; support
wenzelm@9709
  2406
for hiding of names;
wenzelm@8358
  2407
wenzelm@10003
  2408
* system: smart setup of canonical ML_HOME, ISABELLE_INTERFACE, and
wenzelm@10003
  2409
XSYMBOL_HOME; no longer need to do manual configuration in most
wenzelm@10003
  2410
situations;
wenzelm@10003
  2411
wenzelm@9709
  2412
* system: compression of ML heaps images may now be controlled via -c
wenzelm@9709
  2413
option of isabelle and isatool usedir (currently only observed by
wenzelm@9709
  2414
Poly/ML);
wenzelm@9709
  2415
wenzelm@9981
  2416
* system: isatool installfonts may handle X-Symbol fonts as well (very
wenzelm@9981
  2417
useful for remote X11);
wenzelm@9981
  2418
wenzelm@9709
  2419
* system: provide TAGS file for Isabelle sources;
wenzelm@9052
  2420
wenzelm@9288
  2421
* ML: infix 'OF' is a version of 'MRS' with more appropriate argument
wenzelm@9288
  2422
order;
wenzelm@9288
  2423
wenzelm@8994
  2424
* ML: renamed flags Syntax.trace_norm_ast to Syntax.trace_ast; global
wenzelm@8994
  2425
timing flag supersedes proof_timing and Toplevel.trace;
wenzelm@8994
  2426
wenzelm@10003
  2427
* ML: new combinators |>> and |>>> for incremental transformations
wenzelm@10003
  2428
with secondary results (e.g. certain theory extensions):
wenzelm@10003
  2429
wenzelm@9330
  2430
* ML: PureThy.add_defs gets additional argument to indicate potential
wenzelm@9330
  2431
overloading (usually false);
wenzelm@9330
  2432
wenzelm@10003
  2433
* ML: PureThy.add_thms/add_axioms/add_defs now return theorems as
wenzelm@10003
  2434
results;
wenzelm@8440
  2435
wenzelm@8358
  2436
wenzelm@8015
  2437
wenzelm@7986
  2438
New in Isabelle99 (October 1999)
wenzelm@7986
  2439
--------------------------------
oheimb@4649
  2440
paulson@5931
  2441
*** Overview of INCOMPATIBILITIES (see below for more details) ***
paulson@5931
  2442
paulson@6922
  2443
* HOL: The THEN and ELSE parts of conditional expressions (if P then x else y)
paulson@6922
  2444
are no longer simplified.  (This allows the simplifier to unfold recursive
paulson@6922
  2445
functional programs.)  To restore the old behaviour, declare
wenzelm@7215
  2446
wenzelm@7215
  2447
    Delcongs [if_weak_cong];
paulson@6922
  2448
wenzelm@6269
  2449
* HOL: Removed the obsolete syntax "Compl A"; use -A for set
wenzelm@6269
  2450
complement;
paulson@5931
  2451
wenzelm@6269
  2452
* HOL: the predicate "inj" is now defined by translation to "inj_on";
paulson@6174
  2453
berghofe@7847
  2454
* HOL/datatype: mutual_induct_tac no longer exists --
berghofe@7847
  2455
  use induct_tac "x_1 ... x_n" instead of mutual_induct_tac ["x_1", ..., "x_n"]
berghofe@7847
  2456
wenzelm@6386
  2457
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  2458
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  2459
wenzelm@6269
  2460
* ZF: The con_defs part of an inductive definition may no longer refer
wenzelm@6269
  2461
to constants declared in the same theory;
nipkow@6057
  2462
wenzelm@6269
  2463
* HOL, ZF: the function mk_cases, generated by the inductive
wenzelm@6269
  2464
definition package, has lost an argument.  To simplify its result, it
wenzelm@6269
  2465
uses the default simpset instead of a supplied list of theorems.
paulson@6141
  2466
wenzelm@7215
  2467
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  2468
nipkow@7619
  2469
* Simplifier: the type of the infix ML functions
wenzelm@8729
  2470
        setSSolver addSSolver setSolver addSolver
nipkow@7619
  2471
is now  simpset * solver -> simpset  where `solver' is a new abstract type
nipkow@7619
  2472
for packaging solvers. A solver is created via
wenzelm@8729
  2473
        mk_solver: string -> (thm list -> int -> tactic) -> solver
nipkow@7619
  2474
where the string argument is only a comment.
nipkow@6057
  2475
wenzelm@7647
  2476
paulson@6069
  2477
*** Proof tools ***
paulson@6069
  2478
wenzelm@6343
  2479
* Provers/Arith/fast_lin_arith.ML contains a functor for creating a
wenzelm@6343
  2480
decision procedure for linear arithmetic. Currently it is used for
wenzelm@7593
  2481
types `nat', `int', and `real' in HOL (see below); it can, should and
wenzelm@7593
  2482
will be instantiated for other types and logics as well.
paulson@6069
  2483
nipkow@7324
  2484
* The simplifier now accepts rewrite rules with flexible heads, eg
nipkow@7324
  2485
     hom ?f ==> ?f(?x+?y) = ?f ?x + ?f ?y
nipkow@7324
  2486
  They are applied like any rule with a non-pattern lhs, i.e. by first-order
nipkow@7324
  2487
  matching.
paulson@6069
  2488
wenzelm@7593
  2489
paulson@6014
  2490
*** General ***
paulson@6014
  2491
wenzelm@7986
  2492
* New Isabelle/Isar subsystem provides an alternative to traditional
wenzelm@7215
  2493
tactical theorem proving; together with the ProofGeneral/isar user
wenzelm@7215
  2494
interface it offers an interactive environment for developing human
wenzelm@7215
  2495
readable proof documents (Isar == Intelligible semi-automated
wenzelm@7886
  2496
reasoning); for further information see isatool doc isar-ref,
wenzelm@7986
  2497
src/HOL/Isar_examples and http://isabelle.in.tum.de/Isar/
wenzelm@7886
  2498
wenzelm@9612
  2499
* improved and simplified presentation of theories: better HTML markup
wenzelm@9612
  2500
(including colors), graph views in several sizes; isatool usedir now
wenzelm@9612
  2501
provides a proper interface for user theories (via -P option); actual
wenzelm@9612
  2502
document preparation based on (PDF)LaTeX is available as well (for
wenzelm@9612
  2503
new-style theories only); see isatool doc system for more information;
wenzelm@7215
  2504
wenzelm@7252
  2505
* native support for Proof General, both for classic Isabelle and
wenzelm@7986
  2506
Isabelle/Isar;
wenzelm@7215
  2507
wenzelm@7791
  2508
* ML function thm_deps visualizes dependencies of theorems and lemmas,
wenzelm@7791
  2509
using the graph browser tool;
wenzelm@7791
  2510
wenzelm@6751
  2511
* Isabelle manuals now also available as PDF;
wenzelm@6751
  2512
wenzelm@6449
  2513
* theory loader rewritten from scratch (may not be fully
wenzelm@6449
  2514
bug-compatible); old loadpath variable has been replaced by show_path,
wenzelm@6671
  2515
add_path, del_path, reset_path functions; new operations such as
wenzelm@7593
  2516
update_thy, touch_thy, remove_thy, use/update_thy_only (see also
wenzelm@7593
  2517
isatool doc ref);
wenzelm@6449
  2518
wenzelm@7215
  2519
* improved isatool install: option -k creates KDE application icon,
wenzelm@7215
  2520
option -p DIR installs standalone binaries;
wenzelm@7215
  2521
wenzelm@7215
  2522
* added ML_PLATFORM setting (useful for cross-platform installations);
wenzelm@7215
  2523
more robust handling of platform specific ML images for SML/NJ;
wenzelm@7215
  2524
wenzelm@7886
  2525
* the settings environment is now statically scoped, i.e. it is never
wenzelm@7986
  2526
created again in sub-processes invoked from isabelle, isatool, or
wenzelm@7886
  2527
Isabelle;
wenzelm@7886
  2528
wenzelm@7215
  2529
* path element specification '~~' refers to '$ISABELLE_HOME';
wenzelm@7215
  2530
wenzelm@6343
  2531
* in locales, the "assumes" and "defines" parts may be omitted if
wenzelm@6343
  2532
empty;
wenzelm@5973
  2533
wenzelm@6269
  2534
* new print_mode "xsymbols" for extended symbol support (e.g. genuine
wenzelm@6269
  2535
long arrows);
wenzelm@6259
  2536
wenzelm@6343
  2537
* new print_mode "HTML";
wenzelm@6343
  2538
wenzelm@6343
  2539
* new flag show_tags controls display of tags of theorems (which are
wenzelm@6343
  2540
basically just comments that may be attached by some tools);
wenzelm@6343
  2541
wenzelm@6461
  2542
* Isamode 2.6 requires patch to accomodate change of Isabelle font
wenzelm@6461
  2543
mode and goal output format:
wenzelm@6461
  2544
wenzelm@6461
  2545
diff -r Isamode-2.6/elisp/isa-load.el Isamode/elisp/isa-load.el
wenzelm@6461
  2546
244c244
wenzelm@6461
  2547
<       (list (isa-getenv "ISABELLE") "-msymbols" logic-name)
wenzelm@6461
  2548
---
wenzelm@6533
  2549
>       (list (isa-getenv "ISABELLE") "-misabelle_font" "-msymbols" logic-name)
wenzelm@6461
  2550
diff -r Isabelle-2.6/elisp/isa-proofstate.el Isamode/elisp/isa-proofstate.el
wenzelm@6461
  2551
181c181
wenzelm@6461
  2552
< (defconst proofstate-proofstart-regexp "^Level [0-9]+$"
wenzelm@6461
  2553
---
wenzelm@6461
  2554
> (defconst proofstate-proofstart-regexp "^Level [0-9]+"
wenzelm@6461
  2555
wenzelm@7450
  2556
* function bind_thms stores lists of theorems (cf. bind_thm);
wenzelm@7450
  2557
wenzelm@7593
  2558
* new shorthand tactics ftac, eatac, datac, fatac;
wenzelm@7593
  2559
wenzelm@7593
  2560
* qed (and friends) now accept "" as result name; in that case the
wenzelm@7986
  2561
theorem is not stored, but proper checks and presentation of the
wenzelm@7986
  2562
result still apply;
wenzelm@7593
  2563
wenzelm@7805
  2564
* theorem database now also indexes constants "Trueprop", "all",
wenzelm@7805
  2565
"==>", "=="; thus thms_containing, findI etc. may retrieve more rules;
wenzelm@7805
  2566
oheimb@6028
  2567
nipkow@6057
  2568
*** HOL ***
nipkow@6057
  2569
wenzelm@7215
  2570
** HOL arithmetic **
wenzelm@7215
  2571
wenzelm@6343
  2572
* There are now decision procedures for linear arithmetic over nat and
wenzelm@6343
  2573
int:
nipkow@6131
  2574
wenzelm@6343
  2575
1. arith_tac copes with arbitrary formulae involving `=', `<', `<=',
wenzelm@6343
  2576
`+', `-', `Suc', `min', `max' and numerical constants; other subterms
wenzelm@6343
  2577
are treated as atomic; subformulae not involving type `nat' or `int'
wenzelm@6343
  2578
are ignored; quantified subformulae are ignored unless they are
wenzelm@6343
  2579
positive universal or negative existential. The tactic has to be
wenzelm@6343
  2580
invoked by hand and can be a little bit slow. In particular, the
wenzelm@6343
  2581
running time is exponential in the number of occurrences of `min' and
wenzelm@6343
  2582
`max', and `-' on `nat'.
nipkow@6131
  2583
wenzelm@6343
  2584
2. fast_arith_tac is a cut-down version of arith_tac: it only takes
wenzelm@6343
  2585
(negated) (in)equalities among the premises and the conclusion into
wenzelm@6343
  2586
account (i.e. no compound formulae) and does not know about `min' and
wenzelm@6343
  2587
`max', and `-' on `nat'. It is fast and is used automatically by the
wenzelm@6343
  2588
simplifier.
nipkow@6131
  2589
wenzelm@6343
  2590
NB: At the moment, these decision procedures do not cope with mixed
wenzelm@6343
  2591
nat/int formulae where the two parts interact, such as `m < n ==>
wenzelm@6343
  2592
int(m) < int(n)'.
oheimb@6028
  2593
wenzelm@7215
  2594
* HOL/Numeral provides a generic theory of numerals (encoded
wenzelm@7313
  2595
efficiently as bit strings); setup for types nat/int/real is in place;
wenzelm@7215
  2596
INCOMPATIBILITY: since numeral syntax is now polymorphic, rather than
wenzelm@7215
  2597
int, existing theories and proof scripts may require a few additional
wenzelm@7215
  2598
type constraints;
paulson@7157
  2599
wenzelm@7215
  2600
* integer division and remainder can now be performed on constant
wenzelm@7215
  2601
arguments;
paulson@6922
  2602
wenzelm@7215
  2603
* many properties of integer multiplication, division and remainder
wenzelm@7215
  2604
are now available;
wenzelm@7215
  2605
paulson@7287
  2606
* An interface to the Stanford Validity Checker (SVC) is available through the
paulson@7287
  2607
tactic svc_tac.  Propositional tautologies and theorems of linear arithmetic
paulson@7287
  2608
are proved automatically.  SVC must be installed separately, and its results
paulson@7287
  2609
must be TAKEN ON TRUST (Isabelle does not check the proofs, but tags any
paulson@7287
  2610
invocation of the underlying oracle).  For SVC see
paulson@7444
  2611
  http://verify.stanford.edu/SVC
paulson@6922
  2612
wenzelm@7125
  2613
* IsaMakefile: the HOL-Real target now builds an actual image;
wenzelm@7125
  2614
wenzelm@7215
  2615
wenzelm@7215
  2616
** HOL misc **
wenzelm@7215
  2617
wenzelm@7595
  2618
* HOL/Real/HahnBanach: the Hahn-Banach theorem for real vector spaces
wenzelm@7595
  2619
(in Isabelle/Isar) -- by Gertrud Bauer;
wenzelm@7595
  2620
wenzelm@7691
  2621
* HOL/BCV: generic model of bytecode verification, i.e. data-flow
wenzelm@7691
  2622
analysis for assembly languages with subtypes;
wenzelm@7691
  2623
wenzelm@6278
  2624
* HOL/TLA (Lamport's Temporal Logic of Actions): major reorganization
wenzelm@6278
  2625
-- avoids syntactic ambiguities and treats state, transition, and
wenzelm@6278
  2626
temporal levels more uniformly; introduces INCOMPATIBILITIES due to
wenzelm@6278
  2627
changed syntax and (many) tactics;
wenzelm@6278
  2628
wenzelm@7791
  2629
* HOL/inductive: Now also handles more general introduction rules such
wenzelm@7791
  2630
  as "ALL y. (y, x) : r --> y : acc r ==> x : acc r"; monotonicity
wenzelm@7791
  2631
  theorems are now maintained within the theory (maintained via the
wenzelm@7791
  2632
  "mono" attribute);
berghofe@7780
  2633
wenzelm@7238
  2634
* HOL/datatype: Now also handles arbitrarily branching datatypes
wenzelm@7238
  2635
  (using function types) such as
wenzelm@7238
  2636
wenzelm@7238
  2637
  datatype 'a tree = Atom 'a | Branch "nat => 'a tree"
berghofe@7047
  2638
wenzelm@7326
  2639
* HOL/record: record_simproc (part of the default simpset) takes care
wenzelm@7326
  2640
of selectors applied to updated records; record_split_tac is no longer
wenzelm@7327
  2641
part of the default claset; update_defs may now be removed from the
wenzelm@7327
  2642
simpset in many cases; COMPATIBILITY: old behavior achieved by
wenzelm@7326
  2643
wenzelm@7326
  2644
  claset_ref () := claset() addSWrapper record_split_wrapper;
wenzelm@7326
  2645
  Delsimprocs [record_simproc]
wenzelm@7326
  2646
wenzelm@6386
  2647
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  2648
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  2649
paulson@7287
  2650
* HOL/recdef (TFL): 'congs' syntax now expects comma separated list of theorem
paulson@7287
  2651
names rather than an ML expression;
paulson@7287
  2652
paulson@7287
  2653
* HOL/defer_recdef (TFL): like recdef but the well-founded relation can be
paulson@7287
  2654
supplied later.  Program schemes can be defined, such as
paulson@7287
  2655
    "While B C s = (if B s then While B C (C s) else s)"
paulson@7287
  2656
where the well-founded relation can be chosen after B and C have been given.
wenzelm@6563
  2657
wenzelm@7215
  2658
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  2659
INCOMPATIBILITY: while [] and infix # syntax is still there, of
wenzelm@7215
  2660
course, ML tools referring to List.list.op # etc. have to be adapted;
wenzelm@7215
  2661
wenzelm@7238
  2662
* HOL_quantifiers flag superseded by "HOL" print mode, which is
wenzelm@7238
  2663
disabled by default; run isabelle with option -m HOL to get back to
wenzelm@7238
  2664
the original Gordon/HOL-style output;
wenzelm@7238
  2665
wenzelm@7238
  2666
* HOL/Ord.thy: new bounded quantifier syntax (input only): ALL x<y. P,
wenzelm@7238
  2667
ALL x<=y. P, EX x<y. P, EX x<=y. P;
wenzelm@7238
  2668
wenzelm@7238
  2669
* HOL basic syntax simplified (more orthogonal): all variants of
wenzelm@7238
  2670
All/Ex now support plain / symbolic / HOL notation; plain syntax for
wenzelm@7238
  2671
Eps operator is provided as well: "SOME x. P[x]";
wenzelm@7238
  2672
berghofe@7320
  2673
* HOL/Sum.thy: sum_case has been moved to HOL/Datatype;
wenzelm@7261
  2674
wenzelm@7280
  2675
* HOL/Univ.thy: infix syntax <*>, <+>, <**>, <+> eliminated and made
wenzelm@7280
  2676
thus available for user theories;
wenzelm@7280
  2677
wenzelm@7300
  2678
* HOLCF/IOA/Sequents: renamed 'Cons' to 'Consq' to avoid clash with
wenzelm@7300
  2679
HOL/List; hardly an INCOMPATIBILITY since '>>' syntax is used all the
wenzelm@7300
  2680
time;
wenzelm@7300
  2681
wenzelm@7986
  2682
* HOL: new tactic smp_tac: int -> int -> tactic, which applies spec
wenzelm@7986
  2683
several times and then mp;
oheimb@7492
  2684
wenzelm@7215
  2685
paulson@7113
  2686
*** LK ***
paulson@7113
  2687
wenzelm@7215
  2688
* the notation <<...>> is now available as a notation for sequences of
wenzelm@7215
  2689
formulas;
paulson@7113
  2690
paulson@7113
  2691
* the simplifier is now installed
paulson@7113
  2692
wenzelm@8729
  2693
* the axiom system has been generalized (thanks to Soren Heilmann)
paulson@7113
  2694
paulson@7113
  2695
* the classical reasoner now has a default rule database
paulson@7113
  2696
paulson@7113
  2697
paulson@6064
  2698
*** ZF ***
paulson@6064
  2699
paulson@6064
  2700
* new primrec section allows primitive recursive functions to be given
wenzelm@6269
  2701
directly (as in HOL) over datatypes and the natural numbers;
paulson@6064
  2702
wenzelm@6269
  2703
* new tactics induct_tac and exhaust_tac for induction (or case
wenzelm@6269
  2704
analysis) over datatypes and the natural numbers;
paulson@6064
  2705
paulson@6064
  2706
* the datatype declaration of type T now defines the recursor T_rec;
paulson@6064
  2707
paulson@6141
  2708
* simplification automatically does freeness reasoning for datatype
wenzelm@6269
  2709
constructors;
paulson@6141
  2710
wenzelm@6269
  2711
* automatic type-inference, with AddTCs command to insert new
wenzelm@6269
  2712
type-checking rules;
paulson@6155
  2713
wenzelm@6269
  2714
* datatype introduction rules are now added as Safe Introduction rules
wenzelm@6269
  2715
to the claset;
paulson@6155
  2716
wenzelm@6269
  2717
* the syntax "if P then x else y" is now available in addition to
wenzelm@6269
  2718
if(P,x,y);
wenzelm@6269
  2719
paulson@6069
  2720
wenzelm@6343
  2721
*** Internal programming interfaces ***
wenzelm@6343
  2722
wenzelm@7919
  2723
* tuned simplifier trace output; new flag debug_simp;
wenzelm@7919
  2724
wenzelm@7420
  2725
* structures Vartab / Termtab (instances of TableFun) offer efficient
wenzelm@7420
  2726
tables indexed by indexname_ord / term_ord (compatible with aconv);
wenzelm@7420
  2727
wenzelm@6386
  2728
* AxClass.axclass_tac lost the theory argument;
wenzelm@6386
  2729
wenzelm@6343
  2730
* tuned current_goals_markers semantics: begin / end goal avoids
wenzelm@6343
  2731
printing empty lines;
wenzelm@6343
  2732
wenzelm@6343
  2733
* removed prs and prs_fn hook, which was broken because it did not
wenzelm@6343
  2734
include \n in its semantics, forcing writeln to add one
wenzelm@6343
  2735
uncoditionally; replaced prs_fn by writeln_fn; consider std_output:
wenzelm@6343
  2736
string -> unit if you really want to output text without newline;
wenzelm@6343
  2737
wenzelm@6343
  2738
* Symbol.output subject to print mode; INCOMPATIBILITY: defaults to
wenzelm@6343
  2739
plain output, interface builders may have to enable 'isabelle_font'
wenzelm@6343
  2740
mode to get Isabelle font glyphs as before;
wenzelm@6343
  2741
wenzelm@6343
  2742
* refined token_translation interface; INCOMPATIBILITY: output length
wenzelm@6343
  2743
now of type real instead of int;
wenzelm@6343
  2744
wenzelm@7196
  2745
* theory loader actions may be traced via new ThyInfo.add_hook
wenzelm@7196
  2746
interface (see src/Pure/Thy/thy_info.ML); example application: keep
wenzelm@7196
  2747
your own database of information attached to *whole* theories -- as
wenzelm@7196
  2748
opposed to intra-theory data slots offered via TheoryDataFun;
wenzelm@7196
  2749
wenzelm@7647
  2750
* proper handling of dangling sort hypotheses (at last!);
wenzelm@7647
  2751
Thm.strip_shyps and Drule.strip_shyps_warning take care of removing
wenzelm@7647
  2752
extra sort hypotheses that can be witnessed from the type signature;
wenzelm@7986
  2753
the force_strip_shyps flag is gone, any remaining shyps are simply
wenzelm@7986
  2754
left in the theorem (with a warning issued by strip_shyps_warning);
wenzelm@7647
  2755
wenzelm@6343
  2756
paulson@6064
  2757
wenzelm@5781
  2758
New in Isabelle98-1 (October 1998)
wenzelm@5781
  2759
----------------------------------
wenzelm@5781
  2760
wenzelm@5127
  2761
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4842
  2762
wenzelm@5726
  2763
* several changes of automated proof tools;
wenzelm@5207
  2764
wenzelm@5726
  2765
* HOL: major changes to the inductive and datatype packages, including
wenzelm@5726
  2766
some minor incompatibilities of theory syntax;
wenzelm@5373
  2767
wenzelm@5726
  2768
* HOL: renamed r^-1 to 'converse' from 'inverse'; 'inj_onto' is now
wenzelm@5217
  2769
called `inj_on';
paulson@5160
  2770
nipkow@5275
  2771
* HOL: removed duplicate thms in Arith:
nipkow@5275
  2772
  less_imp_add_less  should be replaced by  trans_less_add1
nipkow@5275
  2773
  le_imp_add_le      should be replaced by  trans_le_add1
paulson@5160
  2774
wenzelm@5726
  2775
* HOL: unary minus is now overloaded (new type constraints may be
wenzelm@5726
  2776
required);
paulson@5490
  2777
wenzelm@5726
  2778
* HOL and ZF: unary minus for integers is now #- instead of #~.  In
wenzelm@5726
  2779
ZF, expressions such as n#-1 must be changed to n#- 1, since #-1 is
wenzelm@5726
  2780
now taken as an integer constant.
paulson@5541
  2781
wenzelm@5726
  2782
* Pure: ML function 'theory_of' renamed to 'theory';
wenzelm@5397
  2783
wenzelm@5363
  2784
wenzelm@5127
  2785
*** Proof tools ***
nipkow@4880
  2786
nipkow@5657
  2787
* Simplifier:
nipkow@5657
  2788
  1. Asm_full_simp_tac is now more aggressive.
nipkow@5657
  2789
     1. It will sometimes reorient premises if that increases their power to
nipkow@5657
  2790
        simplify.
nipkow@5657
  2791
     2. It does no longer proceed strictly from left to right but may also
nipkow@5657
  2792
        rotate premises to achieve further simplification.
nipkow@5657
  2793
     For compatibility reasons there is now Asm_lr_simp_tac which is like the
nipkow@5657
  2794
     old Asm_full_simp_tac in that it does not rotate premises.
nipkow@5657
  2795
  2. The simplifier now knows a little bit about nat-arithmetic.
nipkow@4880
  2796
wenzelm@5127
  2797
* Classical reasoner: wrapper mechanism for the classical reasoner now
wenzelm@5127
  2798
allows for selected deletion of wrappers, by introduction of names for
wenzelm@5127
  2799
wrapper functionals.  This implies that addbefore, addSbefore,
wenzelm@5127
  2800
addaltern, and addSaltern now take a pair (name, tactic) as argument,
wenzelm@5127
  2801
and that adding two tactics with the same name overwrites the first
wenzelm@5127
  2802
one (emitting a warning).
oheimb@4824
  2803
  type wrapper = (int -> tactic) -> (int -> tactic)
oheimb@4649
  2804
  setWrapper, setSWrapper, compWrapper and compSWrapper are replaced by
oheimb@4824
  2805
  addWrapper, addSWrapper: claset * (string * wrapper) -> claset
oheimb@4824
  2806
  delWrapper, delSWrapper: claset *  string            -> claset
oheimb@4649
  2807
  getWrapper is renamed to appWrappers, getSWrapper to appSWrappers;
oheimb@4649
  2808
wenzelm@5705
  2809
* Classical reasoner: addbefore/addSbefore now have APPEND/ORELSE
wenzelm@5726
  2810
semantics; addbefore now affects only the unsafe part of step_tac
wenzelm@5726
  2811
etc.; this affects addss/auto_tac/force_tac, so EXISTING PROOFS MAY
wenzelm@5726
  2812
FAIL, but proofs should be fixable easily, e.g. by replacing Auto_tac
wenzelm@5726
  2813
by Force_tac;
oheimb@5524
  2814
wenzelm@5726
  2815
* Classical reasoner: setwrapper to setWrapper and compwrapper to
wenzelm@5726
  2816
compWrapper; added safe wrapper (and access functions for it);
oheimb@5524
  2817
wenzelm@5127
  2818
* HOL/split_all_tac is now much faster and fails if there is nothing
wenzelm@5726
  2819
to split.  Some EXISTING PROOFS MAY REQUIRE ADAPTION because the order
wenzelm@5726
  2820
and the names of the automatically generated variables have changed.
wenzelm@5726
  2821
split_all_tac has moved within claset() from unsafe wrappers to safe
wenzelm@5726
  2822
wrappers, which means that !!-bound variables are split much more
wenzelm@5726
  2823
aggressively, and safe_tac and clarify_tac now split such variables.
wenzelm@5726
  2824
If this splitting is not appropriate, use delSWrapper "split_all_tac".
wenzelm@5726
  2825
Note: the same holds for record_split_tac, which does the job of
wenzelm@5726
  2826
split_all_tac for record fields.
wenzelm@5127
  2827
wenzelm@5726
  2828
* HOL/Simplifier: Rewrite rules for case distinctions can now be added
wenzelm@5726
  2829
permanently to the default simpset using Addsplits just like
wenzelm@5726
  2830
Addsimps. They can be removed via Delsplits just like
wenzelm@5726
  2831
Delsimps. Lower-case versions are also available.
wenzelm@5127
  2832
wenzelm@5726
  2833
* HOL/Simplifier: The rule split_if is now part of the default
wenzelm@5726
  2834
simpset. This means that the simplifier will eliminate all occurrences
wenzelm@5726
  2835
of if-then-else in the conclusion of a goal. To prevent this, you can
wenzelm@5726
  2836
either remove split_if completely from the default simpset by
wenzelm@5726
  2837
`Delsplits [split_if]' or remove it in a specific call of the
wenzelm@5726
  2838
simplifier using `... delsplits [split_if]'.  You can also add/delete
wenzelm@5726
  2839
other case splitting rules to/from the default simpset: every datatype
wenzelm@5726
  2840
generates suitable rules `split_t_case' and `split_t_case_asm' (where
wenzelm@5726
  2841
t is the name of the datatype).
wenzelm@5127
  2842
wenzelm@5726
  2843
* Classical reasoner / Simplifier combination: new force_tac (and
wenzelm@5127
  2844
derivatives Force_tac, force) combines rewriting and classical
wenzelm@5127
  2845
reasoning (and whatever other tools) similarly to auto_tac, but is
wenzelm@5726
  2846
aimed to solve the given subgoal completely.
wenzelm@5127
  2847
wenzelm@5127
  2848
wenzelm@5127
  2849
*** General ***
wenzelm@5127
  2850
wenzelm@5217
  2851
* new top-level commands `Goal' and `Goalw' that improve upon `goal'
wenzelm@5127
  2852
and `goalw': the theory is no longer needed as an explicit argument -
wenzelm@5127
  2853
the current theory context is used; assumptions are no longer returned
wenzelm@5127
  2854
at the ML-level unless one of them starts with ==> or !!; it is
wenzelm@5217
  2855
recommended to convert to these new commands using isatool fixgoal
wenzelm@5217
  2856
(backup your sources first!);
wenzelm@4842
  2857
wenzelm@5217
  2858
* new top-level commands 'thm' and 'thms' for retrieving theorems from
wenzelm@5207
  2859
the current theory context, and 'theory' to lookup stored theories;
paulson@4806
  2860
paulson@5722
  2861
* new theory section 'locale' for declaring constants, assumptions and
paulson@5722
  2862
definitions that have local scope;
paulson@5722
  2863
wenzelm@5127
  2864
* new theory section 'nonterminals' for purely syntactic types;
wenzelm@4858
  2865
wenzelm@5127
  2866
* new theory section 'setup' for generic ML setup functions
wenzelm@5127
  2867
(e.g. package initialization);
wenzelm@4869
  2868
wenzelm@5131
  2869
* the distribution now includes Isabelle icons: see
wenzelm@5131
  2870
lib/logo/isabelle-{small,tiny}.xpm;
wenzelm@5131
  2871
wenzelm@5363
  2872
* isatool install - install binaries with absolute references to
wenzelm@5363
  2873
ISABELLE_HOME/bin;
wenzelm@5363
  2874
wenzelm@5572
  2875
* isatool logo -- create instances of the Isabelle logo (as EPS);
wenzelm@5572
  2876
wenzelm@5407
  2877
* print mode 'emacs' reserved for Isamode;
wenzelm@5407
  2878
wenzelm@5726
  2879
* support multiple print (ast) translations per constant name;
wenzelm@5726
  2880
wenzelm@6925
  2881
* theorems involving oracles are now printed with a suffixed [!];
wenzelm@6925
  2882
wenzelm@4711
  2883
paulson@4661
  2884
*** HOL ***
paulson@4661
  2885
wenzelm@5710
  2886
* there is now a tutorial on Isabelle/HOL (do 'isatool doc tutorial');
nipkow@5709
  2887
wenzelm@5217
  2888
* HOL/inductive package reorganized and improved: now supports mutual
paulson@5267
  2889
definitions such as
berghofe@5214
  2890
wenzelm@5217
  2891
  inductive EVEN ODD
wenzelm@5217
  2892
    intrs
wenzelm@5217
  2893
      null "0 : EVEN"
wenzelm@5217
  2894
      oddI "n : EVEN ==> Suc n : ODD"
wenzelm@5217
  2895
      evenI "n : ODD ==> Suc n : EVEN"
berghofe@5214
  2896
wenzelm@5217
  2897
new theorem list "elims" contains an elimination rule for each of the
wenzelm@5217
  2898
recursive sets; inductive definitions now handle disjunctive premises
wenzelm@5217
  2899
correctly (also ZF);
berghofe@5214
  2900
wenzelm@5217
  2901
INCOMPATIBILITIES: requires Inductive as an ancestor; component
wenzelm@5217
  2902
"mutual_induct" no longer exists - the induction rule is always
wenzelm@5217
  2903
contained in "induct";
berghofe@5214
  2904
berghofe@5214
  2905
wenzelm@5217
  2906
* HOL/datatype package re-implemented and greatly improved: now
paulson@5267
  2907
supports mutually recursive datatypes such as
berghofe@5214
  2908
wenzelm@5217
  2909
  datatype
wenzelm@5217
  2910
    'a aexp = IF_THEN_ELSE ('a bexp) ('a aexp) ('a aexp)
wenzelm@5217
  2911
            | SUM ('a aexp) ('a aexp)
wenzelm@5217
  2912
            | DIFF ('a aexp) ('a aexp)
wenzelm@5217
  2913
            | NUM 'a
wenzelm@5217
  2914
  and
wenzelm@5217
  2915
    'a bexp = LESS ('a aexp) ('a aexp)
wenzelm@5217
  2916
            | AND ('a bexp) ('a bexp)
wenzelm@5217
  2917
            | OR ('a bexp) ('a bexp)
wenzelm@5217
  2918
paulson@5267
  2919
as well as indirectly recursive datatypes such as
wenzelm@5217
  2920
wenzelm@5217
  2921
  datatype
wenzelm@5217
  2922
    ('a, 'b) term = Var 'a
wenzelm@5217
  2923
                  | App 'b ((('a, 'b) term) list)
wenzelm@5217
  2924
wenzelm@5217
  2925
The new tactic  mutual_induct_tac [<var_1>, ..., <var_n>] i  performs
wenzelm@5217
  2926
induction on mutually / indirectly recursive datatypes.
wenzelm@5217
  2927
wenzelm@5217
  2928
Primrec equations are now stored in theory and can be accessed via
wenzelm@5217
  2929
<function_name>.simps.
wenzelm@5217
  2930
wenzelm@5217
  2931
INCOMPATIBILITIES:
wenzelm@5217
  2932
wenzelm@5217
  2933
  - Theories using datatypes must now have theory Datatype as an
wenzelm@5217
  2934
    ancestor.
wenzelm@5217
  2935
  - The specific <typename>.induct_tac no longer exists - use the
wenzelm@5217
  2936
    generic induct_tac instead.
berghofe@5226
  2937
  - natE has been renamed to nat.exhaust - use exhaust_tac
wenzelm@5217
  2938
    instead of res_inst_tac ... natE. Note that the variable
berghofe@5226
  2939
    names in nat.exhaust differ from the names in natE, this
wenzelm@5217
  2940
    may cause some "fragile" proofs to fail.
wenzelm@5217
  2941
  - The theorems split_<typename>_case and split_<typename>_case_asm
wenzelm@5217
  2942
    have been renamed to <typename>.split and <typename>.split_asm.
wenzelm@5217
  2943
  - Since default sorts of type variables are now handled correctly,
wenzelm@5217
  2944
    some datatype definitions may have to be annotated with explicit
wenzelm@5217
  2945
    sort constraints.
wenzelm@5217
  2946
  - Primrec definitions no longer require function name and type
wenzelm@5217
  2947
    of recursive argument.
wenzelm@5217
  2948
wenzelm@5217
  2949
Consider using isatool fixdatatype to adapt your theories and proof
wenzelm@5217
  2950
scripts to the new package (backup your sources first!).
wenzelm@5217
  2951
wenzelm@5217
  2952
wenzelm@5726
  2953
* HOL/record package: considerably improved implementation; now
wenzelm@5726
  2954
includes concrete syntax for record types, terms, updates; theorems
wenzelm@5726
  2955
for surjective pairing and splitting !!-bound record variables; proof
wenzelm@5726
  2956
support is as follows:
wenzelm@5726
  2957
wenzelm@5726
  2958
  1) standard conversions (selectors or updates applied to record
wenzelm@5726
  2959
constructor terms) are part of the standard simpset;
wenzelm@5726
  2960
wenzelm@5726
  2961
  2) inject equations of the form ((x, y) = (x', y')) == x=x' & y=y' are
wenzelm@5726
  2962
made part of standard simpset and claset via addIffs;
wenzelm@5726
  2963
wenzelm@5726
  2964
  3) a tactic for record field splitting (record_split_tac) is part of
wenzelm@5726
  2965
the standard claset (addSWrapper);
wenzelm@5726
  2966
wenzelm@5726
  2967
To get a better idea about these rules you may retrieve them via
wenzelm@5726
  2968
something like 'thms "foo.simps"' or 'thms "foo.iffs"', where "foo" is
wenzelm@5726
  2969
the name of your record type.
wenzelm@5726
  2970
wenzelm@5726
  2971
The split tactic 3) conceptually simplifies by the following rule:
wenzelm@5726
  2972
wenzelm@5726
  2973
  "(!!x. PROP ?P x) == (!!a b. PROP ?P (a, b))"
wenzelm@5726
  2974
wenzelm@5726
  2975
Thus any record variable that is bound by meta-all will automatically
wenzelm@5726
  2976
blow up into some record constructor term, consequently the
wenzelm@5726
  2977
simplifications of 1), 2) apply.  Thus force_tac, auto_tac etc. shall
wenzelm@5726
  2978
solve record problems automatically.
wenzelm@5726
  2979
berghofe@5214
  2980
wenzelm@5125
  2981
* reorganized the main HOL image: HOL/Integ and String loaded by
wenzelm@5125
  2982
default; theory Main includes everything;
wenzelm@5125
  2983
paulson@5650
  2984
* automatic simplification of integer sums and comparisons, using cancellation;
paulson@5650
  2985
oheimb@5526
  2986
* added option_map_eq_Some and not_Some_eq to the default simpset and claset;
wenzelm@5125
  2987
wenzelm@5127
  2988
* added disj_not1 = "(~P | Q) = (P --> Q)" to the default simpset;
wenzelm@5125
  2989
wenzelm@5127
  2990
* many new identities for unions, intersections, set difference, etc.;
wenzelm@5127
  2991
wenzelm@5127
  2992
* expand_if, expand_split, expand_sum_case and expand_nat_case are now
wenzelm@5127
  2993
called split_if, split_split, split_sum_case and split_nat_case (to go
wenzelm@5127
  2994
with add/delsplits);
wenzelm@5127
  2995
wenzelm@5127
  2996
* HOL/Prod introduces simplification procedure unit_eq_proc rewriting
wenzelm@5127
  2997
(?x::unit) = (); this is made part of the default simpset, which COULD
wenzelm@5127
  2998
MAKE EXISTING PROOFS FAIL under rare circumstances (consider
wenzelm@5207
  2999
'Delsimprocs [unit_eq_proc];' as last resort); also note that
wenzelm@5207
  3000
unit_abs_eta_conv is added in order to counter the effect of
wenzelm@5207
  3001
unit_eq_proc on (%u::unit. f u), replacing it by f rather than by
wenzelm@5207
  3002
%u.f();
wenzelm@5127
  3003
wenzelm@5217
  3004
* HOL/Fun INCOMPATIBILITY: `inj_onto' is now called `inj_on' (which
wenzelm@5217
  3005
makes more sense);
wenzelm@5127
  3006
paulson@5475
  3007
* HOL/Set INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  3008
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  3009
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  3010
wenzelm@5217
  3011
* HOL/Relation INCOMPATIBILITY: renamed the relational operator r^-1
wenzelm@5217
  3012
to 'converse' from 'inverse' (for compatibility with ZF and some
wenzelm@5217
  3013
literature);
berghofe@5109
  3014
wenzelm@5127
  3015
* HOL/recdef can now declare non-recursive functions, with {} supplied as
wenzelm@5127
  3016
the well-founded relation;
wenzelm@5085
  3017
paulson@5490
  3018
* HOL/Set INCOMPATIBILITY: the complement of set A is now written -A instead of
paulson@5490
  3019
    Compl A.  The "Compl" syntax remains available as input syntax for this
paulson@5490
  3020
    release ONLY.
paulson@5490
  3021
wenzelm@5127
  3022
* HOL/Update: new theory of function updates:
wenzelm@5127
  3023
    f(a:=b) == %x. if x=a then b else f x
wenzelm@5127
  3024
may also be iterated as in f(a:=b,c:=d,...);
oheimb@4824
  3025
wenzelm@5127
  3026
* HOL/Vimage: new theory for inverse image of a function, syntax f-``B;
paulson@4899
  3027
nipkow@5282
  3028
* HOL/List:
nipkow@5282
  3029
  - new function list_update written xs[i:=v] that updates the i-th
nipkow@5282
  3030
    list position. May also be iterated as in xs[i:=a,j:=b,...].
nipkow@5428
  3031
  - new function `upt' written [i..j(] which generates the list
nipkow@5428
  3032
    [i,i+1,...,j-1], i.e. the upper bound is excluded. To include the upper
nipkow@5428
  3033
    bound write [i..j], which is a shorthand for [i..j+1(].
nipkow@5282
  3034
  - new lexicographic orderings and corresponding wellfoundedness theorems.
paulson@4779
  3035
wenzelm@5127
  3036
* HOL/Arith:
wenzelm@5127
  3037
  - removed 'pred' (predecessor) function;
wenzelm@5127
  3038
  - generalized some theorems about n-1;
wenzelm@5127
  3039
  - many new laws about "div" and "mod";
wenzelm@5127
  3040
  - new laws about greatest common divisors (see theory ex/Primes);
oheimb@4766
  3041
wenzelm@5127
  3042
* HOL/Relation: renamed the relational operator r^-1 "converse"
wenzelm@4842
  3043
instead of "inverse";
wenzelm@4711
  3044
nipkow@5651
  3045
* HOL/Induct/Multiset: a theory of multisets, including the wellfoundedness
nipkow@5651
  3046
  of the multiset ordering;
nipkow@5651
  3047
wenzelm@5127
  3048
* directory HOL/Real: a construction of the reals using Dedekind cuts
nipkow@5651
  3049
  (not included by default);
paulson@4806
  3050
wenzelm@5127
  3051
* directory HOL/UNITY: Chandy and Misra's UNITY formalism;
wenzelm@4711
  3052
nipkow@5651
  3053
* directory HOL/Hoare: a new version of Hoare logic which permits many-sorted
nipkow@5651
  3054
  programs, i.e. different program variables may have different types.
nipkow@5651
  3055
paulson@5142
  3056
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  3057
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  3058
  Now rew can involve either definitions or equalities (either == or =).
wenzelm@5002
  3059
wenzelm@5363
  3060
paulson@4879
  3061
*** ZF ***
paulson@4879
  3062
paulson@5332
  3063
* theory Main includes everything; INCOMPATIBILITY: theory ZF.thy contains
paulson@5332
  3064
  only the theorems proved on ZF.ML;
paulson@5160
  3065
paulson@5475
  3066
* ZF INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  3067
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  3068
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  3069
paulson@5160
  3070
* ZF/Update: new theory of function updates
paulson@5160
  3071
    with default rewrite rule  f(x:=y) ` z = if(z=x, y, f`z)
paulson@5160
  3072
  may also be iterated as in f(a:=b,c:=d,...);
paulson@5160
  3073
paulson@4879
  3074
* in  let x=t in u(x), neither t nor u(x) has to be an FOL term.
oheimb@4649
  3075
paulson@5142
  3076
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  3077
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  3078
  Now rew can involve either definitions or equalities (either == or =).
paulson@5142
  3079
paulson@5160
  3080
* case_tac provided for compatibility with HOL
paulson@5160
  3081
    (like the old excluded_middle_tac, but with subgoals swapped)
paulson@5160
  3082
wenzelm@4842
  3083
wenzelm@5127
  3084
*** Internal programming interfaces ***
wenzelm@5002
  3085
wenzelm@5251
  3086
* Pure: several new basic modules made available for general use, see
wenzelm@5251
  3087
also src/Pure/README;
wenzelm@5207
  3088
wenzelm@5008
  3089
* improved the theory data mechanism to support encapsulation (data
wenzelm@5008
  3090
kind name replaced by private Object.kind, acting as authorization
wenzelm@5373
  3091
key); new type-safe user interface via functor TheoryDataFun; generic
wenzelm@5373
  3092
print_data function becomes basically useless;
wenzelm@5002
  3093
wenzelm@5251
  3094
* removed global_names compatibility flag -- all theory declarations
wenzelm@5251
  3095
are qualified by default;
wenzelm@5251
  3096
wenzelm@5085
  3097
* module Pure/Syntax now offers quote / antiquote translation
wenzelm@5085
  3098
functions (useful for Hoare logic etc. with implicit dependencies);
wenzelm@5373
  3099
see HOL/ex/Antiquote for an example use;
wenzelm@5085
  3100
wenzelm@5127
  3101
* Simplifier now offers conversions (asm_)(full_)rewrite: simpset ->
wenzelm@5127
  3102
cterm -> thm;
wenzelm@5127
  3103
wenzelm@5207
  3104
* new tactical CHANGED_GOAL for checking that a tactic modifies a
wenzelm@5207
  3105
subgoal;
paulson@5142
  3106
wenzelm@5251
  3107
* Display.print_goals function moved to Locale.print_goals;
wenzelm@5251
  3108
wenzelm@5731
  3109
* standard print function for goals supports current_goals_markers
wenzelm@5731
  3110
variable for marking begin of proof, end of proof, start of goal; the
wenzelm@5731
  3111
default is ("", "", ""); setting current_goals_markers := ("<proof>",
wenzelm@5731
  3112
"</proof>", "<goal>") causes SGML like tagged proof state printing,
wenzelm@5731
  3113
for example;
wenzelm@5731
  3114
wenzelm@5002
  3115
wenzelm@5002
  3116
wenzelm@4410
  3117
New in Isabelle98 (January 1998)
wenzelm@4410
  3118
--------------------------------
wenzelm@4410
  3119
wenzelm@4410
  3120
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4410
  3121
wenzelm@4410
  3122
* changed lexical syntax of terms / types: dots made part of long
wenzelm@4410
  3123
identifiers, e.g. "%x.x" no longer possible, should be "%x. x";
wenzelm@4410
  3124
wenzelm@4410
  3125
* simpset (and claset) reference variable replaced by functions
wenzelm@4410
  3126
simpset / simpset_ref;
wenzelm@4410
  3127
wenzelm@4410
  3128
* no longer supports theory aliases (via merge) and non-trivial
wenzelm@4410
  3129
implicit merge of thms' signatures;
wenzelm@4410
  3130
wenzelm@4410
  3131
* most internal names of constants changed due to qualified names;
wenzelm@4410
  3132
wenzelm@4410
  3133
* changed Pure/Sequence interface (see Pure/seq.ML);
wenzelm@4410
  3134
wenzelm@3454
  3135
paulson@3715
  3136
*** General Changes ***
wenzelm@3697
  3137
wenzelm@4174
  3138
* hierachically structured name spaces (for consts, types, axms, thms
wenzelm@3943
  3139
etc.); new lexical class 'longid' (e.g. Foo.bar.x) may render much of
wenzelm@4108
  3140
old input syntactically incorrect (e.g. "%x.x"); COMPATIBILITY:
wenzelm@4108
  3141
isatool fixdots ensures space after dots (e.g. "%x. x"); set
wenzelm@4174
  3142
long_names for fully qualified output names; NOTE: ML programs
wenzelm@4174
  3143
(special tactics, packages etc.) referring to internal names may have
wenzelm@4174
  3144
to be adapted to cope with fully qualified names; in case of severe
wenzelm@4174
  3145
backward campatibility problems try setting 'global_names' at compile
wenzelm@4174
  3146
time to have enrything declared within a flat name space; one may also
wenzelm@4174
  3147
fine tune name declarations in theories via the 'global' and 'local'
wenzelm@4174
  3148
section;
wenzelm@4108
  3149
wenzelm@4108
  3150
* reimplemented the implicit simpset and claset using the new anytype
wenzelm@4108
  3151
data filed in signatures; references simpset:simpset ref etc. are
wenzelm@4108
  3152
replaced by functions simpset:unit->simpset and
wenzelm@4108
  3153
simpset_ref:unit->simpset ref; COMPATIBILITY: use isatool fixclasimp
wenzelm@4108
  3154
to patch your ML files accordingly;
paulson@3856
  3155
wenzelm@3857
  3156
* HTML output now includes theory graph data for display with Java
wenzelm@3857
  3157
applet or isatool browser; data generated automatically via isatool
wenzelm@3901
  3158
usedir (see -i option, ISABELLE_USEDIR_OPTIONS);
wenzelm@3857
  3159
paulson@3856
  3160
* defs may now be conditional; improved rewrite_goals_tac to handle
paulson@3856
  3161
conditional equations;
paulson@3856
  3162
wenzelm@4174
  3163
* defs now admits additional type arguments, using TYPE('a) syntax;
wenzelm@4174
  3164
wenzelm@3901
  3165
* theory aliases via merge (e.g. M=A+B+C) no longer supported, always
wenzelm@3901
  3166
creates a new theory node; implicit merge of thms' signatures is
wenzelm@4112
  3167
restricted to 'trivial' ones; COMPATIBILITY: one may have to use
wenzelm@3901
  3168
transfer:theory->thm->thm in (rare) cases;
wenzelm@3901
  3169
wenzelm@3968
  3170
* improved handling of draft signatures / theories; draft thms (and
wenzelm@3968
  3171
ctyps, cterms) are automatically promoted to real ones;
wenzelm@3968
  3172
wenzelm@3901
  3173
* slightly changed interfaces for oracles: admit many per theory, named
wenzelm@3901
  3174
(e.g. oracle foo = mlfun), additional name argument for invoke_oracle;
wenzelm@3901
  3175
wenzelm@3901
  3176
* print_goals: optional output of const types (set show_consts and
wenzelm@3901
  3177
show_types);
wenzelm@3851
  3178
wenzelm@4388
  3179
* improved output of warnings (###) and errors (***);
wenzelm@3697
  3180
paulson@4178
  3181
* subgoal_tac displays a warning if the new subgoal has type variables;
paulson@4178
  3182
paulson@3715
  3183
* removed old README and Makefiles;
paulson@3715
  3184
paulson@3856
  3185
* replaced print_goals_ref hook by print_current_goals_fn and result_error_fn;
wenzelm@3670
  3186
paulson@3715
  3187
* removed obsolete init_pps and init_database;
paulson@3715
  3188
paulson@3715
  3189
* deleted the obsolete tactical STATE, which was declared by
paulson@3715
  3190
    fun STATE tacfun st = tacfun st st;
paulson@3715
  3191
wenzelm@4388
  3192
* cd and use now support path variables, e.g. $ISABELLE_HOME, or ~
wenzelm@4388
  3193
(which abbreviates $HOME);
wenzelm@4269
  3194
wenzelm@4269
  3195
* changed Pure/Sequence interface (see Pure/seq.ML); COMPATIBILITY:
wenzelm@4269
  3196
use isatool fixseq to adapt your ML programs (this works for fully
wenzelm@4269
  3197
qualified references to the Sequence structure only!);
wenzelm@4269
  3198
wenzelm@4381
  3199
* use_thy no longer requires writable current directory; it always
wenzelm@4381
  3200
reloads .ML *and* .thy file, if either one is out of date;
wenzelm@4269
  3201
paulson@3715
  3202
paulson@3715
  3203
*** Classical Reasoner ***
paulson@3715
  3204
wenzelm@3744
  3205
* Clarify_tac, clarify_tac, clarify_step_tac, Clarify_step_tac: new
wenzelm@3744
  3206
tactics that use classical reasoning to simplify a subgoal without
wenzelm@3744
  3207
splitting it into several subgoals;
paulson@3715
  3208
paulson@3719
  3209
* Safe_tac: like safe_tac but uses the default claset;
paulson@3719
  3210
paulson@3715
  3211
paulson@3715
  3212
*** Simplifier ***
paulson@3715
  3213
paulson@3715
  3214
* added simplification meta rules:
paulson@3715
  3215
    (asm_)(full_)simplify: simpset -> thm -> thm;
paulson@3715
  3216
paulson@3715
  3217
* simplifier.ML no longer part of Pure -- has to be loaded by object
paulson@3715
  3218
logics (again);
paulson@3715
  3219
paulson@3715
  3220
* added prems argument to simplification procedures;
paulson@3715
  3221
paulson@4325
  3222
* HOL, FOL, ZF: added infix function `addsplits':
paulson@4325
  3223
  instead of `<simpset> setloop (split_tac <thms>)'
paulson@4325
  3224
  you can simply write `<simpset> addsplits <thms>'
paulson@4325
  3225
paulson@3715
  3226
paulson@3715
  3227
*** Syntax ***
paulson@3715
  3228
wenzelm@4174
  3229
* TYPE('a) syntax for type reflection terms;
wenzelm@4174
  3230
wenzelm@3985
  3231
* no longer handles consts with name "" -- declare as 'syntax' instead;
paulson@3856
  3232
paulson@3856
  3233
* pretty printer: changed order of mixfix annotation preference (again!);
wenzelm@3846
  3234
paulson@3715
  3235
* Pure: fixed idt/idts vs. pttrn/pttrns syntactic categories;
paulson@3715
  3236
paulson@3715
  3237
paulson@3715
  3238
*** HOL ***
paulson@3715
  3239
wenzelm@5726
  3240
* HOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  3241
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  3242
nipkow@4035
  3243
* HOL/TLA: Stephan Merz's formalization of Lamport's Temporal Logic of Actions;
wenzelm@3985
  3244
wenzelm@3985
  3245
* HOL/Auth: new protocol proofs including some for the Internet
nipkow@4035
  3246
  protocol TLS;
wenzelm@3985
  3247
wenzelm@4125
  3248
* HOL/Map: new theory of `maps' a la VDM;
nipkow@3982
  3249
wenzelm@4335
  3250
* HOL/simplifier: simplification procedures nat_cancel_sums for
wenzelm@4335
  3251
cancelling out common nat summands from =, <, <= (in)equalities, or
wenzelm@4335
  3252
differences; simplification procedures nat_cancel_factor for
wenzelm@4335
  3253
cancelling common factor from =, <, <= (in)equalities over natural
wenzelm@4373
  3254
sums; nat_cancel contains both kinds of procedures, it is installed by
wenzelm@4373
  3255
default in Arith.thy -- this COULD MAKE EXISTING PROOFS FAIL;
wenzelm@4335
  3256
nipkow@3580
  3257
* HOL/simplifier: terms of the form
paulson@4325
  3258
  `? x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x)'  (or t=x)
nipkow@3580
  3259
  are rewritten to
nipkow@4035
  3260
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t)',
nipkow@4035
  3261
  and those of the form
paulson@4325
  3262
  `! x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x) --> R(x)'  (or t=x)
nipkow@4035
  3263
  are rewritten to
nipkow@4035
  3264
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t) --> R(t)',
nipkow@3580
  3265
nipkow@4035
  3266
* HOL/datatype
nipkow@4035
  3267
  Each datatype `t' now comes with a theorem `split_t_case' of the form
nipkow@4035
  3268
nipkow@4035
  3269
  P(t_case f1 ... fn x) =
nipkow@4035
  3270
     ( (!y1 ... ym1. x = C1 y1 ... ym1 --> P(f1 y1 ... ym1)) &
nipkow@4035
  3271
        ...
oheimb@4189
  3272
       (!y1 ... ymn. x = Cn y1 ... ymn --> P(f1 y1 ... ymn))
nipkow@4035
  3273
     )
nipkow@4035
  3274
oheimb@4930
  3275
  and a theorem `split_t_case_asm' of the form
oheimb@4189
  3276
oheimb@4189
  3277
  P(t_case f1 ... fn x) =
oheimb@4189
  3278
    ~( (? y1 ... ym1. x = C1 y1 ... ym1 & ~P(f1 y1 ... ym1)) |
oheimb@4189
  3279
        ...
oheimb@4189
  3280
       (? y1 ... ymn. x = Cn y1 ... ymn & ~P(f1 y1 ... ymn))
oheimb@4189
  3281
     )
oheimb@4930
  3282
  which can be added to a simpset via `addsplits'. The existing theorems
oheimb@4930
  3283
  expand_list_case and expand_option_case have been renamed to
oheimb@4930
  3284
  split_list_case and split_option_case.
oheimb@4189
  3285
nipkow@4361
  3286
* HOL/Arithmetic:
nipkow@4361
  3287
  - `pred n' is automatically converted to `n-1'.
nipkow@4361
  3288
    Users are strongly encouraged not to use `pred' any longer,
nipkow@4361
  3289
    because it will disappear altogether at some point.
nipkow@4361
  3290
  - Users are strongly encouraged to write "0 < n" rather than
nipkow@4361
  3291
    "n ~= 0". Theorems and proof tools have been modified towards this
nipkow@4361
  3292
    `standard'.
nipkow@4357
  3293
nipkow@4502
  3294
* HOL/Lists:
nipkow@4502
  3295
  the function "set_of_list" has been renamed "set" (and its theorems too);
nipkow@4502
  3296
  the function "nth" now takes its arguments in the reverse order and
nipkow@4502
  3297
  has acquired the infix notation "!" as in "xs!n".
paulson@3570
  3298
paulson@4154
  3299
* HOL/Set: UNIV is now a constant and is no longer translated to Compl{};
paulson@4154
  3300
paulson@4154
  3301
* HOL/Set: The operator (UN x.B x) now abbreviates (UN x:UNIV. B x) and its
paulson@4154
  3302
  specialist theorems (like UN1_I) are gone.  Similarly for (INT x.B x);
paulson@4154
  3303
wenzelm@4575
  3304
* HOL/record: extensible records with schematic structural subtyping
wenzelm@4575
  3305
(single inheritance); EXPERIMENTAL version demonstrating the encoding,
wenzelm@4575
  3306
still lacks various theorems and concrete record syntax;
wenzelm@4575
  3307
wenzelm@4125
  3308
paulson@3715
  3309
*** HOLCF ***
wenzelm@3511
  3310
wenzelm@4125
  3311
* removed "axioms" and "generated by" sections;
wenzelm@4125
  3312
oheimb@4123
  3313
* replaced "ops" section by extended "consts" section, which is capable of
wenzelm@4125
  3314
  handling the continuous function space "->" directly;
wenzelm@4125
  3315
wenzelm@4125
  3316
* domain package:
wenzelm@4125
  3317
  . proves theorems immediately and stores them in the theory,
wenzelm@4125
  3318
  . creates hierachical name space,
wenzelm@4125
  3319
  . now uses normal mixfix annotations (instead of cinfix...),
wenzelm@4125
  3320
  . minor changes to some names and values (for consistency),
wenzelm@4125
  3321
  . e.g. cases -> casedist, dists_eq -> dist_eqs, [take_lemma] -> take_lemmas,
wenzelm@4125
  3322
  . separator between mutual domain defs: changed "," to "and",
wenzelm@4125
  3323
  . improved handling of sort constraints;  now they have to
wenzelm@4125
  3324
    appear on the left-hand side of the equations only;
oheimb@4123
  3325
oheimb@4123
  3326
* fixed LAM <x,y,zs>.b syntax;
wenzelm@3535
  3327
wenzelm@3744
  3328
* added extended adm_tac to simplifier in HOLCF -- can now discharge
wenzelm@3744
  3329
adm (%x. P (t x)), where P is chainfinite and t continuous;
wenzelm@3579
  3330
wenzelm@3579
  3331
paulson@3719
  3332
*** FOL and ZF ***
paulson@3719
  3333
wenzelm@5726
  3334
* FOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  3335
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  3336
wenzelm@3744
  3337
* qed_spec_mp, qed_goal_spec_mp, qed_goalw_spec_mp are available, as
wenzelm@3744
  3338
in HOL, they strip ALL and --> from proved theorems;
wenzelm@3744
  3339
paulson@3719
  3340
wenzelm@3579
  3341
wenzelm@3006
  3342
New in Isabelle94-8 (May 1997)
wenzelm@3006
  3343
------------------------------
wenzelm@2654
  3344
paulson@3002
  3345
*** General Changes ***
paulson@3002
  3346
paulson@3002
  3347
* new utilities to build / run / maintain Isabelle etc. (in parts
paulson@3002
  3348
still somewhat experimental); old Makefiles etc. still functional;
wenzelm@2971
  3349
wenzelm@3205
  3350
* new 'Isabelle System Manual';
wenzelm@3205
  3351
wenzelm@2825
  3352
* INSTALL text, together with ./configure and ./build scripts;
wenzelm@2773
  3353
wenzelm@3006
  3354
* reimplemented type inference for greater efficiency, better error
wenzelm@3006
  3355
messages and clean internal interface;
paulson@3002
  3356
paulson@3002
  3357
* prlim command for dealing with lots of subgoals (an easier way of
paulson@3002
  3358
setting goals_limit);
paulson@3002
  3359
wenzelm@3006
  3360
wenzelm@3006
  3361
*** Syntax ***
paulson@3002
  3362
wenzelm@3116
  3363
* supports alternative (named) syntax tables (parser and pretty
wenzelm@3116
  3364
printer); internal interface is provided by add_modesyntax(_i);
wenzelm@3116
  3365
paulson@3002
  3366
* Pure, FOL, ZF, HOL, HOLCF now support symbolic input and output; to
paulson@3002
  3367
be used in conjunction with the Isabelle symbol font; uses the
paulson@3002
  3368
"symbols" syntax table;
paulson@3002
  3369
wenzelm@2705
  3370
* added token_translation interface (may translate name tokens in
wenzelm@2756
  3371
arbitrary ways, dependent on their type (free, bound, tfree, ...) and
wenzelm@3116
  3372
the current print_mode); IMPORTANT: user print translation functions
wenzelm@3116
  3373
are responsible for marking newly introduced bounds
wenzelm@3116
  3374
(Syntax.mark_boundT);
wenzelm@2705
  3375
wenzelm@2730
  3376
* token translations for modes "xterm" and "xterm_color" that display
wenzelm@3006
  3377
names in bold, underline etc. or colors (which requires a color
wenzelm@3006
  3378
version of xterm);
wenzelm@2730
  3379
paulson@3002
  3380
* infixes may now be declared with names independent of their syntax;
paulson@3002
  3381
paulson@3002
  3382
* added typed_print_translation (like print_translation, but may
paulson@3002
  3383
access type of constant);
paulson@3002
  3384
wenzelm@3006
  3385
paulson@3002
  3386
*** Classical Reasoner ***
paulson@3002
  3387
paulson@3002
  3388
Blast_tac: a new tactic!  It is often more powerful than fast_tac, but has
paulson@3002
  3389
some limitations.  Blast_tac...
paulson@3002
  3390
  + ignores addss, addbefore, addafter; this restriction is intrinsic
paulson@3002
  3391
  + ignores elimination rules that don't have the correct format
wenzelm@5726
  3392
        (the conclusion MUST be a formula variable)
paulson@3002
  3393
  + ignores types, which can make HOL proofs fail
paulson@3002
  3394
  + rules must not require higher-order unification, e.g. apply_type in ZF
paulson@3002
  3395
    [message "Function Var's argument not a bound variable" relates to this]
paulson@3002
  3396
  + its proof strategy is more general but can actually be slower
paulson@3002
  3397
wenzelm@3107
  3398
* substitution with equality assumptions no longer permutes other
wenzelm@3107
  3399
assumptions;
paulson@3002
  3400
paulson@3002
  3401
* minor changes in semantics of addafter (now called addaltern); renamed
paulson@3002
  3402
setwrapper to setWrapper and compwrapper to compWrapper; added safe wrapper
wenzelm@3107
  3403
(and access functions for it);
paulson@3002
  3404
wenzelm@5726
  3405
* improved combination of classical reasoner and simplifier:
oheimb@3317
  3406
  + functions for handling clasimpsets
oheimb@3317
  3407
  + improvement of addss: now the simplifier is called _after_ the
oheimb@3317
  3408
    safe steps.
oheimb@3317
  3409
  + safe variant of addss called addSss: uses safe simplifications
wenzelm@5726
  3410
    _during_ the safe steps. It is more complete as it allows multiple
oheimb@3317
  3411
    instantiations of unknowns (e.g. with slow_tac).
wenzelm@3006
  3412
paulson@3002
  3413
*** Simplifier ***
paulson@3002
  3414
wenzelm@3006
  3415
* added interface for simplification procedures (functions that
wenzelm@3006
  3416
produce *proven* rewrite rules on the fly, depending on current
wenzelm@3006
  3417
redex);
wenzelm@3006
  3418
wenzelm@3006
  3419
* ordering on terms as parameter (used for ordered rewriting);
wenzelm@3006
  3420
wenzelm@3107
  3421
* new functions delcongs, deleqcongs, and Delcongs. richer rep_ss;
paulson@3002
  3422
paulson@3002
  3423
* the solver is now split into a safe and an unsafe part.
paulson@3002
  3424
This should be invisible for the normal user, except that the
paulson@3002
  3425
functions setsolver and addsolver have been renamed to setSolver and
wenzelm@3107
  3426
addSolver; added safe_asm_full_simp_tac;
paulson@3002
  3427
paulson@3002
  3428
paulson@3002
  3429
*** HOL ***
paulson@3002
  3430
nipkow@3042
  3431
* a generic induction tactic `induct_tac' which works for all datatypes and
wenzelm@3107
  3432
also for type `nat';
nipkow@3042
  3433
nipkow@3316
  3434
* a generic case distinction tactic `exhaust_tac' which works for all
nipkow@3316
  3435
datatypes and also for type `nat';
nipkow@3316
  3436
nipkow@3316
  3437
* each datatype comes with a function `size';
nipkow@3316
  3438
paulson@3002
  3439
* patterns in case expressions allow tuple patterns as arguments to
wenzelm@3107
  3440
constructors, for example `case x of [] => ... | (x,y,z)#ps => ...';
paulson@3002
  3441
paulson@3002
  3442
* primrec now also works with type nat;
paulson@3002
  3443
paulson@3338
  3444
* recdef: a new declaration form, allows general recursive functions to be
paulson@3338
  3445
defined in theory files.  See HOL/ex/Fib, HOL/ex/Primes, HOL/Subst/Unify.
paulson@3338
  3446
paulson@3002
  3447
* the constant for negation has been renamed from "not" to "Not" to
wenzelm@3107
  3448
harmonize with FOL, ZF, LK, etc.;
paulson@3002
  3449
wenzelm@3107
  3450
* HOL/ex/LFilter theory of a corecursive "filter" functional for
wenzelm@3107
  3451
infinite lists;
paulson@3002
  3452
wenzelm@3227
  3453
* HOL/Modelcheck demonstrates invocation of model checker oracle;
wenzelm@3227
  3454
paulson@3002
  3455
* HOL/ex/Ring.thy declares cring_simp, which solves equational
paulson@3002
  3456
problems in commutative rings, using axiomatic type classes for + and *;
paulson@3002
  3457
paulson@3002
  3458
* more examples in HOL/MiniML and HOL/Auth;
paulson@3002
  3459
paulson@3002
  3460
* more default rewrite rules for quantifiers, union/intersection;
paulson@3002
  3461
nipkow@3321
  3462
* a new constant `arbitrary == @x.False';
nipkow@3321
  3463
wenzelm@3107
  3464
* HOLCF/IOA replaces old HOL/IOA;
wenzelm@3107
  3465
wenzelm@5726
  3466
* HOLCF changes: derived all rules and arities
wenzelm@5726
  3467
  + axiomatic type classes instead of classes
slotosch@2653
  3468
  + typedef instead of faking type definitions
paulson@2747
  3469
  + eliminated the internal constants less_fun, less_cfun, UU_fun, UU_cfun etc.
wenzelm@2730
  3470
  + new axclasses cpo, chfin, flat with flat < chfin < pcpo < cpo < po
slotosch@2653
  3471
  + eliminated the types void, one, tr
slotosch@2653
  3472
  + use unit lift and bool lift (with translations) instead of one and tr
slotosch@2653
  3473
  + eliminated blift from Lift3.thy (use Def instead of blift)
wenzelm@3107
  3474
  all eliminated rules are derived as theorems --> no visible changes ;
oheimb@2649
  3475
wenzelm@3006
  3476
paulson@3002
  3477
*** ZF ***
wenzelm@2553
  3478
paulson@2865
  3479
* ZF now has Fast_tac, Simp_tac and Auto_tac.  Union_iff is a now a default
paulson@2865
  3480
rewrite rule; this may affect some proofs.  eq_cs is gone but can be put back
paulson@2865
  3481
as ZF_cs addSIs [equalityI];
wenzelm@2553
  3482
wenzelm@2554
  3483
wenzelm@2732
  3484
wenzelm@2553
  3485
New in Isabelle94-7 (November 96)
wenzelm@2553
  3486
---------------------------------
wenzelm@2553
  3487
wenzelm@2553
  3488
* allowing negative levels (as offsets) in prlev and choplev;
wenzelm@2553
  3489
wenzelm@2554
  3490
* super-linear speedup for large simplifications;
wenzelm@2554
  3491
wenzelm@2554
  3492
* FOL, ZF and HOL now use miniscoping: rewriting pushes
wenzelm@2554
  3493
quantifications in as far as possible (COULD MAKE EXISTING PROOFS
wenzelm@2554
  3494
FAIL); can suppress it using the command Delsimps (ex_simps @
wenzelm@2554
  3495
all_simps); De Morgan laws are also now included, by default;
wenzelm@2554
  3496
wenzelm@2554
  3497
* improved printing of ==>  :  ~:
wenzelm@2554
  3498
wenzelm@2554
  3499
* new object-logic "Sequents" adds linear logic, while replacing LK
wenzelm@2554
  3500
and Modal (thanks to Sara Kalvala);
wenzelm@2554
  3501
wenzelm@2554
  3502
* HOL/Auth: correctness proofs for authentication protocols;
wenzelm@2554
  3503
wenzelm@2554
  3504
* HOL: new auto_tac combines rewriting and classical reasoning (many
wenzelm@2554
  3505
examples on HOL/Auth);
wenzelm@2554
  3506
wenzelm@2554
  3507
* HOL: new command AddIffs for declaring theorems of the form P=Q to
wenzelm@2554
  3508
the rewriter and classical reasoner simultaneously;
wenzelm@2554
  3509
wenzelm@2554
  3510
* function uresult no longer returns theorems in "standard" format;
wenzelm@2554
  3511
regain previous version by: val uresult = standard o uresult;
wenzelm@2554
  3512
wenzelm@2554
  3513
wenzelm@2554
  3514
wenzelm@2554
  3515
New in Isabelle94-6
wenzelm@2554
  3516
-------------------
wenzelm@2554
  3517
wenzelm@2554
  3518
* oracles -- these establish an interface between Isabelle and trusted
wenzelm@2554
  3519
external reasoners, which may deliver results as theorems;
wenzelm@2554
  3520
wenzelm@2554
  3521
* proof objects (in particular record all uses of oracles);
wenzelm@2554
  3522
wenzelm@2554
  3523
* Simp_tac, Fast_tac, etc. that refer to implicit simpset / claset;
wenzelm@2554
  3524
wenzelm@2554
  3525
* "constdefs" section in theory files;
wenzelm@2554
  3526
wenzelm@2554
  3527
* "primrec" section (HOL) no longer requires names;
wenzelm@2554
  3528
wenzelm@2554
  3529
* internal type "tactic" now simply "thm -> thm Sequence.seq";
wenzelm@2554
  3530
wenzelm@2554
  3531
wenzelm@2554
  3532
wenzelm@2554
  3533
New in Isabelle94-5
wenzelm@2554
  3534
-------------------
wenzelm@2554
  3535
wenzelm@2554
  3536
* reduced space requirements;
wenzelm@2554
  3537
wenzelm@2554
  3538
* automatic HTML generation from theories;
wenzelm@2554
  3539
wenzelm@2554
  3540
* theory files no longer require "..." (quotes) around most types;
wenzelm@2554
  3541
wenzelm@2554
  3542
* new examples, including two proofs of the Church-Rosser theorem;
wenzelm@2554
  3543
wenzelm@2554
  3544
* non-curried (1994) version of HOL is no longer distributed;
wenzelm@2554
  3545
wenzelm@2553
  3546
paulson@2557
  3547
paulson@2557
  3548
New in Isabelle94-4
paulson@2557
  3549
-------------------
paulson@2557
  3550
paulson@2747
  3551
* greatly reduced space requirements;
paulson@2557
  3552
paulson@2557
  3553
* theory files (.thy) no longer require \...\ escapes at line breaks;
paulson@2557
  3554
wenzelm@5726
  3555
* searchable theorem database (see the section "Retrieving theorems" on
paulson@2557
  3556
page 8 of the Reference Manual);
paulson@2557
  3557
paulson@2557
  3558
* new examples, including Grabczewski's monumental case study of the
paulson@2557
  3559
Axiom of Choice;
paulson@2557
  3560
paulson@2557
  3561
* The previous version of HOL renamed to Old_HOL;
paulson@2557
  3562
wenzelm@5726
  3563
* The new version of HOL (previously called CHOL) uses a curried syntax
paulson@2557
  3564
for functions.  Application looks like f a b instead of f(a,b);
paulson@2557
  3565
paulson@2557
  3566
* Mutually recursive inductive definitions finally work in HOL;
paulson@2557
  3567
paulson@2557
  3568
* In ZF, pattern-matching on tuples is now available in all abstractions and
paulson@2557
  3569
translates to the operator "split";
paulson@2557
  3570
paulson@2557
  3571
paulson@2557
  3572
paulson@2557
  3573
New in Isabelle94-3
paulson@2557
  3574
-------------------
paulson@2557
  3575
wenzelm@5726
  3576
* new infix operator, addss, allowing the classical reasoner to
paulson@2557
  3577
perform simplification at each step of its search.  Example:
wenzelm@5726
  3578
        fast_tac (cs addss ss)
paulson@2557
  3579
wenzelm@5726
  3580
* a new logic, CHOL, the same as HOL, but with a curried syntax
wenzelm@5726
  3581
for functions.  Application looks like f a b instead of f(a,b).  Also pairs
paulson@2557
  3582
look like (a,b) instead of <a,b>;
paulson@2557
  3583
paulson@2557
  3584
* PLEASE NOTE: CHOL will eventually replace HOL!
paulson@2557
  3585
paulson@2557
  3586
* In CHOL, pattern-matching on tuples is now available in all abstractions.
paulson@2557
  3587
It translates to the operator "split".  A new theory of integers is available;
paulson@2557
  3588
paulson@2557
  3589
* In ZF, integer numerals now denote two's-complement binary integers.
paulson@2557
  3590
Arithmetic operations can be performed by rewriting.  See ZF/ex/Bin.ML;
paulson@2557
  3591
wenzelm@5726
  3592
* Many new examples: I/O automata, Church-Rosser theorem, equivalents
paulson@2557
  3593
of the Axiom of Choice;
paulson@2557
  3594
paulson@2557
  3595
paulson@2557
  3596
paulson@2557
  3597
New in Isabelle94-2
paulson@2557
  3598
-------------------
paulson@2557
  3599
wenzelm@5726
  3600
* Significantly faster resolution;
paulson@2557
  3601
paulson@2557
  3602
* the different sections in a .thy file can now be mixed and repeated
paulson@2557
  3603
freely;
paulson@2557
  3604
paulson@2557
  3605
* Database of theorems for FOL, HOL and ZF.  New
paulson@2557
  3606
commands including qed, qed_goal and bind_thm store theorems in the database.
paulson@2557
  3607
paulson@2557
  3608
* Simple database queries: return a named theorem (get_thm) or all theorems of
paulson@2557
  3609
a given theory (thms_of), or find out what theory a theorem was proved in
paulson@2557
  3610
(theory_of_thm);
paulson@2557
  3611
paulson@2557
  3612
* Bugs fixed in the inductive definition and datatype packages;
paulson@2557
  3613
paulson@2557
  3614
* The classical reasoner provides deepen_tac and depth_tac, making FOL_dup_cs
paulson@2557
  3615
and HOL_dup_cs obsolete;
paulson@2557
  3616
paulson@2557
  3617
* Syntactic ambiguities caused by the new treatment of syntax in Isabelle94-1
paulson@2557
  3618
have been removed;
paulson@2557
  3619
paulson@2557
  3620
* Simpler definition of function space in ZF;
paulson@2557
  3621
paulson@2557
  3622
* new results about cardinal and ordinal arithmetic in ZF;
paulson@2557
  3623
paulson@2557
  3624
* 'subtype' facility in HOL for introducing new types as subsets of existing
paulson@2557
  3625
types;
paulson@2557
  3626
paulson@2557
  3627
wenzelm@2553
  3628
$Id$