NEWS
author haftmann
Thu, 15 Apr 2010 12:27:14 +0200
changeset 36147 b43b22f63665
parent 36096 abc6a2ea4b88
child 36162 0bd034a80a9a
permissions -rw-r--r--
theory RBT with abstract type of red-black trees backed by implementation RBT_Impl
wenzelm@5363
     1
Isabelle NEWS -- history user-relevant changes
wenzelm@5363
     2
==============================================
wenzelm@2553
     3
haftmann@33990
     4
New in this Isabelle version
haftmann@33990
     5
----------------------------
haftmann@33990
     6
wenzelm@35260
     7
*** General ***
wenzelm@35260
     8
wenzelm@35546
     9
* Authentic syntax for *all* logical entities (type classes, type
wenzelm@35546
    10
constructors, term constants): provides simple and robust
wenzelm@35546
    11
correspondence between formal entities and concrete syntax.  Within
wenzelm@35546
    12
the parse tree / AST representations, "constants" are decorated by
wenzelm@35546
    13
their category (class, type, const) and spelled out explicitly with
wenzelm@35546
    14
their full internal name.
wenzelm@35546
    15
wenzelm@35546
    16
Substantial INCOMPATIBILITY concerning low-level syntax declarations
wenzelm@35546
    17
and translations (translation rules and translation functions in ML).
wenzelm@35546
    18
Some hints on upgrading:
wenzelm@35260
    19
wenzelm@35260
    20
  - Many existing uses of 'syntax' and 'translations' can be replaced
wenzelm@35546
    21
    by more modern 'type_notation', 'notation' and 'abbreviation',
wenzelm@35546
    22
    which are independent of this issue.
wenzelm@35260
    23
wenzelm@35260
    24
  - 'translations' require markup within the AST; the term syntax
wenzelm@35260
    25
    provides the following special forms:
wenzelm@35260
    26
wenzelm@35260
    27
      CONST c   -- produces syntax version of constant c from context
wenzelm@35261
    28
      XCONST c  -- literally c, checked as constant from context
wenzelm@35261
    29
      c         -- literally c, if declared by 'syntax'
wenzelm@35261
    30
wenzelm@35261
    31
    Plain identifiers are treated as AST variables -- occasionally the
wenzelm@35261
    32
    system indicates accidental variables via the error "rhs contains
wenzelm@35261
    33
    extra variables".
wenzelm@35260
    34
wenzelm@35546
    35
    Type classes and type constructors are marked according to their
wenzelm@35546
    36
    concrete syntax.  Some old translations rules need to be written
wenzelm@35546
    37
    for the "type" category, using type constructor application
wenzelm@35546
    38
    instead of pseudo-term application of the default category
wenzelm@35546
    39
    "logic".
wenzelm@35546
    40
wenzelm@35260
    41
  - 'parse_translation' etc. in ML may use the following
wenzelm@35260
    42
    antiquotations:
wenzelm@35260
    43
wenzelm@35546
    44
      @{class_syntax c}   -- type class c within parse tree / AST
wenzelm@35546
    45
      @{term_syntax c}    -- type constructor c within parse tree / AST
wenzelm@35260
    46
      @{const_syntax c}   -- ML version of "CONST c" above
wenzelm@35260
    47
      @{syntax_const c}   -- literally c (checked wrt. 'syntax' declarations)
wenzelm@35260
    48
wenzelm@35546
    49
  - Literal types within 'typed_print_translations', i.e. those *not*
wenzelm@35546
    50
    represented as pseudo-terms are represented verbatim.  Use @{class
wenzelm@35546
    51
    c} or @{type_name c} here instead of the above syntax
wenzelm@35546
    52
    antiquotations.
wenzelm@35546
    53
wenzelm@35260
    54
Note that old non-authentic syntax was based on unqualified base
wenzelm@35546
    55
names, so all of the above "constant" names would coincide.  Recall
wenzelm@35546
    56
that 'print_syntax' and ML_command "set Syntax.trace_ast" help to
wenzelm@35546
    57
diagnose syntax problems.
wenzelm@35260
    58
wenzelm@35352
    59
* Type constructors admit general mixfix syntax, not just infix.
wenzelm@35352
    60
wenzelm@35613
    61
* Use of cumulative prems via "!" in some proof methods has been
wenzelm@35613
    62
discontinued (legacy feature).
wenzelm@35613
    63
boehmes@35979
    64
* References 'trace_simp' and 'debug_simp' have been replaced by
boehmes@35979
    65
configuration options stored in the context. Enabling tracing
boehmes@35979
    66
(the case of debugging is similar) in proofs works via
boehmes@35979
    67
boehmes@35979
    68
  using [[trace_simp=true]]
boehmes@35979
    69
boehmes@35979
    70
Tracing is then active for all invocations of the simplifier
boehmes@35994
    71
in subsequent goal refinement steps. Tracing may also still be
boehmes@35994
    72
enabled or disabled via the ProofGeneral settings menu.
boehmes@35979
    73
wenzelm@35260
    74
haftmann@34157
    75
*** Pure ***
haftmann@34157
    76
haftmann@36147
    77
* Code generator: simple concept for abstract datatypes obeying invariants.
haftmann@36147
    78
wenzelm@35765
    79
* Local theory specifications may depend on extra type variables that
wenzelm@35765
    80
are not present in the result type -- arguments TYPE('a) :: 'a itself
wenzelm@35765
    81
are added internally.  For example:
wenzelm@35765
    82
wenzelm@35765
    83
  definition unitary :: bool where "unitary = (ALL (x::'a) y. x = y)"
wenzelm@35765
    84
haftmann@34157
    85
* Code generator: details of internal data cache have no impact on
haftmann@34157
    86
the user space functionality any longer.
haftmann@34157
    87
ballarin@36093
    88
* Methods unfold_locales and intro_locales ignore non-locale subgoals.  This
ballarin@36093
    89
is more appropriate for interpretations with 'where'.  INCOMPATIBILITY.
haftmann@34949
    90
wenzelm@35129
    91
* Discontinued unnamed infix syntax (legacy feature for many years) --
wenzelm@35130
    92
need to specify constant name and syntax separately.  Internal ML
wenzelm@35130
    93
datatype constructors have been renamed from InfixName to Infix etc.
wenzelm@35130
    94
Minor INCOMPATIBILITY.
wenzelm@35129
    95
wenzelm@35418
    96
* Commands 'type_notation' and 'no_type_notation' declare type syntax
wenzelm@35418
    97
within a local theory context, with explicit checking of the
wenzelm@35418
    98
constructors involved (in contrast to the raw 'syntax' versions).
wenzelm@35418
    99
wenzelm@35681
   100
* Command 'typedecl' now works within a local theory context --
wenzelm@35681
   101
without introducing dependencies on parameters or assumptions, which
wenzelm@35681
   102
is not possible in Isabelle/Pure.
wenzelm@35681
   103
krauss@36044
   104
* Proof terms: Type substitutions on proof constants now use canonical
krauss@36044
   105
order of type variables. INCOMPATIBILITY: Tools working with proof
krauss@36044
   106
terms may need to be adapted.
krauss@36044
   107
haftmann@34157
   108
haftmann@33990
   109
*** HOL ***
haftmann@33990
   110
haftmann@36147
   111
* Library theory 'RBT' renamed to 'RBT_Impl'; new library theory 'RBT'
haftmann@36147
   112
provides abstract red-black tree type which is backed by RBT_Impl
haftmann@36147
   113
as implementation.  INCOMPATIBILTY.
haftmann@36147
   114
wenzelm@35758
   115
* Command 'typedef' now works within a local theory context -- without
wenzelm@35758
   116
introducing dependencies on parameters or assumptions, which is not
wenzelm@35758
   117
possible in Isabelle/Pure/HOL.  Note that the logical environment may
wenzelm@35758
   118
contain multiple interpretations of local typedefs (with different
wenzelm@35758
   119
non-emptiness proofs), even in a global theory context.
wenzelm@35758
   120
wenzelm@35763
   121
* Theory Library/Coinductive_List has been removed -- superceded by
wenzelm@35763
   122
AFP/thys/Coinductive.
wenzelm@35763
   123
haftmann@35724
   124
* Split off theory Big_Operators containing setsum, setprod, Inf_fin, Sup_fin,
haftmann@35724
   125
Min, Max from theory Finite_Set.  INCOMPATIBILITY.
haftmann@35724
   126
haftmann@35372
   127
* Theory "Rational" renamed to "Rat", for consistency with "Nat", "Int" etc.
haftmann@35372
   128
INCOMPATIBILITY.
haftmann@35372
   129
haftmann@35042
   130
* New set of rules "ac_simps" provides combined assoc / commute rewrites
haftmann@35042
   131
for all interpretations of the appropriate generic locales.
haftmann@35042
   132
haftmann@35050
   133
* Renamed theory "OrderedGroup" to "Groups" and split theory "Ring_and_Field"
haftmann@35050
   134
into theories "Rings" and "Fields";  for more appropriate and more
haftmann@35050
   135
consistent names suitable for name prefixes within the HOL theories.
haftmann@35050
   136
INCOMPATIBILITY.
haftmann@35050
   137
haftmann@35084
   138
* Some generic constants have been put to appropriate theories:
haftmann@35084
   139
haftmann@35093
   140
    less_eq, less: Orderings
haftmann@35264
   141
    zero, one, plus, minus, uminus, times, abs, sgn: Groups
haftmann@35084
   142
    inverse, divide: Rings
haftmann@35084
   143
haftmann@35084
   144
INCOMPATIBILITY.
haftmann@35084
   145
haftmann@35717
   146
* Class division_ring also requires proof of fact divide_inverse.  However instantiation
haftmann@35084
   147
of parameter divide has also been required previously.  INCOMPATIBILITY.
haftmann@35084
   148
haftmann@35032
   149
* More consistent naming of type classes involving orderings (and lattices):
haftmann@35027
   150
haftmann@35027
   151
    lower_semilattice                   ~> semilattice_inf
haftmann@35027
   152
    upper_semilattice                   ~> semilattice_sup
haftmann@35027
   153
haftmann@35027
   154
    dense_linear_order                  ~> dense_linorder
haftmann@35027
   155
haftmann@35027
   156
    pordered_ab_group_add               ~> ordered_ab_group_add
haftmann@35027
   157
    pordered_ab_group_add_abs           ~> ordered_ab_group_add_abs
haftmann@35027
   158
    pordered_ab_semigroup_add           ~> ordered_ab_semigroup_add
haftmann@35027
   159
    pordered_ab_semigroup_add_imp_le    ~> ordered_ab_semigroup_add_imp_le
haftmann@35027
   160
    pordered_cancel_ab_semigroup_add    ~> ordered_cancel_ab_semigroup_add
haftmann@35027
   161
    pordered_cancel_comm_semiring       ~> ordered_cancel_comm_semiring
haftmann@35027
   162
    pordered_cancel_semiring            ~> ordered_cancel_semiring
haftmann@35027
   163
    pordered_comm_monoid_add            ~> ordered_comm_monoid_add
haftmann@35027
   164
    pordered_comm_ring                  ~> ordered_comm_ring
haftmann@35027
   165
    pordered_comm_semiring              ~> ordered_comm_semiring
haftmann@35027
   166
    pordered_ring                       ~> ordered_ring
haftmann@35027
   167
    pordered_ring_abs                   ~> ordered_ring_abs
haftmann@35027
   168
    pordered_semiring                   ~> ordered_semiring
haftmann@35027
   169
haftmann@35027
   170
    ordered_ab_group_add                ~> linordered_ab_group_add
haftmann@35027
   171
    ordered_ab_semigroup_add            ~> linordered_ab_semigroup_add
haftmann@35027
   172
    ordered_cancel_ab_semigroup_add     ~> linordered_cancel_ab_semigroup_add
haftmann@35027
   173
    ordered_comm_semiring_strict        ~> linordered_comm_semiring_strict
haftmann@35027
   174
    ordered_field                       ~> linordered_field
haftmann@35027
   175
    ordered_field_no_lb                 ~> linordered_field_no_lb
haftmann@35027
   176
    ordered_field_no_ub                 ~> linordered_field_no_ub
haftmann@35027
   177
    ordered_field_dense_linear_order    ~> dense_linordered_field
haftmann@35027
   178
    ordered_idom                        ~> linordered_idom
haftmann@35027
   179
    ordered_ring                        ~> linordered_ring
haftmann@35027
   180
    ordered_ring_le_cancel_factor       ~> linordered_ring_le_cancel_factor
haftmann@35027
   181
    ordered_ring_less_cancel_factor     ~> linordered_ring_less_cancel_factor
haftmann@35027
   182
    ordered_ring_strict                 ~> linordered_ring_strict
haftmann@35027
   183
    ordered_semidom                     ~> linordered_semidom
haftmann@35027
   184
    ordered_semiring                    ~> linordered_semiring
haftmann@35027
   185
    ordered_semiring_1                  ~> linordered_semiring_1
haftmann@35027
   186
    ordered_semiring_1_strict           ~> linordered_semiring_1_strict
haftmann@35027
   187
    ordered_semiring_strict             ~> linordered_semiring_strict
haftmann@35027
   188
haftmann@35032
   189
  The following slightly odd type classes have been moved to
haftmann@35032
   190
  a separate theory Library/Lattice_Algebras.thy:
haftmann@35032
   191
haftmann@35032
   192
    lordered_ab_group_add               ~> lattice_ab_group_add
haftmann@35032
   193
    lordered_ab_group_add_abs           ~> lattice_ab_group_add_abs
haftmann@35032
   194
    lordered_ab_group_add_meet          ~> semilattice_inf_ab_group_add
haftmann@35032
   195
    lordered_ab_group_add_join          ~> semilattice_sup_ab_group_add
haftmann@35032
   196
    lordered_ring                       ~> lattice_ring
haftmann@35032
   197
haftmann@35027
   198
INCOMPATIBILITY.
haftmann@35027
   199
haftmann@34949
   200
* HOLogic.strip_psplit: types are returned in syntactic order, similar
haftmann@34949
   201
to other strip and tuple operations.  INCOMPATIBILITY.
haftmann@34949
   202
haftmann@34933
   203
* Various old-style primrec specifications in the HOL theories have been
haftmann@34933
   204
replaced by new-style primrec, especially in theory List.  The corresponding
haftmann@34933
   205
constants now have authentic syntax.  INCOMPATIBILITY.
haftmann@34933
   206
haftmann@35276
   207
* Reorganized theory Multiset: swapped notation of pointwise and multiset order:
haftmann@35276
   208
  * pointwise ordering is instance of class order with standard syntax <= and <;
haftmann@35276
   209
  * multiset ordering has syntax <=# and <#; partial order properties are provided
haftmann@35276
   210
      by means of interpretation with prefix multiset_order.
haftmann@35276
   211
Less duplication, less historical organization of sections,
haftmann@35270
   212
conversion from associations lists to multisets, rudimentary code generation.
haftmann@35270
   213
Use insert_DiffM2 [symmetric] instead of elem_imp_eq_diff_union, if needed.
haftmann@35270
   214
INCOMPATIBILITY.
haftmann@34933
   215
wenzelm@35009
   216
* Reorganized theory Sum_Type; Inl and Inr now have authentic syntax.
wenzelm@35009
   217
INCOMPATIBILITY.
haftmann@33990
   218
haftmann@33990
   219
* Code generation: ML and OCaml code is decorated with signatures.
haftmann@33990
   220
wenzelm@35009
   221
* Theory Complete_Lattice: lemmas top_def and bot_def have been
wenzelm@35009
   222
replaced by the more convenient lemmas Inf_empty and Sup_empty.
wenzelm@35009
   223
Dropped lemmas Inf_insert_simp and Sup_insert_simp, which are subsumed
wenzelm@35009
   224
by Inf_insert and Sup_insert.  Lemmas Inf_UNIV and Sup_UNIV replace
wenzelm@35009
   225
former Inf_Univ and Sup_Univ.  Lemmas inf_top_right and sup_bot_right
wenzelm@35009
   226
subsume inf_top and sup_bot respectively.  INCOMPATIBILITY.
wenzelm@35009
   227
wenzelm@35009
   228
* Theory Finite_Set and List: some lemmas have been generalized from
wenzelm@34076
   229
sets to lattices:
wenzelm@34076
   230
haftmann@33998
   231
  fun_left_comm_idem_inter      ~> fun_left_comm_idem_inf
haftmann@33998
   232
  fun_left_comm_idem_union      ~> fun_left_comm_idem_sup
haftmann@33998
   233
  inter_Inter_fold_inter        ~> inf_Inf_fold_inf
haftmann@33998
   234
  union_Union_fold_union        ~> sup_Sup_fold_sup
haftmann@33998
   235
  Inter_fold_inter              ~> Inf_fold_inf
haftmann@33998
   236
  Union_fold_union              ~> Sup_fold_sup
haftmann@33998
   237
  inter_INTER_fold_inter        ~> inf_INFI_fold_inf
haftmann@33998
   238
  union_UNION_fold_union        ~> sup_SUPR_fold_sup
haftmann@33998
   239
  INTER_fold_inter              ~> INFI_fold_inf
haftmann@33998
   240
  UNION_fold_union              ~> SUPR_fold_sup
haftmann@33998
   241
wenzelm@35009
   242
* Theory List: added transpose.
wenzelm@35009
   243
wenzelm@35100
   244
* Renamed Library/Quotient.thy to Library/Quotient_Type.thy to avoid
wenzelm@35100
   245
clash with new theory Quotient in Main HOL.
wenzelm@35100
   246
huffman@35810
   247
* Library/Nat_Bijection.thy is a collection of bijective functions
huffman@35810
   248
between nat and other types, which supersedes the older libraries
huffman@35810
   249
Library/Nat_Int_Bij.thy and HOLCF/NatIso.thy.  INCOMPATIBILITY.
huffman@35810
   250
huffman@35810
   251
  Constants:
huffman@35810
   252
  Nat_Int_Bij.nat2_to_nat         ~> prod_encode
huffman@35810
   253
  Nat_Int_Bij.nat_to_nat2         ~> prod_decode
huffman@35810
   254
  Nat_Int_Bij.int_to_nat_bij      ~> int_encode
huffman@35810
   255
  Nat_Int_Bij.nat_to_int_bij      ~> int_decode
huffman@35810
   256
  Countable.pair_encode           ~> prod_encode
huffman@35810
   257
  NatIso.prod2nat                 ~> prod_encode
huffman@35810
   258
  NatIso.nat2prod                 ~> prod_decode
huffman@35810
   259
  NatIso.sum2nat                  ~> sum_encode
huffman@35810
   260
  NatIso.nat2sum                  ~> sum_decode
huffman@35810
   261
  NatIso.list2nat                 ~> list_encode
huffman@35810
   262
  NatIso.nat2list                 ~> list_decode
huffman@35810
   263
  NatIso.set2nat                  ~> set_encode
huffman@35810
   264
  NatIso.nat2set                  ~> set_decode
huffman@35810
   265
huffman@35810
   266
  Lemmas:
huffman@35810
   267
  Nat_Int_Bij.bij_nat_to_int_bij  ~> bij_int_decode
huffman@35810
   268
  Nat_Int_Bij.nat2_to_nat_inj     ~> inj_prod_encode
huffman@35810
   269
  Nat_Int_Bij.nat2_to_nat_surj    ~> surj_prod_encode
huffman@35810
   270
  Nat_Int_Bij.nat_to_nat2_inj     ~> inj_prod_decode
huffman@35810
   271
  Nat_Int_Bij.nat_to_nat2_surj    ~> surj_prod_decode
huffman@35810
   272
  Nat_Int_Bij.i2n_n2i_id          ~> int_encode_inverse
huffman@35810
   273
  Nat_Int_Bij.n2i_i2n_id          ~> int_decode_inverse
huffman@35810
   274
  Nat_Int_Bij.surj_nat_to_int_bij ~> surj_int_encode
huffman@35810
   275
  Nat_Int_Bij.surj_int_to_nat_bij ~> surj_int_decode
huffman@35810
   276
  Nat_Int_Bij.inj_nat_to_int_bij  ~> inj_int_encode
huffman@35810
   277
  Nat_Int_Bij.inj_int_to_nat_bij  ~> inj_int_decode
huffman@35810
   278
  Nat_Int_Bij.bij_nat_to_int_bij  ~> bij_int_encode
huffman@35810
   279
  Nat_Int_Bij.bij_int_to_nat_bij  ~> bij_int_decode
huffman@35810
   280
haftmann@33990
   281
haftmann@33990
   282
*** ML ***
haftmann@33990
   283
wenzelm@35401
   284
* Antiquotations for basic formal entities:
wenzelm@35396
   285
wenzelm@35396
   286
    @{class NAME}         -- type class
wenzelm@35401
   287
    @{class_syntax NAME}  -- syntax representation of the above
wenzelm@35401
   288
wenzelm@35401
   289
    @{type_name NAME}     -- logical type
wenzelm@35361
   290
    @{type_abbrev NAME}   -- type abbreviation
wenzelm@35361
   291
    @{nonterminal NAME}   -- type of concrete syntactic category
wenzelm@35361
   292
    @{type_syntax NAME}   -- syntax representation of any of the above
wenzelm@35361
   293
wenzelm@35401
   294
    @{const_name NAME}    -- logical constant (INCOMPATIBILITY)
wenzelm@35401
   295
    @{const_abbrev NAME}  -- abbreviated constant
wenzelm@35401
   296
    @{const_syntax NAME}  -- syntax representation of any of the above
wenzelm@35401
   297
wenzelm@35114
   298
* Antiquotation @{syntax_const NAME} ensures that NAME refers to a raw
wenzelm@35114
   299
syntax constant (cf. 'syntax' command).
wenzelm@35114
   300
wenzelm@35021
   301
* Renamed old-style Drule.standard to Drule.export_without_context, to
wenzelm@35021
   302
emphasize that this is in no way a standard operation.
wenzelm@35021
   303
INCOMPATIBILITY.
wenzelm@35021
   304
wenzelm@34076
   305
* Curried take and drop in library.ML; negative length is interpreted
wenzelm@34076
   306
as infinity (as in chop).  INCOMPATIBILITY.
wenzelm@34076
   307
wenzelm@34076
   308
* Subgoal.FOCUS (and variants): resulting goal state is normalized as
wenzelm@34076
   309
usual for resolution.  Rare INCOMPATIBILITY.
wenzelm@34076
   310
wenzelm@34259
   311
* Discontinued old TheoryDataFun with its copy/init operation -- data
wenzelm@34259
   312
needs to be pure.  Functor Theory_Data_PP retains the traditional
wenzelm@34259
   313
Pretty.pp argument to merge, which is absent in the standard
wenzelm@34259
   314
Theory_Data version.
wenzelm@34259
   315
wenzelm@35845
   316
* Renamed varify/unvarify operations to varify_global/unvarify_global
wenzelm@35845
   317
to emphasize that these only work in a global situation (which is
wenzelm@35845
   318
quite rare).
wenzelm@35845
   319
wenzelm@36000
   320
* Configuration options now admit dynamic default values, depending on
wenzelm@36000
   321
the context or even global references.
wenzelm@36000
   322
haftmann@33990
   323
wenzelm@34238
   324
*** System ***
wenzelm@34238
   325
wenzelm@34238
   326
* Discontinued special HOL_USEDIR_OPTIONS for the main HOL image;
wenzelm@34238
   327
ISABELLE_USEDIR_OPTIONS applies uniformly to all sessions.  Note that
wenzelm@34238
   328
proof terms are enabled unconditionally in the new HOL-Proofs image.
wenzelm@34238
   329
wenzelm@34255
   330
* Discontinued old ISABELLE and ISATOOL environment settings (legacy
wenzelm@34255
   331
feature since Isabelle2009).  Use ISABELLE_PROCESS and ISABELLE_TOOL,
wenzelm@34255
   332
respectively.
wenzelm@34255
   333
wenzelm@34238
   334
haftmann@33990
   335
wenzelm@33842
   336
New in Isabelle2009-1 (December 2009)
wenzelm@33842
   337
-------------------------------------
wenzelm@30904
   338
wenzelm@31550
   339
*** General ***
wenzelm@31550
   340
wenzelm@31550
   341
* Discontinued old form of "escaped symbols" such as \\<forall>.  Only
wenzelm@31550
   342
one backslash should be used, even in ML sources.
wenzelm@31550
   343
wenzelm@31550
   344
haftmann@30951
   345
*** Pure ***
haftmann@30951
   346
ballarin@32841
   347
* Locale interpretation propagates mixins along the locale hierarchy.
ballarin@32841
   348
The currently only available mixins are the equations used to map
ballarin@32841
   349
local definitions to terms of the target domain of an interpretation.
ballarin@32841
   350
wenzelm@33842
   351
* Reactivated diagnostic command 'print_interps'.  Use "print_interps
wenzelm@33842
   352
loc" to print all interpretations of locale "loc" in the theory.
wenzelm@33842
   353
Interpretations in proofs are not shown.
ballarin@32841
   354
ballarin@32983
   355
* Thoroughly revised locales tutorial.  New section on conditional
ballarin@32983
   356
interpretation.
ballarin@32983
   357
wenzelm@33843
   358
* On instantiation of classes, remaining undefined class parameters
wenzelm@33843
   359
are formally declared.  INCOMPATIBILITY.
wenzelm@33843
   360
haftmann@30951
   361
wenzelm@33842
   362
*** Document preparation ***
wenzelm@33842
   363
wenzelm@33842
   364
* New generalized style concept for printing terms: @{foo (style) ...}
wenzelm@33842
   365
instead of @{foo_style style ...}  (old form is still retained for
wenzelm@33842
   366
backward compatibility).  Styles can be also applied for
wenzelm@33842
   367
antiquotations prop, term_type and typeof.
haftmann@32891
   368
haftmann@32891
   369
haftmann@30930
   370
*** HOL ***
haftmann@30930
   371
wenzelm@33842
   372
* New proof method "smt" for a combination of first-order logic with
wenzelm@33842
   373
equality, linear and nonlinear (natural/integer/real) arithmetic, and
wenzelm@33842
   374
fixed-size bitvectors; there is also basic support for higher-order
wenzelm@33842
   375
features (esp. lambda abstractions).  It is an incomplete decision
wenzelm@33842
   376
procedure based on external SMT solvers using the oracle mechanism;
wenzelm@33842
   377
for the SMT solver Z3, this method is proof-producing.  Certificates
wenzelm@33842
   378
are provided to avoid calling the external solvers solely for
wenzelm@33842
   379
re-checking proofs.  Due to a remote SMT service there is no need for
wenzelm@33842
   380
installing SMT solvers locally.  See src/HOL/SMT.
wenzelm@33842
   381
wenzelm@33842
   382
* New commands to load and prove verification conditions generated by
wenzelm@33842
   383
the Boogie program verifier or derived systems (e.g. the Verifying C
wenzelm@33842
   384
Compiler (VCC) or Spec#).  See src/HOL/Boogie.
wenzelm@33842
   385
wenzelm@33842
   386
* New counterexample generator tool 'nitpick' based on the Kodkod
wenzelm@33842
   387
relational model finder.  See src/HOL/Tools/Nitpick and
wenzelm@33842
   388
src/HOL/Nitpick_Examples.
wenzelm@33842
   389
haftmann@33860
   390
* New commands 'code_pred' and 'values' to invoke the predicate
haftmann@33860
   391
compiler and to enumerate values of inductive predicates.
haftmann@33860
   392
haftmann@33860
   393
* A tabled implementation of the reflexive transitive closure.
haftmann@33860
   394
haftmann@33860
   395
* New implementation of quickcheck uses generic code generator;
haftmann@33860
   396
default generators are provided for all suitable HOL types, records
haftmann@33860
   397
and datatypes.  Old quickcheck can be re-activated importing theory
haftmann@33860
   398
Library/SML_Quickcheck.
haftmann@33860
   399
wenzelm@33843
   400
* New testing tool Mirabelle for automated proof tools.  Applies
wenzelm@32427
   401
several tools and tactics like sledgehammer, metis, or quickcheck, to
wenzelm@33842
   402
every proof step in a theory.  To be used in batch mode via the
wenzelm@32427
   403
"mirabelle" utility.
wenzelm@32427
   404
wenzelm@32427
   405
* New proof method "sos" (sum of squares) for nonlinear real
wenzelm@33842
   406
arithmetic (originally due to John Harison). It requires theory
wenzelm@32427
   407
Library/Sum_Of_Squares.  It is not a complete decision procedure but
wenzelm@32427
   408
works well in practice on quantifier-free real arithmetic with +, -,
wenzelm@32427
   409
*, ^, =, <= and <, i.e. boolean combinations of equalities and
wenzelm@33842
   410
inequalities between polynomials.  It makes use of external
wenzelm@33842
   411
semidefinite programming solvers.  Method "sos" generates a
wenzelm@33842
   412
certificate that can be pasted into the proof thus avoiding the need
wenzelm@33842
   413
to call an external tool every time the proof is checked.  See
wenzelm@33842
   414
src/HOL/Library/Sum_Of_Squares.
wenzelm@32427
   415
wenzelm@33843
   416
* New method "linarith" invokes existing linear arithmetic decision
wenzelm@33843
   417
procedure only.
wenzelm@33843
   418
wenzelm@33843
   419
* New command 'atp_minimal' reduces result produced by Sledgehammer.
wenzelm@33843
   420
wenzelm@33843
   421
* New Sledgehammer option "Full Types" in Proof General settings menu.
wenzelm@33843
   422
Causes full type information to be output to the ATPs.  This slows
wenzelm@33843
   423
ATPs down considerably but eliminates a source of unsound "proofs"
wenzelm@33843
   424
that fail later.
wenzelm@33843
   425
wenzelm@33843
   426
* New method "metisFT": A version of metis that uses full type
wenzelm@33843
   427
information in order to avoid failures of proof reconstruction.
wenzelm@33843
   428
wenzelm@33843
   429
* New evaluator "approximate" approximates an real valued term using
wenzelm@33843
   430
the same method as the approximation method.
wenzelm@33843
   431
wenzelm@33843
   432
* Method "approximate" now supports arithmetic expressions as
wenzelm@33843
   433
boundaries of intervals and implements interval splitting and Taylor
wenzelm@33843
   434
series expansion.
wenzelm@33843
   435
wenzelm@33843
   436
* ML antiquotation @{code_datatype} inserts definition of a datatype
wenzelm@33843
   437
generated by the code generator; e.g. see src/HOL/Predicate.thy.
wenzelm@33843
   438
haftmann@33860
   439
* New theory SupInf of the supremum and infimum operators for sets of
haftmann@33860
   440
reals.
haftmann@33860
   441
haftmann@33860
   442
* New theory Probability, which contains a development of measure
haftmann@33860
   443
theory, eventually leading to Lebesgue integration and probability.
haftmann@33860
   444
haftmann@33860
   445
* Extended Multivariate Analysis to include derivation and Brouwer's
haftmann@33860
   446
fixpoint theorem.
wenzelm@33843
   447
wenzelm@33843
   448
* Reorganization of number theory, INCOMPATIBILITY:
wenzelm@33873
   449
  - new number theory development for nat and int, in theories Divides
wenzelm@33873
   450
    and GCD as well as in new session Number_Theory
wenzelm@33873
   451
  - some constants and facts now suffixed with _nat and _int
wenzelm@33873
   452
    accordingly
wenzelm@33873
   453
  - former session NumberTheory now named Old_Number_Theory, including
wenzelm@33873
   454
    theories Legacy_GCD and Primes (prefer Number_Theory if possible)
wenzelm@33843
   455
  - moved theory Pocklington from src/HOL/Library to
wenzelm@33843
   456
    src/HOL/Old_Number_Theory
wenzelm@33843
   457
wenzelm@33873
   458
* Theory GCD includes functions Gcd/GCD and Lcm/LCM for the gcd and
wenzelm@33873
   459
lcm of finite and infinite sets. It is shown that they form a complete
wenzelm@33843
   460
lattice.
wenzelm@33843
   461
wenzelm@33843
   462
* Class semiring_div requires superclass no_zero_divisors and proof of
wenzelm@33843
   463
div_mult_mult1; theorems div_mult_mult1, div_mult_mult2,
wenzelm@33843
   464
div_mult_mult1_if, div_mult_mult1 and div_mult_mult2 have been
wenzelm@33843
   465
generalized to class semiring_div, subsuming former theorems
wenzelm@33843
   466
zdiv_zmult_zmult1, zdiv_zmult_zmult1_if, zdiv_zmult_zmult1 and
wenzelm@33843
   467
zdiv_zmult_zmult2.  div_mult_mult1 is now [simp] by default.
wenzelm@33843
   468
INCOMPATIBILITY.
wenzelm@33843
   469
haftmann@32588
   470
* Refinements to lattice classes and sets:
haftmann@32056
   471
  - less default intro/elim rules in locale variant, more default
haftmann@32056
   472
    intro/elim rules in class variant: more uniformity
wenzelm@33842
   473
  - lemma ge_sup_conv renamed to le_sup_iff, in accordance with
wenzelm@33842
   474
    le_inf_iff
wenzelm@33842
   475
  - dropped lemma alias inf_ACI for inf_aci (same for sup_ACI and
wenzelm@33842
   476
    sup_aci)
haftmann@32056
   477
  - renamed ACI to inf_sup_aci
haftmann@32600
   478
  - new class "boolean_algebra"
wenzelm@33842
   479
  - class "complete_lattice" moved to separate theory
haftmann@33860
   480
    "Complete_Lattice"; corresponding constants (and abbreviations)
wenzelm@33842
   481
    renamed and with authentic syntax:
haftmann@33860
   482
    Set.Inf ~>    Complete_Lattice.Inf
haftmann@33860
   483
    Set.Sup ~>    Complete_Lattice.Sup
haftmann@33860
   484
    Set.INFI ~>   Complete_Lattice.INFI
haftmann@33860
   485
    Set.SUPR ~>   Complete_Lattice.SUPR
haftmann@33860
   486
    Set.Inter ~>  Complete_Lattice.Inter
haftmann@33860
   487
    Set.Union ~>  Complete_Lattice.Union
haftmann@33860
   488
    Set.INTER ~>  Complete_Lattice.INTER
haftmann@33860
   489
    Set.UNION ~>  Complete_Lattice.UNION
haftmann@32600
   490
  - authentic syntax for
haftmann@32600
   491
    Set.Pow
haftmann@32600
   492
    Set.image
haftmann@32588
   493
  - mere abbreviations:
haftmann@32588
   494
    Set.empty               (for bot)
haftmann@32588
   495
    Set.UNIV                (for top)
haftmann@33860
   496
    Set.inter               (for inf, formerly Set.Int)
haftmann@33860
   497
    Set.union               (for sup, formerly Set.Un)
haftmann@32588
   498
    Complete_Lattice.Inter  (for Inf)
haftmann@32588
   499
    Complete_Lattice.Union  (for Sup)
haftmann@32606
   500
    Complete_Lattice.INTER  (for INFI)
haftmann@32606
   501
    Complete_Lattice.UNION  (for SUPR)
haftmann@32600
   502
  - object-logic definitions as far as appropriate
haftmann@32217
   503
haftmann@32691
   504
INCOMPATIBILITY.  Care is required when theorems Int_subset_iff or
wenzelm@33842
   505
Un_subset_iff are explicitly deleted as default simp rules; then also
wenzelm@33842
   506
their lattice counterparts le_inf_iff and le_sup_iff have to be
haftmann@32691
   507
deleted to achieve the desired effect.
haftmann@32056
   508
wenzelm@33842
   509
* Rules inf_absorb1, inf_absorb2, sup_absorb1, sup_absorb2 are no simp
wenzelm@33842
   510
rules by default any longer; the same applies to min_max.inf_absorb1
wenzelm@33842
   511
etc.  INCOMPATIBILITY.
wenzelm@33842
   512
wenzelm@33842
   513
* Rules sup_Int_eq and sup_Un_eq are no longer declared as
wenzelm@33842
   514
pred_set_conv by default.  INCOMPATIBILITY.
wenzelm@33842
   515
wenzelm@33842
   516
* Power operations on relations and functions are now one dedicated
haftmann@32706
   517
constant "compow" with infix syntax "^^".  Power operation on
wenzelm@31550
   518
multiplicative monoids retains syntax "^" and is now defined generic
wenzelm@31550
   519
in class power.  INCOMPATIBILITY.
wenzelm@31550
   520
wenzelm@33842
   521
* Relation composition "R O S" now has a more standard argument order:
wenzelm@33842
   522
"R O S = {(x, z). EX y. (x, y) : R & (y, z) : S}".  INCOMPATIBILITY,
wenzelm@33842
   523
rewrite propositions with "S O R" --> "R O S". Proofs may occasionally
wenzelm@33842
   524
break, since the O_assoc rule was not rewritten like this.  Fix using
wenzelm@33842
   525
O_assoc[symmetric].  The same applies to the curried version "R OO S".
wenzelm@32427
   526
nipkow@33057
   527
* Function "Inv" is renamed to "inv_into" and function "inv" is now an
wenzelm@33842
   528
abbreviation for "inv_into UNIV".  Lemmas are renamed accordingly.
nipkow@32988
   529
INCOMPATIBILITY.
nipkow@32988
   530
haftmann@33860
   531
* Most rules produced by inductive and datatype package have mandatory
haftmann@33860
   532
prefixes.  INCOMPATIBILITY.
nipkow@31790
   533
wenzelm@33842
   534
* Changed "DERIV_intros" to a dynamic fact, which can be augmented by
wenzelm@33842
   535
the attribute of the same name.  Each of the theorems in the list
wenzelm@33842
   536
DERIV_intros assumes composition with an additional function and
wenzelm@33842
   537
matches a variable to the derivative, which has to be solved by the
wenzelm@33842
   538
Simplifier.  Hence (auto intro!: DERIV_intros) computes the derivative
wenzelm@33873
   539
of most elementary terms.  Former Maclauren.DERIV_tac and
wenzelm@33873
   540
Maclauren.deriv_tac should be replaced by (auto intro!: DERIV_intros).
wenzelm@33873
   541
INCOMPATIBILITY.
haftmann@33860
   542
haftmann@33860
   543
* Code generator attributes follow the usual underscore convention:
haftmann@33860
   544
    code_unfold     replaces    code unfold
haftmann@33860
   545
    code_post       replaces    code post
haftmann@33860
   546
    etc.
haftmann@33860
   547
  INCOMPATIBILITY.
wenzelm@31911
   548
krauss@33471
   549
* Renamed methods:
krauss@33471
   550
    sizechange -> size_change
krauss@33471
   551
    induct_scheme -> induction_schema
haftmann@33860
   552
  INCOMPATIBILITY.
nipkow@33669
   553
wenzelm@33843
   554
* Discontinued abbreviation "arbitrary" of constant "undefined".
wenzelm@33843
   555
INCOMPATIBILITY, use "undefined" directly.
wenzelm@33843
   556
haftmann@33860
   557
* Renamed theorems:
haftmann@33860
   558
    Suc_eq_add_numeral_1 -> Suc_eq_plus1
haftmann@33860
   559
    Suc_eq_add_numeral_1_left -> Suc_eq_plus1_left
haftmann@33860
   560
    Suc_plus1 -> Suc_eq_plus1
haftmann@33860
   561
    *anti_sym -> *antisym*
haftmann@33860
   562
    vector_less_eq_def -> vector_le_def
haftmann@33860
   563
  INCOMPATIBILITY.
haftmann@33860
   564
haftmann@33860
   565
* Added theorem List.map_map as [simp].  Removed List.map_compose.
haftmann@33860
   566
INCOMPATIBILITY.
haftmann@33860
   567
haftmann@33860
   568
* Removed predicate "M hassize n" (<--> card M = n & finite M).
haftmann@33860
   569
INCOMPATIBILITY.
haftmann@33860
   570
hoelzl@31812
   571
huffman@33825
   572
*** HOLCF ***
huffman@33825
   573
wenzelm@33842
   574
* Theory Representable defines a class "rep" of domains that are
wenzelm@33842
   575
representable (via an ep-pair) in the universal domain type "udom".
huffman@33825
   576
Instances are provided for all type constructors defined in HOLCF.
huffman@33825
   577
huffman@33825
   578
* The 'new_domain' command is a purely definitional version of the
huffman@33825
   579
domain package, for representable domains.  Syntax is identical to the
huffman@33825
   580
old domain package.  The 'new_domain' package also supports indirect
huffman@33825
   581
recursion using previously-defined type constructors.  See
wenzelm@33842
   582
src/HOLCF/ex/New_Domain.thy for examples.
wenzelm@33842
   583
wenzelm@33842
   584
* Method "fixrec_simp" unfolds one step of a fixrec-defined constant
huffman@33825
   585
on the left-hand side of an equation, and then performs
huffman@33825
   586
simplification.  Rewriting is done using rules declared with the
wenzelm@33842
   587
"fixrec_simp" attribute.  The "fixrec_simp" method is intended as a
wenzelm@33842
   588
replacement for "fixpat"; see src/HOLCF/ex/Fixrec_ex.thy for examples.
huffman@33825
   589
huffman@33825
   590
* The pattern-match compiler in 'fixrec' can now handle constructors
huffman@33825
   591
with HOL function types.  Pattern-match combinators for the Pair
huffman@33825
   592
constructor are pre-configured.
huffman@33825
   593
huffman@33825
   594
* The 'fixrec' package now produces better fixed-point induction rules
huffman@33825
   595
for mutually-recursive definitions:  Induction rules have conclusions
huffman@33825
   596
of the form "P foo bar" instead of "P <foo, bar>".
huffman@33825
   597
huffman@33825
   598
* The constant "sq_le" (with infix syntax "<<" or "\<sqsubseteq>") has
huffman@33825
   599
been renamed to "below".  The name "below" now replaces "less" in many
wenzelm@33842
   600
theorem names.  (Legacy theorem names using "less" are still supported
wenzelm@33842
   601
as well.)
huffman@33825
   602
huffman@33825
   603
* The 'fixrec' package now supports "bottom patterns".  Bottom
huffman@33825
   604
patterns can be used to generate strictness rules, or to make
huffman@33825
   605
functions more strict (much like the bang-patterns supported by the
wenzelm@33873
   606
Glasgow Haskell Compiler).  See src/HOLCF/ex/Fixrec_ex.thy for
wenzelm@33873
   607
examples.
huffman@33825
   608
huffman@33825
   609
wenzelm@31304
   610
*** ML ***
wenzelm@31304
   611
wenzelm@33843
   612
* Support for Poly/ML 5.3.0, with improved reporting of compiler
wenzelm@33843
   613
errors and run-time exceptions, including detailed source positions.
wenzelm@33843
   614
wenzelm@33843
   615
* Structure Name_Space (formerly NameSpace) now manages uniquely
wenzelm@33843
   616
identified entries, with some additional information such as source
wenzelm@33843
   617
position, logical grouping etc.
wenzelm@33843
   618
wenzelm@33526
   619
* Theory and context data is now introduced by the simplified and
wenzelm@33526
   620
modernized functors Theory_Data, Proof_Data, Generic_Data.  Data needs
wenzelm@33526
   621
to be pure, but the old TheoryDataFun for mutable data (with explicit
wenzelm@33526
   622
copy operation) is still available for some time.
wenzelm@33526
   623
wenzelm@32742
   624
* Structure Synchronized (cf. src/Pure/Concurrent/synchronized.ML)
wenzelm@32742
   625
provides a high-level programming interface to synchronized state
wenzelm@32742
   626
variables with atomic update.  This works via pure function
wenzelm@32742
   627
application within a critical section -- its runtime should be as
wenzelm@32742
   628
short as possible; beware of deadlocks if critical code is nested,
wenzelm@32742
   629
either directly or indirectly via other synchronized variables!
wenzelm@32742
   630
wenzelm@32742
   631
* Structure Unsynchronized (cf. src/Pure/ML-Systems/unsynchronized.ML)
wenzelm@32742
   632
wraps raw ML references, explicitly indicating their non-thread-safe
wenzelm@32742
   633
behaviour.  The Isar toplevel keeps this structure open, to
wenzelm@32742
   634
accommodate Proof General as well as quick and dirty interactive
wenzelm@32742
   635
experiments with references.
wenzelm@32742
   636
wenzelm@32365
   637
* PARALLEL_CHOICE and PARALLEL_GOALS provide basic support for
wenzelm@32365
   638
parallel tactical reasoning.
wenzelm@32365
   639
wenzelm@32427
   640
* Tacticals Subgoal.FOCUS, Subgoal.FOCUS_PREMS, Subgoal.FOCUS_PARAMS
wenzelm@32427
   641
are similar to SUBPROOF, but are slightly more flexible: only the
wenzelm@32427
   642
specified parts of the subgoal are imported into the context, and the
wenzelm@32427
   643
body tactic may introduce new subgoals and schematic variables.
wenzelm@32427
   644
wenzelm@32427
   645
* Old tactical METAHYPS, which does not observe the proof context, has
wenzelm@32427
   646
been renamed to Old_Goals.METAHYPS and awaits deletion.  Use SUBPROOF
wenzelm@32427
   647
or Subgoal.FOCUS etc.
wenzelm@32216
   648
wenzelm@31972
   649
* Renamed functor TableFun to Table, and GraphFun to Graph.  (Since
wenzelm@31972
   650
functors have their own ML name space there is no point to mark them
wenzelm@31972
   651
separately.)  Minor INCOMPATIBILITY.
wenzelm@31972
   652
wenzelm@31912
   653
* Renamed NamedThmsFun to Named_Thms.  INCOMPATIBILITY.
wenzelm@31912
   654
wenzelm@33842
   655
* Renamed several structures FooBar to Foo_Bar.  Occasional,
wenzelm@33842
   656
INCOMPATIBILITY.
wenzelm@33842
   657
wenzelm@33843
   658
* Operations of structure Skip_Proof no longer require quick_and_dirty
wenzelm@33843
   659
mode, which avoids critical setmp.
wenzelm@33843
   660
wenzelm@31306
   661
* Eliminated old Attrib.add_attributes, Method.add_methods and related
wenzelm@33842
   662
combinators for "args".  INCOMPATIBILITY, need to use simplified
wenzelm@31306
   663
Attrib/Method.setup introduced in Isabelle2009.
wenzelm@31304
   664
wenzelm@32151
   665
* Proper context for simpset_of, claset_of, clasimpset_of.  May fall
wenzelm@32151
   666
back on global_simpset_of, global_claset_of, global_clasimpset_of as
wenzelm@32151
   667
last resort.  INCOMPATIBILITY.
wenzelm@32151
   668
wenzelm@32112
   669
* Display.pretty_thm now requires a proper context (cf. former
wenzelm@32112
   670
ProofContext.pretty_thm).  May fall back on Display.pretty_thm_global
wenzelm@32112
   671
or even Display.pretty_thm_without_context as last resort.
wenzelm@32112
   672
INCOMPATIBILITY.
wenzelm@32112
   673
wenzelm@32446
   674
* Discontinued Display.pretty_ctyp/cterm etc.  INCOMPATIBILITY, use
wenzelm@32446
   675
Syntax.pretty_typ/term directly, preferably with proper context
wenzelm@32446
   676
instead of global theory.
wenzelm@32446
   677
wenzelm@31304
   678
wenzelm@31308
   679
*** System ***
wenzelm@31308
   680
wenzelm@33842
   681
* Further fine tuning of parallel proof checking, scales up to 8 cores
wenzelm@33842
   682
(max. speedup factor 5.0).  See also Goal.parallel_proofs in ML and
wenzelm@33842
   683
usedir option -q.
wenzelm@33842
   684
wenzelm@32326
   685
* Support for additional "Isabelle components" via etc/components, see
wenzelm@32326
   686
also the system manual.
wenzelm@32326
   687
wenzelm@32326
   688
* The isabelle makeall tool now operates on all components with
wenzelm@32326
   689
IsaMakefile, not just hardwired "logics".
wenzelm@32326
   690
wenzelm@31317
   691
* Removed "compress" option from isabelle-process and isabelle usedir;
wenzelm@31317
   692
this is always enabled.
wenzelm@31317
   693
wenzelm@33842
   694
* Discontinued support for Poly/ML 4.x versions.
wenzelm@33842
   695
wenzelm@33842
   696
* Isabelle tool "wwwfind" provides web interface for 'find_theorems'
wenzelm@33842
   697
on a given logic image.  This requires the lighttpd webserver and is
wenzelm@33842
   698
currently supported on Linux only.
wenzelm@32077
   699
wenzelm@31308
   700
wenzelm@31304
   701
wenzelm@30845
   702
New in Isabelle2009 (April 2009)
wenzelm@30845
   703
--------------------------------
haftmann@27104
   704
wenzelm@27599
   705
*** General ***
wenzelm@27599
   706
wenzelm@28504
   707
* Simplified main Isabelle executables, with less surprises on
wenzelm@28504
   708
case-insensitive file-systems (such as Mac OS).
wenzelm@28504
   709
wenzelm@28504
   710
  - The main Isabelle tool wrapper is now called "isabelle" instead of
wenzelm@28504
   711
    "isatool."
wenzelm@28504
   712
wenzelm@28504
   713
  - The former "isabelle" alias for "isabelle-process" has been
wenzelm@28504
   714
    removed (should rarely occur to regular users).
wenzelm@28504
   715
wenzelm@28915
   716
  - The former "isabelle-interface" and its alias "Isabelle" have been
wenzelm@28915
   717
    removed (interfaces are now regular Isabelle tools).
wenzelm@28504
   718
wenzelm@28504
   719
Within scripts and make files, the Isabelle environment variables
wenzelm@28504
   720
ISABELLE_TOOL and ISABELLE_PROCESS replace old ISATOOL and ISABELLE,
wenzelm@28504
   721
respectively.  (The latter are still available as legacy feature.)
wenzelm@28504
   722
wenzelm@28915
   723
The old isabelle-interface wrapper could react in confusing ways if
wenzelm@28915
   724
the interface was uninstalled or changed otherwise.  Individual
wenzelm@28915
   725
interface tool configuration is now more explicit, see also the
wenzelm@28915
   726
Isabelle system manual.  In particular, Proof General is now available
wenzelm@28915
   727
via "isabelle emacs".
wenzelm@28504
   728
wenzelm@28504
   729
INCOMPATIBILITY, need to adapt derivative scripts.  Users may need to
wenzelm@28504
   730
purge installed copies of Isabelle executables and re-run "isabelle
wenzelm@28504
   731
install -p ...", or use symlinks.
wenzelm@28504
   732
wenzelm@28914
   733
* The default for ISABELLE_HOME_USER is now ~/.isabelle instead of the
wenzelm@30845
   734
old ~/isabelle, which was slightly non-standard and apt to cause
wenzelm@30845
   735
surprises on case-insensitive file-systems (such as Mac OS).
wenzelm@28914
   736
wenzelm@28914
   737
INCOMPATIBILITY, need to move existing ~/isabelle/etc,
wenzelm@28914
   738
~/isabelle/heaps, ~/isabelle/browser_info to the new place.  Special
wenzelm@28914
   739
care is required when using older releases of Isabelle.  Note that
wenzelm@28914
   740
ISABELLE_HOME_USER can be changed in Isabelle/etc/settings of any
wenzelm@30845
   741
Isabelle distribution, in order to use the new ~/.isabelle uniformly.
wenzelm@28914
   742
wenzelm@29161
   743
* Proofs of fully specified statements are run in parallel on
wenzelm@30845
   744
multi-core systems.  A speedup factor of 2.5 to 3.2 can be expected on
wenzelm@30845
   745
a regular 4-core machine, if the initial heap space is made reasonably
wenzelm@30845
   746
large (cf. Poly/ML option -H).  (Requires Poly/ML 5.2.1 or later.)
wenzelm@30845
   747
wenzelm@30845
   748
* The main reference manuals ("isar-ref", "implementation", and
wenzelm@30845
   749
"system") have been updated and extended.  Formally checked references
wenzelm@30845
   750
as hyperlinks are now available uniformly.
wenzelm@30845
   751
wenzelm@30163
   752
wenzelm@27599
   753
*** Pure ***
wenzelm@27599
   754
wenzelm@30845
   755
* Complete re-implementation of locales.  INCOMPATIBILITY in several
wenzelm@30845
   756
respects.  The most important changes are listed below.  See the
wenzelm@30845
   757
Tutorial on Locales ("locales" manual) for details.
wenzelm@30845
   758
wenzelm@30845
   759
- In locale expressions, instantiation replaces renaming.  Parameters
wenzelm@30845
   760
must be declared in a for clause.  To aid compatibility with previous
wenzelm@30845
   761
parameter inheritance, in locale declarations, parameters that are not
wenzelm@30845
   762
'touched' (instantiation position "_" or omitted) are implicitly added
wenzelm@30845
   763
with their syntax at the beginning of the for clause.
wenzelm@30845
   764
wenzelm@30845
   765
- Syntax from abbreviations and definitions in locales is available in
wenzelm@30845
   766
locale expressions and context elements.  The latter is particularly
wenzelm@30845
   767
useful in locale declarations.
wenzelm@30845
   768
wenzelm@30845
   769
- More flexible mechanisms to qualify names generated by locale
wenzelm@30845
   770
expressions.  Qualifiers (prefixes) may be specified in locale
wenzelm@30845
   771
expressions, and can be marked as mandatory (syntax: "name!:") or
wenzelm@30845
   772
optional (syntax "name?:").  The default depends for plain "name:"
wenzelm@30845
   773
depends on the situation where a locale expression is used: in
wenzelm@30845
   774
commands 'locale' and 'sublocale' prefixes are optional, in
wenzelm@30845
   775
'interpretation' and 'interpret' prefixes are mandatory.  The old
wenzelm@30845
   776
implicit qualifiers derived from the parameter names of a locale are
wenzelm@30845
   777
no longer generated.
wenzelm@30845
   778
wenzelm@30845
   779
- Command "sublocale l < e" replaces "interpretation l < e".  The
wenzelm@30845
   780
instantiation clause in "interpretation" and "interpret" (square
wenzelm@30845
   781
brackets) is no longer available.  Use locale expressions.
wenzelm@30845
   782
wenzelm@30845
   783
- When converting proof scripts, mandatory qualifiers in
wenzelm@30845
   784
'interpretation' and 'interpret' should be retained by default, even
wenzelm@30845
   785
if this is an INCOMPATIBILITY compared to former behavior.  In the
wenzelm@30845
   786
worst case, use the "name?:" form for non-mandatory ones.  Qualifiers
wenzelm@30845
   787
in locale expressions range over a single locale instance only.
wenzelm@30845
   788
wenzelm@30845
   789
- Dropped locale element "includes".  This is a major INCOMPATIBILITY.
ballarin@28710
   790
In existing theorem specifications replace the includes element by the
wenzelm@30106
   791
respective context elements of the included locale, omitting those
wenzelm@30106
   792
that are already present in the theorem specification.  Multiple
wenzelm@30106
   793
assume elements of a locale should be replaced by a single one
wenzelm@30106
   794
involving the locale predicate.  In the proof body, declarations (most
wenzelm@30106
   795
notably theorems) may be regained by interpreting the respective
wenzelm@30106
   796
locales in the proof context as required (command "interpret").
wenzelm@30106
   797
ballarin@28710
   798
If using "includes" in replacement of a target solely because the
ballarin@28710
   799
parameter types in the theorem are not as general as in the target,
wenzelm@30106
   800
consider declaring a new locale with additional type constraints on
wenzelm@30106
   801
the parameters (context element "constrains").
ballarin@28710
   802
wenzelm@30845
   803
- Discontinued "locale (open)".  INCOMPATIBILITY.
wenzelm@30845
   804
wenzelm@30845
   805
- Locale interpretation commands no longer attempt to simplify goal.
ballarin@27761
   806
INCOMPATIBILITY: in rare situations the generated goal differs.  Use
ballarin@27761
   807
methods intro_locales and unfold_locales to clarify.
haftmann@27681
   808
wenzelm@30845
   809
- Locale interpretation commands no longer accept interpretation
wenzelm@30845
   810
attributes.  INCOMPATIBILITY.
wenzelm@30845
   811
wenzelm@30845
   812
* Class declaration: so-called "base sort" must not be given in import
wenzelm@30845
   813
list any longer, but is inferred from the specification.  Particularly
wenzelm@30845
   814
in HOL, write
wenzelm@30845
   815
wenzelm@30845
   816
    class foo = ...
wenzelm@30845
   817
wenzelm@30845
   818
instead of
wenzelm@30845
   819
wenzelm@30845
   820
    class foo = type + ...
wenzelm@30845
   821
wenzelm@30845
   822
* Class target: global versions of theorems stemming do not carry a
wenzelm@30845
   823
parameter prefix any longer.  INCOMPATIBILITY.
wenzelm@30845
   824
wenzelm@30845
   825
* Class 'instance' command no longer accepts attached definitions.
wenzelm@30845
   826
INCOMPATIBILITY, use proper 'instantiation' target instead.
wenzelm@30845
   827
wenzelm@30845
   828
* Recovered hiding of consts, which was accidentally broken in
wenzelm@30845
   829
Isabelle2007.  Potential INCOMPATIBILITY, ``hide const c'' really
wenzelm@30845
   830
makes c inaccessible; consider using ``hide (open) const c'' instead.
wenzelm@30845
   831
wenzelm@30845
   832
* Slightly more coherent Pure syntax, with updated documentation in
wenzelm@30845
   833
isar-ref manual.  Removed locales meta_term_syntax and
wenzelm@30845
   834
meta_conjunction_syntax: TERM and &&& (formerly &&) are now permanent,
wenzelm@30845
   835
INCOMPATIBILITY in rare situations.  Note that &&& should not be used
wenzelm@30845
   836
directly in regular applications.
wenzelm@30845
   837
wenzelm@30845
   838
* There is a new syntactic category "float_const" for signed decimal
wenzelm@30845
   839
fractions (e.g. 123.45 or -123.45).
wenzelm@30845
   840
wenzelm@30845
   841
* Removed exotic 'token_translation' command.  INCOMPATIBILITY, use ML
wenzelm@30845
   842
interface with 'setup' command instead.
wenzelm@30845
   843
wenzelm@30845
   844
* Command 'local_setup' is similar to 'setup', but operates on a local
wenzelm@30845
   845
theory context.
haftmann@27104
   846
wenzelm@28114
   847
* The 'axiomatization' command now only works within a global theory
wenzelm@28114
   848
context.  INCOMPATIBILITY.
wenzelm@28114
   849
wenzelm@30845
   850
* Goal-directed proof now enforces strict proof irrelevance wrt. sort
wenzelm@30845
   851
hypotheses.  Sorts required in the course of reasoning need to be
wenzelm@30845
   852
covered by the constraints in the initial statement, completed by the
wenzelm@30845
   853
type instance information of the background theory.  Non-trivial sort
wenzelm@30845
   854
hypotheses, which rarely occur in practice, may be specified via
wenzelm@30845
   855
vacuous propositions of the form SORT_CONSTRAINT('a::c).  For example:
wenzelm@30845
   856
wenzelm@30845
   857
  lemma assumes "SORT_CONSTRAINT('a::empty)" shows False ...
wenzelm@30845
   858
wenzelm@30845
   859
The result contains an implicit sort hypotheses as before --
wenzelm@30845
   860
SORT_CONSTRAINT premises are eliminated as part of the canonical rule
wenzelm@30845
   861
normalization.
wenzelm@30845
   862
wenzelm@30845
   863
* Generalized Isar history, with support for linear undo, direct state
wenzelm@30845
   864
addressing etc.
wenzelm@30845
   865
wenzelm@30845
   866
* Changed defaults for unify configuration options:
wenzelm@30845
   867
wenzelm@30845
   868
  unify_trace_bound = 50 (formerly 25)
wenzelm@30845
   869
  unify_search_bound = 60 (formerly 30)
wenzelm@30845
   870
wenzelm@30845
   871
* Different bookkeeping for code equations (INCOMPATIBILITY):
wenzelm@30845
   872
wenzelm@30845
   873
  a) On theory merge, the last set of code equations for a particular
wenzelm@30845
   874
     constant is taken (in accordance with the policy applied by other
wenzelm@30845
   875
     parts of the code generator framework).
wenzelm@30845
   876
wenzelm@30845
   877
  b) Code equations stemming from explicit declarations (e.g. code
wenzelm@30845
   878
     attribute) gain priority over default code equations stemming
wenzelm@30845
   879
     from definition, primrec, fun etc.
wenzelm@30845
   880
wenzelm@30845
   881
* Keyword 'code_exception' now named 'code_abort'.  INCOMPATIBILITY.
wenzelm@30845
   882
haftmann@30965
   883
* Unified theorem tables for both code generators.  Thus [code
wenzelm@30845
   884
func] has disappeared and only [code] remains.  INCOMPATIBILITY.
wenzelm@30580
   885
wenzelm@30580
   886
* Command 'find_consts' searches for constants based on type and name
wenzelm@30580
   887
patterns, e.g.
kleing@29820
   888
kleing@29820
   889
    find_consts "_ => bool"
kleing@29820
   890
wenzelm@30106
   891
By default, matching is against subtypes, but it may be restricted to
wenzelm@30731
   892
the whole type.  Searching by name is possible.  Multiple queries are
wenzelm@30106
   893
conjunctive and queries may be negated by prefixing them with a
wenzelm@30106
   894
hyphen:
kleing@29820
   895
kleing@29820
   896
    find_consts strict: "_ => bool" name: "Int" -"int => int"
kleing@29798
   897
wenzelm@30845
   898
* New 'find_theorems' criterion "solves" matches theorems that
wenzelm@30845
   899
directly solve the current goal (modulo higher-order unification).
wenzelm@30845
   900
wenzelm@30845
   901
* Auto solve feature for main theorem statements: whenever a new goal
wenzelm@30845
   902
is stated, "find_theorems solves" is called; any theorems that could
wenzelm@30845
   903
solve the lemma directly are listed as part of the goal state.
wenzelm@30845
   904
Cf. associated options in Proof General Isabelle settings menu,
wenzelm@30845
   905
enabled by default, with reasonable timeout for pathological cases of
wenzelm@30845
   906
higher-order unification.
webertj@30409
   907
haftmann@27651
   908
haftmann@27651
   909
*** Document preparation ***
haftmann@27651
   910
haftmann@27651
   911
* Antiquotation @{lemma} now imitates a regular terminal proof,
haftmann@27651
   912
demanding keyword 'by' and supporting the full method expression
haftmann@27651
   913
syntax just like the Isar command 'by'.
haftmann@27651
   914
haftmann@27651
   915
haftmann@27651
   916
*** HOL ***
haftmann@27651
   917
wenzelm@30845
   918
* Integrated main parts of former image HOL-Complex with HOL.  Entry
wenzelm@30845
   919
points Main and Complex_Main remain as before.
wenzelm@30845
   920
wenzelm@30845
   921
* Logic image HOL-Plain provides a minimal HOL with the most important
wenzelm@30845
   922
tools available (inductive, datatype, primrec, ...).  This facilitates
wenzelm@30845
   923
experimentation and tool development.  Note that user applications
wenzelm@30845
   924
(and library theories) should never refer to anything below theory
wenzelm@30845
   925
Main, as before.
wenzelm@30845
   926
wenzelm@30845
   927
* Logic image HOL-Main stops at theory Main, and thus facilitates
wenzelm@30845
   928
experimentation due to shorter build times.
wenzelm@30845
   929
wenzelm@30845
   930
* Logic image HOL-NSA contains theories of nonstandard analysis which
wenzelm@30845
   931
were previously part of former HOL-Complex.  Entry point Hyperreal
wenzelm@30845
   932
remains valid, but theories formerly using Complex_Main should now use
wenzelm@30845
   933
new entry point Hypercomplex.
wenzelm@30845
   934
wenzelm@30845
   935
* Generic ATP manager for Sledgehammer, based on ML threads instead of
wenzelm@30845
   936
Posix processes.  Avoids potentially expensive forking of the ML
wenzelm@30845
   937
process.  New thread-based implementation also works on non-Unix
wenzelm@30845
   938
platforms (Cygwin).  Provers are no longer hardwired, but defined
wenzelm@30845
   939
within the theory via plain ML wrapper functions.  Basic Sledgehammer
wenzelm@30845
   940
commands are covered in the isar-ref manual.
wenzelm@30845
   941
wenzelm@30845
   942
* Wrapper scripts for remote SystemOnTPTP service allows to use
wenzelm@30845
   943
sledgehammer without local ATP installation (Vampire etc.). Other
wenzelm@30845
   944
provers may be included via suitable ML wrappers, see also
wenzelm@30845
   945
src/HOL/ATP_Linkup.thy.
wenzelm@30845
   946
wenzelm@30845
   947
* ATP selection (E/Vampire/Spass) is now via Proof General's settings
wenzelm@30845
   948
menu.
wenzelm@30845
   949
wenzelm@30845
   950
* The metis method no longer fails because the theorem is too trivial
wenzelm@30845
   951
(contains the empty clause).
wenzelm@30845
   952
wenzelm@30845
   953
* The metis method now fails in the usual manner, rather than raising
wenzelm@30845
   954
an exception, if it determines that it cannot prove the theorem.
wenzelm@30845
   955
wenzelm@30845
   956
* Method "coherent" implements a prover for coherent logic (see also
wenzelm@30845
   957
src/Tools/coherent.ML).
wenzelm@30845
   958
wenzelm@30845
   959
* Constants "undefined" and "default" replace "arbitrary".  Usually
wenzelm@30845
   960
"undefined" is the right choice to replace "arbitrary", though
wenzelm@30845
   961
logically there is no difference.  INCOMPATIBILITY.
wenzelm@30845
   962
wenzelm@30845
   963
* Command "value" now integrates different evaluation mechanisms.  The
wenzelm@30845
   964
result of the first successful evaluation mechanism is printed.  In
wenzelm@30845
   965
square brackets a particular named evaluation mechanisms may be
wenzelm@30845
   966
specified (currently, [SML], [code] or [nbe]).  See further
wenzelm@30845
   967
src/HOL/ex/Eval_Examples.thy.
wenzelm@30845
   968
wenzelm@30845
   969
* Normalization by evaluation now allows non-leftlinear equations.
wenzelm@30845
   970
Declare with attribute [code nbe].
wenzelm@30845
   971
wenzelm@30845
   972
* Methods "case_tac" and "induct_tac" now refer to the very same rules
wenzelm@30845
   973
as the structured Isar versions "cases" and "induct", cf. the
wenzelm@30845
   974
corresponding "cases" and "induct" attributes.  Mutual induction rules
wenzelm@30845
   975
are now presented as a list of individual projections
wenzelm@30845
   976
(e.g. foo_bar.inducts for types foo and bar); the old format with
wenzelm@30845
   977
explicit HOL conjunction is no longer supported.  INCOMPATIBILITY, in
wenzelm@30845
   978
rare situations a different rule is selected --- notably nested tuple
wenzelm@30845
   979
elimination instead of former prod.exhaust: use explicit (case_tac t
wenzelm@30845
   980
rule: prod.exhaust) here.
wenzelm@30845
   981
wenzelm@30845
   982
* Attributes "cases", "induct", "coinduct" support "del" option.
wenzelm@30845
   983
wenzelm@30845
   984
* Removed fact "case_split_thm", which duplicates "case_split".
wenzelm@30845
   985
wenzelm@30845
   986
* The option datatype has been moved to a new theory Option.  Renamed
wenzelm@30845
   987
option_map to Option.map, and o2s to Option.set, INCOMPATIBILITY.
wenzelm@30845
   988
wenzelm@30845
   989
* New predicate "strict_mono" classifies strict functions on partial
wenzelm@30845
   990
orders.  With strict functions on linear orders, reasoning about
wenzelm@30845
   991
(in)equalities is facilitated by theorems "strict_mono_eq",
wenzelm@30845
   992
"strict_mono_less_eq" and "strict_mono_less".
wenzelm@30845
   993
wenzelm@30845
   994
* Some set operations are now proper qualified constants with
wenzelm@30845
   995
authentic syntax.  INCOMPATIBILITY:
haftmann@30304
   996
haftmann@30304
   997
    op Int ~>   Set.Int
haftmann@30304
   998
    op Un ~>    Set.Un
haftmann@30304
   999
    INTER ~>    Set.INTER
haftmann@30304
  1000
    UNION ~>    Set.UNION
haftmann@30304
  1001
    Inter ~>    Set.Inter
haftmann@30304
  1002
    Union ~>    Set.Union
haftmann@30304
  1003
    {} ~>       Set.empty
haftmann@30304
  1004
    UNIV ~>     Set.UNIV
haftmann@30304
  1005
wenzelm@30845
  1006
* Class complete_lattice with operations Inf, Sup, INFI, SUPR now in
wenzelm@30845
  1007
theory Set.
wenzelm@30845
  1008
wenzelm@30845
  1009
* Auxiliary class "itself" has disappeared -- classes without any
wenzelm@30845
  1010
parameter are treated as expected by the 'class' command.
haftmann@29734
  1011
haftmann@29760
  1012
* Leibnitz's Series for Pi and the arcus tangens and logarithm series.
haftmann@29760
  1013
wenzelm@30845
  1014
* Common decision procedures (Cooper, MIR, Ferrack, Approximation,
wenzelm@30845
  1015
Dense_Linear_Order) are now in directory HOL/Decision_Procs.
wenzelm@30845
  1016
wenzelm@30845
  1017
* Theory src/HOL/Decision_Procs/Approximation provides the new proof
wenzelm@30845
  1018
method "approximation".  It proves formulas on real values by using
wenzelm@30845
  1019
interval arithmetic.  In the formulas are also the transcendental
wenzelm@30845
  1020
functions sin, cos, tan, atan, ln, exp and the constant pi are
wenzelm@30845
  1021
allowed. For examples see
wenzelm@30845
  1022
src/HOL/Descision_Procs/ex/Approximation_Ex.thy.
haftmann@29760
  1023
haftmann@29760
  1024
* Theory "Reflection" now resides in HOL/Library.
haftmann@29650
  1025
wenzelm@30845
  1026
* Entry point to Word library now simply named "Word".
wenzelm@30845
  1027
INCOMPATIBILITY.
haftmann@29628
  1028
haftmann@29197
  1029
* Made source layout more coherent with logical distribution
haftmann@29197
  1030
structure:
haftmann@28952
  1031
haftmann@28952
  1032
    src/HOL/Library/RType.thy ~> src/HOL/Typerep.thy
haftmann@28952
  1033
    src/HOL/Library/Code_Message.thy ~> src/HOL/
haftmann@28952
  1034
    src/HOL/Library/GCD.thy ~> src/HOL/
haftmann@28952
  1035
    src/HOL/Library/Order_Relation.thy ~> src/HOL/
haftmann@28952
  1036
    src/HOL/Library/Parity.thy ~> src/HOL/
haftmann@28952
  1037
    src/HOL/Library/Univ_Poly.thy ~> src/HOL/
huffman@30173
  1038
    src/HOL/Real/ContNotDenum.thy ~> src/HOL/Library/
haftmann@28952
  1039
    src/HOL/Real/Lubs.thy ~> src/HOL/
haftmann@28952
  1040
    src/HOL/Real/PReal.thy ~> src/HOL/
haftmann@28952
  1041
    src/HOL/Real/Rational.thy ~> src/HOL/
haftmann@28952
  1042
    src/HOL/Real/RComplete.thy ~> src/HOL/
haftmann@28952
  1043
    src/HOL/Real/RealDef.thy ~> src/HOL/
haftmann@28952
  1044
    src/HOL/Real/RealPow.thy ~> src/HOL/
haftmann@28952
  1045
    src/HOL/Real/Real.thy ~> src/HOL/
haftmann@28952
  1046
    src/HOL/Complex/Complex_Main.thy ~> src/HOL/
haftmann@28952
  1047
    src/HOL/Complex/Complex.thy ~> src/HOL/
huffman@30173
  1048
    src/HOL/Complex/FrechetDeriv.thy ~> src/HOL/Library/
huffman@30173
  1049
    src/HOL/Complex/Fundamental_Theorem_Algebra.thy ~> src/HOL/Library/
haftmann@28952
  1050
    src/HOL/Hyperreal/Deriv.thy ~> src/HOL/
haftmann@28952
  1051
    src/HOL/Hyperreal/Fact.thy ~> src/HOL/
haftmann@28952
  1052
    src/HOL/Hyperreal/Integration.thy ~> src/HOL/
haftmann@28952
  1053
    src/HOL/Hyperreal/Lim.thy ~> src/HOL/
haftmann@28952
  1054
    src/HOL/Hyperreal/Ln.thy ~> src/HOL/
haftmann@28952
  1055
    src/HOL/Hyperreal/Log.thy ~> src/HOL/
haftmann@28952
  1056
    src/HOL/Hyperreal/MacLaurin.thy ~> src/HOL/
haftmann@28952
  1057
    src/HOL/Hyperreal/NthRoot.thy ~> src/HOL/
haftmann@28952
  1058
    src/HOL/Hyperreal/Series.thy ~> src/HOL/
haftmann@29197
  1059
    src/HOL/Hyperreal/SEQ.thy ~> src/HOL/
haftmann@28952
  1060
    src/HOL/Hyperreal/Taylor.thy ~> src/HOL/
haftmann@28952
  1061
    src/HOL/Hyperreal/Transcendental.thy ~> src/HOL/
haftmann@28952
  1062
    src/HOL/Real/Float ~> src/HOL/Library/
haftmann@29197
  1063
    src/HOL/Real/HahnBanach ~> src/HOL/HahnBanach
haftmann@29197
  1064
    src/HOL/Real/RealVector.thy ~> src/HOL/
haftmann@28952
  1065
haftmann@28952
  1066
    src/HOL/arith_data.ML ~> src/HOL/Tools
haftmann@28952
  1067
    src/HOL/hologic.ML ~> src/HOL/Tools
haftmann@28952
  1068
    src/HOL/simpdata.ML ~> src/HOL/Tools
haftmann@28952
  1069
    src/HOL/int_arith1.ML ~> src/HOL/Tools/int_arith.ML
haftmann@28952
  1070
    src/HOL/int_factor_simprocs.ML ~> src/HOL/Tools
haftmann@28952
  1071
    src/HOL/nat_simprocs.ML ~> src/HOL/Tools
haftmann@28952
  1072
    src/HOL/Real/float_arith.ML ~> src/HOL/Tools
haftmann@28952
  1073
    src/HOL/Real/float_syntax.ML ~> src/HOL/Tools
haftmann@28952
  1074
    src/HOL/Real/rat_arith.ML ~> src/HOL/Tools
haftmann@28952
  1075
    src/HOL/Real/real_arith.ML ~> src/HOL/Tools
haftmann@28952
  1076
haftmann@29395
  1077
    src/HOL/Library/Array.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1078
    src/HOL/Library/Heap_Monad.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1079
    src/HOL/Library/Heap.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1080
    src/HOL/Library/Imperative_HOL.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1081
    src/HOL/Library/Ref.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1082
    src/HOL/Library/Relational.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  1083
wenzelm@30845
  1084
* If methods "eval" and "evaluation" encounter a structured proof
wenzelm@30845
  1085
state with !!/==>, only the conclusion is evaluated to True (if
wenzelm@30845
  1086
possible), avoiding strange error messages.
wenzelm@30845
  1087
wenzelm@30845
  1088
* Method "sizechange" automates termination proofs using (a
wenzelm@30845
  1089
modification of) the size-change principle.  Requires SAT solver.  See
wenzelm@30845
  1090
src/HOL/ex/Termination.thy for examples.
wenzelm@30845
  1091
wenzelm@30845
  1092
* Simplifier: simproc for let expressions now unfolds if bound
wenzelm@30845
  1093
variable occurs at most once in let expression body.  INCOMPATIBILITY.
wenzelm@30845
  1094
wenzelm@30845
  1095
* Method "arith": Linear arithmetic now ignores all inequalities when
wenzelm@30845
  1096
fast_arith_neq_limit is exceeded, instead of giving up entirely.
wenzelm@30845
  1097
wenzelm@30845
  1098
* New attribute "arith" for facts that should always be used
wenzelm@30845
  1099
automatically by arithmetic. It is intended to be used locally in
wenzelm@30845
  1100
proofs, e.g.
wenzelm@30845
  1101
wenzelm@30845
  1102
  assumes [arith]: "x > 0"
wenzelm@30845
  1103
nipkow@30702
  1104
Global usage is discouraged because of possible performance impact.
nipkow@30702
  1105
wenzelm@30845
  1106
* New classes "top" and "bot" with corresponding operations "top" and
wenzelm@30845
  1107
"bot" in theory Orderings; instantiation of class "complete_lattice"
wenzelm@30845
  1108
requires instantiation of classes "top" and "bot".  INCOMPATIBILITY.
wenzelm@30845
  1109
wenzelm@30845
  1110
* Changed definition lemma "less_fun_def" in order to provide an
wenzelm@30845
  1111
instance for preorders on functions; use lemma "less_le" instead.
wenzelm@30845
  1112
INCOMPATIBILITY.
wenzelm@30845
  1113
wenzelm@30845
  1114
* Theory Orderings: class "wellorder" moved here, with explicit
wenzelm@30845
  1115
induction rule "less_induct" as assumption.  For instantiation of
wenzelm@30845
  1116
"wellorder" by means of predicate "wf", use rule wf_wellorderI.
wenzelm@30845
  1117
INCOMPATIBILITY.
wenzelm@30845
  1118
wenzelm@30845
  1119
* Theory Orderings: added class "preorder" as superclass of "order".
wenzelm@27793
  1120
INCOMPATIBILITY: Instantiation proofs for order, linorder
wenzelm@27793
  1121
etc. slightly changed.  Some theorems named order_class.* now named
wenzelm@27793
  1122
preorder_class.*.
wenzelm@27793
  1123
wenzelm@30845
  1124
* Theory Relation: renamed "refl" to "refl_on", "reflexive" to "refl,
wenzelm@30845
  1125
"diag" to "Id_on".
wenzelm@30845
  1126
wenzelm@30845
  1127
* Theory Finite_Set: added a new fold combinator of type
wenzelm@30845
  1128
nipkow@28855
  1129
  ('a => 'b => 'b) => 'b => 'a set => 'b
wenzelm@30845
  1130
wenzelm@30845
  1131
Occasionally this is more convenient than the old fold combinator
wenzelm@30845
  1132
which is now defined in terms of the new one and renamed to
wenzelm@30845
  1133
fold_image.
wenzelm@30845
  1134
wenzelm@30845
  1135
* Theories Ring_and_Field and OrderedGroup: The lemmas "group_simps"
wenzelm@30845
  1136
and "ring_simps" have been replaced by "algebra_simps" (which can be
wenzelm@30845
  1137
extended with further lemmas!).  At the moment both still exist but
wenzelm@30845
  1138
the former will disappear at some point.
wenzelm@30845
  1139
wenzelm@30845
  1140
* Theory Power: Lemma power_Suc is now declared as a simp rule in
wenzelm@30845
  1141
class recpower.  Type-specific simp rules for various recpower types
wenzelm@30845
  1142
have been removed.  INCOMPATIBILITY, rename old lemmas as follows:
huffman@30269
  1143
huffman@30269
  1144
rat_power_0    -> power_0
huffman@30269
  1145
rat_power_Suc  -> power_Suc
huffman@30269
  1146
realpow_0      -> power_0
huffman@30269
  1147
realpow_Suc    -> power_Suc
huffman@30269
  1148
complexpow_0   -> power_0
huffman@30269
  1149
complexpow_Suc -> power_Suc
huffman@30269
  1150
power_poly_0   -> power_0
huffman@30269
  1151
power_poly_Suc -> power_Suc
huffman@30269
  1152
wenzelm@30845
  1153
* Theories Ring_and_Field and Divides: Definition of "op dvd" has been
wenzelm@27793
  1154
moved to separate class dvd in Ring_and_Field; a couple of lemmas on
wenzelm@27793
  1155
dvd has been generalized to class comm_semiring_1.  Likewise a bunch
wenzelm@27793
  1156
of lemmas from Divides has been generalized from nat to class
wenzelm@27793
  1157
semiring_div.  INCOMPATIBILITY.  This involves the following theorem
wenzelm@27793
  1158
renames resulting from duplicate elimination:
haftmann@27651
  1159
haftmann@27651
  1160
    dvd_def_mod ~>          dvd_eq_mod_eq_0
haftmann@27651
  1161
    zero_dvd_iff ~>         dvd_0_left_iff
haftmann@28559
  1162
    dvd_0 ~>                dvd_0_right
haftmann@27651
  1163
    DIVISION_BY_ZERO_DIV ~> div_by_0
haftmann@27651
  1164
    DIVISION_BY_ZERO_MOD ~> mod_by_0
haftmann@27651
  1165
    mult_div ~>             div_mult_self2_is_id
haftmann@27651
  1166
    mult_mod ~>             mod_mult_self2_is_0
haftmann@27651
  1167
wenzelm@30845
  1168
* Theory IntDiv: removed many lemmas that are instances of class-based
wenzelm@30845
  1169
generalizations (from Divides and Ring_and_Field).  INCOMPATIBILITY,
wenzelm@30845
  1170
rename old lemmas as follows:
nipkow@29981
  1171
nipkow@29981
  1172
dvd_diff               -> nat_dvd_diff
nipkow@29981
  1173
dvd_zminus_iff         -> dvd_minus_iff
nipkow@30208
  1174
mod_add1_eq            -> mod_add_eq
nipkow@30208
  1175
mod_mult1_eq           -> mod_mult_right_eq
nipkow@30208
  1176
mod_mult1_eq'          -> mod_mult_left_eq
nipkow@30208
  1177
mod_mult_distrib_mod   -> mod_mult_eq
nipkow@29981
  1178
nat_mod_add_left_eq    -> mod_add_left_eq
nipkow@29981
  1179
nat_mod_add_right_eq   -> mod_add_right_eq
nipkow@29981
  1180
nat_mod_div_trivial    -> mod_div_trivial
nipkow@29981
  1181
nat_mod_mod_trivial    -> mod_mod_trivial
nipkow@29981
  1182
zdiv_zadd_self1        -> div_add_self1
nipkow@29981
  1183
zdiv_zadd_self2        -> div_add_self2
nipkow@30181
  1184
zdiv_zmult_self1       -> div_mult_self2_is_id
nipkow@29981
  1185
zdiv_zmult_self2       -> div_mult_self1_is_id
nipkow@29981
  1186
zdvd_triv_left         -> dvd_triv_left
nipkow@29981
  1187
zdvd_triv_right        -> dvd_triv_right
nipkow@29981
  1188
zdvd_zmult_cancel_disj -> dvd_mult_cancel_left
nipkow@30022
  1189
zmod_eq0_zdvd_iff      -> dvd_eq_mod_eq_0[symmetric]
nipkow@29981
  1190
zmod_zadd_left_eq      -> mod_add_left_eq
nipkow@29981
  1191
zmod_zadd_right_eq     -> mod_add_right_eq
nipkow@29981
  1192
zmod_zadd_self1        -> mod_add_self1
nipkow@29981
  1193
zmod_zadd_self2        -> mod_add_self2
nipkow@30208
  1194
zmod_zadd1_eq          -> mod_add_eq
nipkow@29981
  1195
zmod_zdiff1_eq         -> mod_diff_eq
nipkow@29981
  1196
zmod_zdvd_zmod         -> mod_mod_cancel
nipkow@29981
  1197
zmod_zmod_cancel       -> mod_mod_cancel
nipkow@29981
  1198
zmod_zmult_self1       -> mod_mult_self2_is_0
nipkow@29981
  1199
zmod_zmult_self2       -> mod_mult_self1_is_0
nipkow@29981
  1200
zmod_1                 -> mod_by_1
nipkow@29981
  1201
zdiv_1                 -> div_by_1
nipkow@29981
  1202
zdvd_abs1              -> abs_dvd_iff
nipkow@29981
  1203
zdvd_abs2              -> dvd_abs_iff
nipkow@29981
  1204
zdvd_refl              -> dvd_refl
nipkow@29981
  1205
zdvd_trans             -> dvd_trans
nipkow@29981
  1206
zdvd_zadd              -> dvd_add
nipkow@29981
  1207
zdvd_zdiff             -> dvd_diff
nipkow@29981
  1208
zdvd_zminus_iff        -> dvd_minus_iff
nipkow@29981
  1209
zdvd_zminus2_iff       -> minus_dvd_iff
nipkow@29981
  1210
zdvd_zmultD            -> dvd_mult_right
nipkow@29981
  1211
zdvd_zmultD2           -> dvd_mult_left
nipkow@29981
  1212
zdvd_zmult_mono        -> mult_dvd_mono
nipkow@29981
  1213
zdvd_0_right           -> dvd_0_right
nipkow@29981
  1214
zdvd_0_left            -> dvd_0_left_iff
nipkow@29981
  1215
zdvd_1_left            -> one_dvd
nipkow@29981
  1216
zminus_dvd_iff         -> minus_dvd_iff
nipkow@29981
  1217
wenzelm@30845
  1218
* Theory Rational: 'Fract k 0' now equals '0'.  INCOMPATIBILITY.
wenzelm@30845
  1219
wenzelm@30845
  1220
* The real numbers offer decimal input syntax: 12.34 is translated
wenzelm@30845
  1221
into 1234/10^2. This translation is not reversed upon output.
wenzelm@30845
  1222
wenzelm@30845
  1223
* Theory Library/Polynomial defines an abstract type 'a poly of
wenzelm@30845
  1224
univariate polynomials with coefficients of type 'a.  In addition to
wenzelm@30845
  1225
the standard ring operations, it also supports div and mod.  Code
wenzelm@30845
  1226
generation is also supported, using list-style constructors.
wenzelm@30845
  1227
wenzelm@30845
  1228
* Theory Library/Inner_Product defines a class of real_inner for real
wenzelm@30845
  1229
inner product spaces, with an overloaded operation inner :: 'a => 'a
wenzelm@30845
  1230
=> real.  Class real_inner is a subclass of real_normed_vector from
wenzelm@30845
  1231
theory RealVector.
wenzelm@30845
  1232
wenzelm@30845
  1233
* Theory Library/Product_Vector provides instances for the product
wenzelm@30845
  1234
type 'a * 'b of several classes from RealVector and Inner_Product.
wenzelm@30845
  1235
Definitions of addition, subtraction, scalar multiplication, norms,
wenzelm@30845
  1236
and inner products are included.
wenzelm@30845
  1237
wenzelm@30845
  1238
* Theory Library/Bit defines the field "bit" of integers modulo 2.  In
wenzelm@30845
  1239
addition to the field operations, numerals and case syntax are also
wenzelm@30845
  1240
supported.
wenzelm@30845
  1241
wenzelm@30845
  1242
* Theory Library/Diagonalize provides constructive version of Cantor's
wenzelm@30845
  1243
first diagonalization argument.
wenzelm@30845
  1244
wenzelm@30845
  1245
* Theory Library/GCD: Curried operations gcd, lcm (for nat) and zgcd,
haftmann@27651
  1246
zlcm (for int); carried together from various gcd/lcm developements in
wenzelm@30845
  1247
the HOL Distribution.  Constants zgcd and zlcm replace former igcd and
wenzelm@30845
  1248
ilcm; corresponding theorems renamed accordingly.  INCOMPATIBILITY,
wenzelm@30845
  1249
may recover tupled syntax as follows:
haftmann@27651
  1250
haftmann@27651
  1251
    hide (open) const gcd
haftmann@27651
  1252
    abbreviation gcd where
haftmann@27651
  1253
      "gcd == (%(a, b). GCD.gcd a b)"
haftmann@27651
  1254
    notation (output)
haftmann@27651
  1255
      GCD.gcd ("gcd '(_, _')")
haftmann@27651
  1256
wenzelm@30845
  1257
The same works for lcm, zgcd, zlcm.
wenzelm@30845
  1258
wenzelm@30845
  1259
* Theory Library/Nat_Infinity: added addition, numeral syntax and more
wenzelm@30845
  1260
instantiations for algebraic structures.  Removed some duplicate
wenzelm@30845
  1261
theorems.  Changes in simp rules.  INCOMPATIBILITY.
wenzelm@30845
  1262
wenzelm@30845
  1263
* ML antiquotation @{code} takes a constant as argument and generates
wenzelm@27519
  1264
corresponding code in background and inserts name of the corresponding
wenzelm@27519
  1265
resulting ML value/function/datatype constructor binding in place.
wenzelm@27519
  1266
All occurrences of @{code} with a single ML block are generated
wenzelm@27519
  1267
simultaneously.  Provides a generic and safe interface for
wenzelm@30845
  1268
instrumentalizing code generation.  See
wenzelm@30845
  1269
src/HOL/Decision_Procs/Ferrack.thy for a more ambitious application.
wenzelm@30845
  1270
In future you ought to refrain from ad-hoc compiling generated SML
wenzelm@30845
  1271
code on the ML toplevel.  Note that (for technical reasons) @{code}
wenzelm@30845
  1272
cannot refer to constants for which user-defined serializations are
wenzelm@30845
  1273
set.  Refer to the corresponding ML counterpart directly in that
wenzelm@30845
  1274
cases.
wenzelm@27122
  1275
wenzelm@27122
  1276
* Command 'rep_datatype': instead of theorem names the command now
wenzelm@27122
  1277
takes a list of terms denoting the constructors of the type to be
wenzelm@27122
  1278
represented as datatype.  The characteristic theorems have to be
wenzelm@27122
  1279
proven.  INCOMPATIBILITY.  Also observe that the following theorems
wenzelm@27122
  1280
have disappeared in favour of existing ones:
wenzelm@27122
  1281
haftmann@27104
  1282
    unit_induct                 ~> unit.induct
haftmann@27104
  1283
    prod_induct                 ~> prod.induct
haftmann@27104
  1284
    sum_induct                  ~> sum.induct
haftmann@27104
  1285
    Suc_Suc_eq                  ~> nat.inject
haftmann@27104
  1286
    Suc_not_Zero Zero_not_Suc   ~> nat.distinct
haftmann@27104
  1287
haftmann@27104
  1288
ballarin@27696
  1289
*** HOL-Algebra ***
ballarin@27696
  1290
ballarin@27713
  1291
* New locales for orders and lattices where the equivalence relation
wenzelm@30106
  1292
is not restricted to equality.  INCOMPATIBILITY: all order and lattice
wenzelm@30106
  1293
locales use a record structure with field eq for the equivalence.
ballarin@27713
  1294
ballarin@27713
  1295
* New theory of factorial domains.
ballarin@27713
  1296
wenzelm@30845
  1297
* Units_l_inv and Units_r_inv are now simp rules by default.
ballarin@27696
  1298
INCOMPATIBILITY.  Simplifier proof that require deletion of l_inv
ballarin@27696
  1299
and/or r_inv will now also require deletion of these lemmas.
ballarin@27696
  1300
wenzelm@30845
  1301
* Renamed the following theorems, INCOMPATIBILITY:
wenzelm@30845
  1302
ballarin@27696
  1303
UpperD ~> Upper_memD
ballarin@27696
  1304
LowerD ~> Lower_memD
ballarin@27696
  1305
least_carrier ~> least_closed
ballarin@27696
  1306
greatest_carrier ~> greatest_closed
ballarin@27696
  1307
greatest_Lower_above ~> greatest_Lower_below
ballarin@27717
  1308
one_zero ~> carrier_one_zero
ballarin@27717
  1309
one_not_zero ~> carrier_one_not_zero  (collision with assumption)
ballarin@27696
  1310
wenzelm@27793
  1311
wenzelm@30849
  1312
*** HOL-Nominal ***
wenzelm@30849
  1313
wenzelm@30855
  1314
* Nominal datatypes can now contain type-variables.
wenzelm@30855
  1315
wenzelm@30855
  1316
* Commands 'nominal_inductive' and 'equivariance' work with local
wenzelm@30855
  1317
theory targets.
wenzelm@30855
  1318
wenzelm@30855
  1319
* Nominal primrec can now works with local theory targets and its
wenzelm@30855
  1320
specification syntax now conforms to the general format as seen in
wenzelm@30855
  1321
'inductive' etc.
wenzelm@30855
  1322
wenzelm@30855
  1323
* Method "perm_simp" honours the standard simplifier attributes
wenzelm@30855
  1324
(no_asm), (no_asm_use) etc.
wenzelm@30855
  1325
wenzelm@30855
  1326
* The new predicate #* is defined like freshness, except that on the
wenzelm@30855
  1327
left hand side can be a set or list of atoms.
wenzelm@30855
  1328
wenzelm@30855
  1329
* Experimental command 'nominal_inductive2' derives strong induction
wenzelm@30855
  1330
principles for inductive definitions.  In contrast to
wenzelm@30855
  1331
'nominal_inductive', which can only deal with a fixed number of
wenzelm@30855
  1332
binders, it can deal with arbitrary expressions standing for sets of
wenzelm@30855
  1333
atoms to be avoided.  The only inductive definition we have at the
wenzelm@30855
  1334
moment that needs this generalisation is the typing rule for Lets in
wenzelm@30855
  1335
the algorithm W:
wenzelm@30855
  1336
wenzelm@30855
  1337
 Gamma |- t1 : T1   (x,close Gamma T1)::Gamma |- t2 : T2   x#Gamma
wenzelm@30855
  1338
 -----------------------------------------------------------------
wenzelm@30855
  1339
         Gamma |- Let x be t1 in t2 : T2
wenzelm@30855
  1340
wenzelm@30855
  1341
In this rule one wants to avoid all the binders that are introduced by
wenzelm@30855
  1342
"close Gamma T1".  We are looking for other examples where this
wenzelm@30855
  1343
feature might be useful.  Please let us know.
wenzelm@30849
  1344
wenzelm@30849
  1345
huffman@30173
  1346
*** HOLCF ***
huffman@30173
  1347
huffman@30173
  1348
* Reimplemented the simplification procedure for proving continuity
huffman@30173
  1349
subgoals.  The new simproc is extensible; users can declare additional
huffman@30173
  1350
continuity introduction rules with the attribute [cont2cont].
huffman@30173
  1351
huffman@30173
  1352
* The continuity simproc now uses a different introduction rule for
huffman@30173
  1353
solving continuity subgoals on terms with lambda abstractions.  In
huffman@30173
  1354
some rare cases the new simproc may fail to solve subgoals that the
huffman@30173
  1355
old one could solve, and "simp add: cont2cont_LAM" may be necessary.
huffman@30173
  1356
Potential INCOMPATIBILITY.
huffman@30173
  1357
wenzelm@30847
  1358
* Command 'fixrec': specification syntax now conforms to the general
wenzelm@30855
  1359
format as seen in 'inductive' etc.  See src/HOLCF/ex/Fixrec_ex.thy for
wenzelm@30855
  1360
examples.  INCOMPATIBILITY.
wenzelm@30845
  1361
wenzelm@30845
  1362
wenzelm@30845
  1363
*** ZF ***
wenzelm@30845
  1364
wenzelm@30845
  1365
* Proof of Zorn's Lemma for partial orders.
huffman@30173
  1366
huffman@30173
  1367
wenzelm@27246
  1368
*** ML ***
wenzelm@28088
  1369
wenzelm@30845
  1370
* Multithreading for Poly/ML 5.1/5.2 is no longer supported, only for
wenzelm@30845
  1371
Poly/ML 5.2.1 or later.  Important note: the TimeLimit facility
wenzelm@30845
  1372
depends on multithreading, so timouts will not work before Poly/ML
wenzelm@30845
  1373
5.2.1!
wenzelm@30845
  1374
wenzelm@29161
  1375
* High-level support for concurrent ML programming, see
wenzelm@29161
  1376
src/Pure/Cuncurrent.  The data-oriented model of "future values" is
wenzelm@29161
  1377
particularly convenient to organize independent functional
wenzelm@29161
  1378
computations.  The concept of "synchronized variables" provides a
wenzelm@29161
  1379
higher-order interface for components with shared state, avoiding the
wenzelm@30845
  1380
delicate details of mutexes and condition variables.  (Requires
wenzelm@30845
  1381
Poly/ML 5.2.1 or later.)
wenzelm@30845
  1382
wenzelm@30845
  1383
* ML bindings produced via Isar commands are stored within the Isar
wenzelm@30845
  1384
context (theory or proof).  Consequently, commands like 'use' and 'ML'
wenzelm@30845
  1385
become thread-safe and work with undo as expected (concerning
wenzelm@30845
  1386
top-level bindings, not side-effects on global references).
wenzelm@30845
  1387
INCOMPATIBILITY, need to provide proper Isar context when invoking the
wenzelm@30845
  1388
compiler at runtime; really global bindings need to be given outside a
wenzelm@30845
  1389
theory.  (Requires Poly/ML 5.2 or later.)
wenzelm@30845
  1390
wenzelm@30845
  1391
* Command 'ML_prf' is analogous to 'ML' but works within a proof
wenzelm@30845
  1392
context.  Top-level ML bindings are stored within the proof context in
wenzelm@30845
  1393
a purely sequential fashion, disregarding the nested proof structure.
wenzelm@30845
  1394
ML bindings introduced by 'ML_prf' are discarded at the end of the
wenzelm@30845
  1395
proof.  (Requires Poly/ML 5.2 or later.)
wenzelm@29161
  1396
wenzelm@30532
  1397
* Simplified ML attribute and method setup, cf. functions Attrib.setup
wenzelm@30845
  1398
and Method.setup, as well as Isar commands 'attribute_setup' and
wenzelm@30547
  1399
'method_setup'.  INCOMPATIBILITY for 'method_setup', need to simplify
wenzelm@30547
  1400
existing code accordingly, or use plain 'setup' together with old
wenzelm@30547
  1401
Method.add_method.
wenzelm@30532
  1402
wenzelm@28294
  1403
* Simplified ML oracle interface Thm.add_oracle promotes 'a -> cterm
wenzelm@28294
  1404
to 'a -> thm, while results are always tagged with an authentic oracle
wenzelm@28294
  1405
name.  The Isar command 'oracle' is now polymorphic, no argument type
wenzelm@28294
  1406
is specified.  INCOMPATIBILITY, need to simplify existing oracle code
wenzelm@28294
  1407
accordingly.  Note that extra performance may be gained by producing
wenzelm@28294
  1408
the cterm carefully, avoiding slow Thm.cterm_of.
wenzelm@28294
  1409
wenzelm@30845
  1410
* Simplified interface for defining document antiquotations via
wenzelm@30845
  1411
ThyOutput.antiquotation, ThyOutput.output, and optionally
wenzelm@30845
  1412
ThyOutput.maybe_pretty_source.  INCOMPATIBILITY, need to simplify user
wenzelm@30845
  1413
antiquotations accordingly, see src/Pure/Thy/thy_output.ML for common
wenzelm@30845
  1414
examples.
wenzelm@28099
  1415
wenzelm@30395
  1416
* More systematic treatment of long names, abstract name bindings, and
wenzelm@30395
  1417
name space operations.  Basic operations on qualified names have been
wenzelm@30399
  1418
move from structure NameSpace to Long_Name, e.g. Long_Name.base_name,
wenzelm@30395
  1419
Long_Name.append.  Old type bstring has been mostly replaced by
wenzelm@30395
  1420
abstract type binding (see structure Binding), which supports precise
wenzelm@30845
  1421
qualification by packages and local theory targets, as well as proper
wenzelm@30845
  1422
tracking of source positions.  INCOMPATIBILITY, need to wrap old
wenzelm@30845
  1423
bstring values into Binding.name, or better pass through abstract
wenzelm@30399
  1424
bindings everywhere.  See further src/Pure/General/long_name.ML,
wenzelm@30395
  1425
src/Pure/General/binding.ML and src/Pure/General/name_space.ML
wenzelm@30395
  1426
wenzelm@28089
  1427
* Result facts (from PureThy.note_thms, ProofContext.note_thms,
wenzelm@28089
  1428
LocalTheory.note etc.) now refer to the *full* internal name, not the
wenzelm@28089
  1429
bstring as before.  INCOMPATIBILITY, not detected by ML type-checking!
wenzelm@28089
  1430
wenzelm@27287
  1431
* Disposed old type and term read functions (Sign.read_def_typ,
wenzelm@27287
  1432
Sign.read_typ, Sign.read_def_terms, Sign.read_term,
wenzelm@27287
  1433
Thm.read_def_cterms, Thm.read_cterm etc.).  INCOMPATIBILITY, should
wenzelm@27287
  1434
use regular Syntax.read_typ, Syntax.read_term, Syntax.read_typ_global,
wenzelm@27269
  1435
Syntax.read_term_global etc.; see also OldGoals.read_term as last
wenzelm@27269
  1436
resort for legacy applications.
wenzelm@27269
  1437
wenzelm@30609
  1438
* Disposed old declarations, tactics, tactic combinators that refer to
wenzelm@30609
  1439
the simpset or claset of an implicit theory (such as Addsimps,
wenzelm@30609
  1440
Simp_tac, SIMPSET).  INCOMPATIBILITY, should use @{simpset} etc. in
wenzelm@30609
  1441
embedded ML text, or local_simpset_of with a proper context passed as
wenzelm@30609
  1442
explicit runtime argument.
wenzelm@30609
  1443
wenzelm@30845
  1444
* Rules and tactics that read instantiations (read_instantiate,
wenzelm@30845
  1445
res_inst_tac, thin_tac, subgoal_tac etc.) now demand a proper proof
wenzelm@30845
  1446
context, which is required for parsing and type-checking.  Moreover,
wenzelm@30845
  1447
the variables are specified as plain indexnames, not string encodings
wenzelm@30845
  1448
thereof.  INCOMPATIBILITY.
wenzelm@30845
  1449
wenzelm@30845
  1450
* Generic Toplevel.add_hook interface allows to analyze the result of
wenzelm@30845
  1451
transactions.  E.g. see src/Pure/ProofGeneral/proof_general_pgip.ML
wenzelm@30845
  1452
for theorem dependency output of transactions resulting in a new
wenzelm@30845
  1453
theory state.
wenzelm@30845
  1454
wenzelm@30845
  1455
* ML antiquotations: block-structured compilation context indicated by
wenzelm@27391
  1456
\<lbrace> ... \<rbrace>; additional antiquotation forms:
wenzelm@27391
  1457
wenzelm@30845
  1458
  @{binding name}                         - basic name binding
wenzelm@27519
  1459
  @{let ?pat = term}                      - term abbreviation (HO matching)
wenzelm@27519
  1460
  @{note name = fact}                     - fact abbreviation
wenzelm@27519
  1461
  @{thm fact}                             - singleton fact (with attributes)
wenzelm@27519
  1462
  @{thms fact}                            - general fact (with attributes)
wenzelm@27519
  1463
  @{lemma prop by method}                 - singleton goal
wenzelm@27519
  1464
  @{lemma prop by meth1 meth2}            - singleton goal
wenzelm@27519
  1465
  @{lemma prop1 ... propN by method}      - general goal
wenzelm@27519
  1466
  @{lemma prop1 ... propN by meth1 meth2} - general goal
wenzelm@27519
  1467
  @{lemma (open) ...}                     - open derivation
wenzelm@27380
  1468
wenzelm@27246
  1469
wenzelm@27979
  1470
*** System ***
wenzelm@27979
  1471
wenzelm@28248
  1472
* The Isabelle "emacs" tool provides a specific interface to invoke
wenzelm@28248
  1473
Proof General / Emacs, with more explicit failure if that is not
wenzelm@28248
  1474
installed (the old isabelle-interface script silently falls back on
wenzelm@28248
  1475
isabelle-process).  The PROOFGENERAL_HOME setting determines the
wenzelm@28248
  1476
installation location of the Proof General distribution.
wenzelm@28248
  1477
wenzelm@27979
  1478
* Isabelle/lib/classes/Pure.jar provides basic support to integrate
wenzelm@27979
  1479
the Isabelle process into a JVM/Scala application.  See
wenzelm@27979
  1480
Isabelle/lib/jedit/plugin for a minimal example.  (The obsolete Java
wenzelm@27979
  1481
process wrapper has been discontinued.)
wenzelm@27979
  1482
wenzelm@30845
  1483
* Added homegrown Isabelle font with unicode layout, see lib/fonts.
wenzelm@30845
  1484
wenzelm@30845
  1485
* Various status messages (with exact source position information) are
wenzelm@27979
  1486
emitted, if proper markup print mode is enabled.  This allows
wenzelm@27979
  1487
user-interface components to provide detailed feedback on internal
wenzelm@27979
  1488
prover operations.
wenzelm@27979
  1489
wenzelm@27979
  1490
wenzelm@27143
  1491
wenzelm@27008
  1492
New in Isabelle2008 (June 2008)
wenzelm@27008
  1493
-------------------------------
wenzelm@25464
  1494
wenzelm@25522
  1495
*** General ***
wenzelm@25522
  1496
wenzelm@27061
  1497
* The Isabelle/Isar Reference Manual (isar-ref) has been reorganized
wenzelm@27061
  1498
and updated, with formally checked references as hyperlinks.
wenzelm@27061
  1499
wenzelm@25994
  1500
* Theory loader: use_thy (and similar operations) no longer set the
wenzelm@25994
  1501
implicit ML context, which was occasionally hard to predict and in
wenzelm@25994
  1502
conflict with concurrency.  INCOMPATIBILITY, use ML within Isar which
wenzelm@25994
  1503
provides a proper context already.
wenzelm@25994
  1504
wenzelm@26323
  1505
* Theory loader: old-style ML proof scripts being *attached* to a thy
wenzelm@26323
  1506
file are no longer supported.  INCOMPATIBILITY, regular 'uses' and
wenzelm@26323
  1507
'use' within a theory file will do the job.
wenzelm@26323
  1508
wenzelm@26650
  1509
* Name space merge now observes canonical order, i.e. the second space
wenzelm@26650
  1510
is inserted into the first one, while existing entries in the first
wenzelm@26659
  1511
space take precedence.  INCOMPATIBILITY in rare situations, may try to
wenzelm@26650
  1512
swap theory imports.
wenzelm@26650
  1513
wenzelm@27067
  1514
* Syntax: symbol \<chi> is now considered a letter.  Potential
wenzelm@27067
  1515
INCOMPATIBILITY in identifier syntax etc.
wenzelm@27067
  1516
wenzelm@27067
  1517
* Outer syntax: string tokens no longer admit escaped white space,
wenzelm@27067
  1518
which was an accidental (undocumented) feature.  INCOMPATIBILITY, use
wenzelm@27067
  1519
white space without escapes.
wenzelm@27067
  1520
wenzelm@27067
  1521
* Outer syntax: string tokens may contain arbitrary character codes
wenzelm@27067
  1522
specified via 3 decimal digits (as in SML).  E.g. "foo\095bar" for
wenzelm@27067
  1523
"foo_bar".
wenzelm@27067
  1524
wenzelm@25522
  1525
haftmann@25502
  1526
*** Pure ***
haftmann@25502
  1527
wenzelm@26718
  1528
* Context-dependent token translations.  Default setup reverts locally
wenzelm@26718
  1529
fixed variables, and adds hilite markup for undeclared frees.
wenzelm@26718
  1530
berghofe@26681
  1531
* Unused theorems can be found using the new command 'unused_thms'.
berghofe@26681
  1532
There are three ways of invoking it:
berghofe@26681
  1533
berghofe@26681
  1534
(1) unused_thms
berghofe@26681
  1535
     Only finds unused theorems in the current theory.
berghofe@26681
  1536
berghofe@26681
  1537
(2) unused_thms thy_1 ... thy_n -
berghofe@26681
  1538
     Finds unused theorems in the current theory and all of its ancestors,
berghofe@26681
  1539
     excluding the theories thy_1 ... thy_n and all of their ancestors.
berghofe@26681
  1540
berghofe@26681
  1541
(3) unused_thms thy_1 ... thy_n - thy'_1 ... thy'_m
berghofe@26681
  1542
     Finds unused theorems in the theories thy'_1 ... thy'_m and all of
berghofe@26681
  1543
     their ancestors, excluding the theories thy_1 ... thy_n and all of
berghofe@26681
  1544
     their ancestors.
berghofe@26681
  1545
wenzelm@26718
  1546
In order to increase the readability of the list produced by
wenzelm@26718
  1547
unused_thms, theorems that have been created by a particular instance
wenzelm@26874
  1548
of a theory command such as 'inductive' or 'function' are considered
wenzelm@26874
  1549
to belong to the same "group", meaning that if at least one theorem in
wenzelm@26718
  1550
this group is used, the other theorems in the same group are no longer
wenzelm@26718
  1551
reported as unused.  Moreover, if all theorems in the group are
wenzelm@26718
  1552
unused, only one theorem in the group is displayed.
wenzelm@26718
  1553
wenzelm@26718
  1554
Note that proof objects have to be switched on in order for
wenzelm@26718
  1555
unused_thms to work properly (i.e. !proofs must be >= 1, which is
wenzelm@26874
  1556
usually the case when using Proof General with the default settings).
berghofe@26681
  1557
wenzelm@26650
  1558
* Authentic naming of facts disallows ad-hoc overwriting of previous
wenzelm@26650
  1559
theorems within the same name space.  INCOMPATIBILITY, need to remove
wenzelm@26650
  1560
duplicate fact bindings, or even accidental fact duplications.  Note
wenzelm@26650
  1561
that tools may maintain dynamically scoped facts systematically, using
wenzelm@26650
  1562
PureThy.add_thms_dynamic.
wenzelm@26650
  1563
wenzelm@26660
  1564
* Command 'hide' now allows to hide from "fact" name space as well.
wenzelm@26660
  1565
wenzelm@26496
  1566
* Eliminated destructive theorem database, simpset, claset, and
wenzelm@26496
  1567
clasimpset.  Potential INCOMPATIBILITY, really need to observe linear
wenzelm@26496
  1568
update of theories within ML code.
wenzelm@26479
  1569
wenzelm@26955
  1570
* Eliminated theory ProtoPure and CPure, leaving just one Pure theory.
wenzelm@26955
  1571
INCOMPATIBILITY, object-logics depending on former Pure require
wenzelm@26955
  1572
additional setup PureThy.old_appl_syntax_setup; object-logics
wenzelm@26955
  1573
depending on former CPure need to refer to Pure.
wenzelm@26650
  1574
wenzelm@26495
  1575
* Commands 'use' and 'ML' are now purely functional, operating on
wenzelm@26479
  1576
theory/local_theory.  Removed former 'ML_setup' (on theory), use 'ML'
wenzelm@26479
  1577
instead.  Added 'ML_val' as mere diagnostic replacement for 'ML'.
wenzelm@26479
  1578
INCOMPATIBILITY.
wenzelm@26479
  1579
wenzelm@26874
  1580
* Command 'setup': discontinued implicit version with ML reference.
wenzelm@26434
  1581
wenzelm@25970
  1582
* Instantiation target allows for simultaneous specification of class
wenzelm@25970
  1583
instance operations together with an instantiation proof.
wenzelm@25970
  1584
Type-checking phase allows to refer to class operations uniformly.
wenzelm@27067
  1585
See src/HOL/Complex/Complex.thy for an Isar example and
wenzelm@27067
  1586
src/HOL/Library/Eval.thy for an ML example.
haftmann@25502
  1587
wenzelm@26201
  1588
* Indexing of literal facts: be more serious about including only
wenzelm@26201
  1589
facts from the visible specification/proof context, but not the
wenzelm@26201
  1590
background context (locale etc.).  Affects `prop` notation and method
wenzelm@26201
  1591
"fact".  INCOMPATIBILITY: need to name facts explicitly in rare
wenzelm@26201
  1592
situations.
wenzelm@26201
  1593
wenzelm@26925
  1594
* Method "cases", "induct", "coinduct": removed obsolete/undocumented
wenzelm@26925
  1595
"(open)" option, which used to expose internal bound variables to the
wenzelm@26925
  1596
proof text.
wenzelm@26925
  1597
wenzelm@26925
  1598
* Isar statements: removed obsolete case "rule_context".
wenzelm@26925
  1599
INCOMPATIBILITY, better use explicit fixes/assumes.
wenzelm@26925
  1600
wenzelm@26874
  1601
* Locale proofs: default proof step now includes 'unfold_locales';
wenzelm@26874
  1602
hence 'proof' without argument may be used to unfold locale
wenzelm@26874
  1603
predicates.
ballarin@26765
  1604
ballarin@26765
  1605
haftmann@26762
  1606
*** Document preparation ***
haftmann@26762
  1607
wenzelm@26914
  1608
* Simplified pdfsetup.sty: color/hyperref is used unconditionally for
wenzelm@26914
  1609
both pdf and dvi (hyperlinks usually work in xdvi as well); removed
wenzelm@26914
  1610
obsolete thumbpdf setup (contemporary PDF viewers do this on the
wenzelm@26914
  1611
spot); renamed link color from "darkblue" to "linkcolor" (default
wenzelm@26920
  1612
value unchanged, can be redefined via \definecolor); no longer sets
wenzelm@26920
  1613
"a4paper" option (unnecessary or even intrusive).
wenzelm@26914
  1614
wenzelm@27008
  1615
* Antiquotation @{lemma A method} proves proposition A by the given
wenzelm@27008
  1616
method (either a method name or a method name plus (optional) method
wenzelm@27008
  1617
arguments in parentheses) and prints A just like @{prop A}.
haftmann@26762
  1618
haftmann@26762
  1619
wenzelm@25464
  1620
*** HOL ***
wenzelm@25464
  1621
wenzelm@27067
  1622
* New primrec package.  Specification syntax conforms in style to
wenzelm@27067
  1623
definition/function/....  No separate induction rule is provided.  The
wenzelm@27067
  1624
"primrec" command distinguishes old-style and new-style specifications
wenzelm@27067
  1625
by syntax.  The former primrec package is now named OldPrimrecPackage.
wenzelm@27067
  1626
When adjusting theories, beware: constants stemming from new-style
wenzelm@27067
  1627
primrec specifications have authentic syntax.
wenzelm@27067
  1628
wenzelm@27067
  1629
* Metis prover is now an order of magnitude faster, and also works
wenzelm@27067
  1630
with multithreading.
wenzelm@27067
  1631
wenzelm@27067
  1632
* Metis: the maximum number of clauses that can be produced from a
wenzelm@27067
  1633
theorem is now given by the attribute max_clauses.  Theorems that
wenzelm@27067
  1634
exceed this number are ignored, with a warning printed.
wenzelm@27067
  1635
wenzelm@27067
  1636
* Sledgehammer no longer produces structured proofs by default. To
wenzelm@27067
  1637
enable, declare [[sledgehammer_full = true]].  Attributes
wenzelm@27067
  1638
reconstruction_modulus, reconstruction_sorts renamed
wenzelm@27067
  1639
sledgehammer_modulus, sledgehammer_sorts.  INCOMPATIBILITY.
wenzelm@27067
  1640
haftmann@27104
  1641
* Method "induct_scheme" derives user-specified induction rules
wenzelm@27067
  1642
from well-founded induction and completeness of patterns. This factors
wenzelm@27067
  1643
out some operations that are done internally by the function package
wenzelm@27067
  1644
and makes them available separately.  See
wenzelm@27067
  1645
src/HOL/ex/Induction_Scheme.thy for examples.
wenzelm@27067
  1646
wenzelm@27067
  1647
* More flexible generation of measure functions for termination
wenzelm@27067
  1648
proofs: Measure functions can be declared by proving a rule of the
wenzelm@27067
  1649
form "is_measure f" and giving it the [measure_function] attribute.
wenzelm@27067
  1650
The "is_measure" predicate is logically meaningless (always true), and
wenzelm@27067
  1651
just guides the heuristic.  To find suitable measure functions, the
wenzelm@27067
  1652
termination prover sets up the goal "is_measure ?f" of the appropriate
wenzelm@27067
  1653
type and generates all solutions by prolog-style backwards proof using
wenzelm@27067
  1654
the declared rules.
wenzelm@27067
  1655
wenzelm@27067
  1656
This setup also deals with rules like 
wenzelm@27067
  1657
wenzelm@27067
  1658
  "is_measure f ==> is_measure (list_size f)"
wenzelm@27067
  1659
wenzelm@27067
  1660
which accommodates nested datatypes that recurse through lists.
wenzelm@27067
  1661
Similar rules are predeclared for products and option types.
wenzelm@27067
  1662
berghofe@26964
  1663
* Turned the type of sets "'a set" into an abbreviation for "'a => bool"
berghofe@26964
  1664
berghofe@26964
  1665
  INCOMPATIBILITIES:
berghofe@26964
  1666
wenzelm@27008
  1667
  - Definitions of overloaded constants on sets have to be replaced by
wenzelm@27008
  1668
    definitions on => and bool.
berghofe@26964
  1669
berghofe@26964
  1670
  - Some definitions of overloaded operators on sets can now be proved
wenzelm@27008
  1671
    using the definitions of the operators on => and bool.  Therefore,
wenzelm@27008
  1672
    the following theorems have been renamed:
berghofe@26964
  1673
berghofe@26964
  1674
      subset_def   -> subset_eq
berghofe@26964
  1675
      psubset_def  -> psubset_eq
berghofe@26964
  1676
      set_diff_def -> set_diff_eq
berghofe@26964
  1677
      Compl_def    -> Compl_eq
berghofe@26964
  1678
      Sup_set_def  -> Sup_set_eq
berghofe@26964
  1679
      Inf_set_def  -> Inf_set_eq
berghofe@26964
  1680
      sup_set_def  -> sup_set_eq
berghofe@26964
  1681
      inf_set_def  -> inf_set_eq
berghofe@26964
  1682
berghofe@26964
  1683
  - Due to the incompleteness of the HO unification algorithm, some
berghofe@26964
  1684
    rules such as subst may require manual instantiation, if some of
berghofe@26964
  1685
    the unknowns in the rule is a set.
berghofe@26964
  1686
berghofe@26964
  1687
  - Higher order unification and forward proofs:
berghofe@26964
  1688
    The proof pattern
berghofe@26964
  1689
berghofe@26964
  1690
      have "P (S::'a set)" <...>
berghofe@26964
  1691
      then have "EX S. P S" ..
berghofe@26964
  1692
wenzelm@27008
  1693
    no longer works (due to the incompleteness of the HO unification
wenzelm@27008
  1694
    algorithm) and must be replaced by the pattern
berghofe@26964
  1695
berghofe@26964
  1696
      have "EX S. P S"
berghofe@26964
  1697
      proof
berghofe@26964
  1698
        show "P S" <...>
berghofe@26964
  1699
      qed
berghofe@26964
  1700
berghofe@26964
  1701
  - Calculational reasoning with subst (or similar rules):
berghofe@26964
  1702
    The proof pattern
berghofe@26964
  1703
berghofe@26964
  1704
      have "P (S::'a set)" <...>
berghofe@26964
  1705
      also have "S = T" <...>
berghofe@26964
  1706
      finally have "P T" .
berghofe@26964
  1707
wenzelm@27008
  1708
    no longer works (for similar reasons as the previous example) and
wenzelm@27008
  1709
    must be replaced by something like
berghofe@26964
  1710
berghofe@26964
  1711
      have "P (S::'a set)" <...>
berghofe@26964
  1712
      moreover have "S = T" <...>
berghofe@26964
  1713
      ultimately have "P T" by simp
berghofe@26964
  1714
berghofe@26964
  1715
  - Tactics or packages written in ML code:
berghofe@26964
  1716
    Code performing pattern matching on types via
berghofe@26964
  1717
berghofe@26964
  1718
      Type ("set", [T]) => ...
berghofe@26964
  1719
wenzelm@27008
  1720
    must be rewritten. Moreover, functions like strip_type or
wenzelm@27008
  1721
    binder_types no longer return the right value when applied to a
wenzelm@27008
  1722
    type of the form
berghofe@26964
  1723
berghofe@26964
  1724
      T1 => ... => Tn => U => bool
berghofe@26964
  1725
berghofe@26964
  1726
    rather than
berghofe@26964
  1727
berghofe@26964
  1728
      T1 => ... => Tn => U set
berghofe@26964
  1729
wenzelm@26874
  1730
* Merged theories Wellfounded_Recursion, Accessible_Part and
wenzelm@27067
  1731
Wellfounded_Relations to theory Wellfounded.
krauss@26748
  1732
haftmann@26513
  1733
* Explicit class "eq" for executable equality.  INCOMPATIBILITY.
haftmann@26513
  1734
wenzelm@26874
  1735
* Class finite no longer treats UNIV as class parameter.  Use class
wenzelm@26874
  1736
enum from theory Library/Enum instead to achieve a similar effect.
haftmann@26445
  1737
INCOMPATIBILITY.
haftmann@26445
  1738
wenzelm@26874
  1739
* Theory List: rule list_induct2 now has explicitly named cases "Nil"
wenzelm@26874
  1740
and "Cons".  INCOMPATIBILITY.
wenzelm@26874
  1741
wenzelm@26422
  1742
* HOL (and FOL): renamed variables in rules imp_elim and swap.
wenzelm@26422
  1743
Potential INCOMPATIBILITY.
wenzelm@26422
  1744
wenzelm@26874
  1745
* Theory Product_Type: duplicated lemmas split_Pair_apply and
wenzelm@26874
  1746
injective_fst_snd removed, use split_eta and prod_eqI instead.
wenzelm@26874
  1747
Renamed upd_fst to apfst and upd_snd to apsnd.  INCOMPATIBILITY.
haftmann@26355
  1748
wenzelm@26335
  1749
* Theory Nat: removed redundant lemmas that merely duplicate lemmas of
wenzelm@26335
  1750
the same name in theory Orderings:
wenzelm@26335
  1751
wenzelm@26335
  1752
  less_trans
wenzelm@26335
  1753
  less_linear
wenzelm@26335
  1754
  le_imp_less_or_eq
wenzelm@26335
  1755
  le_less_trans
wenzelm@26335
  1756
  less_le_trans
wenzelm@26335
  1757
  less_not_sym
wenzelm@26335
  1758
  less_asym
wenzelm@26335
  1759
wenzelm@26335
  1760
Renamed less_imp_le to less_imp_le_nat, and less_irrefl to
wenzelm@26335
  1761
less_irrefl_nat.  Potential INCOMPATIBILITY due to more general types
wenzelm@26335
  1762
and different variable names.
wenzelm@26315
  1763
haftmann@26231
  1764
* Library/Option_ord.thy: Canonical order on option type.
haftmann@26231
  1765
wenzelm@27008
  1766
* Library/RBT.thy: Red-black trees, an efficient implementation of
wenzelm@27008
  1767
finite maps.
krauss@26197
  1768
haftmann@26231
  1769
* Library/Countable.thy: Type class for countable types.
haftmann@26231
  1770
wenzelm@26180
  1771
* Theory Int: The representation of numerals has changed.  The infix
wenzelm@26180
  1772
operator BIT and the bit datatype with constructors B0 and B1 have
wenzelm@26180
  1773
disappeared.  INCOMPATIBILITY, use "Int.Bit0 x" and "Int.Bit1 y" in
wenzelm@26180
  1774
place of "x BIT bit.B0" and "y BIT bit.B1", respectively.  Theorems
wenzelm@26180
  1775
involving BIT, B0, or B1 have been renamed with "Bit0" or "Bit1"
wenzelm@26180
  1776
accordingly.
wenzelm@26180
  1777
wenzelm@26180
  1778
* Theory Nat: definition of <= and < on natural numbers no longer
wenzelm@26180
  1779
depend on well-founded relations.  INCOMPATIBILITY.  Definitions
wenzelm@26180
  1780
le_def and less_def have disappeared.  Consider lemmas not_less
wenzelm@26180
  1781
[symmetric, where ?'a = nat] and less_eq [symmetric] instead.
wenzelm@26180
  1782
wenzelm@26180
  1783
* Theory Finite_Set: locales ACf, ACe, ACIf, ACIfSL and ACIfSLlin
wenzelm@26180
  1784
(whose purpose mainly is for various fold_set functionals) have been
wenzelm@26874
  1785
abandoned in favor of the existing algebraic classes
wenzelm@26180
  1786
ab_semigroup_mult, comm_monoid_mult, ab_semigroup_idem_mult,
wenzelm@26180
  1787
lower_semilattice (resp. upper_semilattice) and linorder.
haftmann@26139
  1788
INCOMPATIBILITY.
haftmann@26041
  1789
wenzelm@26180
  1790
* Theory Transitive_Closure: induct and cases rules now declare proper
wenzelm@26180
  1791
case_names ("base" and "step").  INCOMPATIBILITY.
wenzelm@26180
  1792
wenzelm@26180
  1793
* Theorem Inductive.lfp_ordinal_induct generalized to complete
wenzelm@26180
  1794
lattices.  The form set-specific version is available as
wenzelm@26180
  1795
Inductive.lfp_ordinal_induct_set.
haftmann@26013
  1796
wenzelm@26874
  1797
* Renamed theorems "power.simps" to "power_int.simps".
wenzelm@27067
  1798
INCOMPATIBILITY.
haftmann@25961
  1799
wenzelm@26180
  1800
* Class semiring_div provides basic abstract properties of semirings
haftmann@25942
  1801
with division and modulo operations.  Subsumes former class dvd_mod.
haftmann@25942
  1802
wenzelm@26180
  1803
* Merged theories IntDef, Numeral and IntArith into unified theory
wenzelm@26180
  1804
Int.  INCOMPATIBILITY.
wenzelm@26180
  1805
wenzelm@26180
  1806
* Theory Library/Code_Index: type "index" now represents natural
wenzelm@26180
  1807
numbers rather than integers.  INCOMPATIBILITY.
wenzelm@26180
  1808
wenzelm@26180
  1809
* New class "uminus" with operation "uminus" (split of from class
wenzelm@26180
  1810
"minus" which now only has operation "minus", binary).
haftmann@25919
  1811
INCOMPATIBILITY.
haftmann@25919
  1812
wenzelm@25522
  1813
* Constants "card", "internal_split", "option_map" now with authentic
haftmann@25919
  1814
syntax.  INCOMPATIBILITY.
wenzelm@25522
  1815
wenzelm@25522
  1816
* Definitions subset_def, psubset_def, set_diff_def, Compl_def,
wenzelm@25522
  1817
le_bool_def, less_bool_def, le_fun_def, less_fun_def, inf_bool_def,
wenzelm@25522
  1818
sup_bool_def, Inf_bool_def, Sup_bool_def, inf_fun_def, sup_fun_def,
wenzelm@25522
  1819
Inf_fun_def, Sup_fun_def, inf_set_def, sup_set_def, Inf_set_def,
wenzelm@25522
  1820
Sup_set_def, le_def, less_def, option_map_def now with object
haftmann@25919
  1821
equality.  INCOMPATIBILITY.
wenzelm@25464
  1822
schirmer@25705
  1823
* Records. Removed K_record, and replaced it by pure lambda term
wenzelm@25726
  1824
%x. c. The simplifier setup is now more robust against eta expansion.
schirmer@25705
  1825
INCOMPATIBILITY: in cases explicitly referring to K_record.
wenzelm@25464
  1826
wenzelm@27067
  1827
* Library/Multiset: {#a, b, c#} abbreviates {#a#} + {#b#} + {#c#}.
wenzelm@27067
  1828
wenzelm@27067
  1829
* Library/ListVector: new theory of arithmetic vector operations.
wenzelm@27067
  1830
wenzelm@27067
  1831
* Library/Order_Relation: new theory of various orderings as sets of
wenzelm@27067
  1832
pairs.  Defines preorders, partial orders, linear orders and
wenzelm@27067
  1833
well-orders on sets and on types.
krauss@26877
  1834
wenzelm@25726
  1835
krauss@26197
  1836
*** ZF ***
krauss@26197
  1837
wenzelm@26874
  1838
* Renamed some theories to allow to loading both ZF and HOL in the
wenzelm@26874
  1839
same session:
wenzelm@26874
  1840
wenzelm@26874
  1841
  Datatype  -> Datatype_ZF
wenzelm@26874
  1842
  Inductive -> Inductive_ZF
wenzelm@26874
  1843
  Int       -> Int_ZF
wenzelm@26874
  1844
  IntDiv    -> IntDiv_ZF
wenzelm@26874
  1845
  Nat       -> Nat_ZF
wenzelm@26874
  1846
  List      -> List_ZF
wenzelm@26874
  1847
  Main      -> Main_ZF
wenzelm@26874
  1848
wenzelm@26874
  1849
INCOMPATIBILITY: ZF theories that import individual theories below
wenzelm@26874
  1850
Main might need to be adapted.  Regular theory Main is still
wenzelm@26874
  1851
available, as trivial extension of Main_ZF.
krauss@26197
  1852
krauss@26197
  1853
wenzelm@25737
  1854
*** ML ***
wenzelm@25737
  1855
wenzelm@27067
  1856
* ML within Isar: antiquotation @{const name} or @{const
wenzelm@27067
  1857
name(typargs)} produces statically-checked Const term.
wenzelm@27067
  1858
wenzelm@26401
  1859
* Functor NamedThmsFun: data is available to the user as dynamic fact
wenzelm@26724
  1860
(of the same name).  Removed obsolete print command.
wenzelm@26401
  1861
wenzelm@27067
  1862
* Removed obsolete "use_legacy_bindings" function.
wenzelm@26188
  1863
wenzelm@25737
  1864
* The ``print mode'' is now a thread-local value derived from a global
wenzelm@25737
  1865
template (the former print_mode reference), thus access becomes
wenzelm@25737
  1866
non-critical.  The global print_mode reference is for session
wenzelm@25737
  1867
management only; user-code should use print_mode_value,
wenzelm@25737
  1868
print_mode_active, PrintMode.setmp etc.  INCOMPATIBILITY.
wenzelm@25737
  1869
wenzelm@26874
  1870
* Functions system/system_out provide a robust way to invoke external
wenzelm@29161
  1871
shell commands, with propagation of interrupts (requires Poly/ML
wenzelm@29161
  1872
5.2.1).  Do not use OS.Process.system etc. from the basis library!
wenzelm@26222
  1873
wenzelm@25737
  1874
wenzelm@25626
  1875
*** System ***
wenzelm@25626
  1876
wenzelm@27067
  1877
* Default settings: PROOFGENERAL_OPTIONS no longer impose xemacs ---
wenzelm@27067
  1878
in accordance with Proof General 3.7, which prefers GNU emacs.
wenzelm@27067
  1879
wenzelm@27067
  1880
* isatool tty runs Isabelle process with plain tty interaction;
wenzelm@27067
  1881
optional line editor may be specified via ISABELLE_LINE_EDITOR
wenzelm@27067
  1882
setting, the default settings attempt to locate "ledit" and "rlwrap".
wenzelm@27067
  1883
wenzelm@27067
  1884
* isatool browser now works with Cygwin as well, using general
wenzelm@27067
  1885
"javapath" function defined in Isabelle process environment.
wenzelm@27067
  1886
wenzelm@26575
  1887
* YXML notation provides a simple and efficient alternative to
wenzelm@26575
  1888
standard XML transfer syntax.  See src/Pure/General/yxml.ML and
wenzelm@26575
  1889
isatool yxml as described in the Isabelle system manual.
wenzelm@26575
  1890
wenzelm@27067
  1891
* JVM class isabelle.IsabelleProcess (located in Isabelle/lib/classes)
wenzelm@27067
  1892
provides general wrapper for managing an Isabelle process in a robust
wenzelm@27067
  1893
fashion, with ``cooked'' output from stdin/stderr.
wenzelm@27067
  1894
wenzelm@27067
  1895
* Rudimentary Isabelle plugin for jEdit (see Isabelle/lib/jedit),
wenzelm@27067
  1896
based on Isabelle/JVM process wrapper (see Isabelle/lib/classes).
wenzelm@27067
  1897
wenzelm@26575
  1898
* Removed obsolete THIS_IS_ISABELLE_BUILD feature.  NB: the documented
wenzelm@26575
  1899
way of changing the user's settings is via
wenzelm@26218
  1900
ISABELLE_HOME_USER/etc/settings, which is a fully featured bash
wenzelm@26218
  1901
script.
wenzelm@26218
  1902
wenzelm@25776
  1903
* Multithreading.max_threads := 0 refers to the number of actual CPU
wenzelm@25776
  1904
cores of the underlying machine, which is a good starting point for
wenzelm@25776
  1905
optimal performance tuning.  The corresponding usedir option -M allows
wenzelm@25778
  1906
"max" as an alias for "0".  WARNING: does not work on certain versions
wenzelm@25778
  1907
of Mac OS (with Poly/ML 5.1).
wenzelm@25776
  1908
wenzelm@27067
  1909
* isabelle-process: non-ML sessions are run with "nice", to reduce the
wenzelm@27067
  1910
adverse effect of Isabelle flooding interactive front-ends (notably
wenzelm@27067
  1911
ProofGeneral / XEmacs).
wenzelm@25855
  1912
wenzelm@25626
  1913
wenzelm@25464
  1914
wenzelm@25429
  1915
New in Isabelle2007 (November 2007)
wenzelm@25429
  1916
-----------------------------------
wenzelm@17754
  1917
wenzelm@17754
  1918
*** General ***
wenzelm@17754
  1919
wenzelm@22826
  1920
* More uniform information about legacy features, notably a
wenzelm@22826
  1921
warning/error of "Legacy feature: ...", depending on the state of the
wenzelm@23367
  1922
tolerate_legacy_features flag (default true). FUTURE INCOMPATIBILITY:
wenzelm@23367
  1923
legacy features will disappear eventually.
wenzelm@22826
  1924
wenzelm@17918
  1925
* Theory syntax: the header format ``theory A = B + C:'' has been
wenzelm@17918
  1926
discontinued in favour of ``theory A imports B C begin''.  Use isatool
wenzelm@17918
  1927
fixheaders to convert existing theory files.  INCOMPATIBILITY.
wenzelm@17918
  1928
wenzelm@17918
  1929
* Theory syntax: the old non-Isar theory file format has been
wenzelm@17918
  1930
discontinued altogether.  Note that ML proof scripts may still be used
wenzelm@17918
  1931
with Isar theories; migration is usually quite simple with the ML
wenzelm@17918
  1932
function use_legacy_bindings.  INCOMPATIBILITY.
wenzelm@17918
  1933
wenzelm@22871
  1934
* Theory syntax: some popular names (e.g. 'class', 'declaration',
wenzelm@22871
  1935
'fun', 'help', 'if') are now keywords.  INCOMPATIBILITY, use double
wenzelm@22871
  1936
quotes.
wenzelm@19814
  1937
wenzelm@23888
  1938
* Theory loader: be more serious about observing the static theory
wenzelm@23888
  1939
header specifications (including optional directories), but not the
wenzelm@24172
  1940
accidental file locations of previously successful loads.  The strict
wenzelm@24172
  1941
update policy of former update_thy is now already performed by
wenzelm@24172
  1942
use_thy, so the former has been removed; use_thys updates several
wenzelm@24172
  1943
theories simultaneously, just as 'imports' within a theory header
wenzelm@24172
  1944
specification, but without merging the results.  Potential
wenzelm@24172
  1945
INCOMPATIBILITY: may need to refine theory headers and commands
wenzelm@24172
  1946
ROOT.ML which depend on load order.
wenzelm@23888
  1947
wenzelm@23888
  1948
* Theory loader: optional support for content-based file
wenzelm@23888
  1949
identification, instead of the traditional scheme of full physical
wenzelm@23889
  1950
path plus date stamp; configured by the ISABELLE_FILE_IDENT setting
wenzelm@23888
  1951
(cf. the system manual).  The new scheme allows to work with
wenzelm@23888
  1952
non-finished theories in persistent session images, such that source
wenzelm@23888
  1953
files may be moved later on without requiring reloads.
wenzelm@23888
  1954
wenzelm@24187
  1955
* Theory loader: old-style ML proof scripts being *attached* to a thy
wenzelm@24187
  1956
file (with the same base name as the theory) are considered a legacy
wenzelm@24800
  1957
feature, which will disappear eventually. Even now, the theory loader
wenzelm@24800
  1958
no longer maintains dependencies on such files.
wenzelm@24800
  1959
wenzelm@24800
  1960
* Syntax: the scope for resolving ambiguities via type-inference is
wenzelm@24800
  1961
now limited to individual terms, instead of whole simultaneous
wenzelm@24234
  1962
specifications as before. This greatly reduces the complexity of the
wenzelm@24234
  1963
syntax module and improves flexibility by separating parsing and
wenzelm@24234
  1964
type-checking. INCOMPATIBILITY: additional type-constraints (explicit
wenzelm@24234
  1965
'fixes' etc.) are required in rare situations.
wenzelm@24234
  1966
wenzelm@25034
  1967
* Syntax: constants introduced by new-style packages ('definition',
wenzelm@25034
  1968
'abbreviation' etc.) are passed through the syntax module in
wenzelm@25034
  1969
``authentic mode''. This means that associated mixfix annotations
wenzelm@25034
  1970
really stick to such constants, independently of potential name space
wenzelm@25034
  1971
ambiguities introduced later on. INCOMPATIBILITY: constants in parse
wenzelm@25034
  1972
trees are represented slightly differently, may need to adapt syntax
wenzelm@25034
  1973
translations accordingly. Use CONST marker in 'translations' and
wenzelm@25034
  1974
@{const_syntax} antiquotation in 'parse_translation' etc.
wenzelm@25034
  1975
wenzelm@17981
  1976
* Legacy goal package: reduced interface to the bare minimum required
wenzelm@17981
  1977
to keep existing proof scripts running.  Most other user-level
wenzelm@17981
  1978
functions are now part of the OldGoals structure, which is *not* open
wenzelm@17981
  1979
by default (consider isatool expandshort before open OldGoals).
wenzelm@17981
  1980
Removed top_sg, prin, printyp, pprint_term/typ altogether, because
wenzelm@17981
  1981
these tend to cause confusion about the actual goal (!) context being
wenzelm@17981
  1982
used here, which is not necessarily the same as the_context().
wenzelm@17918
  1983
wenzelm@23379
  1984
* Command 'find_theorems': supports "*" wild-card in "name:"
wenzelm@23379
  1985
criterion; "with_dups" option.  Certain ProofGeneral versions might
wenzelm@23379
  1986
support a specific search form (see ProofGeneral/CHANGES).
webertj@22965
  1987
wenzelm@20370
  1988
* The ``prems limit'' option (cf. ProofContext.prems_limit) is now -1
wenzelm@20370
  1989
by default, which means that "prems" (and also "fixed variables") are
wenzelm@20370
  1990
suppressed from proof state output.  Note that the ProofGeneral
wenzelm@20370
  1991
settings mechanism allows to change and save options persistently, but
wenzelm@20370
  1992
older versions of Isabelle will fail to start up if a negative prems
wenzelm@20370
  1993
limit is imposed.
wenzelm@20370
  1994
wenzelm@21308
  1995
* Local theory targets may be specified by non-nested blocks of
wenzelm@21308
  1996
``context/locale/class ... begin'' followed by ``end''.  The body may
wenzelm@21308
  1997
contain definitions, theorems etc., including any derived mechanism
wenzelm@21308
  1998
that has been implemented on top of these primitives.  This concept
wenzelm@21308
  1999
generalizes the existing ``theorem (in ...)'' towards more versatility
wenzelm@21308
  2000
and scalability.
wenzelm@21308
  2001
wenzelm@21960
  2002
* Proof General interface: proper undo of final 'end' command;
wenzelm@21960
  2003
discontinued Isabelle/classic mode (ML proof scripts).
wenzelm@21960
  2004
wenzelm@17754
  2005
wenzelm@17865
  2006
*** Document preparation ***
wenzelm@17865
  2007
wenzelm@21717
  2008
* Added antiquotation @{theory name} which prints the given name,
wenzelm@21717
  2009
after checking that it refers to a valid ancestor theory in the
wenzelm@21717
  2010
current context.
haftmann@21339
  2011
wenzelm@17869
  2012
* Added antiquotations @{ML_type text} and @{ML_struct text} which
wenzelm@17869
  2013
check the given source text as ML type/structure, printing verbatim.
wenzelm@17865
  2014
wenzelm@21717
  2015
* Added antiquotation @{abbrev "c args"} which prints the abbreviation
wenzelm@21717
  2016
"c args == rhs" given in the current context.  (Any number of
wenzelm@21735
  2017
arguments may be given on the LHS.)
wenzelm@21717
  2018
wenzelm@21717
  2019
wenzelm@17779
  2020
*** Pure ***
wenzelm@17779
  2021
wenzelm@24800
  2022
* The 'class' package offers a combination of axclass and locale to
wenzelm@25129
  2023
achieve Haskell-like type classes in Isabelle.  Definitions and
wenzelm@25129
  2024
theorems within a class context produce both relative results (with
wenzelm@25129
  2025
implicit parameters according to the locale context), and polymorphic
wenzelm@25129
  2026
constants with qualified polymorphism (according to the class
wenzelm@25129
  2027
context).  Within the body context of a 'class' target, a separate
wenzelm@25129
  2028
syntax layer ("user space type system") takes care of converting
wenzelm@25129
  2029
between global polymorphic consts and internal locale representation.
wenzelm@25177
  2030
See src/HOL/ex/Classpackage.thy for examples (as well as main HOL).
haftmann@25184
  2031
"isatool doc classes" provides a tutorial.
wenzelm@20807
  2032
haftmann@25199
  2033
* Generic code generator framework allows to generate executable
wenzelm@24800
  2034
code for ML and Haskell (including Isabelle classes).  A short usage
wenzelm@24800
  2035
sketch:
haftmann@20188
  2036
haftmann@20188
  2037
    internal compilation:
haftmann@25199
  2038
        export_code <list of constants (term syntax)> in SML
haftmann@20453
  2039
    writing SML code to a file:
haftmann@25199
  2040
        export_code <list of constants (term syntax)> in SML <filename>
haftmann@22735
  2041
    writing OCaml code to a file:
haftmann@25199
  2042
        export_code <list of constants (term syntax)> in OCaml <filename>
haftmann@20188
  2043
    writing Haskell code to a bunch of files:
haftmann@25199
  2044
        export_code <list of constants (term syntax)> in Haskell <filename>
haftmann@25199
  2045
haftmann@25199
  2046
    evaluating closed propositions to True/False using code generation:
haftmann@25184
  2047
        method ``eval''
haftmann@25184
  2048
haftmann@25184
  2049
Reasonable default setup of framework in HOL.
haftmann@20453
  2050
haftmann@20453
  2051
Theorem attributs for selecting and transforming function equations theorems:
haftmann@20453
  2052
haftmann@22845
  2053
    [code fun]:        select a theorem as function equation for a specific constant
haftmann@22845
  2054
    [code fun del]:    deselect a theorem as function equation for a specific constant
haftmann@22845
  2055
    [code inline]:     select an equation theorem for unfolding (inlining) in place
haftmann@22845
  2056
    [code inline del]: deselect an equation theorem for unfolding (inlining) in place
haftmann@20453
  2057
haftmann@22735
  2058
User-defined serializations (target in {SML, OCaml, Haskell}):
haftmann@20453
  2059
haftmann@20453
  2060
    code_const <and-list of constants (term syntax)>
haftmann@20453
  2061
      {(target) <and-list of const target syntax>}+
haftmann@20453
  2062
haftmann@20453
  2063
    code_type <and-list of type constructors>
haftmann@20453
  2064
      {(target) <and-list of type target syntax>}+
haftmann@20453
  2065
haftmann@20453
  2066
    code_instance <and-list of instances>
haftmann@20453
  2067
      {(target)}+
haftmann@20453
  2068
        where instance ::= <type constructor> :: <class>
haftmann@20453
  2069
haftmann@20453
  2070
    code_class <and_list of classes>
haftmann@20453
  2071
      {(target) <and-list of class target syntax>}+
haftmann@20453
  2072
        where class target syntax ::= <class name> {where {<classop> == <target syntax>}+}?
haftmann@20453
  2073
haftmann@25199
  2074
code_instance and code_class only are effective to target Haskell.
haftmann@22735
  2075
wenzelm@25177
  2076
For example usage see src/HOL/ex/Codegenerator.thy and
wenzelm@25177
  2077
src/HOL/ex/Codegenerator_Pretty.thy.  A separate tutorial on code
wenzelm@24800
  2078
generation from Isabelle/HOL theories is available via "isatool doc
wenzelm@24800
  2079
codegen".
haftmann@20188
  2080
wenzelm@25129
  2081
* Code generator: consts in 'consts_code' Isar commands are now
wenzelm@25129
  2082
referred to by usual term syntax (including optional type
wenzelm@25129
  2083
annotations).
wenzelm@25129
  2084
wenzelm@19254
  2085
* Command 'no_translations' removes translation rules from theory
wenzelm@19254
  2086
syntax.
wenzelm@19254
  2087
wenzelm@19625
  2088
* Overloaded definitions are now actually checked for acyclic
wenzelm@19714
  2089
dependencies.  The overloading scheme is slightly more general than
wenzelm@19714
  2090
that of Haskell98, although Isabelle does not demand an exact
wenzelm@19714
  2091
correspondence to type class and instance declarations.
wenzelm@19714
  2092
INCOMPATIBILITY, use ``defs (unchecked overloaded)'' to admit more
wenzelm@19714
  2093
exotic versions of overloading -- at the discretion of the user!
wenzelm@19711
  2094
wenzelm@19711
  2095
Polymorphic constants are represented via type arguments, i.e. the
wenzelm@19711
  2096
instantiation that matches an instance against the most general
wenzelm@19711
  2097
declaration given in the signature.  For example, with the declaration
wenzelm@19711
  2098
c :: 'a => 'a => 'a, an instance c :: nat => nat => nat is represented
wenzelm@19711
  2099
as c(nat).  Overloading is essentially simultaneous structural
wenzelm@19711
  2100
recursion over such type arguments.  Incomplete specification patterns
wenzelm@19714
  2101
impose global constraints on all occurrences, e.g. c('a * 'a) on the
wenzelm@19715
  2102
LHS means that more general c('a * 'b) will be disallowed on any RHS.
wenzelm@19714
  2103
Command 'print_theory' outputs the normalized system of recursive
wenzelm@19714
  2104
equations, see section "definitions".
wenzelm@19625
  2105
wenzelm@24086
  2106
* Configuration options are maintained within the theory or proof
wenzelm@24086
  2107
context (with name and type bool/int/string), providing a very simple
wenzelm@24086
  2108
interface to a poor-man's version of general context data.  Tools may
wenzelm@24110
  2109
declare options in ML (e.g. using Attrib.config_int) and then refer to
wenzelm@24110
  2110
these values using Config.get etc.  Users may change options via an
wenzelm@24110
  2111
associated attribute of the same name.  This form of context
wenzelm@24110
  2112
declaration works particularly well with commands 'declare' or
wenzelm@24110
  2113
'using', for example ``declare [[foo = 42]]''.  Thus it has become
wenzelm@24110
  2114
very easy to avoid global references, which would not observe Isar
wenzelm@24110
  2115
toplevel undo/redo and fail to work with multithreading.
wenzelm@24086
  2116
wenzelm@24172
  2117
Various global ML references of Pure and HOL have been turned into
wenzelm@24172
  2118
configuration options:
wenzelm@24172
  2119
wenzelm@24172
  2120
  Unify.search_bound		unify_search_bound
wenzelm@24172
  2121
  Unify.trace_bound		unify_trace_bound
wenzelm@24172
  2122
  Unify.trace_simp		unify_trace_simp
wenzelm@24172
  2123
  Unify.trace_types		unify_trace_types
wenzelm@24172
  2124
  Simplifier.simp_depth_limit	simp_depth_limit
wenzelm@24172
  2125
  Blast.depth_limit		blast_depth_limit
wenzelm@24172
  2126
  DatatypeProp.dtK		datatype_distinctness_limit
wenzelm@24172
  2127
  fast_arith_neq_limit  	fast_arith_neq_limit
wenzelm@24172
  2128
  fast_arith_split_limit	fast_arith_split_limit
wenzelm@24172
  2129
wenzelm@24086
  2130
* Named collections of theorems may be easily installed as context
wenzelm@24800
  2131
data using the functor NamedThmsFun (see also
wenzelm@24086
  2132
src/Pure/Tools/named_thms.ML).  The user may add or delete facts via
wenzelm@24110
  2133
attributes; there is also a toplevel print command.  This facility is
wenzelm@24110
  2134
just a common case of general context data, which is the preferred way
wenzelm@24110
  2135
for anything more complex than just a list of facts in canonical
wenzelm@24110
  2136
order.
wenzelm@24086
  2137
wenzelm@24032
  2138
* Isar: command 'declaration' augments a local theory by generic
wenzelm@24032
  2139
declaration functions written in ML.  This enables arbitrary content
wenzelm@24032
  2140
being added to the context, depending on a morphism that tells the
wenzelm@24032
  2141
difference of the original declaration context wrt. the application
wenzelm@24032
  2142
context encountered later on.
wenzelm@24032
  2143
wenzelm@24032
  2144
* Isar: proper interfaces for simplification procedures.  Command
wenzelm@24032
  2145
'simproc_setup' declares named simprocs (with match patterns, and body
wenzelm@24032
  2146
text in ML).  Attribute "simproc" adds/deletes simprocs in the current
wenzelm@24032
  2147
context.  ML antiquotation @{simproc name} retrieves named simprocs.
wenzelm@24032
  2148
wenzelm@24032
  2149
* Isar: an extra pair of brackets around attribute declarations
wenzelm@24032
  2150
abbreviates a theorem reference involving an internal dummy fact,
wenzelm@24032
  2151
which will be ignored later --- only the effect of the attribute on
wenzelm@24032
  2152
the background context will persist.  This form of in-place
wenzelm@24032
  2153
declarations is particularly useful with commands like 'declare' and
wenzelm@24032
  2154
'using', for example ``have A using [[simproc a]] by simp''.
wenzelm@24032
  2155
wenzelm@23369
  2156
* Isar: method "assumption" (and implicit closing of subproofs) now
wenzelm@23369
  2157
takes simple non-atomic goal assumptions into account: after applying
wenzelm@23369
  2158
an assumption as a rule the resulting subgoals are solved by atomic
wenzelm@23369
  2159
assumption steps.  This is particularly useful to finish 'obtain'
wenzelm@23369
  2160
goals, such as "!!x. (!!x. P x ==> thesis) ==> P x ==> thesis",
wenzelm@23369
  2161
without referring to the original premise "!!x. P x ==> thesis" in the
wenzelm@23369
  2162
Isar proof context.  POTENTIAL INCOMPATIBILITY: method "assumption" is
wenzelm@23369
  2163
more permissive.
wenzelm@23369
  2164
wenzelm@23369
  2165
* Isar: implicit use of prems from the Isar proof context is
wenzelm@23369
  2166
considered a legacy feature.  Common applications like ``have A .''
wenzelm@23369
  2167
may be replaced by ``have A by fact'' or ``note `A`''.  In general,
wenzelm@23369
  2168
referencing facts explicitly here improves readability and
wenzelm@23369
  2169
maintainability of proof texts.
wenzelm@23369
  2170
wenzelm@17865
  2171
* Isar: improper proof element 'guess' is like 'obtain', but derives
wenzelm@17865
  2172
the obtained context from the course of reasoning!  For example:
wenzelm@17865
  2173
wenzelm@17865
  2174
  assume "EX x y. A x & B y"   -- "any previous fact"
wenzelm@17865
  2175
  then guess x and y by clarify
wenzelm@17865
  2176
wenzelm@17865
  2177
This technique is potentially adventurous, depending on the facts and
wenzelm@17865
  2178
proof tools being involved here.
wenzelm@17865
  2179
wenzelm@18020
  2180
* Isar: known facts from the proof context may be specified as literal
wenzelm@18020
  2181
propositions, using ASCII back-quote syntax.  This works wherever
wenzelm@18020
  2182
named facts used to be allowed so far, in proof commands, proof
wenzelm@18020
  2183
methods, attributes etc.  Literal facts are retrieved from the context
wenzelm@18020
  2184
according to unification of type and term parameters.  For example,
wenzelm@18020
  2185
provided that "A" and "A ==> B" and "!!x. P x ==> Q x" are known
wenzelm@18020
  2186
theorems in the current context, then these are valid literal facts:
wenzelm@18020
  2187
`A` and `A ==> B` and `!!x. P x ==> Q x" as well as `P a ==> Q a` etc.
wenzelm@18020
  2188
wenzelm@18020
  2189
There is also a proof method "fact" which does the same composition
wenzelm@18044
  2190
for explicit goal states, e.g. the following proof texts coincide with
wenzelm@18044
  2191
certain special cases of literal facts:
wenzelm@18020
  2192
wenzelm@18020
  2193
  have "A" by fact                 ==  note `A`
wenzelm@18020
  2194
  have "A ==> B" by fact           ==  note `A ==> B`
wenzelm@18020
  2195
  have "!!x. P x ==> Q x" by fact  ==  note `!!x. P x ==> Q x`
wenzelm@18020
  2196
  have "P a ==> Q a" by fact       ==  note `P a ==> Q a`
wenzelm@18020
  2197
wenzelm@20118
  2198
* Isar: ":" (colon) is no longer a symbolic identifier character in
wenzelm@20118
  2199
outer syntax.  Thus symbolic identifiers may be used without
wenzelm@20118
  2200
additional white space in declarations like this: ``assume *: A''.
wenzelm@20118
  2201
wenzelm@20013
  2202
* Isar: 'print_facts' prints all local facts of the current context,
wenzelm@20013
  2203
both named and unnamed ones.
wenzelm@20013
  2204
wenzelm@18308
  2205
* Isar: 'def' now admits simultaneous definitions, e.g.:
wenzelm@18308
  2206
wenzelm@18308
  2207
  def x == "t" and y == "u"
wenzelm@18308
  2208
wenzelm@18540
  2209
* Isar: added command 'unfolding', which is structurally similar to
wenzelm@18540
  2210
'using', but affects both the goal state and facts by unfolding given
wenzelm@18815
  2211
rewrite rules.  Thus many occurrences of the 'unfold' method or
wenzelm@18540
  2212
'unfolded' attribute may be replaced by first-class proof text.
wenzelm@18540
  2213
wenzelm@18815
  2214
* Isar: methods 'unfold' / 'fold', attributes 'unfolded' / 'folded',
wenzelm@18815
  2215
and command 'unfolding' now all support object-level equalities
wenzelm@18815
  2216
(potentially conditional).  The underlying notion of rewrite rule is
wenzelm@18815
  2217
analogous to the 'rule_format' attribute, but *not* that of the
wenzelm@18815
  2218
Simplifier (which is usually more generous).
wenzelm@18815
  2219
kleing@24238
  2220
* Isar: the new attribute [rotated n] (default n = 1) rotates the
kleing@24238
  2221
premises of a theorem by n. Useful in conjunction with drule.
kleing@24238
  2222
wenzelm@19220
  2223
* Isar: the goal restriction operator [N] (default N = 1) evaluates a
wenzelm@19220
  2224
method expression within a sandbox consisting of the first N
wenzelm@19240
  2225
sub-goals, which need to exist.  For example, ``simp_all [3]''
wenzelm@19240
  2226
simplifies the first three sub-goals, while (rule foo, simp_all)[]
wenzelm@19240
  2227
simplifies all new goals that emerge from applying rule foo to the
wenzelm@19240
  2228
originally first one.
wenzelm@19220
  2229
wenzelm@19814
  2230
* Isar: schematic goals are no longer restricted to higher-order
wenzelm@19814
  2231
patterns; e.g. ``lemma "?P(?x)" by (rule TrueI)'' now works as
wenzelm@19814
  2232
expected.
wenzelm@19814
  2233
wenzelm@18901
  2234
* Isar: the conclusion of a long theorem statement is now either
wenzelm@18901
  2235
'shows' (a simultaneous conjunction, as before), or 'obtains'
wenzelm@18901
  2236
(essentially a disjunction of cases with local parameters and
wenzelm@18901
  2237
assumptions).  The latter allows to express general elimination rules
wenzelm@18910
  2238
adequately; in this notation common elimination rules look like this:
wenzelm@18901
  2239
wenzelm@18901
  2240
  lemma exE:    -- "EX x. P x ==> (!!x. P x ==> thesis) ==> thesis"
wenzelm@18901
  2241
    assumes "EX x. P x"
wenzelm@18901
  2242
    obtains x where "P x"
wenzelm@18901
  2243
wenzelm@18901
  2244
  lemma conjE:  -- "A & B ==> (A ==> B ==> thesis) ==> thesis"
wenzelm@18901
  2245
    assumes "A & B"
wenzelm@18901
  2246
    obtains A and B
wenzelm@18901
  2247
wenzelm@18901
  2248
  lemma disjE:  -- "A | B ==> (A ==> thesis) ==> (B ==> thesis) ==> thesis"
wenzelm@18901
  2249
    assumes "A | B"
wenzelm@18901
  2250
    obtains
wenzelm@18901
  2251
      A
wenzelm@18901
  2252
    | B
wenzelm@18901
  2253
wenzelm@18910
  2254
The subsequent classical rules even refer to the formal "thesis"
wenzelm@18901
  2255
explicitly:
wenzelm@18901
  2256
wenzelm@18901
  2257
  lemma classical:     -- "(~ thesis ==> thesis) ==> thesis"
wenzelm@18901
  2258
    obtains "~ thesis"
wenzelm@18901
  2259
wenzelm@18910
  2260
  lemma Peirce's_Law:  -- "((thesis ==> something) ==> thesis) ==> thesis"
wenzelm@18910
  2261
    obtains "thesis ==> something"
wenzelm@18901
  2262
wenzelm@18901
  2263
The actual proof of an 'obtains' statement is analogous to that of the
wenzelm@18910
  2264
Isar proof element 'obtain', only that there may be several cases.
wenzelm@18910
  2265
Optional case names may be specified in parentheses; these will be
wenzelm@18910
  2266
available both in the present proof and as annotations in the
wenzelm@18910
  2267
resulting rule, for later use with the 'cases' method (cf. attribute
wenzelm@18910
  2268
case_names).
wenzelm@18901
  2269
wenzelm@21447
  2270
* Isar: the assumptions of a long theorem statement are available as
wenzelm@21447
  2271
"assms" fact in the proof context.  This is more appropriate than the
wenzelm@21447
  2272
(historical) "prems", which refers to all assumptions of the current
wenzelm@21447
  2273
context, including those from the target locale, proof body etc.
wenzelm@21447
  2274
wenzelm@19263
  2275
* Isar: 'print_statement' prints theorems from the current theory or
wenzelm@19263
  2276
proof context in long statement form, according to the syntax of a
wenzelm@19263
  2277
top-level lemma.
wenzelm@19263
  2278
wenzelm@18901
  2279
* Isar: 'obtain' takes an optional case name for the local context
wenzelm@18901
  2280
introduction rule (default "that").
wenzelm@18901
  2281
wenzelm@19587
  2282
* Isar: removed obsolete 'concl is' patterns.  INCOMPATIBILITY, use
wenzelm@19587
  2283
explicit (is "_ ==> ?foo") in the rare cases where this still happens
wenzelm@19587
  2284
to occur.
wenzelm@19587
  2285
wenzelm@19682
  2286
* Pure: syntax "CONST name" produces a fully internalized constant
wenzelm@19682
  2287
according to the current context.  This is particularly useful for
wenzelm@19682
  2288
syntax translations that should refer to internal constant
wenzelm@19682
  2289
representations independently of name spaces.
wenzelm@19682
  2290
wenzelm@21537
  2291
* Pure: syntax constant for foo (binder "FOO ") is called "foo_binder"
wenzelm@21537
  2292
instead of "FOO ". This allows multiple binder declarations to coexist
wenzelm@21537
  2293
in the same context.  INCOMPATIBILITY.
wenzelm@21537
  2294
wenzelm@21209
  2295
* Isar/locales: 'notation' provides a robust interface to the 'syntax'
wenzelm@21209
  2296
primitive that also works in a locale context (both for constants and
wenzelm@24950
  2297
fixed variables). Type declaration and internal syntactic representation
wenzelm@24950
  2298
of given constants retrieved from the context. Likewise, the
wenzelm@24950
  2299
'no_notation' command allows to remove given syntax annotations from the
wenzelm@24950
  2300
current context.
wenzelm@19682
  2301
wenzelm@19665
  2302
* Isar/locales: new derived specification elements 'axiomatization',
wenzelm@19665
  2303
'definition', 'abbreviation', which support type-inference, admit
wenzelm@19083
  2304
object-level specifications (equality, equivalence).  See also the
wenzelm@19083
  2305
isar-ref manual.  Examples:
wenzelm@19081
  2306
wenzelm@19665
  2307
  axiomatization
wenzelm@21595
  2308
    eq  (infix "===" 50) where
wenzelm@21595
  2309
    eq_refl: "x === x" and eq_subst: "x === y ==> P x ==> P y"
wenzelm@21595
  2310
wenzelm@21595
  2311
  definition "f x y = x + y + 1"
wenzelm@21595
  2312
  definition g where "g x = f x x"
wenzelm@19081
  2313
wenzelm@19363
  2314
  abbreviation
wenzelm@21595
  2315
    neq  (infix "=!=" 50) where
wenzelm@19363
  2316
    "x =!= y == ~ (x === y)"
wenzelm@19081
  2317
wenzelm@19083
  2318
These specifications may be also used in a locale context.  Then the
wenzelm@19083
  2319
constants being introduced depend on certain fixed parameters, and the
wenzelm@19083
  2320
constant name is qualified by the locale base name.  An internal
wenzelm@19083
  2321
abbreviation takes care for convenient input and output, making the
wenzelm@19088
  2322
parameters implicit and using the original short name.  See also
wenzelm@25177
  2323
src/HOL/ex/Abstract_NAT.thy for an example of deriving polymorphic
wenzelm@19083
  2324
entities from a monomorphic theory.
wenzelm@19083
  2325
wenzelm@19083
  2326
Presently, abbreviations are only available 'in' a target locale, but
wenzelm@19363
  2327
not inherited by general import expressions.  Also note that
wenzelm@19363
  2328
'abbreviation' may be used as a type-safe replacement for 'syntax' +
wenzelm@24735
  2329
'translations' in common applications.  The "no_abbrevs" print mode
wenzelm@24735
  2330
prevents folding of abbreviations in term output.
wenzelm@19084
  2331
wenzelm@19682
  2332
Concrete syntax is attached to specified constants in internal form,
wenzelm@19682
  2333
independently of name spaces.  The parse tree representation is
wenzelm@21209
  2334
slightly different -- use 'notation' instead of raw 'syntax', and
wenzelm@19682
  2335
'translations' with explicit "CONST" markup to accommodate this.
wenzelm@19665
  2336
wenzelm@24800
  2337
* Pure/Isar: unified syntax for new-style specification mechanisms
wenzelm@24800
  2338
(e.g.  'definition', 'abbreviation', or 'inductive' in HOL) admits
wenzelm@24800
  2339
full type inference and dummy patterns ("_").  For example:
wenzelm@24735
  2340
wenzelm@24735
  2341
  definition "K x _ = x"
wenzelm@24735
  2342
wenzelm@24738
  2343
  inductive conj for A B
wenzelm@24738
  2344
  where "A ==> B ==> conj A B"
wenzelm@24738
  2345
wenzelm@21735
  2346
* Pure: command 'print_abbrevs' prints all constant abbreviations of
wenzelm@21735
  2347
the current context.  Print mode "no_abbrevs" prevents inversion of
wenzelm@21735
  2348
abbreviations on output.
wenzelm@21735
  2349
wenzelm@24800
  2350
* Isar/locales: improved parameter handling: use of locales "var" and
wenzelm@24800
  2351
"struct" no longer necessary; - parameter renamings are no longer
wenzelm@24800
  2352
required to be injective.  For example, this allows to define
wenzelm@24800
  2353
endomorphisms as locale endom = homom mult mult h.
ballarin@19783
  2354
ballarin@19931
  2355
* Isar/locales: changed the way locales with predicates are defined.
ballarin@19931
  2356
Instead of accumulating the specification, the imported expression is
wenzelm@22126
  2357
now an interpretation.  INCOMPATIBILITY: different normal form of
wenzelm@22126
  2358
locale expressions.  In particular, in interpretations of locales with
wenzelm@22126
  2359
predicates, goals repesenting already interpreted fragments are not
wenzelm@22126
  2360
removed automatically.  Use methods `intro_locales' and
wenzelm@22126
  2361
`unfold_locales'; see below.
wenzelm@22126
  2362
wenzelm@22126
  2363
* Isar/locales: new methods `intro_locales' and `unfold_locales'
wenzelm@22126
  2364
provide backward reasoning on locales predicates.  The methods are
wenzelm@22126
  2365
aware of interpretations and discharge corresponding goals.
wenzelm@22126
  2366
`intro_locales' is less aggressive then `unfold_locales' and does not
wenzelm@22126
  2367
unfold predicates to assumptions.
ballarin@19931
  2368
ballarin@19931
  2369
* Isar/locales: the order in which locale fragments are accumulated
wenzelm@22126
  2370
has changed.  This enables to override declarations from fragments due
wenzelm@22126
  2371
to interpretations -- for example, unwanted simp rules.
ballarin@19931
  2372
ballarin@23920
  2373
* Isar/locales: interpretation in theories and proof contexts has been
ballarin@23920
  2374
extended.  One may now specify (and prove) equations, which are
ballarin@23920
  2375
unfolded in interpreted theorems.  This is useful for replacing
ballarin@23920
  2376
defined concepts (constants depending on locale parameters) by
ballarin@23920
  2377
concepts already existing in the target context.  Example:
ballarin@23920
  2378
ballarin@23920
  2379
  interpretation partial_order ["op <= :: [int, int] => bool"]
ballarin@23920
  2380
    where "partial_order.less (op <=) (x::int) y = (x < y)"
ballarin@23920
  2381
wenzelm@24800
  2382
Typically, the constant `partial_order.less' is created by a
wenzelm@24800
  2383
definition specification element in the context of locale
wenzelm@24800
  2384
partial_order.
wenzelm@24800
  2385
wenzelm@24859
  2386
* Method "induct": improved internal context management to support
wenzelm@24800
  2387
local fixes and defines on-the-fly. Thus explicit meta-level
wenzelm@24800
  2388
connectives !!  and ==> are rarely required anymore in inductive goals
wenzelm@24800
  2389
(using object-logic connectives for this purpose has been long
wenzelm@24800
  2390
obsolete anyway). Common proof patterns are explained in
wenzelm@25177
  2391
src/HOL/Induct/Common_Patterns.thy, see also
wenzelm@25177
  2392
src/HOL/Isar_examples/Puzzle.thy and src/HOL/Lambda for realistic
wenzelm@25177
  2393
examples.
wenzelm@24606
  2394
wenzelm@24859
  2395
* Method "induct": improved handling of simultaneous goals. Instead of
wenzelm@24606
  2396
introducing object-level conjunction, the statement is now split into
wenzelm@24606
  2397
several conclusions, while the corresponding symbolic cases are nested
wenzelm@24606
  2398
accordingly. INCOMPATIBILITY, proofs need to be structured explicitly,
wenzelm@25177
  2399
see src/HOL/Induct/Common_Patterns.thy, for example.
wenzelm@24606
  2400
wenzelm@24859
  2401
* Method "induct": mutual induction rules are now specified as a list
wenzelm@24800
  2402
of rule sharing the same induction cases. HOL packages usually provide
wenzelm@24606
  2403
foo_bar.inducts for mutually defined items foo and bar (e.g. inductive
wenzelm@24859
  2404
predicates/sets or datatypes). INCOMPATIBILITY, users need to specify
wenzelm@24859
  2405
mutual induction rules differently, i.e. like this:
wenzelm@18506
  2406
wenzelm@18506
  2407
  (induct rule: foo_bar.inducts)
wenzelm@18506
  2408
  (induct set: foo bar)
wenzelm@24859
  2409
  (induct pred: foo bar)
wenzelm@18506
  2410
  (induct type: foo bar)
wenzelm@18506
  2411
wenzelm@18506
  2412
The ML function ProjectRule.projections turns old-style rules into the
wenzelm@18506
  2413
new format.
wenzelm@18506
  2414
wenzelm@24859
  2415
* Method "coinduct": dual of induction, see
wenzelm@18399
  2416
src/HOL/Library/Coinductive_List.thy for various examples.
wenzelm@18399
  2417
wenzelm@24859
  2418
* Method "cases", "induct", "coinduct": the ``(open)'' option is
wenzelm@24859
  2419
considered a legacy feature.
wenzelm@24859
  2420
wenzelm@20919
  2421
* Attribute "symmetric" produces result with standardized schematic
wenzelm@20919
  2422
variables (index 0).  Potential INCOMPATIBILITY.
wenzelm@20919
  2423
wenzelm@22126
  2424
* Simplifier: by default the simplifier trace only shows top level
wenzelm@22126
  2425
rewrites now. That is, trace_simp_depth_limit is set to 1 by
wenzelm@22126
  2426
default. Thus there is less danger of being flooded by the trace. The
wenzelm@22126
  2427
trace indicates where parts have been suppressed.
nipkow@18674
  2428
  
wenzelm@18536
  2429
* Provers/classical: removed obsolete classical version of elim_format
wenzelm@18536
  2430
attribute; classical elim/dest rules are now treated uniformly when
wenzelm@18536
  2431
manipulating the claset.
wenzelm@18536
  2432
wenzelm@18694
  2433
* Provers/classical: stricter checks to ensure that supplied intro,
wenzelm@18694
  2434
dest and elim rules are well-formed; dest and elim rules must have at
wenzelm@18694
  2435
least one premise.
wenzelm@18694
  2436
wenzelm@18694
  2437
* Provers/classical: attributes dest/elim/intro take an optional
wenzelm@18695
  2438
weight argument for the rule (just as the Pure versions).  Weights are
wenzelm@18696
  2439
ignored by automated tools, but determine the search order of single
wenzelm@18694
  2440
rule steps.
paulson@18557
  2441
wenzelm@18536
  2442
* Syntax: input syntax now supports dummy variable binding "%_. b",
wenzelm@18536
  2443
where the body does not mention the bound variable.  Note that dummy
wenzelm@18536
  2444
patterns implicitly depend on their context of bounds, which makes
wenzelm@18536
  2445
"{_. _}" match any set comprehension as expected.  Potential
wenzelm@18536
  2446
INCOMPATIBILITY -- parse translations need to cope with syntactic
wenzelm@18536
  2447
constant "_idtdummy" in the binding position.
wenzelm@18536
  2448
wenzelm@18536
  2449
* Syntax: removed obsolete syntactic constant "_K" and its associated
wenzelm@18536
  2450
parse translation.  INCOMPATIBILITY -- use dummy abstraction instead,
wenzelm@18536
  2451
for example "A -> B" => "Pi A (%_. B)".
wenzelm@17779
  2452
wenzelm@20582
  2453
* Pure: 'class_deps' command visualizes the subclass relation, using
wenzelm@20582
  2454
the graph browser tool.
wenzelm@20582
  2455
wenzelm@24800
  2456
* Pure: 'print_theory' now suppresses certain internal declarations by
wenzelm@24800
  2457
default; use '!' option for full details.
wenzelm@20620
  2458
wenzelm@17865
  2459
nipkow@17806
  2460
*** HOL ***
nipkow@17806
  2461
wenzelm@25129
  2462
* Method "metis" proves goals by applying the Metis general-purpose
wenzelm@25129
  2463
resolution prover (see also http://gilith.com/software/metis/).
wenzelm@25129
  2464
Examples are in the directory MetisExamples.  WARNING: the
wenzelm@25129
  2465
Isabelle/HOL-Metis integration does not yet work properly with
wenzelm@25129
  2466
multi-threading.
wenzelm@25129
  2467
  
wenzelm@25129
  2468
* Command 'sledgehammer' invokes external automatic theorem provers as
wenzelm@25129
  2469
background processes.  It generates calls to the "metis" method if
wenzelm@25129
  2470
successful. These can be pasted into the proof.  Users do not have to
wenzelm@25129
  2471
wait for the automatic provers to return.  WARNING: does not really
wenzelm@25129
  2472
work with multi-threading.
wenzelm@25129
  2473
wenzelm@24804
  2474
* New "auto_quickcheck" feature tests outermost goal statements for
wenzelm@24804
  2475
potential counter-examples.  Controlled by ML references
wenzelm@24804
  2476
auto_quickcheck (default true) and auto_quickcheck_time_limit (default
wenzelm@25129
  2477
5000 milliseconds).  Fails silently if statements is outside of
wenzelm@25129
  2478
executable fragment, or any other codgenerator problem occurs.
wenzelm@24804
  2479
haftmann@25184
  2480
* New constant "undefined" with axiom "undefined x = undefined".
haftmann@25184
  2481
haftmann@25184
  2482
* Added class "HOL.eq", allowing for code generation with polymorphic
haftmann@25184
  2483
equality.
wenzelm@24800
  2484
wenzelm@24800
  2485
* Some renaming of class constants due to canonical name prefixing in
wenzelm@24800
  2486
the new 'class' package:
haftmann@22997
  2487
haftmann@25184
  2488
    HOL.abs ~> HOL.abs_class.abs
haftmann@22997
  2489
    HOL.divide ~> HOL.divide_class.divide
haftmann@25184
  2490
    0 ~> HOL.zero_class.zero
haftmann@25184
  2491
    1 ~> HOL.one_class.one
haftmann@25184
  2492
    op + ~> HOL.plus_class.plus
haftmann@25184
  2493
    op - ~> HOL.minus_class.minus
haftmann@25184
  2494
    uminus ~> HOL.minus_class.uminus
haftmann@25184
  2495
    op * ~> HOL.times_class.times
haftmann@25184
  2496
    op < ~> HOL.ord_class.less
haftmann@25184
  2497
    op <= > HOL.ord_class.less_eq
haftmann@24996
  2498
    Nat.power ~> Power.power_class.power
haftmann@22997
  2499
    Nat.size ~> Nat.size_class.size
haftmann@22997
  2500
    Numeral.number_of ~> Numeral.number_class.number_of
haftmann@24996
  2501
    FixedPoint.Inf ~> Lattices.complete_lattice_class.Inf
haftmann@24996
  2502
    FixedPoint.Sup ~> Lattices.complete_lattice_class.Sup
haftmann@23129
  2503
    Orderings.min ~> Orderings.ord_class.min
haftmann@23129
  2504
    Orderings.max ~> Orderings.ord_class.max
haftmann@25184
  2505
    Divides.op div ~> Divides.div_class.div
haftmann@25184
  2506
    Divides.op mod ~> Divides.div_class.mod
haftmann@25184
  2507
    Divides.op dvd ~> Divides.div_class.dvd
haftmann@25184
  2508
haftmann@25184
  2509
INCOMPATIBILITY.  Adaptions may be required in the following cases:
haftmann@25184
  2510
haftmann@25184
  2511
a) User-defined constants using any of the names "plus", "minus",
haftmann@25184
  2512
"times", "less" or "less_eq". The standard syntax translations for
haftmann@25184
  2513
"+", "-" and "*" may go wrong.  INCOMPATIBILITY: use more specific
haftmann@25184
  2514
names.
haftmann@25184
  2515
haftmann@25184
  2516
b) Variables named "plus", "minus", "times", "less", "less_eq"
haftmann@25184
  2517
INCOMPATIBILITY: use more specific names.
haftmann@25184
  2518
haftmann@25184
  2519
c) Permutative equations (e.g. "a + b = b + a")
haftmann@25184
  2520
Since the change of names also changes the order of terms, permutative
haftmann@25184
  2521
rewrite rules may get applied in a different order. Experience shows
haftmann@25184
  2522
that this is rarely the case (only two adaptions in the whole Isabelle
haftmann@25184
  2523
distribution).  INCOMPATIBILITY: rewrite proofs
haftmann@25184
  2524
haftmann@25184
  2525
d) ML code directly refering to constant names
haftmann@25184
  2526
This in general only affects hand-written proof tactics, simprocs and
haftmann@25184
  2527
so on.  INCOMPATIBILITY: grep your sourcecode and replace names.
haftmann@25184
  2528
Consider using @{const_name} antiquotation.
haftmann@24996
  2529
wenzelm@24800
  2530
* New class "default" with associated constant "default".
wenzelm@24800
  2531
wenzelm@24800
  2532
* Function "sgn" is now overloaded and available on int, real, complex
wenzelm@24800
  2533
(and other numeric types), using class "sgn".  Two possible defs of
wenzelm@24800
  2534
sgn are given as equational assumptions in the classes sgn_if and
wenzelm@24800
  2535
sgn_div_norm; ordered_idom now also inherits from sgn_if.
wenzelm@24800
  2536
INCOMPATIBILITY.
wenzelm@24800
  2537
haftmann@25184
  2538
* Locale "partial_order" now unified with class "order" (cf. theory
haftmann@25184
  2539
Orderings), added parameter "less".  INCOMPATIBILITY.
haftmann@25184
  2540
haftmann@25184
  2541
* Renamings in classes "order" and "linorder": facts "refl", "trans" and
haftmann@25184
  2542
"cases" to "order_refl", "order_trans" and "linorder_cases", to avoid
haftmann@25184
  2543
clashes with HOL "refl" and "trans".  INCOMPATIBILITY.
haftmann@25184
  2544
haftmann@25184
  2545
* Classes "order" and "linorder": potential INCOMPATIBILITY due to
haftmann@25184
  2546
changed order of proof goals in instance proofs.
haftmann@25184
  2547
haftmann@25184
  2548
* The transitivity reasoner for partial and linear orders is set up
haftmann@25184
  2549
for classes "order" and "linorder".  Instances of the reasoner are available
haftmann@25184
  2550
in all contexts importing or interpreting the corresponding locales.
haftmann@25184
  2551
Method "order" invokes the reasoner separately; the reasoner
haftmann@25184
  2552
is also integrated with the Simplifier as a solver.  Diagnostic
haftmann@25184
  2553
command 'print_orders' shows the available instances of the reasoner
haftmann@25184
  2554
in the current context.
haftmann@25184
  2555
haftmann@25184
  2556
* Localized monotonicity predicate in theory "Orderings"; integrated
haftmann@25184
  2557
lemmas max_of_mono and min_of_mono with this predicate.
haftmann@25184
  2558
INCOMPATIBILITY.
haftmann@25184
  2559
haftmann@25184
  2560
* Formulation of theorem "dense" changed slightly due to integration
haftmann@25184
  2561
with new class dense_linear_order.
haftmann@25184
  2562
haftmann@25184
  2563
* Uniform lattice theory development in HOL.
haftmann@22422
  2564
haftmann@22422
  2565
    constants "meet" and "join" now named "inf" and "sup"
haftmann@22422
  2566
    constant "Meet" now named "Inf"
haftmann@22422
  2567
haftmann@22450
  2568
    classes "meet_semilorder" and "join_semilorder" now named
haftmann@22450
  2569
      "lower_semilattice" and "upper_semilattice"
haftmann@22450
  2570
    class "lorder" now named "lattice"
haftmann@22450
  2571
    class "comp_lat" now named "complete_lattice"
haftmann@22450
  2572
haftmann@22450
  2573
    Instantiation of lattice classes allows explicit definitions
haftmann@24342
  2574
    for "inf" and "sup" operations (or "Inf" and "Sup" for complete lattices).
haftmann@22450
  2575
haftmann@23129
  2576
  INCOMPATIBILITY.  Theorem renames:
haftmann@22450
  2577
haftmann@22422
  2578
    meet_left_le            ~> inf_le1
haftmann@22422
  2579
    meet_right_le           ~> inf_le2
haftmann@22422
  2580
    join_left_le            ~> sup_ge1
haftmann@22422
  2581
    join_right_le           ~> sup_ge2
haftmann@22422
  2582
    meet_join_le            ~> inf_sup_ord
haftmann@22422
  2583
    le_meetI                ~> le_infI
haftmann@22422
  2584
    join_leI                ~> le_supI
haftmann@22422
  2585
    le_meet                 ~> le_inf_iff
haftmann@22422
  2586
    le_join                 ~> ge_sup_conv
haftmann@22422
  2587
    meet_idempotent         ~> inf_idem
haftmann@22422
  2588
    join_idempotent         ~> sup_idem
haftmann@22422
  2589
    meet_comm               ~> inf_commute
haftmann@22422
  2590
    join_comm               ~> sup_commute
haftmann@22422
  2591
    meet_leI1               ~> le_infI1
haftmann@22422
  2592
    meet_leI2               ~> le_infI2
haftmann@22422
  2593
    le_joinI1               ~> le_supI1
haftmann@22422
  2594
    le_joinI2               ~> le_supI2
haftmann@22422
  2595
    meet_assoc              ~> inf_assoc
haftmann@22422
  2596
    join_assoc              ~> sup_assoc
haftmann@22422
  2597
    meet_left_comm          ~> inf_left_commute
haftmann@22422
  2598
    meet_left_idempotent    ~> inf_left_idem
haftmann@22422
  2599
    join_left_comm          ~> sup_left_commute
haftmann@22422
  2600
    join_left_idempotent    ~> sup_left_idem
haftmann@22422
  2601
    meet_aci                ~> inf_aci
haftmann@22422
  2602
    join_aci                ~> sup_aci
haftmann@22422
  2603
    le_def_meet             ~> le_iff_inf
haftmann@22422
  2604
    le_def_join             ~> le_iff_sup
haftmann@22422
  2605
    join_absorp2            ~> sup_absorb2
haftmann@22422
  2606
    join_absorp1            ~> sup_absorb1
haftmann@22422
  2607
    meet_absorp1            ~> inf_absorb1
haftmann@22422
  2608
    meet_absorp2            ~> inf_absorb2
haftmann@22422
  2609
    meet_join_absorp        ~> inf_sup_absorb
haftmann@22422
  2610
    join_meet_absorp        ~> sup_inf_absorb
haftmann@22422
  2611
    distrib_join_le         ~> distrib_sup_le
haftmann@22422
  2612
    distrib_meet_le         ~> distrib_inf_le
haftmann@22422
  2613
haftmann@22422
  2614
    add_meet_distrib_left   ~> add_inf_distrib_left
haftmann@22422
  2615
    add_join_distrib_left   ~> add_sup_distrib_left
haftmann@22422
  2616
    is_join_neg_meet        ~> is_join_neg_inf
haftmann@22422
  2617
    is_meet_neg_join        ~> is_meet_neg_sup
haftmann@22422
  2618
    add_meet_distrib_right  ~> add_inf_distrib_right
haftmann@22422
  2619
    add_join_distrib_right  ~> add_sup_distrib_right
haftmann@22422
  2620
    add_meet_join_distribs  ~> add_sup_inf_distribs
haftmann@22422
  2621
    join_eq_neg_meet        ~> sup_eq_neg_inf
haftmann@22422
  2622
    meet_eq_neg_join        ~> inf_eq_neg_sup
haftmann@22422
  2623
    add_eq_meet_join        ~> add_eq_inf_sup
haftmann@22422
  2624
    meet_0_imp_0            ~> inf_0_imp_0
haftmann@22422
  2625
    join_0_imp_0            ~> sup_0_imp_0
haftmann@22422
  2626
    meet_0_eq_0             ~> inf_0_eq_0
haftmann@22422
  2627
    join_0_eq_0             ~> sup_0_eq_0
haftmann@22422
  2628
    neg_meet_eq_join        ~> neg_inf_eq_sup
haftmann@22422
  2629
    neg_join_eq_meet        ~> neg_sup_eq_inf
haftmann@22422
  2630
    join_eq_if              ~> sup_eq_if
haftmann@22422
  2631
haftmann@22422
  2632
    mono_meet               ~> mono_inf
haftmann@22422
  2633
    mono_join               ~> mono_sup
haftmann@22422
  2634
    meet_bool_eq            ~> inf_bool_eq
haftmann@22422
  2635
    join_bool_eq            ~> sup_bool_eq
haftmann@22422
  2636
    meet_fun_eq             ~> inf_fun_eq
haftmann@22422
  2637
    join_fun_eq             ~> sup_fun_eq
haftmann@22422
  2638
    meet_set_eq             ~> inf_set_eq
haftmann@22422
  2639
    join_set_eq             ~> sup_set_eq
haftmann@22422
  2640
    meet1_iff               ~> inf1_iff
haftmann@22422
  2641
    meet2_iff               ~> inf2_iff
haftmann@22422
  2642
    meet1I                  ~> inf1I
haftmann@22422
  2643
    meet2I                  ~> inf2I
haftmann@22422
  2644
    meet1D1                 ~> inf1D1
haftmann@22422
  2645
    meet2D1                 ~> inf2D1
haftmann@22422
  2646
    meet1D2                 ~> inf1D2
haftmann@22422
  2647
    meet2D2                 ~> inf2D2
haftmann@22422
  2648
    meet1E                  ~> inf1E
haftmann@22422
  2649
    meet2E                  ~> inf2E
haftmann@22422
  2650
    join1_iff               ~> sup1_iff
haftmann@22422
  2651
    join2_iff               ~> sup2_iff
haftmann@22422
  2652
    join1I1                 ~> sup1I1
haftmann@22422
  2653
    join2I1                 ~> sup2I1
haftmann@22422
  2654
    join1I1                 ~> sup1I1
haftmann@22422
  2655
    join2I2                 ~> sup1I2
haftmann@22422
  2656
    join1CI                 ~> sup1CI
haftmann@22422
  2657
    join2CI                 ~> sup2CI
haftmann@22422
  2658
    join1E                  ~> sup1E
haftmann@22422
  2659
    join2E                  ~> sup2E
haftmann@22422
  2660
haftmann@22422
  2661
    is_meet_Meet            ~> is_meet_Inf
haftmann@22422
  2662
    Meet_bool_def           ~> Inf_bool_def
haftmann@22422
  2663
    Meet_fun_def            ~> Inf_fun_def
haftmann@22422
  2664
    Meet_greatest           ~> Inf_greatest
haftmann@22422
  2665
    Meet_lower              ~> Inf_lower
haftmann@22422
  2666
    Meet_set_def            ~> Inf_set_def
haftmann@22422
  2667
haftmann@24342
  2668
    Sup_def                 ~> Sup_Inf
haftmann@24342
  2669
    Sup_bool_eq             ~> Sup_bool_def
haftmann@24342
  2670
    Sup_fun_eq              ~> Sup_fun_def
haftmann@24342
  2671
    Sup_set_eq              ~> Sup_set_def
haftmann@24342
  2672
haftmann@22422
  2673
    listsp_meetI            ~> listsp_infI
haftmann@22422
  2674
    listsp_meet_eq          ~> listsp_inf_eq
haftmann@22422
  2675
haftmann@22450
  2676
    meet_min                ~> inf_min
haftmann@22450
  2677
    join_max                ~> sup_max
haftmann@22450
  2678
haftmann@25184
  2679
* Added syntactic class "size"; overloaded constant "size" now has
haftmann@25184
  2680
type "'a::size ==> bool"
haftmann@25184
  2681
haftmann@25184
  2682
* Internal reorganisation of `size' of datatypes: size theorems
haftmann@25184
  2683
"foo.size" are no longer subsumed by "foo.simps" (but are still
haftmann@25184
  2684
simplification rules by default!); theorems "prod.size" now named
haftmann@25184
  2685
"*.size".
haftmann@25184
  2686
haftmann@25184
  2687
* Class "div" now inherits from class "times" rather than "type".
haftmann@25184
  2688
INCOMPATIBILITY.
haftmann@25184
  2689
haftmann@25184
  2690
* HOL/Finite_Set: "name-space" locales Lattice, Distrib_lattice,
haftmann@25184
  2691
Linorder etc.  have disappeared; operations defined in terms of
haftmann@25184
  2692
fold_set now are named Inf_fin, Sup_fin.  INCOMPATIBILITY.
haftmann@25184
  2693
haftmann@25184
  2694
* HOL/Nat: neq0_conv no longer declared as iff.  INCOMPATIBILITY.
haftmann@25184
  2695
haftmann@25184
  2696
* HOL-Word: New extensive library and type for generic, fixed size
haftmann@25184
  2697
machine words, with arithemtic, bit-wise, shifting and rotating
haftmann@25184
  2698
operations, reflection into int, nat, and bool lists, automation for
haftmann@25184
  2699
linear arithmetic (by automatic reflection into nat or int), including
haftmann@25184
  2700
lemmas on overflow and monotonicity.  Instantiated to all appropriate
haftmann@25184
  2701
arithmetic type classes, supporting automatic simplification of
haftmann@25184
  2702
numerals on all operations.
haftmann@25184
  2703
haftmann@25184
  2704
* Library/Boolean_Algebra: locales for abstract boolean algebras.
haftmann@25184
  2705
haftmann@25184
  2706
* Library/Numeral_Type: numbers as types, e.g. TYPE(32).
haftmann@25184
  2707
haftmann@25184
  2708
* Code generator library theories:
haftmann@25184
  2709
  - Code_Integer represents HOL integers by big integer literals in target
haftmann@25184
  2710
    languages.
haftmann@25184
  2711
  - Code_Char represents HOL characters by character literals in target
haftmann@25184
  2712
    languages.
haftmann@25184
  2713
  - Code_Char_chr like Code_Char, but also offers treatment of character
haftmann@25184
  2714
    codes; includes Code_Integer.
haftmann@25184
  2715
  - Executable_Set allows to generate code for finite sets using lists.
haftmann@25184
  2716
  - Executable_Rat implements rational numbers as triples (sign, enumerator,
haftmann@25184
  2717
    denominator).
haftmann@25184
  2718
  - Executable_Real implements a subset of real numbers, namly those
haftmann@25184
  2719
    representable by rational numbers.
haftmann@25184
  2720
  - Efficient_Nat implements natural numbers by integers, which in general will
haftmann@25184
  2721
    result in higher efficency; pattern matching with 0/Suc is eliminated;
haftmann@25184
  2722
    includes Code_Integer.
haftmann@25184
  2723
  - Code_Index provides an additional datatype index which is mapped to
haftmann@25184
  2724
    target-language built-in integers.
haftmann@26355
  2725
  - Code_Message provides an additional datatype message_string which is isomorphic to
haftmann@25184
  2726
    strings; messages are mapped to target-language strings.
haftmann@25184
  2727
haftmann@25184
  2728
* New package for inductive predicates
haftmann@25184
  2729
haftmann@25184
  2730
  An n-ary predicate p with m parameters z_1, ..., z_m can now be defined via
haftmann@25184
  2731
haftmann@25184
  2732
    inductive
haftmann@25184
  2733
      p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  2734
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  2735
    where
haftmann@25184
  2736
      rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
haftmann@25184
  2737
    | ...
haftmann@25184
  2738
haftmann@25184
  2739
  with full support for type-inference, rather than
haftmann@25184
  2740
haftmann@25184
  2741
    consts s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  2742
haftmann@25184
  2743
    abbreviation p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  2744
    where "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
haftmann@25184
  2745
haftmann@25184
  2746
    inductive "s z_1 ... z_m"
haftmann@25184
  2747
    intros
haftmann@25184
  2748
      rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
haftmann@25184
  2749
      ...
haftmann@25184
  2750
haftmann@25184
  2751
  For backward compatibility, there is a wrapper allowing inductive
haftmann@25184
  2752
  sets to be defined with the new package via
haftmann@25184
  2753
haftmann@25184
  2754
    inductive_set
haftmann@25184
  2755
      s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  2756
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  2757
    where
haftmann@25184
  2758
      rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
haftmann@25184
  2759
    | ...
haftmann@25184
  2760
haftmann@25184
  2761
  or
haftmann@25184
  2762
haftmann@25184
  2763
    inductive_set
haftmann@25184
  2764
      s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  2765
      and p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  2766
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  2767
    where
haftmann@25184
  2768
      "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
haftmann@25184
  2769
    | rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
haftmann@25184
  2770
    | ...
haftmann@25184
  2771
haftmann@25184
  2772
  if the additional syntax "p ..." is required.
haftmann@25184
  2773
haftmann@25184
  2774
  Numerous examples can be found in the subdirectories src/HOL/Auth,
haftmann@25184
  2775
  src/HOL/Bali, src/HOL/Induct, and src/HOL/MicroJava.
haftmann@25184
  2776
haftmann@25184
  2777
  INCOMPATIBILITIES:
haftmann@25184
  2778
haftmann@25184
  2779
  - Since declaration and definition of inductive sets or predicates
haftmann@25184
  2780
    is no longer separated, abbreviations involving the newly
haftmann@25184
  2781
    introduced sets or predicates must be specified together with the
haftmann@25184
  2782
    introduction rules after the 'where' keyword (see above), rather
haftmann@25184
  2783
    than before the actual inductive definition.
haftmann@25184
  2784
haftmann@25184
  2785
  - The variables in induction and elimination rules are now
haftmann@25184
  2786
    quantified in the order of their occurrence in the introduction
haftmann@25184
  2787
    rules, rather than in alphabetical order. Since this may break
haftmann@25184
  2788
    some proofs, these proofs either have to be repaired, e.g. by
haftmann@25184
  2789
    reordering the variables a_i_1 ... a_i_{k_i} in Isar 'case'
haftmann@25184
  2790
    statements of the form
haftmann@25184
  2791
haftmann@25184
  2792
      case (rule_i a_i_1 ... a_i_{k_i})
haftmann@25184
  2793
haftmann@25184
  2794
    or the old order of quantification has to be restored by explicitly adding
haftmann@25184
  2795
    meta-level quantifiers in the introduction rules, i.e.
haftmann@25184
  2796
haftmann@25184
  2797
      | rule_i: "!!a_i_1 ... a_i_{k_i}. ... ==> p z_1 ... z_m t_i_1 ... t_i_n"
haftmann@25184
  2798
haftmann@25184
  2799
  - The format of the elimination rules is now
haftmann@25184
  2800
haftmann@25184
  2801
      p z_1 ... z_m x_1 ... x_n ==>
haftmann@25184
  2802
        (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
haftmann@25184
  2803
        ==> ... ==> P
haftmann@25184
  2804
haftmann@25184
  2805
    for predicates and
haftmann@25184
  2806
haftmann@25184
  2807
      (x_1, ..., x_n) : s z_1 ... z_m ==>
haftmann@25184
  2808
        (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
haftmann@25184
  2809
        ==> ... ==> P
haftmann@25184
  2810
haftmann@25184
  2811
    for sets rather than
haftmann@25184
  2812
haftmann@25184
  2813
      x : s z_1 ... z_m ==>
haftmann@25184
  2814
        (!!a_1_1 ... a_1_{k_1}. x = (t_1_1, ..., t_1_n) ==> ... ==> P)
haftmann@25184
  2815
        ==> ... ==> P
haftmann@25184
  2816
haftmann@25184
  2817
    This may require terms in goals to be expanded to n-tuples
haftmann@25184
  2818
    (e.g. using case_tac or simplification with the split_paired_all
haftmann@25184
  2819
    rule) before the above elimination rule is applicable.
haftmann@25184
  2820
haftmann@25184
  2821
  - The elimination or case analysis rules for (mutually) inductive
haftmann@25184
  2822
    sets or predicates are now called "p_1.cases" ... "p_k.cases". The
haftmann@25184
  2823
    list of rules "p_1_..._p_k.elims" is no longer available.
haftmann@25184
  2824
krauss@25198
  2825
* New package "function"/"fun" for general recursive functions,
krauss@25198
  2826
supporting mutual and nested recursion, definitions in local contexts,
krauss@25198
  2827
more general pattern matching and partiality. See HOL/ex/Fundefs.thy
krauss@25198
  2828
for small examples, and the separate tutorial on the function
krauss@25198
  2829
package. The old recdef "package" is still available as before, but
krauss@25198
  2830
users are encouraged to use the new package.
krauss@25198
  2831
krauss@25198
  2832
* Method "lexicographic_order" automatically synthesizes termination
krauss@25198
  2833
relations as lexicographic combinations of size measures. 
krauss@25198
  2834
haftmann@25184
  2835
* Case-expressions allow arbitrary constructor-patterns (including
haftmann@25184
  2836
"_") and take their order into account, like in functional
haftmann@25184
  2837
programming.  Internally, this is translated into nested
haftmann@25184
  2838
case-expressions; missing cases are added and mapped to the predefined
haftmann@25184
  2839
constant "undefined". In complicated cases printing may no longer show
haftmann@25184
  2840
the original input but the internal form. Lambda-abstractions allow
haftmann@25184
  2841
the same form of pattern matching: "% pat1 => e1 | ..." is an
haftmann@25184
  2842
abbreviation for "%x. case x of pat1 => e1 | ..." where x is a new
haftmann@25184
  2843
variable.
haftmann@25184
  2844
haftmann@25184
  2845
* IntDef: The constant "int :: nat => int" has been removed; now "int"
haftmann@25184
  2846
is an abbreviation for "of_nat :: nat => int". The simplification
haftmann@25184
  2847
rules for "of_nat" have been changed to work like "int" did
haftmann@25184
  2848
previously.  Potential INCOMPATIBILITY:
haftmann@25184
  2849
  - "of_nat (Suc m)" simplifies to "1 + of_nat m" instead of "of_nat m + 1"
haftmann@25184
  2850
  - of_nat_diff and of_nat_mult are no longer default simp rules
haftmann@25184
  2851
haftmann@25184
  2852
* Method "algebra" solves polynomial equations over (semi)rings using
haftmann@25184
  2853
Groebner bases. The (semi)ring structure is defined by locales and the
haftmann@25184
  2854
tool setup depends on that generic context. Installing the method for
haftmann@25184
  2855
a specific type involves instantiating the locale and possibly adding
haftmann@25184
  2856
declarations for computation on the coefficients.  The method is
haftmann@25184
  2857
already instantiated for natural numbers and for the axiomatic class
haftmann@25184
  2858
of idoms with numerals.  See also the paper by Chaieb and Wenzel at
haftmann@25184
  2859
CALCULEMUS 2007 for the general principles underlying this
haftmann@25184
  2860
architecture of context-aware proof-tools.
haftmann@25184
  2861
haftmann@25184
  2862
* Method "ferrack" implements quantifier elimination over
haftmann@25184
  2863
special-purpose dense linear orders using locales (analogous to
haftmann@25184
  2864
"algebra"). The method is already installed for class
haftmann@25184
  2865
{ordered_field,recpower,number_ring} which subsumes real, hyperreal,
haftmann@25184
  2866
rat, etc.
haftmann@25184
  2867
haftmann@25184
  2868
* Former constant "List.op @" now named "List.append".  Use ML
haftmann@25184
  2869
antiquotations @{const_name List.append} or @{term " ... @ ... "} to
haftmann@25184
  2870
circumvent possible incompatibilities when working on ML level.
haftmann@25184
  2871
haftmann@25184
  2872
* primrec: missing cases mapped to "undefined" instead of "arbitrary".
haftmann@25184
  2873
haftmann@25184
  2874
* New function listsum :: 'a list => 'a for arbitrary monoids.
haftmann@25184
  2875
Special syntax: "SUM x <- xs. f x" (and latex variants)
haftmann@25184
  2876
haftmann@25184
  2877
* New syntax for Haskell-like list comprehension (input only), eg.
haftmann@25184
  2878
[(x,y). x <- xs, y <- ys, x ~= y], see also src/HOL/List.thy.
haftmann@25184
  2879
haftmann@25184
  2880
* The special syntax for function "filter" has changed from [x :
haftmann@25184
  2881
xs. P] to [x <- xs. P] to avoid an ambiguity caused by list
haftmann@25184
  2882
comprehension syntax, and for uniformity.  INCOMPATIBILITY.
haftmann@25184
  2883
haftmann@25184
  2884
* [a..b] is now defined for arbitrary linear orders.  It used to be
haftmann@25184
  2885
defined on nat only, as an abbreviation for [a..<Suc b]
haftmann@25184
  2886
INCOMPATIBILITY.
haftmann@25184
  2887
haftmann@25184
  2888
* Renamed lemma "set_take_whileD"  to "set_takeWhileD".
haftmann@25184
  2889
haftmann@25184
  2890
* New functions "sorted" and "sort" in src/HOL/List.thy.
haftmann@25184
  2891
haftmann@25184
  2892
* New lemma collection field_simps (an extension of ring_simps) for
haftmann@25184
  2893
manipulating (in)equations involving division. Multiplies with all
haftmann@25184
  2894
denominators that can be proved to be non-zero (in equations) or
haftmann@25184
  2895
positive/negative (in inequations).
haftmann@25184
  2896
haftmann@25184
  2897
* Lemma collections ring_eq_simps, group_eq_simps and ring_distrib
haftmann@25184
  2898
have been improved and renamed to ring_simps, group_simps and
haftmann@25184
  2899
ring_distribs.  Removed lemmas field_xyz in theory Ring_and_Field
haftmann@25184
  2900
because they were subsumed by lemmas xyz.  INCOMPATIBILITY.
haftmann@25184
  2901
haftmann@25184
  2902
* Theory Library/Commutative_Ring: switched from recdef to function
haftmann@25184
  2903
package; constants add, mul, pow now curried.  Infix syntax for
haftmann@25184
  2904
algebraic operations.
haftmann@25163
  2905
wenzelm@24800
  2906
* Dropped redundant lemma def_imp_eq in favor of meta_eq_to_obj_eq.
haftmann@22218
  2907
INCOMPATIBILITY.
haftmann@22218
  2908
wenzelm@24800
  2909
* Dropped redundant lemma if_def2 in favor of if_bool_eq_conj.
haftmann@22218
  2910
INCOMPATIBILITY.
haftmann@22218
  2911
wenzelm@22126
  2912
* HOL/records: generalised field-update to take a function on the
wenzelm@22126
  2913
field rather than the new value: r(|A := x|) is translated to A_update
wenzelm@22126
  2914
(K x) r The K-combinator that is internally used is called K_record.
schirmer@21226
  2915
INCOMPATIBILITY: Usage of the plain update functions has to be
schirmer@21226
  2916
adapted.
schirmer@21226
  2917
 
wenzelm@24800
  2918
* Class "semiring_0" now contains annihilation axioms x * 0 = 0 and 0
wenzelm@24800
  2919
* x = 0, which are required for a semiring.  Richer structures do not
wenzelm@24800
  2920
inherit from semiring_0 anymore, because this property is a theorem
wenzelm@24800
  2921
there, not an axiom.  INCOMPATIBILITY: In instances of semiring_0,
wenzelm@24800
  2922
there is more to prove, but this is mostly trivial.
wenzelm@24800
  2923
wenzelm@24800
  2924
* Class "recpower" is generalized to arbitrary monoids, not just
wenzelm@24800
  2925
commutative semirings.  INCOMPATIBILITY: may need to incorporate
haftmann@25163
  2926
commutativity or semiring properties additionally.
wenzelm@22126
  2927
wenzelm@22126
  2928
* Constant "List.list_all2" in List.thy now uses authentic syntax.
wenzelm@24800
  2929
INCOMPATIBILITY: translations containing list_all2 may go wrong,
wenzelm@24800
  2930
better use 'abbreviation'.
wenzelm@24800
  2931
wenzelm@24800
  2932
* Renamed constant "List.op mem" to "List.member".  INCOMPATIBILITY.
wenzelm@24800
  2933
wenzelm@22126
  2934
* Numeral syntax: type 'bin' which was a mere type copy of 'int' has
wenzelm@24800
  2935
been abandoned in favour of plain 'int'.  INCOMPATIBILITY --
wenzelm@22126
  2936
significant changes for setting up numeral syntax for types:
wenzelm@24800
  2937
  - New constants Numeral.pred and Numeral.succ instead
haftmann@20485
  2938
      of former Numeral.bin_pred and Numeral.bin_succ.
haftmann@20485
  2939
  - Use integer operations instead of bin_add, bin_mult and so on.
haftmann@20485
  2940
  - Numeral simplification theorems named Numeral.numeral_simps instead of Bin_simps.
haftmann@20485
  2941
  - ML structure Bin_Simprocs now named Int_Numeral_Base_Simprocs.
haftmann@20485
  2942
wenzelm@25177
  2943
See src/HOL/Integ/IntArith.thy for an example setup.
wenzelm@25177
  2944
wenzelm@25177
  2945
* Command 'normal_form' computes the normal form of a term that may
wenzelm@25177
  2946
contain free variables.  For example ``normal_form "rev [a, b, c]"''
wenzelm@25177
  2947
produces ``[b, c, a]'' (without proof).  This command is suitable for
wenzelm@25177
  2948
heavy-duty computations because the functions are compiled to ML
wenzelm@25177
  2949
first.  Correspondingly, a method "normalization" is provided.  See
wenzelm@25177
  2950
further src/HOL/ex/NormalForm.thy and src/Tools/nbe.ML.
nipkow@19895
  2951
wenzelm@17996
  2952
* Alternative iff syntax "A <-> B" for equality on bool (with priority
wenzelm@17996
  2953
25 like -->); output depends on the "iff" print_mode, the default is
wenzelm@17996
  2954
"A = B" (with priority 50).
wenzelm@17996
  2955
wenzelm@21265
  2956
* Relations less (<) and less_eq (<=) are also available on type bool.
wenzelm@21265
  2957
Modified syntax to disallow nesting without explicit parentheses,
wenzelm@24800
  2958
e.g. "(x < y) < z" or "x < (y < z)", but NOT "x < y < z".  Potential
wenzelm@24800
  2959
INCOMPATIBILITY.
wenzelm@21265
  2960
nipkow@18674
  2961
* "LEAST x:A. P" expands to "LEAST x. x:A & P" (input only).
nipkow@18674
  2962
krauss@20716
  2963
* Relation composition operator "op O" now has precedence 75 and binds
krauss@20716
  2964
stronger than union and intersection. INCOMPATIBILITY.
krauss@20716
  2965
wenzelm@22126
  2966
* The old set interval syntax "{m..n(}" (and relatives) has been
wenzelm@22126
  2967
removed.  Use "{m..<n}" (and relatives) instead.
nipkow@19377
  2968
wenzelm@17865
  2969
* In the context of the assumption "~(s = t)" the Simplifier rewrites
wenzelm@24800
  2970
"t = s" to False (by simproc "neq").  INCOMPATIBILITY, consider using
wenzelm@24800
  2971
``declare [[simproc del: neq]]''.
wenzelm@24800
  2972
wenzelm@24800
  2973
* Simplifier: "m dvd n" where m and n are numbers is evaluated to
wenzelm@24800
  2974
True/False.
wenzelm@24800
  2975
wenzelm@24800
  2976
* Theorem Cons_eq_map_conv no longer declared as "simp".
nipkow@19211
  2977
ballarin@19279
  2978
* Theorem setsum_mult renamed to setsum_right_distrib.
ballarin@19279
  2979
nipkow@19211
  2980
* Prefer ex1I over ex_ex1I in single-step reasoning, e.g. by the
wenzelm@22126
  2981
``rule'' method.
wenzelm@22126
  2982
wenzelm@24800
  2983
* Reimplemented methods "sat" and "satx", with several improvements:
wenzelm@24800
  2984
goals no longer need to be stated as "<prems> ==> False", equivalences
wenzelm@24800
  2985
(i.e. "=" on type bool) are handled, variable names of the form
wenzelm@24800
  2986
"lit_<n>" are no longer reserved, significant speedup.
wenzelm@24800
  2987
wenzelm@24800
  2988
* Methods "sat" and "satx" can now replay MiniSat proof traces.
wenzelm@22126
  2989
zChaff is still supported as well.
wenzelm@22126
  2990
wenzelm@22126
  2991
* 'inductive' and 'datatype': provide projections of mutual rules,
wenzelm@22126
  2992
bundled as foo_bar.inducts;
wenzelm@22126
  2993
wenzelm@22126
  2994
* Library: moved theories Parity, GCD, Binomial, Infinite_Set to
wenzelm@22126
  2995
Library.
wenzelm@21256
  2996
wenzelm@21256
  2997
* Library: moved theory Accessible_Part to main HOL.
wenzelm@19572
  2998
wenzelm@18446
  2999
* Library: added theory Coinductive_List of potentially infinite lists
wenzelm@18446
  3000
as greatest fixed-point.
wenzelm@18399
  3001
wenzelm@19254
  3002
* Library: added theory AssocList which implements (finite) maps as
schirmer@19252
  3003
association lists.
webertj@17809
  3004
wenzelm@24800
  3005
* Method "evaluation" solves goals (i.e. a boolean expression)
wenzelm@24800
  3006
efficiently by compiling it to ML.  The goal is "proved" (via an
wenzelm@24800
  3007
oracle) if it evaluates to True.
wenzelm@20807
  3008
wenzelm@20807
  3009
* Linear arithmetic now splits certain operators (e.g. min, max, abs)
wenzelm@24800
  3010
also when invoked by the simplifier.  This results in the Simplifier
wenzelm@24800
  3011
being more powerful on arithmetic goals.  INCOMPATIBILITY.
wenzelm@24800
  3012
Configuration option fast_arith_split_limit=0 recovers the old
wenzelm@24800
  3013
behavior.
webertj@20217
  3014
wenzelm@22126
  3015
* Support for hex (0x20) and binary (0b1001) numerals.
wenzelm@19254
  3016
wenzelm@20807
  3017
* New method: reify eqs (t), where eqs are equations for an
wenzelm@20807
  3018
interpretation I :: 'a list => 'b => 'c and t::'c is an optional
wenzelm@20807
  3019
parameter, computes a term s::'b and a list xs::'a list and proves the
wenzelm@20807
  3020
theorem I xs s = t. This is also known as reification or quoting. The
wenzelm@20807
  3021
resulting theorem is applied to the subgoal to substitute t with I xs
wenzelm@20807
  3022
s.  If t is omitted, the subgoal itself is reified.
wenzelm@20807
  3023
wenzelm@20807
  3024
* New method: reflection corr_thm eqs (t). The parameters eqs and (t)
wenzelm@20807
  3025
are as explained above. corr_thm is a theorem for I vs (f t) = I vs t,
wenzelm@20807
  3026
where f is supposed to be a computable function (in the sense of code
wenzelm@20807
  3027
generattion). The method uses reify to compute s and xs as above then
wenzelm@20807
  3028
applies corr_thm and uses normalization by evaluation to "prove" f s =
wenzelm@20807
  3029
r and finally gets the theorem t = r, which is again applied to the
wenzelm@25177
  3030
subgoal. An Example is available in src/HOL/ex/ReflectionEx.thy.
wenzelm@25177
  3031
wenzelm@25177
  3032
* Reflection: Automatic reification now handels binding, an example is
wenzelm@25177
  3033
available in src/HOL/ex/ReflectionEx.thy
wenzelm@20807
  3034
wenzelm@25397
  3035
* HOL-Statespace: ``State Spaces: The Locale Way'' introduces a
schirmer@25409
  3036
command 'statespace' that is similar to 'record', but introduces an
wenzelm@25397
  3037
abstract specification based on the locale infrastructure instead of
wenzelm@25397
  3038
HOL types.  This leads to extra flexibility in composing state spaces,
wenzelm@25397
  3039
in particular multiple inheritance and renaming of components.
wenzelm@25397
  3040
wenzelm@25397
  3041
wenzelm@19653
  3042
*** HOL-Complex ***
wenzelm@19653
  3043
huffman@22971
  3044
* Hyperreal: Functions root and sqrt are now defined on negative real
huffman@22971
  3045
inputs so that root n (- x) = - root n x and sqrt (- x) = - sqrt x.
huffman@22971
  3046
Nonnegativity side conditions have been removed from many lemmas, so
huffman@22971
  3047
that more subgoals may now be solved by simplification; potential
huffman@22971
  3048
INCOMPATIBILITY.
huffman@22971
  3049
wenzelm@24800
  3050
* Real: new type classes formalize real normed vector spaces and
huffman@21791
  3051
algebras, using new overloaded constants scaleR :: real => 'a => 'a
huffman@21791
  3052
and norm :: 'a => real.
huffman@21791
  3053
wenzelm@24800
  3054
* Real: constant of_real :: real => 'a::real_algebra_1 injects from
wenzelm@24800
  3055
reals into other types. The overloaded constant Reals :: 'a set is now
wenzelm@24800
  3056
defined as range of_real; potential INCOMPATIBILITY.
wenzelm@24800
  3057
wenzelm@24800
  3058
* Real: proper support for ML code generation, including 'quickcheck'.
nipkow@23013
  3059
Reals are implemented as arbitrary precision rationals.
nipkow@23013
  3060
wenzelm@22126
  3061
* Hyperreal: Several constants that previously worked only for the
wenzelm@22126
  3062
reals have been generalized, so they now work over arbitrary vector
wenzelm@22126
  3063
spaces. Type annotations may need to be added in some cases; potential
wenzelm@22126
  3064
INCOMPATIBILITY.
huffman@21791
  3065
huffman@22972
  3066
  Infinitesimal  :: ('a::real_normed_vector) star set
huffman@22972
  3067
  HFinite        :: ('a::real_normed_vector) star set
huffman@22972
  3068
  HInfinite      :: ('a::real_normed_vector) star set
huffman@21791
  3069
  approx         :: ('a::real_normed_vector) star => 'a star => bool
huffman@21791
  3070
  monad          :: ('a::real_normed_vector) star => 'a star set
huffman@21791
  3071
  galaxy         :: ('a::real_normed_vector) star => 'a star set
huffman@22972
  3072
  (NS)LIMSEQ     :: [nat => 'a::real_normed_vector, 'a] => bool
huffman@21791
  3073
  (NS)convergent :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  3074
  (NS)Bseq       :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  3075
  (NS)Cauchy     :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  3076
  (NS)LIM        :: ['a::real_normed_vector => 'b::real_normed_vector, 'a, 'b] => bool
huffman@21791
  3077
  is(NS)Cont     :: ['a::real_normed_vector => 'b::real_normed_vector, 'a] => bool
huffman@21791
  3078
  deriv          :: ['a::real_normed_field => 'a, 'a, 'a] => bool
huffman@22972
  3079
  sgn            :: 'a::real_normed_vector => 'a
huffman@23116
  3080
  exp            :: 'a::{recpower,real_normed_field,banach} => 'a
huffman@21791
  3081
huffman@21791
  3082
* Complex: Some complex-specific constants are now abbreviations for
wenzelm@22126
  3083
overloaded ones: complex_of_real = of_real, cmod = norm, hcmod =
wenzelm@22126
  3084
hnorm.  Other constants have been entirely removed in favor of the
wenzelm@22126
  3085
polymorphic versions (INCOMPATIBILITY):
huffman@21791
  3086
huffman@21791
  3087
  approx        <-- capprox
huffman@21791
  3088
  HFinite       <-- CFinite
huffman@21791
  3089
  HInfinite     <-- CInfinite
huffman@21791
  3090
  Infinitesimal <-- CInfinitesimal
huffman@21791
  3091
  monad         <-- cmonad
huffman@21791
  3092
  galaxy        <-- cgalaxy
huffman@21791
  3093
  (NS)LIM       <-- (NS)CLIM, (NS)CRLIM
huffman@21791
  3094
  is(NS)Cont    <-- is(NS)Contc, is(NS)contCR
huffman@21791
  3095
  (ns)deriv     <-- (ns)cderiv
huffman@21791
  3096
wenzelm@19653
  3097
wenzelm@24801
  3098
*** HOL-Algebra ***
wenzelm@24801
  3099
wenzelm@24801
  3100
* Formalisation of ideals and the quotient construction over rings.
wenzelm@24801
  3101
wenzelm@24801
  3102
* Order and lattice theory no longer based on records.
wenzelm@24801
  3103
INCOMPATIBILITY.
wenzelm@24801
  3104
wenzelm@24801
  3105
* Renamed lemmas least_carrier -> least_closed and greatest_carrier ->
wenzelm@24801
  3106
greatest_closed.  INCOMPATIBILITY.
wenzelm@24801
  3107
wenzelm@24801
  3108
* Method algebra is now set up via an attribute.  For examples see
wenzelm@24801
  3109
Ring.thy.  INCOMPATIBILITY: the method is now weaker on combinations
wenzelm@24801
  3110
of algebraic structures.
wenzelm@24801
  3111
wenzelm@24801
  3112
* Renamed theory CRing to Ring.
wenzelm@24801
  3113
wenzelm@24801
  3114
wenzelm@24801
  3115
*** HOL-Nominal ***
wenzelm@24801
  3116
wenzelm@25148
  3117
* Substantial, yet incomplete support for nominal datatypes (binding
wenzelm@25177
  3118
structures) based on HOL-Nominal logic.  See src/HOL/Nominal and
wenzelm@25177
  3119
src/HOL/Nominal/Examples.  Prospective users should consult
wenzelm@25148
  3120
http://isabelle.in.tum.de/nominal/
wenzelm@25148
  3121
wenzelm@24801
  3122
wenzelm@17878
  3123
*** ML ***
wenzelm@17878
  3124
wenzelm@24643
  3125
* ML basics: just one true type int, which coincides with IntInf.int
wenzelm@24643
  3126
(even on SML/NJ).
wenzelm@24643
  3127
wenzelm@22138
  3128
* ML within Isar: antiquotations allow to embed statically-checked
wenzelm@22138
  3129
formal entities in the source, referring to the context available at
wenzelm@22138
  3130
compile-time.  For example:
wenzelm@22138
  3131
wenzelm@25142
  3132
ML {* @{sort "{zero,one}"} *}
wenzelm@22138
  3133
ML {* @{typ "'a => 'b"} *}
wenzelm@22138
  3134
ML {* @{term "%x. x"} *}
wenzelm@22138
  3135
ML {* @{prop "x == y"} *}
wenzelm@22138
  3136
ML {* @{ctyp "'a => 'b"} *}
wenzelm@22138
  3137
ML {* @{cterm "%x. x"} *}
wenzelm@22138
  3138
ML {* @{cprop "x == y"} *}
wenzelm@22138
  3139
ML {* @{thm asm_rl} *}
wenzelm@22138
  3140
ML {* @{thms asm_rl} *}
wenzelm@24692
  3141
ML {* @{type_name c} *}
wenzelm@25142
  3142
ML {* @{type_syntax c} *}
wenzelm@22376
  3143
ML {* @{const_name c} *}
wenzelm@22376
  3144
ML {* @{const_syntax c} *}
wenzelm@22138
  3145
ML {* @{context} *}
wenzelm@22138
  3146
ML {* @{theory} *}
wenzelm@22138
  3147
ML {* @{theory Pure} *}
wenzelm@24692
  3148
ML {* @{theory_ref} *}
wenzelm@24692
  3149
ML {* @{theory_ref Pure} *}
wenzelm@22138
  3150
ML {* @{simpset} *}
wenzelm@22138
  3151
ML {* @{claset} *}
wenzelm@22138
  3152
ML {* @{clasimpset} *}
wenzelm@22138
  3153
wenzelm@22151
  3154
The same works for sources being ``used'' within an Isar context.
wenzelm@22151
  3155
wenzelm@22152
  3156
* ML in Isar: improved error reporting; extra verbosity with
wenzelm@24706
  3157
ML_Context.trace enabled.
wenzelm@22152
  3158
wenzelm@19032
  3159
* Pure/General/table.ML: the join operations now works via exceptions
wenzelm@24706
  3160
DUP/SAME instead of type option. This is simpler in simple cases, and
wenzelm@19081
  3161
admits slightly more efficient complex applications.
wenzelm@18446
  3162
wenzelm@24800
  3163
* Pure: 'advanced' translation functions (parse_translation etc.) now
wenzelm@24800
  3164
use Context.generic instead of just theory.
wenzelm@24800
  3165
wenzelm@18642
  3166
* Pure: datatype Context.generic joins theory/Proof.context and
wenzelm@18644
  3167
provides some facilities for code that works in either kind of
wenzelm@18642
  3168
context, notably GenericDataFun for uniform theory and proof data.
wenzelm@18642
  3169
wenzelm@18737
  3170
* Pure: simplified internal attribute type, which is now always
wenzelm@24706
  3171
Context.generic * thm -> Context.generic * thm. Global (theory) vs.
wenzelm@24706
  3172
local (Proof.context) attributes have been discontinued, while
wenzelm@24706
  3173
minimizing code duplication. Thm.rule_attribute and
wenzelm@24706
  3174
Thm.declaration_attribute build canonical attributes; see also structure
wenzelm@24706
  3175
Context for further operations on Context.generic, notably
wenzelm@24706
  3176
GenericDataFun. INCOMPATIBILITY, need to adapt attribute type
wenzelm@19006
  3177
declarations and definitions.
wenzelm@19006
  3178
wenzelm@24800
  3179
* Context data interfaces (Theory/Proof/GenericDataFun): removed
wenzelm@24800
  3180
name/print, uninitialized data defaults to ad-hoc copy of empty value,
wenzelm@24800
  3181
init only required for impure data. INCOMPATIBILITY: empty really need
wenzelm@24800
  3182
to be empty (no dependencies on theory content!)
wenzelm@24800
  3183
wenzelm@19508
  3184
* Pure/kernel: consts certification ignores sort constraints given in
wenzelm@24800
  3185
signature declarations. (This information is not relevant to the
wenzelm@24800
  3186
logic, but only for type inference.) SIGNIFICANT INTERNAL CHANGE,
wenzelm@24800
  3187
potential INCOMPATIBILITY.
wenzelm@19508
  3188
wenzelm@19508
  3189
* Pure: axiomatic type classes are now purely definitional, with
wenzelm@19508
  3190
explicit proofs of class axioms and super class relations performed
wenzelm@24706
  3191
internally. See Pure/axclass.ML for the main internal interfaces --
wenzelm@19508
  3192
notably AxClass.define_class supercedes AxClass.add_axclass, and
wenzelm@24706
  3193
AxClass.axiomatize_class/classrel/arity supersede
wenzelm@19508
  3194
Sign.add_classes/classrel/arities.
wenzelm@19508
  3195
wenzelm@19006
  3196
* Pure/Isar: Args/Attrib parsers operate on Context.generic --
wenzelm@19006
  3197
global/local versions on theory vs. Proof.context have been
wenzelm@19006
  3198
discontinued; Attrib.syntax and Method.syntax have been adapted
wenzelm@19006
  3199
accordingly.  INCOMPATIBILITY, need to adapt parser expressions for
wenzelm@19006
  3200
attributes, methods, etc.
wenzelm@18642
  3201
wenzelm@18446
  3202
* Pure: several functions of signature "... -> theory -> theory * ..."
wenzelm@18446
  3203
have been reoriented to "... -> theory -> ... * theory" in order to
wenzelm@18446
  3204
allow natural usage in combination with the ||>, ||>>, |-> and
wenzelm@18446
  3205
fold_map combinators.
haftmann@18051
  3206
wenzelm@21647
  3207
* Pure: official theorem names (closed derivations) and additional
wenzelm@21647
  3208
comments (tags) are now strictly separate.  Name hints -- which are
wenzelm@21647
  3209
maintained as tags -- may be attached any time without affecting the
wenzelm@21647
  3210
derivation.
wenzelm@21647
  3211
wenzelm@18020
  3212
* Pure: primitive rule lift_rule now takes goal cterm instead of an
wenzelm@18145
  3213
actual goal state (thm).  Use Thm.lift_rule (Thm.cprem_of st i) to
wenzelm@18020
  3214
achieve the old behaviour.
wenzelm@18020
  3215
wenzelm@18020
  3216
* Pure: the "Goal" constant is now called "prop", supporting a
wenzelm@18020
  3217
slightly more general idea of ``protecting'' meta-level rule
wenzelm@18020
  3218
statements.
wenzelm@18020
  3219
wenzelm@20040
  3220
* Pure: Logic.(un)varify only works in a global context, which is now
wenzelm@20040
  3221
enforced instead of silently assumed.  INCOMPATIBILITY, may use
wenzelm@20040
  3222
Logic.legacy_(un)varify as temporary workaround.
wenzelm@20040
  3223
wenzelm@20090
  3224
* Pure: structure Name provides scalable operations for generating
wenzelm@20090
  3225
internal variable names, notably Name.variants etc.  This replaces
wenzelm@20090
  3226
some popular functions from term.ML:
wenzelm@20090
  3227
wenzelm@20090
  3228
  Term.variant		->  Name.variant
wenzelm@24800
  3229
  Term.variantlist	->  Name.variant_list
wenzelm@20090
  3230
  Term.invent_names	->  Name.invent_list
wenzelm@20090
  3231
wenzelm@20090
  3232
Note that low-level renaming rarely occurs in new code -- operations
wenzelm@20090
  3233
from structure Variable are used instead (see below).
wenzelm@20090
  3234
wenzelm@20040
  3235
* Pure: structure Variable provides fundamental operations for proper
wenzelm@20040
  3236
treatment of fixed/schematic variables in a context.  For example,
wenzelm@20040
  3237
Variable.import introduces fixes for schematics of given facts and
wenzelm@20040
  3238
Variable.export reverses the effect (up to renaming) -- this replaces
wenzelm@20040
  3239
various freeze_thaw operations.
wenzelm@20040
  3240
wenzelm@18567
  3241
* Pure: structure Goal provides simple interfaces for
wenzelm@17981
  3242
init/conclude/finish and tactical prove operations (replacing former
wenzelm@20040
  3243
Tactic.prove).  Goal.prove is the canonical way to prove results
wenzelm@20040
  3244
within a given context; Goal.prove_global is a degraded version for
wenzelm@20040
  3245
theory level goals, including a global Drule.standard.  Note that
wenzelm@20040
  3246
OldGoals.prove_goalw_cterm has long been obsolete, since it is
wenzelm@20040
  3247
ill-behaved in a local proof context (e.g. with local fixes/assumes or
wenzelm@20040
  3248
in a locale context).
wenzelm@17981
  3249
wenzelm@24706
  3250
* Pure/Syntax: generic interfaces for parsing (Syntax.parse_term etc.)
wenzelm@24706
  3251
and type checking (Syntax.check_term etc.), with common combinations
wenzelm@24706
  3252
(Syntax.read_term etc.). These supersede former Sign.read_term etc.
wenzelm@24706
  3253
which are considered legacy and await removal.
wenzelm@24706
  3254
wenzelm@24920
  3255
* Pure/Syntax: generic interfaces for type unchecking
wenzelm@24920
  3256
(Syntax.uncheck_terms etc.) and unparsing (Syntax.unparse_term etc.),
wenzelm@24920
  3257
with common combinations (Syntax.pretty_term, Syntax.string_of_term
wenzelm@24920
  3258
etc.).  Former Sign.pretty_term, Sign.string_of_term etc. are still
wenzelm@24924
  3259
available for convenience, but refer to the very same operations using
wenzelm@24924
  3260
a mere theory instead of a full context.
wenzelm@24920
  3261
wenzelm@18815
  3262
* Isar: simplified treatment of user-level errors, using exception
wenzelm@18687
  3263
ERROR of string uniformly.  Function error now merely raises ERROR,
wenzelm@18686
  3264
without any side effect on output channels.  The Isar toplevel takes
wenzelm@18686
  3265
care of proper display of ERROR exceptions.  ML code may use plain
wenzelm@18686
  3266
handle/can/try; cat_error may be used to concatenate errors like this:
wenzelm@18686
  3267
wenzelm@18686
  3268
  ... handle ERROR msg => cat_error msg "..."
wenzelm@18686
  3269
wenzelm@18686
  3270
Toplevel ML code (run directly or through the Isar toplevel) may be
wenzelm@18687
  3271
embedded into the Isar toplevel with exception display/debug like
wenzelm@18687
  3272
this:
wenzelm@18686
  3273
wenzelm@18686
  3274
  Isar.toplevel (fn () => ...)
wenzelm@18686
  3275
wenzelm@18686
  3276
INCOMPATIBILITY, removed special transform_error facilities, removed
wenzelm@18686
  3277
obsolete variants of user-level exceptions (ERROR_MESSAGE,
wenzelm@18686
  3278
Context.PROOF, ProofContext.CONTEXT, Proof.STATE, ProofHistory.FAIL)
wenzelm@18686
  3279
-- use plain ERROR instead.
wenzelm@18686
  3280
wenzelm@18815
  3281
* Isar: theory setup now has type (theory -> theory), instead of a
wenzelm@18722
  3282
list.  INCOMPATIBILITY, may use #> to compose setup functions.
wenzelm@18722
  3283
wenzelm@24706
  3284
* Isar: ML toplevel pretty printer for type Proof.context, subject to
wenzelm@24706
  3285
ProofContext.debug/verbose flags.
wenzelm@18815
  3286
wenzelm@18815
  3287
* Isar: Toplevel.theory_to_proof admits transactions that modify the
wenzelm@18815
  3288
theory before entering a proof state.  Transactions now always see a
wenzelm@18815
  3289
quasi-functional intermediate checkpoint, both in interactive and
wenzelm@18590
  3290
batch mode.
wenzelm@18567
  3291
wenzelm@24867
  3292
* Isar: simplified interfaces for outer syntax.  Renamed
wenzelm@24867
  3293
OuterSyntax.add_keywords to OuterSyntax.keywords.  Removed
wenzelm@24867
  3294
OuterSyntax.add_parsers -- this functionality is now included in
wenzelm@24867
  3295
OuterSyntax.command etc.  INCOMPATIBILITY.
wenzelm@24867
  3296
wenzelm@17878
  3297
* Simplifier: the simpset of a running simplification process now
wenzelm@17878
  3298
contains a proof context (cf. Simplifier.the_context), which is the
wenzelm@17878
  3299
very context that the initial simpset has been retrieved from (by
wenzelm@17890
  3300
simpset_of/local_simpset_of).  Consequently, all plug-in components
wenzelm@17878
  3301
(solver, looper etc.) may depend on arbitrary proof data.
wenzelm@17878
  3302
wenzelm@17878
  3303
* Simplifier.inherit_context inherits the proof context (plus the
wenzelm@17878
  3304
local bounds) of the current simplification process; any simproc
wenzelm@17878
  3305
etc. that calls the Simplifier recursively should do this!  Removed
wenzelm@17878
  3306
former Simplifier.inherit_bounds, which is already included here --
wenzelm@17890
  3307
INCOMPATIBILITY.  Tools based on low-level rewriting may even have to
wenzelm@17890
  3308
specify an explicit context using Simplifier.context/theory_context.
wenzelm@17878
  3309
wenzelm@17878
  3310
* Simplifier/Classical Reasoner: more abstract interfaces
wenzelm@17878
  3311
change_simpset/claset for modifying the simpset/claset reference of a
wenzelm@17878
  3312
theory; raw versions simpset/claset_ref etc. have been discontinued --
wenzelm@17878
  3313
INCOMPATIBILITY.
wenzelm@17878
  3314
wenzelm@18540
  3315
* Provers: more generic wrt. syntax of object-logics, avoid hardwired
wenzelm@18540
  3316
"Trueprop" etc.
wenzelm@18540
  3317
wenzelm@17878
  3318
wenzelm@20988
  3319
*** System ***
wenzelm@20988
  3320
wenzelm@25433
  3321
* settings: the default heap location within ISABELLE_HOME_USER now
wenzelm@25433
  3322
includes ISABELLE_IDENTIFIER.  This simplifies use of multiple
wenzelm@25433
  3323
Isabelle installations.
wenzelm@21471
  3324
wenzelm@20988
  3325
* isabelle-process: option -S (secure mode) disables some critical
wenzelm@20988
  3326
operations, notably runtime compilation and evaluation of ML source
wenzelm@20988
  3327
code.
wenzelm@20988
  3328
wenzelm@24891
  3329
* Basic Isabelle mode for jEdit, see Isabelle/lib/jedit/.
wenzelm@24891
  3330
wenzelm@24801
  3331
* Support for parallel execution, using native multicore support of
wenzelm@24800
  3332
Poly/ML 5.1.  The theory loader exploits parallelism when processing
wenzelm@24800
  3333
independent theories, according to the given theory header
wenzelm@24800
  3334
specifications. The maximum number of worker threads is specified via
wenzelm@24800
  3335
usedir option -M or the "max-threads" setting in Proof General. A
wenzelm@24800
  3336
speedup factor of 1.5--3.5 can be expected on a 4-core machine, and up
wenzelm@24800
  3337
to 6 on a 8-core machine.  User-code needs to observe certain
wenzelm@24800
  3338
guidelines for thread-safe programming, see appendix A in the Isar
wenzelm@24800
  3339
Implementation manual.
wenzelm@24210
  3340
wenzelm@17754
  3341
wenzelm@25448
  3342
wenzelm@17720
  3343
New in Isabelle2005 (October 2005)
wenzelm@17720
  3344
----------------------------------
wenzelm@14655
  3345
wenzelm@14655
  3346
*** General ***
wenzelm@14655
  3347
nipkow@15130
  3348
* Theory headers: the new header syntax for Isar theories is
nipkow@15130
  3349
nipkow@15130
  3350
  theory <name>
wenzelm@16234
  3351
  imports <theory1> ... <theoryN>
wenzelm@16234
  3352
  uses <file1> ... <fileM>
nipkow@15130
  3353
  begin
nipkow@15130
  3354
wenzelm@16234
  3355
where the 'uses' part is optional.  The previous syntax
wenzelm@16234
  3356
wenzelm@16234
  3357
  theory <name> = <theory1> + ... + <theoryN>:
wenzelm@16234
  3358
wenzelm@16717
  3359
will disappear in the next release.  Use isatool fixheaders to convert
wenzelm@16717
  3360
existing theory files.  Note that there is no change in ancient
wenzelm@17371
  3361
non-Isar theories now, but these will disappear soon.
nipkow@15130
  3362
berghofe@15475
  3363
* Theory loader: parent theories can now also be referred to via
wenzelm@16234
  3364
relative and absolute paths.
wenzelm@16234
  3365
wenzelm@17408
  3366
* Command 'find_theorems' searches for a list of criteria instead of a
wenzelm@17408
  3367
list of constants. Known criteria are: intro, elim, dest, name:string,
wenzelm@17408
  3368
simp:term, and any term. Criteria can be preceded by '-' to select
wenzelm@17408
  3369
theorems that do not match. Intro, elim, dest select theorems that
wenzelm@17408
  3370
match the current goal, name:s selects theorems whose fully qualified
wenzelm@17408
  3371
name contain s, and simp:term selects all simplification rules whose
wenzelm@17408
  3372
lhs match term.  Any other term is interpreted as pattern and selects
wenzelm@17408
  3373
all theorems matching the pattern. Available in ProofGeneral under
wenzelm@17408
  3374
'ProofGeneral -> Find Theorems' or C-c C-f.  Example:
wenzelm@16234
  3375
wenzelm@17275
  3376
  C-c C-f (100) "(_::nat) + _ + _" intro -name: "HOL."
wenzelm@16234
  3377
wenzelm@16234
  3378
prints the last 100 theorems matching the pattern "(_::nat) + _ + _",
wenzelm@16234
  3379
matching the current goal as introduction rule and not having "HOL."
wenzelm@16234
  3380
in their name (i.e. not being defined in theory HOL).
wenzelm@16234
  3381
wenzelm@17408
  3382
* Command 'thms_containing' has been discontinued in favour of
wenzelm@17408
  3383
'find_theorems'; INCOMPATIBILITY.
wenzelm@17408
  3384
wenzelm@17385
  3385
* Communication with Proof General is now 8bit clean, which means that
wenzelm@17385
  3386
Unicode text in UTF-8 encoding may be used within theory texts (both
wenzelm@17408
  3387
formal and informal parts).  Cf. option -U of the Isabelle Proof
wenzelm@17538
  3388
General interface.  Here are some simple examples (cf. src/HOL/ex):
wenzelm@17538
  3389
wenzelm@17538
  3390
  http://isabelle.in.tum.de/library/HOL/ex/Hebrew.html
wenzelm@17538
  3391
  http://isabelle.in.tum.de/library/HOL/ex/Chinese.html
wenzelm@17385
  3392
wenzelm@17425
  3393
* Improved efficiency of the Simplifier and, to a lesser degree, the
wenzelm@17425
  3394
Classical Reasoner.  Typical big applications run around 2 times
wenzelm@17425
  3395
faster.
wenzelm@17425
  3396
wenzelm@16234
  3397
wenzelm@16234
  3398
*** Document preparation ***
wenzelm@16234
  3399
wenzelm@16234
  3400
* Commands 'display_drafts' and 'print_drafts' perform simple output
wenzelm@16234
  3401
of raw sources.  Only those symbols that do not require additional
wenzelm@16234
  3402
LaTeX packages (depending on comments in isabellesym.sty) are
wenzelm@16234
  3403
displayed properly, everything else is left verbatim.  isatool display
wenzelm@16234
  3404
and isatool print are used as front ends (these are subject to the
wenzelm@16234
  3405
DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively).
wenzelm@16234
  3406
wenzelm@17047
  3407
* Command tags control specific markup of certain regions of text,
wenzelm@17047
  3408
notably folding and hiding.  Predefined tags include "theory" (for
wenzelm@17047
  3409
theory begin and end), "proof" for proof commands, and "ML" for
wenzelm@17047
  3410
commands involving ML code; the additional tags "visible" and
wenzelm@17047
  3411
"invisible" are unused by default.  Users may give explicit tag
wenzelm@17047
  3412
specifications in the text, e.g. ''by %invisible (auto)''.  The
wenzelm@17047
  3413
interpretation of tags is determined by the LaTeX job during document
wenzelm@17047
  3414
preparation: see option -V of isatool usedir, or options -n and -t of
wenzelm@17047
  3415
isatool document, or even the LaTeX macros \isakeeptag, \isafoldtag,
wenzelm@17047
  3416
\isadroptag.
wenzelm@17047
  3417
wenzelm@17047
  3418
Several document versions may be produced at the same time via isatool
wenzelm@17047
  3419
usedir (the generated index.html will link all of them).  Typical
wenzelm@17047
  3420
specifications include ''-V document=theory,proof,ML'' to present
wenzelm@17047
  3421
theory/proof/ML parts faithfully, ''-V outline=/proof,/ML'' to fold
wenzelm@17047
  3422
proof and ML commands, and ''-V mutilated=-theory,-proof,-ML'' to omit
wenzelm@17047
  3423
these parts without any formal replacement text.  The Isabelle site
wenzelm@17047
  3424
default settings produce ''document'' and ''outline'' versions as
wenzelm@17047
  3425
specified above.
wenzelm@16234
  3426
haftmann@17402
  3427
* Several new antiquotations:
wenzelm@16234
  3428
wenzelm@16234
  3429
  @{term_type term} prints a term with its type annotated;
wenzelm@16234
  3430
wenzelm@16234
  3431
  @{typeof term} prints the type of a term;
wenzelm@16234
  3432
wenzelm@16234
  3433
  @{const const} is the same as @{term const}, but checks that the
wenzelm@16234
  3434
  argument is a known logical constant;
wenzelm@16234
  3435
wenzelm@16234
  3436
  @{term_style style term} and @{thm_style style thm} print a term or
wenzelm@16234
  3437
  theorem applying a "style" to it
wenzelm@16234
  3438
wenzelm@17117
  3439
  @{ML text}
wenzelm@17117
  3440
wenzelm@16234
  3441
Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of
wenzelm@16234
  3442
definitions, equations, inequations etc., 'concl' printing only the
schirmer@17393
  3443
conclusion of a meta-logical statement theorem, and 'prem1' .. 'prem19'
wenzelm@16234
  3444
to print the specified premise.  TermStyle.add_style provides an ML
wenzelm@16234
  3445
interface for introducing further styles.  See also the "LaTeX Sugar"
wenzelm@17117
  3446
document practical applications.  The ML antiquotation prints
wenzelm@17117
  3447
type-checked ML expressions verbatim.
wenzelm@16234
  3448
wenzelm@17259
  3449
* Markup commands 'chapter', 'section', 'subsection', 'subsubsection',
wenzelm@17259
  3450
and 'text' support optional locale specification '(in loc)', which
wenzelm@17269
  3451
specifies the default context for interpreting antiquotations.  For
wenzelm@17269
  3452
example: 'text (in lattice) {* @{thm inf_assoc}*}'.
wenzelm@17259
  3453
wenzelm@17259
  3454
* Option 'locale=NAME' of antiquotations specifies an alternative
wenzelm@17259
  3455
context interpreting the subsequent argument.  For example: @{thm
wenzelm@17269
  3456
[locale=lattice] inf_assoc}.
wenzelm@17259
  3457
wenzelm@17097
  3458
* Proper output of proof terms (@{prf ...} and @{full_prf ...}) within
wenzelm@17097
  3459
a proof context.
wenzelm@17097
  3460
wenzelm@17097
  3461
* Proper output of antiquotations for theory commands involving a
wenzelm@17097
  3462
proof context (such as 'locale' or 'theorem (in loc) ...').
wenzelm@17097
  3463
wenzelm@17193
  3464
* Delimiters of outer tokens (string etc.) now produce separate LaTeX
wenzelm@17193
  3465
macros (\isachardoublequoteopen, isachardoublequoteclose etc.).
wenzelm@17193
  3466
wenzelm@17193
  3467
* isatool usedir: new option -C (default true) controls whether option
wenzelm@17193
  3468
-D should include a copy of the original document directory; -C false
wenzelm@17193
  3469
prevents unwanted effects such as copying of administrative CVS data.
wenzelm@17193
  3470
wenzelm@16234
  3471
wenzelm@16234
  3472
*** Pure ***
wenzelm@16234
  3473
wenzelm@16234
  3474
* Considerably improved version of 'constdefs' command.  Now performs
wenzelm@16234
  3475
automatic type-inference of declared constants; additional support for
wenzelm@16234
  3476
local structure declarations (cf. locales and HOL records), see also
wenzelm@16234
  3477
isar-ref manual.  Potential INCOMPATIBILITY: need to observe strictly
wenzelm@16234
  3478
sequential dependencies of definitions within a single 'constdefs'
wenzelm@16234
  3479
section; moreover, the declared name needs to be an identifier.  If
wenzelm@16234
  3480
all fails, consider to fall back on 'consts' and 'defs' separately.
wenzelm@16234
  3481
wenzelm@16234
  3482
* Improved indexed syntax and implicit structures.  First of all,
wenzelm@16234
  3483
indexed syntax provides a notational device for subscripted
wenzelm@16234
  3484
application, using the new syntax \<^bsub>term\<^esub> for arbitrary
wenzelm@16234
  3485
expressions.  Secondly, in a local context with structure
wenzelm@16234
  3486
declarations, number indexes \<^sub>n or the empty index (default
wenzelm@16234
  3487
number 1) refer to a certain fixed variable implicitly; option
wenzelm@16234
  3488
show_structs controls printing of implicit structures.  Typical
wenzelm@16234
  3489
applications of these concepts involve record types and locales.
wenzelm@16234
  3490
wenzelm@16234
  3491
* New command 'no_syntax' removes grammar declarations (and
wenzelm@16234
  3492
translations) resulting from the given syntax specification, which is
wenzelm@16234
  3493
interpreted in the same manner as for the 'syntax' command.
wenzelm@16234
  3494
wenzelm@16234
  3495
* 'Advanced' translation functions (parse_translation etc.) may depend
wenzelm@16234
  3496
on the signature of the theory context being presently used for
wenzelm@16234
  3497
parsing/printing, see also isar-ref manual.
wenzelm@16234
  3498
wenzelm@16856
  3499
* Improved 'oracle' command provides a type-safe interface to turn an
wenzelm@16856
  3500
ML expression of type theory -> T -> term into a primitive rule of
wenzelm@16856
  3501
type theory -> T -> thm (i.e. the functionality of Thm.invoke_oracle
wenzelm@16856
  3502
is already included here); see also FOL/ex/IffExample.thy;
wenzelm@16856
  3503
INCOMPATIBILITY.
wenzelm@16856
  3504
wenzelm@17275
  3505
* axclass: name space prefix for class "c" is now "c_class" (was "c"
wenzelm@17275
  3506
before); "cI" is no longer bound, use "c.intro" instead.
wenzelm@17275
  3507
INCOMPATIBILITY.  This change avoids clashes of fact bindings for
wenzelm@17275
  3508
axclasses vs. locales.
wenzelm@17275
  3509
wenzelm@16234
  3510
* Improved internal renaming of symbolic identifiers -- attach primes
wenzelm@16234
  3511
instead of base 26 numbers.
wenzelm@16234
  3512
wenzelm@16234
  3513
* New flag show_question_marks controls printing of leading question
wenzelm@16234
  3514
marks in schematic variable names.
wenzelm@16234
  3515
wenzelm@16234
  3516
* In schematic variable names, *any* symbol following \<^isub> or
wenzelm@16234
  3517
\<^isup> is now treated as part of the base name.  For example, the
wenzelm@16234
  3518
following works without printing of awkward ".0" indexes:
wenzelm@16234
  3519
wenzelm@16234
  3520
  lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1"
wenzelm@16234
  3521
    by simp
wenzelm@16234
  3522
wenzelm@16234
  3523
* Inner syntax includes (*(*nested*) comments*).
wenzelm@16234
  3524
wenzelm@17548
  3525
* Pretty printer now supports unbreakable blocks, specified in mixfix
wenzelm@16234
  3526
annotations as "(00...)".
wenzelm@16234
  3527
wenzelm@16234
  3528
* Clear separation of logical types and nonterminals, where the latter
wenzelm@16234
  3529
may only occur in 'syntax' specifications or type abbreviations.
wenzelm@16234
  3530
Before that distinction was only partially implemented via type class
wenzelm@16234
  3531
"logic" vs. "{}".  Potential INCOMPATIBILITY in rare cases of improper
wenzelm@16234
  3532
use of 'types'/'consts' instead of 'nonterminals'/'syntax'.  Some very
wenzelm@16234
  3533
exotic syntax specifications may require further adaption
wenzelm@17691
  3534
(e.g. Cube/Cube.thy).
wenzelm@16234
  3535
wenzelm@16234
  3536
* Removed obsolete type class "logic", use the top sort {} instead.
wenzelm@16234
  3537
Note that non-logical types should be declared as 'nonterminals'
wenzelm@16234
  3538
rather than 'types'.  INCOMPATIBILITY for new object-logic
wenzelm@16234
  3539
specifications.
wenzelm@16234
  3540
ballarin@17095
  3541
* Attributes 'induct' and 'cases': type or set names may now be
ballarin@17095
  3542
locally fixed variables as well.
ballarin@17095
  3543
wenzelm@16234
  3544
* Simplifier: can now control the depth to which conditional rewriting
wenzelm@16234
  3545
is traced via the PG menu Isabelle -> Settings -> Trace Simp Depth
wenzelm@16234
  3546
Limit.
wenzelm@16234
  3547
wenzelm@16234
  3548
* Simplifier: simplification procedures may now take the current
wenzelm@16234
  3549
simpset into account (cf. Simplifier.simproc(_i) / mk_simproc
wenzelm@16234
  3550
interface), which is very useful for calling the Simplifier
wenzelm@16234
  3551
recursively.  Minor INCOMPATIBILITY: the 'prems' argument of simprocs
wenzelm@16234
  3552
is gone -- use prems_of_ss on the simpset instead.  Moreover, the
wenzelm@16234
  3553
low-level mk_simproc no longer applies Logic.varify internally, to
wenzelm@16234
  3554
allow for use in a context of fixed variables.
wenzelm@16234
  3555
wenzelm@16234
  3556
* thin_tac now works even if the assumption being deleted contains !!
wenzelm@16234
  3557
or ==>.  More generally, erule now works even if the major premise of
wenzelm@16234
  3558
the elimination rule contains !! or ==>.
wenzelm@16234
  3559
wenzelm@17597
  3560
* Method 'rules' has been renamed to 'iprover'. INCOMPATIBILITY.
nipkow@17590
  3561
wenzelm@16234
  3562
* Reorganized bootstrapping of the Pure theories; CPure is now derived
wenzelm@16234
  3563
from Pure, which contains all common declarations already.  Both
wenzelm@16234
  3564
theories are defined via plain Isabelle/Isar .thy files.
wenzelm@16234
  3565
INCOMPATIBILITY: elements of CPure (such as the CPure.intro /
wenzelm@16234
  3566
CPure.elim / CPure.dest attributes) now appear in the Pure name space;
wenzelm@16234
  3567
use isatool fixcpure to adapt your theory and ML sources.
wenzelm@16234
  3568
wenzelm@16234
  3569
* New syntax 'name(i-j, i-, i, ...)' for referring to specific
wenzelm@16234
  3570
selections of theorems in named facts via index ranges.
wenzelm@16234
  3571
wenzelm@17097
  3572
* 'print_theorems': in theory mode, really print the difference
wenzelm@17097
  3573
wrt. the last state (works for interactive theory development only),
wenzelm@17097
  3574
in proof mode print all local facts (cf. 'print_facts');
wenzelm@17097
  3575
wenzelm@17397
  3576
* 'hide': option '(open)' hides only base names.
wenzelm@17397
  3577
wenzelm@17275
  3578
* More efficient treatment of intermediate checkpoints in interactive
wenzelm@17275
  3579
theory development.
wenzelm@17275
  3580
berghofe@17663
  3581
* Code generator is now invoked via code_module (incremental code
wenzelm@17664
  3582
generation) and code_library (modular code generation, ML structures
wenzelm@17664
  3583
for each theory).  INCOMPATIBILITY: new keywords 'file' and 'contains'
wenzelm@17664
  3584
must be quoted when used as identifiers.
wenzelm@17664
  3585
wenzelm@17664
  3586
* New 'value' command for reading, evaluating and printing terms using
wenzelm@17664
  3587
the code generator.  INCOMPATIBILITY: command keyword 'value' must be
wenzelm@17664
  3588
quoted when used as identifier.
berghofe@17663
  3589
wenzelm@16234
  3590
wenzelm@16234
  3591
*** Locales ***
ballarin@17095
  3592
wenzelm@17385
  3593
* New commands for the interpretation of locale expressions in
wenzelm@17385
  3594
theories (1), locales (2) and proof contexts (3).  These generate
wenzelm@17385
  3595
proof obligations from the expression specification.  After the
wenzelm@17385
  3596
obligations have been discharged, theorems of the expression are added
wenzelm@17385
  3597
to the theory, target locale or proof context.  The synopsis of the
wenzelm@17385
  3598
commands is a follows:
wenzelm@17385
  3599
ballarin@17095
  3600
  (1) interpretation expr inst
ballarin@17095
  3601
  (2) interpretation target < expr
ballarin@17095
  3602
  (3) interpret expr inst
wenzelm@17385
  3603
ballarin@17095
  3604
Interpretation in theories and proof contexts require a parameter
ballarin@17095
  3605
instantiation of terms from the current context.  This is applied to
wenzelm@17385
  3606
specifications and theorems of the interpreted expression.
wenzelm@17385
  3607
Interpretation in locales only permits parameter renaming through the
wenzelm@17385
  3608
locale expression.  Interpretation is smart in that interpretations
wenzelm@17385
  3609
that are active already do not occur in proof obligations, neither are
wenzelm@17385
  3610
instantiated theorems stored in duplicate.  Use 'print_interps' to
wenzelm@17385
  3611
inspect active interpretations of a particular locale.  For details,
ballarin@17436
  3612
see the Isar Reference manual.  Examples can be found in
ballarin@17436
  3613
HOL/Finite_Set.thy and HOL/Algebra/UnivPoly.thy.
wenzelm@16234
  3614
wenzelm@16234
  3615
INCOMPATIBILITY: former 'instantiate' has been withdrawn, use
wenzelm@16234
  3616
'interpret' instead.
wenzelm@16234
  3617
wenzelm@17385
  3618
* New context element 'constrains' for adding type constraints to
wenzelm@17385
  3619
parameters.
wenzelm@17385
  3620
wenzelm@17385
  3621
* Context expressions: renaming of parameters with syntax
wenzelm@17385
  3622
redeclaration.
ballarin@17095
  3623
ballarin@17095
  3624
* Locale declaration: 'includes' disallowed.
ballarin@17095
  3625
wenzelm@16234
  3626
* Proper static binding of attribute syntax -- i.e. types / terms /
wenzelm@16234
  3627
facts mentioned as arguments are always those of the locale definition
wenzelm@16234
  3628
context, independently of the context of later invocations.  Moreover,
wenzelm@16234
  3629
locale operations (renaming and type / term instantiation) are applied
wenzelm@16234
  3630
to attribute arguments as expected.
wenzelm@16234
  3631
wenzelm@16234
  3632
INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of
wenzelm@16234
  3633
actual attributes; rare situations may require Attrib.attribute to
wenzelm@16234
  3634
embed those attributes into Attrib.src that lack concrete syntax.
wenzelm@16234
  3635
Attribute implementations need to cooperate properly with the static
wenzelm@16234
  3636
binding mechanism.  Basic parsers Args.XXX_typ/term/prop and
wenzelm@16234
  3637
Attrib.XXX_thm etc. already do the right thing without further
wenzelm@16234
  3638
intervention.  Only unusual applications -- such as "where" or "of"
wenzelm@16234
  3639
(cf. src/Pure/Isar/attrib.ML), which process arguments depending both
wenzelm@16234
  3640
on the context and the facts involved -- may have to assign parsed
wenzelm@16234
  3641
values to argument tokens explicitly.
wenzelm@16234
  3642
wenzelm@16234
  3643
* Changed parameter management in theorem generation for long goal
wenzelm@16234
  3644
statements with 'includes'.  INCOMPATIBILITY: produces a different
wenzelm@16234
  3645
theorem statement in rare situations.
wenzelm@16234
  3646
ballarin@17228
  3647
* Locale inspection command 'print_locale' omits notes elements.  Use
ballarin@17228
  3648
'print_locale!' to have them included in the output.
ballarin@17228
  3649
wenzelm@16234
  3650
wenzelm@16234
  3651
*** Provers ***
wenzelm@16234
  3652
wenzelm@16234
  3653
* Provers/hypsubst.ML: improved version of the subst method, for
wenzelm@16234
  3654
single-step rewriting: it now works in bound variable contexts. New is
wenzelm@16234
  3655
'subst (asm)', for rewriting an assumption.  INCOMPATIBILITY: may
wenzelm@16234
  3656
rewrite a different subterm than the original subst method, which is
wenzelm@16234
  3657
still available as 'simplesubst'.
berghofe@15475
  3658
wenzelm@16013
  3659
* Provers/quasi.ML: new transitivity reasoners for transitivity only
wenzelm@16234
  3660
and quasi orders.
ballarin@15103
  3661
wenzelm@16013
  3662
* Provers/trancl.ML: new transitivity reasoner for transitive and
wenzelm@16234
  3663
reflexive-transitive closure of relations.
ballarin@15076
  3664
wenzelm@16013
  3665
* Provers/blast.ML: new reference depth_limit to make blast's depth
wenzelm@16234
  3666
limit (previously hard-coded with a value of 20) user-definable.
wenzelm@15801
  3667
wenzelm@16013
  3668
* Provers/simplifier.ML has been moved to Pure, where Simplifier.setup
wenzelm@16234
  3669
is peformed already.  Object-logics merely need to finish their
wenzelm@16234
  3670
initial simpset configuration as before.  INCOMPATIBILITY.
berghofe@15436
  3671
wenzelm@15703
  3672
wenzelm@15703
  3673
*** HOL ***
wenzelm@15703
  3674
wenzelm@16234
  3675
* Symbolic syntax of Hilbert Choice Operator is now as follows:
wenzelm@15703
  3676
wenzelm@15703
  3677
  syntax (epsilon)
wenzelm@15703
  3678
    "_Eps" :: "[pttrn, bool] => 'a"    ("(3\<some>_./ _)" [0, 10] 10)
wenzelm@15703
  3679
wenzelm@16234
  3680
The symbol \<some> is displayed as the alternative epsilon of LaTeX
wenzelm@16234
  3681
and x-symbol; use option '-m epsilon' to get it actually printed.
wenzelm@16234
  3682
Moreover, the mathematically important symbolic identifier \<epsilon>
wenzelm@16234
  3683
becomes available as variable, constant etc.  INCOMPATIBILITY,
wenzelm@16234
  3684
wenzelm@16234
  3685
* "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x".
wenzelm@16234
  3686
Similarly for all quantifiers: "ALL x > y" etc.  The x-symbol for >=
wenzelm@17371
  3687
is \<ge>. New transitivity rules have been added to HOL/Orderings.thy to
avigad@17016
  3688
support corresponding Isar calculations.
wenzelm@16234
  3689
wenzelm@16234
  3690
* "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>"
wenzelm@16234
  3691
instead of ":".
wenzelm@16234
  3692
wenzelm@16234
  3693
* theory SetInterval: changed the syntax for open intervals:
wenzelm@16234
  3694
wenzelm@16234
  3695
  Old       New
wenzelm@16234
  3696
  {..n(}    {..<n}
wenzelm@16234
  3697
  {)n..}    {n<..}
wenzelm@16234
  3698
  {m..n(}   {m..<n}
wenzelm@16234
  3699
  {)m..n}   {m<..n}
wenzelm@16234
  3700
  {)m..n(}  {m<..<n}
wenzelm@16234
  3701
wenzelm@16234
  3702
The old syntax is still supported but will disappear in the next
wenzelm@16234
  3703
release.  For conversion use the following Emacs search and replace
wenzelm@16234
  3704
patterns (these are not perfect but work quite well):
wenzelm@15703
  3705
wenzelm@15703
  3706
  {)\([^\.]*\)\.\.  ->  {\1<\.\.}
wenzelm@15703
  3707
  \.\.\([^(}]*\)(}  ->  \.\.<\1}
wenzelm@15703
  3708
wenzelm@17533
  3709
* Theory Commutative_Ring (in Library): method comm_ring for proving
wenzelm@17533
  3710
equalities in commutative rings; method 'algebra' provides a generic
wenzelm@17533
  3711
interface.
wenzelm@17389
  3712
wenzelm@17389
  3713
* Theory Finite_Set: changed the syntax for 'setsum', summation over
wenzelm@16234
  3714
finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is
wenzelm@17371
  3715
now either "SUM x:A. e" or "\<Sum>x \<in> A. e". The bound variable can
paulson@17189
  3716
be a tuple pattern.
wenzelm@16234
  3717
wenzelm@16234
  3718
Some new syntax forms are available:
wenzelm@16234
  3719
wenzelm@16234
  3720
  "\<Sum>x | P. e"      for     "setsum (%x. e) {x. P}"
wenzelm@16234
  3721
  "\<Sum>x = a..b. e"   for     "setsum (%x. e) {a..b}"
wenzelm@16234
  3722
  "\<Sum>x = a..<b. e"  for     "setsum (%x. e) {a..<b}"
wenzelm@16234
  3723
  "\<Sum>x < k. e"      for     "setsum (%x. e) {..<k}"
wenzelm@16234
  3724
wenzelm@16234
  3725
The latter form "\<Sum>x < k. e" used to be based on a separate
wenzelm@16234
  3726
function "Summation", which has been discontinued.
wenzelm@16234
  3727
wenzelm@16234
  3728
* theory Finite_Set: in structured induction proofs, the insert case
wenzelm@16234
  3729
is now 'case (insert x F)' instead of the old counterintuitive 'case
wenzelm@16234
  3730
(insert F x)'.
wenzelm@16234
  3731
wenzelm@16234
  3732
* The 'refute' command has been extended to support a much larger
wenzelm@16234
  3733
fragment of HOL, including axiomatic type classes, constdefs and
wenzelm@16234
  3734
typedefs, inductive datatypes and recursion.
wenzelm@16234
  3735
webertj@17700
  3736
* New tactics 'sat' and 'satx' to prove propositional tautologies.
webertj@17700
  3737
Requires zChaff with proof generation to be installed.  See
webertj@17700
  3738
HOL/ex/SAT_Examples.thy for examples.
webertj@17619
  3739
wenzelm@16234
  3740
* Datatype induction via method 'induct' now preserves the name of the
wenzelm@16234
  3741
induction variable. For example, when proving P(xs::'a list) by
wenzelm@16234
  3742
induction on xs, the induction step is now P(xs) ==> P(a#xs) rather
wenzelm@16234
  3743
than P(list) ==> P(a#list) as previously.  Potential INCOMPATIBILITY
wenzelm@16234
  3744
in unstructured proof scripts.
wenzelm@16234
  3745
wenzelm@16234
  3746
* Reworked implementation of records.  Improved scalability for
wenzelm@16234
  3747
records with many fields, avoiding performance problems for type
wenzelm@16234
  3748
inference. Records are no longer composed of nested field types, but
wenzelm@16234
  3749
of nested extension types. Therefore the record type only grows linear
wenzelm@16234
  3750
in the number of extensions and not in the number of fields.  The
wenzelm@16234
  3751
top-level (users) view on records is preserved.  Potential
wenzelm@16234
  3752
INCOMPATIBILITY only in strange cases, where the theory depends on the
wenzelm@16234
  3753
old record representation. The type generated for a record is called
wenzelm@16234
  3754
<record_name>_ext_type.
wenzelm@16234
  3755
wenzelm@16234
  3756
Flag record_quick_and_dirty_sensitive can be enabled to skip the
wenzelm@16234
  3757
proofs triggered by a record definition or a simproc (if
wenzelm@16234
  3758
quick_and_dirty is enabled).  Definitions of large records can take
wenzelm@16234
  3759
quite long.
wenzelm@16234
  3760
wenzelm@16234
  3761
New simproc record_upd_simproc for simplification of multiple record
wenzelm@16234
  3762
updates enabled by default.  Moreover, trivial updates are also
wenzelm@16234
  3763
removed: r(|x := x r|) = r.  INCOMPATIBILITY: old proofs break
wenzelm@16234
  3764
occasionally, since simplification is more powerful by default.
wenzelm@16234
  3765
wenzelm@17275
  3766
* typedef: proper support for polymorphic sets, which contain extra
wenzelm@17275
  3767
type-variables in the term.
wenzelm@17275
  3768
wenzelm@16234
  3769
* Simplifier: automatically reasons about transitivity chains
wenzelm@16234
  3770
involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics
wenzelm@16234
  3771
provided by Provers/trancl.ML as additional solvers.  INCOMPATIBILITY:
wenzelm@16234
  3772
old proofs break occasionally as simplification may now solve more
wenzelm@16234
  3773
goals than previously.
wenzelm@16234
  3774
wenzelm@16234
  3775
* Simplifier: converts x <= y into x = y if assumption y <= x is
wenzelm@16234
  3776
present.  Works for all partial orders (class "order"), in particular
wenzelm@16234
  3777
numbers and sets.  For linear orders (e.g. numbers) it treats ~ x < y
wenzelm@16234
  3778
just like y <= x.
wenzelm@16234
  3779
wenzelm@16234
  3780
* Simplifier: new simproc for "let x = a in f x".  If a is a free or
wenzelm@16234
  3781
bound variable or a constant then the let is unfolded.  Otherwise
wenzelm@16234
  3782
first a is simplified to b, and then f b is simplified to g. If
wenzelm@16234
  3783
possible we abstract b from g arriving at "let x = b in h x",
wenzelm@16234
  3784
otherwise we unfold the let and arrive at g.  The simproc can be
wenzelm@16234
  3785
enabled/disabled by the reference use_let_simproc.  Potential
wenzelm@16234
  3786
INCOMPATIBILITY since simplification is more powerful by default.
webertj@15776
  3787
paulson@16563
  3788
* Classical reasoning: the meson method now accepts theorems as arguments.
paulson@16563
  3789
paulson@17595
  3790
* Prover support: pre-release of the Isabelle-ATP linkup, which runs background
paulson@17595
  3791
jobs to provide advice on the provability of subgoals.
paulson@17595
  3792
wenzelm@16891
  3793
* Theory OrderedGroup and Ring_and_Field: various additions and
wenzelm@16891
  3794
improvements to faciliate calculations involving equalities and
wenzelm@16891
  3795
inequalities.
wenzelm@16891
  3796
wenzelm@16891
  3797
The following theorems have been eliminated or modified
wenzelm@16891
  3798
(INCOMPATIBILITY):
avigad@16888
  3799
avigad@16888
  3800
  abs_eq             now named abs_of_nonneg
wenzelm@17371
  3801
  abs_of_ge_0        now named abs_of_nonneg
wenzelm@17371
  3802
  abs_minus_eq       now named abs_of_nonpos
avigad@16888
  3803
  imp_abs_id         now named abs_of_nonneg
avigad@16888
  3804
  imp_abs_neg_id     now named abs_of_nonpos
avigad@16888
  3805
  mult_pos           now named mult_pos_pos
avigad@16888
  3806
  mult_pos_le        now named mult_nonneg_nonneg
avigad@16888
  3807
  mult_pos_neg_le    now named mult_nonneg_nonpos
avigad@16888
  3808
  mult_pos_neg2_le   now named mult_nonneg_nonpos2
avigad@16888
  3809
  mult_neg           now named mult_neg_neg
avigad@16888
  3810
  mult_neg_le        now named mult_nonpos_nonpos
avigad@16888
  3811
obua@23495
  3812
* The following lemmas in Ring_and_Field have been added to the simplifier:
obua@23495
  3813
     
obua@23495
  3814
     zero_le_square
obua@23495
  3815
     not_square_less_zero 
obua@23495
  3816
obua@23495
  3817
  The following lemmas have been deleted from Real/RealPow:
obua@23495
  3818
  
obua@23495
  3819
     realpow_zero_zero
obua@23495
  3820
     realpow_two
obua@23495
  3821
     realpow_less
obua@23495
  3822
     zero_le_power
obua@23495
  3823
     realpow_two_le
obua@23495
  3824
     abs_realpow_two
obua@23495
  3825
     realpow_two_abs     
obua@23495
  3826
wenzelm@16891
  3827
* Theory Parity: added rules for simplifying exponents.
wenzelm@16891
  3828
nipkow@17092
  3829
* Theory List:
nipkow@17092
  3830
nipkow@17092
  3831
The following theorems have been eliminated or modified
nipkow@17092
  3832
(INCOMPATIBILITY):
nipkow@17092
  3833
nipkow@17092
  3834
  list_all_Nil       now named list_all.simps(1)
nipkow@17092
  3835
  list_all_Cons      now named list_all.simps(2)
nipkow@17092
  3836
  list_all_conv      now named list_all_iff
nipkow@17092
  3837
  set_mem_eq         now named mem_iff
nipkow@17092
  3838
wenzelm@16929
  3839
* Theories SetsAndFunctions and BigO (see HOL/Library) support
wenzelm@16929
  3840
asymptotic "big O" calculations.  See the notes in BigO.thy.
wenzelm@16929
  3841
avigad@16888
  3842
avigad@16888
  3843
*** HOL-Complex ***
avigad@16888
  3844
wenzelm@16891
  3845
* Theory RealDef: better support for embedding natural numbers and
wenzelm@16891
  3846
integers in the reals.
wenzelm@16891
  3847
wenzelm@16891
  3848
The following theorems have been eliminated or modified
wenzelm@16891
  3849
(INCOMPATIBILITY):
wenzelm@16891
  3850
avigad@17016
  3851
  exp_ge_add_one_self  now requires no hypotheses
avigad@17016
  3852
  real_of_int_add      reversed direction of equality (use [symmetric])
avigad@17016
  3853
  real_of_int_minus    reversed direction of equality (use [symmetric])
avigad@17016
  3854
  real_of_int_diff     reversed direction of equality (use [symmetric])
avigad@17016
  3855
  real_of_int_mult     reversed direction of equality (use [symmetric])
wenzelm@16891
  3856
wenzelm@16891
  3857
* Theory RComplete: expanded support for floor and ceiling functions.
avigad@16888
  3858
avigad@16962
  3859
* Theory Ln is new, with properties of the natural logarithm
avigad@16962
  3860
wenzelm@17423
  3861
* Hyperreal: There is a new type constructor "star" for making
wenzelm@17423
  3862
nonstandard types.  The old type names are now type synonyms:
wenzelm@17423
  3863
wenzelm@17423
  3864
  hypreal = real star
wenzelm@17423
  3865
  hypnat = nat star
wenzelm@17423
  3866
  hcomplex = complex star
wenzelm@17423
  3867
wenzelm@17423
  3868
* Hyperreal: Many groups of similarly-defined constants have been
huffman@17442
  3869
replaced by polymorphic versions (INCOMPATIBILITY):
wenzelm@17423
  3870
wenzelm@17423
  3871
  star_of <-- hypreal_of_real, hypnat_of_nat, hcomplex_of_complex
wenzelm@17423
  3872
wenzelm@17423
  3873
  starset      <-- starsetNat, starsetC
wenzelm@17423
  3874
  *s*          <-- *sNat*, *sc*
wenzelm@17423
  3875
  starset_n    <-- starsetNat_n, starsetC_n
wenzelm@17423
  3876
  *sn*         <-- *sNatn*, *scn*
wenzelm@17423
  3877
  InternalSets <-- InternalNatSets, InternalCSets
wenzelm@17423
  3878
huffman@17442
  3879
  starfun      <-- starfun{Nat,Nat2,C,RC,CR}
wenzelm@17423
  3880
  *f*          <-- *fNat*, *fNat2*, *fc*, *fRc*, *fcR*
huffman@17442
  3881
  starfun_n    <-- starfun{Nat,Nat2,C,RC,CR}_n
wenzelm@17423
  3882
  *fn*         <-- *fNatn*, *fNat2n*, *fcn*, *fRcn*, *fcRn*
huffman@17442
  3883
  InternalFuns <-- InternalNatFuns, InternalNatFuns2, Internal{C,RC,CR}Funs
wenzelm@17423
  3884
wenzelm@17423
  3885
* Hyperreal: Many type-specific theorems have been removed in favor of
huffman@17442
  3886
theorems specific to various axiomatic type classes (INCOMPATIBILITY):
huffman@17442
  3887
huffman@17442
  3888
  add_commute <-- {hypreal,hypnat,hcomplex}_add_commute
huffman@17442
  3889
  add_assoc   <-- {hypreal,hypnat,hcomplex}_add_assocs
huffman@17442
  3890
  OrderedGroup.add_0 <-- {hypreal,hypnat,hcomplex}_add_zero_left
huffman@17442
  3891
  OrderedGroup.add_0_right <-- {hypreal,hcomplex}_add_zero_right
wenzelm@17423
  3892
  right_minus <-- hypreal_add_minus
huffman@17442
  3893
  left_minus <-- {hypreal,hcomplex}_add_minus_left
huffman@17442
  3894
  mult_commute <-- {hypreal,hypnat,hcomplex}_mult_commute
huffman@17442
  3895
  mult_assoc <-- {hypreal,hypnat,hcomplex}_mult_assoc
huffman@17442
  3896
  mult_1_left <-- {hypreal,hypnat}_mult_1, hcomplex_mult_one_left
wenzelm@17423
  3897
  mult_1_right <-- hcomplex_mult_one_right
wenzelm@17423
  3898
  mult_zero_left <-- hcomplex_mult_zero_left
huffman@17442
  3899
  left_distrib <-- {hypreal,hypnat,hcomplex}_add_mult_distrib
wenzelm@17423
  3900
  right_distrib <-- hypnat_add_mult_distrib2
huffman@17442
  3901
  zero_neq_one <-- {hypreal,hypnat,hcomplex}_zero_not_eq_one
wenzelm@17423
  3902
  right_inverse <-- hypreal_mult_inverse
wenzelm@17423
  3903
  left_inverse <-- hypreal_mult_inverse_left, hcomplex_mult_inv_left
huffman@17442
  3904
  order_refl <-- {hypreal,hypnat}_le_refl
huffman@17442
  3905
  order_trans <-- {hypreal,hypnat}_le_trans
huffman@17442
  3906
  order_antisym <-- {hypreal,hypnat}_le_anti_sym
huffman@17442
  3907
  order_less_le <-- {hypreal,hypnat}_less_le
huffman@17442
  3908
  linorder_linear <-- {hypreal,hypnat}_le_linear
huffman@17442
  3909
  add_left_mono <-- {hypreal,hypnat}_add_left_mono
huffman@17442
  3910
  mult_strict_left_mono <-- {hypreal,hypnat}_mult_less_mono2
wenzelm@17423
  3911
  add_nonneg_nonneg <-- hypreal_le_add_order
wenzelm@17423
  3912
wenzelm@17423
  3913
* Hyperreal: Separate theorems having to do with type-specific
wenzelm@17423
  3914
versions of constants have been merged into theorems that apply to the
huffman@17442
  3915
new polymorphic constants (INCOMPATIBILITY):
huffman@17442
  3916
huffman@17442
  3917
  STAR_UNIV_set <-- {STAR_real,NatStar_real,STARC_complex}_set
huffman@17442
  3918
  STAR_empty_set <-- {STAR,NatStar,STARC}_empty_set
huffman@17442
  3919
  STAR_Un <-- {STAR,NatStar,STARC}_Un
huffman@17442
  3920
  STAR_Int <-- {STAR,NatStar,STARC}_Int
huffman@17442
  3921
  STAR_Compl <-- {STAR,NatStar,STARC}_Compl
huffman@17442
  3922
  STAR_subset <-- {STAR,NatStar,STARC}_subset
huffman@17442
  3923
  STAR_mem <-- {STAR,NatStar,STARC}_mem
huffman@17442
  3924
  STAR_mem_Compl <-- {STAR,STARC}_mem_Compl
huffman@17442
  3925
  STAR_diff <-- {STAR,STARC}_diff
huffman@17442
  3926
  STAR_star_of_image_subset <-- {STAR_hypreal_of_real, NatStar_hypreal_of_real,
huffman@17442
  3927
    STARC_hcomplex_of_complex}_image_subset
huffman@17442
  3928
  starset_n_Un <-- starset{Nat,C}_n_Un
huffman@17442
  3929
  starset_n_Int <-- starset{Nat,C}_n_Int
huffman@17442
  3930
  starset_n_Compl <-- starset{Nat,C}_n_Compl
huffman@17442
  3931
  starset_n_diff <-- starset{Nat,C}_n_diff
huffman@17442
  3932
  InternalSets_Un <-- Internal{Nat,C}Sets_Un
huffman@17442
  3933
  InternalSets_Int <-- Internal{Nat,C}Sets_Int
huffman@17442
  3934
  InternalSets_Compl <-- Internal{Nat,C}Sets_Compl
huffman@17442
  3935
  InternalSets_diff <-- Internal{Nat,C}Sets_diff
huffman@17442
  3936
  InternalSets_UNIV_diff <-- Internal{Nat,C}Sets_UNIV_diff
huffman@17442
  3937
  InternalSets_starset_n <-- Internal{Nat,C}Sets_starset{Nat,C}_n
huffman@17442
  3938
  starset_starset_n_eq <-- starset{Nat,C}_starset{Nat,C}_n_eq
huffman@17442
  3939
  starset_n_starset <-- starset{Nat,C}_n_starset{Nat,C}
huffman@17442
  3940
  starfun_n_starfun <-- starfun{Nat,Nat2,C,RC,CR}_n_starfun{Nat,Nat2,C,RC,CR}
huffman@17442
  3941
  starfun <-- starfun{Nat,Nat2,C,RC,CR}
huffman@17442
  3942
  starfun_mult <-- starfun{Nat,Nat2,C,RC,CR}_mult
huffman@17442
  3943
  starfun_add <-- starfun{Nat,Nat2,C,RC,CR}_add
huffman@17442
  3944
  starfun_minus <-- starfun{Nat,Nat2,C,RC,CR}_minus
huffman@17442
  3945
  starfun_diff <-- starfun{C,RC,CR}_diff
huffman@17442
  3946
  starfun_o <-- starfun{NatNat2,Nat2,_stafunNat,C,C_starfunRC,_starfunCR}_o
huffman@17442
  3947
  starfun_o2 <-- starfun{NatNat2,_stafunNat,C,C_starfunRC,_starfunCR}_o2
huffman@17442
  3948
  starfun_const_fun <-- starfun{Nat,Nat2,C,RC,CR}_const_fun
huffman@17442
  3949
  starfun_inverse <-- starfun{Nat,C,RC,CR}_inverse
huffman@17442
  3950
  starfun_eq <-- starfun{Nat,Nat2,C,RC,CR}_eq
huffman@17442
  3951
  starfun_eq_iff <-- starfun{C,RC,CR}_eq_iff
wenzelm@17423
  3952
  starfun_Id <-- starfunC_Id
huffman@17442
  3953
  starfun_approx <-- starfun{Nat,CR}_approx
huffman@17442
  3954
  starfun_capprox <-- starfun{C,RC}_capprox
wenzelm@17423
  3955
  starfun_abs <-- starfunNat_rabs
huffman@17442
  3956
  starfun_lambda_cancel <-- starfun{C,CR,RC}_lambda_cancel
huffman@17442
  3957
  starfun_lambda_cancel2 <-- starfun{C,CR,RC}_lambda_cancel2
wenzelm@17423
  3958
  starfun_mult_HFinite_approx <-- starfunCR_mult_HFinite_capprox
huffman@17442
  3959
  starfun_mult_CFinite_capprox <-- starfun{C,RC}_mult_CFinite_capprox
huffman@17442
  3960
  starfun_add_capprox <-- starfun{C,RC}_add_capprox
wenzelm@17423
  3961
  starfun_add_approx <-- starfunCR_add_approx
wenzelm@17423
  3962
  starfun_inverse_inverse <-- starfunC_inverse_inverse
huffman@17442
  3963
  starfun_divide <-- starfun{C,CR,RC}_divide
huffman@17442
  3964
  starfun_n <-- starfun{Nat,C}_n
huffman@17442
  3965
  starfun_n_mult <-- starfun{Nat,C}_n_mult
huffman@17442
  3966
  starfun_n_add <-- starfun{Nat,C}_n_add
wenzelm@17423
  3967
  starfun_n_add_minus <-- starfunNat_n_add_minus
huffman@17442
  3968
  starfun_n_const_fun <-- starfun{Nat,C}_n_const_fun
huffman@17442
  3969
  starfun_n_minus <-- starfun{Nat,C}_n_minus
huffman@17442
  3970
  starfun_n_eq <-- starfun{Nat,C}_n_eq
huffman@17442
  3971
huffman@17442
  3972
  star_n_add <-- {hypreal,hypnat,hcomplex}_add
huffman@17442
  3973
  star_n_minus <-- {hypreal,hcomplex}_minus
huffman@17442
  3974
  star_n_diff <-- {hypreal,hcomplex}_diff
huffman@17442
  3975
  star_n_mult <-- {hypreal,hcomplex}_mult
huffman@17442
  3976
  star_n_inverse <-- {hypreal,hcomplex}_inverse
huffman@17442
  3977
  star_n_le <-- {hypreal,hypnat}_le
huffman@17442
  3978
  star_n_less <-- {hypreal,hypnat}_less
huffman@17442
  3979
  star_n_zero_num <-- {hypreal,hypnat,hcomplex}_zero_num
huffman@17442
  3980
  star_n_one_num <-- {hypreal,hypnat,hcomplex}_one_num
wenzelm@17423
  3981
  star_n_abs <-- hypreal_hrabs
wenzelm@17423
  3982
  star_n_divide <-- hcomplex_divide
wenzelm@17423
  3983
huffman@17442
  3984
  star_of_add <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_add
huffman@17442
  3985
  star_of_minus <-- {hypreal_of_real,hcomplex_of_complex}_minus
wenzelm@17423
  3986
  star_of_diff <-- hypreal_of_real_diff
huffman@17442
  3987
  star_of_mult <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_mult
huffman@17442
  3988
  star_of_one <-- {hypreal_of_real,hcomplex_of_complex}_one
huffman@17442
  3989
  star_of_zero <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_zero
huffman@17442
  3990
  star_of_le <-- {hypreal_of_real,hypnat_of_nat}_le_iff
huffman@17442
  3991
  star_of_less <-- {hypreal_of_real,hypnat_of_nat}_less_iff
huffman@17442
  3992
  star_of_eq <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_eq_iff
huffman@17442
  3993
  star_of_inverse <-- {hypreal_of_real,hcomplex_of_complex}_inverse
huffman@17442
  3994
  star_of_divide <-- {hypreal_of_real,hcomplex_of_complex}_divide
huffman@17442
  3995
  star_of_of_nat <-- {hypreal_of_real,hcomplex_of_complex}_of_nat
huffman@17442
  3996
  star_of_of_int <-- {hypreal_of_real,hcomplex_of_complex}_of_int
huffman@17442
  3997
  star_of_number_of <-- {hypreal,hcomplex}_number_of
wenzelm@17423
  3998
  star_of_number_less <-- number_of_less_hypreal_of_real_iff
wenzelm@17423
  3999
  star_of_number_le <-- number_of_le_hypreal_of_real_iff
wenzelm@17423
  4000
  star_of_eq_number <-- hypreal_of_real_eq_number_of_iff
wenzelm@17423
  4001
  star_of_less_number <-- hypreal_of_real_less_number_of_iff
wenzelm@17423
  4002
  star_of_le_number <-- hypreal_of_real_le_number_of_iff
wenzelm@17423
  4003
  star_of_power <-- hypreal_of_real_power
wenzelm@17423
  4004
  star_of_eq_0 <-- hcomplex_of_complex_zero_iff
wenzelm@17423
  4005
huffman@17442
  4006
* Hyperreal: new method "transfer" that implements the transfer
huffman@17442
  4007
principle of nonstandard analysis. With a subgoal that mentions
huffman@17442
  4008
nonstandard types like "'a star", the command "apply transfer"
huffman@17442
  4009
replaces it with an equivalent one that mentions only standard types.
huffman@17442
  4010
To be successful, all free variables must have standard types; non-
huffman@17442
  4011
standard variables must have explicit universal quantifiers.
huffman@17442
  4012
wenzelm@17641
  4013
* Hyperreal: A theory of Taylor series.
wenzelm@17641
  4014
wenzelm@15703
  4015
wenzelm@15703
  4016
*** HOLCF ***
wenzelm@15703
  4017
wenzelm@17533
  4018
* Discontinued special version of 'constdefs' (which used to support
wenzelm@17533
  4019
continuous functions) in favor of the general Pure one with full
wenzelm@17533
  4020
type-inference.
wenzelm@17533
  4021
wenzelm@17533
  4022
* New simplification procedure for solving continuity conditions; it
wenzelm@17533
  4023
is much faster on terms with many nested lambda abstractions (cubic
huffman@17442
  4024
instead of exponential time).
huffman@17442
  4025
wenzelm@17533
  4026
* New syntax for domain package: selector names are now optional.
huffman@17442
  4027
Parentheses should be omitted unless argument is lazy, for example:
huffman@17442
  4028
huffman@17442
  4029
  domain 'a stream = cons "'a" (lazy "'a stream")
huffman@17442
  4030
wenzelm@17533
  4031
* New command 'fixrec' for defining recursive functions with pattern
wenzelm@17533
  4032
matching; defining multiple functions with mutual recursion is also
wenzelm@17533
  4033
supported.  Patterns may include the constants cpair, spair, up, sinl,
wenzelm@17533
  4034
sinr, or any data constructor defined by the domain package. The given
wenzelm@17533
  4035
equations are proven as rewrite rules. See HOLCF/ex/Fixrec_ex.thy for
wenzelm@17533
  4036
syntax and examples.
wenzelm@17533
  4037
wenzelm@17533
  4038
* New commands 'cpodef' and 'pcpodef' for defining predicate subtypes
wenzelm@17533
  4039
of cpo and pcpo types. Syntax is exactly like the 'typedef' command,
wenzelm@17533
  4040
but the proof obligation additionally includes an admissibility
wenzelm@17533
  4041
requirement. The packages generate instances of class cpo or pcpo,
wenzelm@17533
  4042
with continuity and strictness theorems for Rep and Abs.
huffman@17442
  4043
huffman@17584
  4044
* HOLCF: Many theorems have been renamed according to a more standard naming
huffman@17584
  4045
scheme (INCOMPATIBILITY):
huffman@17584
  4046
huffman@17584
  4047
  foo_inject:  "foo$x = foo$y ==> x = y"
huffman@17584
  4048
  foo_eq:      "(foo$x = foo$y) = (x = y)"
huffman@17584
  4049
  foo_less:    "(foo$x << foo$y) = (x << y)"
huffman@17584
  4050
  foo_strict:  "foo$UU = UU"
huffman@17584
  4051
  foo_defined: "... ==> foo$x ~= UU"
huffman@17584
  4052
  foo_defined_iff: "(foo$x = UU) = (x = UU)"
huffman@17584
  4053
wenzelm@15703
  4054
wenzelm@15703
  4055
*** ZF ***
wenzelm@15703
  4056
wenzelm@16234
  4057
* ZF/ex: theories Group and Ring provide examples in abstract algebra,
wenzelm@16234
  4058
including the First Isomorphism Theorem (on quotienting by the kernel
wenzelm@16234
  4059
of a homomorphism).
wenzelm@15703
  4060
wenzelm@15703
  4061
* ZF/Simplifier: install second copy of type solver that actually
wenzelm@16234
  4062
makes use of TC rules declared to Isar proof contexts (or locales);
wenzelm@16234
  4063
the old version is still required for ML proof scripts.
wenzelm@15703
  4064
wenzelm@15703
  4065
wenzelm@17445
  4066
*** Cube ***
wenzelm@17445
  4067
wenzelm@17445
  4068
* Converted to Isar theory format; use locales instead of axiomatic
wenzelm@17445
  4069
theories.
wenzelm@17445
  4070
wenzelm@17445
  4071
wenzelm@15703
  4072
*** ML ***
wenzelm@15703
  4073
haftmann@21339
  4074
* Pure/library.ML: added ##>, ##>>, #>> -- higher-order counterparts
haftmann@21339
  4075
for ||>, ||>>, |>>,
haftmann@21339
  4076
wenzelm@15973
  4077
* Pure/library.ML no longer defines its own option datatype, but uses
wenzelm@16234
  4078
that of the SML basis, which has constructors NONE and SOME instead of
wenzelm@16234
  4079
None and Some, as well as exception Option.Option instead of OPTION.
wenzelm@16234
  4080
The functions the, if_none, is_some, is_none have been adapted
wenzelm@16234
  4081
accordingly, while Option.map replaces apsome.
wenzelm@15973
  4082
wenzelm@16860
  4083
* Pure/library.ML: the exception LIST has been given up in favour of
wenzelm@16860
  4084
the standard exceptions Empty and Subscript, as well as
wenzelm@16860
  4085
Library.UnequalLengths.  Function like Library.hd and Library.tl are
wenzelm@16860
  4086
superceded by the standard hd and tl functions etc.
wenzelm@16860
  4087
wenzelm@16860
  4088
A number of basic list functions are no longer exported to the ML
wenzelm@16860
  4089
toplevel, as they are variants of predefined functions.  The following
wenzelm@16234
  4090
suggests how one can translate existing code:
wenzelm@15973
  4091
wenzelm@15973
  4092
    rev_append xs ys = List.revAppend (xs, ys)
wenzelm@15973
  4093
    nth_elem (i, xs) = List.nth (xs, i)
wenzelm@15973
  4094
    last_elem xs = List.last xs
wenzelm@15973
  4095
    flat xss = List.concat xss
wenzelm@16234
  4096
    seq fs = List.app fs
wenzelm@15973
  4097
    partition P xs = List.partition P xs
wenzelm@15973
  4098
    mapfilter f xs = List.mapPartial f xs
wenzelm@15973
  4099
wenzelm@16860
  4100
* Pure/library.ML: several combinators for linear functional
wenzelm@16860
  4101
transformations, notably reverse application and composition:
wenzelm@16860
  4102
wenzelm@17371
  4103
  x |> f                f #> g
wenzelm@17371
  4104
  (x, y) |-> f          f #-> g
wenzelm@16860
  4105
haftmann@17495
  4106
* Pure/library.ML: introduced/changed precedence of infix operators:
haftmann@17495
  4107
haftmann@17495
  4108
  infix 1 |> |-> ||> ||>> |>> |>>> #> #->;
haftmann@17495
  4109
  infix 2 ?;
haftmann@17495
  4110
  infix 3 o oo ooo oooo;
haftmann@17495
  4111
  infix 4 ~~ upto downto;
haftmann@17495
  4112
haftmann@17495
  4113
Maybe INCOMPATIBILITY when any of those is used in conjunction with other
haftmann@17495
  4114
infix operators.
haftmann@17495
  4115
wenzelm@17408
  4116
* Pure/library.ML: natural list combinators fold, fold_rev, and
haftmann@16869
  4117
fold_map support linear functional transformations and nesting.  For
wenzelm@16860
  4118
example:
wenzelm@16860
  4119
wenzelm@16860
  4120
  fold f [x1, ..., xN] y =
wenzelm@16860
  4121
    y |> f x1 |> ... |> f xN
wenzelm@16860
  4122
wenzelm@16860
  4123
  (fold o fold) f [xs1, ..., xsN] y =
wenzelm@16860
  4124
    y |> fold f xs1 |> ... |> fold f xsN
wenzelm@16860
  4125
wenzelm@16860
  4126
  fold f [x1, ..., xN] =
wenzelm@16860
  4127
    f x1 #> ... #> f xN
wenzelm@16860
  4128
wenzelm@16860
  4129
  (fold o fold) f [xs1, ..., xsN] =
wenzelm@16860
  4130
    fold f xs1 #> ... #> fold f xsN
wenzelm@16860
  4131
wenzelm@17408
  4132
* Pure/library.ML: the following selectors on type 'a option are
wenzelm@17408
  4133
available:
wenzelm@17408
  4134
wenzelm@17408
  4135
  the:               'a option -> 'a  (*partial*)
wenzelm@17408
  4136
  these:             'a option -> 'a  where 'a = 'b list
haftmann@17402
  4137
  the_default: 'a -> 'a option -> 'a
haftmann@17402
  4138
  the_list:          'a option -> 'a list
haftmann@17402
  4139
wenzelm@17408
  4140
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
wenzelm@17408
  4141
basic operations for association lists, following natural argument
haftmann@17564
  4142
order; moreover the explicit equality predicate passed here avoids
haftmann@17495
  4143
potentially expensive polymorphic runtime equality checks.
haftmann@17495
  4144
The old functions may be expressed as follows:
wenzelm@17408
  4145
wenzelm@17408
  4146
  assoc = uncurry (AList.lookup (op =))
wenzelm@17408
  4147
  assocs = these oo AList.lookup (op =)
wenzelm@17408
  4148
  overwrite = uncurry (AList.update (op =)) o swap
wenzelm@17408
  4149
haftmann@17564
  4150
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
haftmann@17564
  4151
haftmann@17564
  4152
  val make: ('a -> 'b) -> 'a list -> ('a * 'b) list
haftmann@17564
  4153
  val find: ('a * 'b -> bool) -> ('c * 'b) list -> 'a -> 'c list
haftmann@17564
  4154
haftmann@17564
  4155
replacing make_keylist and keyfilter (occassionally used)
haftmann@17564
  4156
Naive rewrites:
haftmann@17564
  4157
haftmann@17564
  4158
  make_keylist = AList.make
haftmann@17564
  4159
  keyfilter = AList.find (op =)
haftmann@17564
  4160
haftmann@17564
  4161
* eq_fst and eq_snd now take explicit equality parameter, thus
haftmann@17564
  4162
  avoiding eqtypes. Naive rewrites:
haftmann@17564
  4163
haftmann@17564
  4164
    eq_fst = eq_fst (op =)
haftmann@17564
  4165
    eq_snd = eq_snd (op =)
haftmann@17564
  4166
haftmann@17564
  4167
* Removed deprecated apl and apr (rarely used).
haftmann@17564
  4168
  Naive rewrites:
haftmann@17564
  4169
haftmann@17564
  4170
    apl (n, op) =>>= curry op n
haftmann@17564
  4171
    apr (op, m) =>>= fn n => op (n, m)
haftmann@17564
  4172
wenzelm@17408
  4173
* Pure/General: structure OrdList (cf. Pure/General/ord_list.ML)
wenzelm@17408
  4174
provides a reasonably efficient light-weight implementation of sets as
wenzelm@17408
  4175
lists.
wenzelm@17408
  4176
wenzelm@17408
  4177
* Pure/General: generic tables (cf. Pure/General/table.ML) provide a
wenzelm@17408
  4178
few new operations; existing lookup and update are now curried to
wenzelm@17408
  4179
follow natural argument order (for use with fold etc.);
wenzelm@17408
  4180
INCOMPATIBILITY, use (uncurry Symtab.lookup) etc. as last resort.
wenzelm@17408
  4181
wenzelm@17408
  4182
* Pure/General: output via the Isabelle channels of
wenzelm@17408
  4183
writeln/warning/error etc. is now passed through Output.output, with a
wenzelm@17408
  4184
hook for arbitrary transformations depending on the print_mode
wenzelm@17408
  4185
(cf. Output.add_mode -- the first active mode that provides a output
wenzelm@17408
  4186
function wins).  Already formatted output may be embedded into further
wenzelm@17408
  4187
text via Output.raw; the result of Pretty.string_of/str_of and derived
wenzelm@17408
  4188
functions (string_of_term/cterm/thm etc.) is already marked raw to
wenzelm@17408
  4189
accommodate easy composition of diagnostic messages etc.  Programmers
wenzelm@17408
  4190
rarely need to care about Output.output or Output.raw at all, with
wenzelm@17408
  4191
some notable exceptions: Output.output is required when bypassing the
wenzelm@17408
  4192
standard channels (writeln etc.), or in token translations to produce
wenzelm@17408
  4193
properly formatted results; Output.raw is required when capturing
wenzelm@17408
  4194
already output material that will eventually be presented to the user
wenzelm@17408
  4195
a second time.  For the default print mode, both Output.output and
wenzelm@17408
  4196
Output.raw have no effect.
wenzelm@17408
  4197
wenzelm@17408
  4198
* Pure/General: Output.time_accumulator NAME creates an operator ('a
wenzelm@17408
  4199
-> 'b) -> 'a -> 'b to measure runtime and count invocations; the
wenzelm@17408
  4200
cumulative results are displayed at the end of a batch session.
wenzelm@17408
  4201
wenzelm@17408
  4202
* Pure/General: File.sysify_path and File.quote_sysify path have been
wenzelm@17408
  4203
replaced by File.platform_path and File.shell_path (with appropriate
wenzelm@17408
  4204
hooks).  This provides a clean interface for unusual systems where the
wenzelm@17408
  4205
internal and external process view of file names are different.
wenzelm@17408
  4206
wenzelm@16689
  4207
* Pure: more efficient orders for basic syntactic entities: added
wenzelm@16689
  4208
fast_string_ord, fast_indexname_ord, fast_term_ord; changed sort_ord
wenzelm@16689
  4209
and typ_ord to use fast_string_ord and fast_indexname_ord (term_ord is
wenzelm@16689
  4210
NOT affected); structures Symtab, Vartab, Typtab, Termtab use the fast
wenzelm@16689
  4211
orders now -- potential INCOMPATIBILITY for code that depends on a
wenzelm@16689
  4212
particular order for Symtab.keys, Symtab.dest, etc. (consider using
wenzelm@16689
  4213
Library.sort_strings on result).
wenzelm@16689
  4214
wenzelm@17408
  4215
* Pure/term.ML: combinators fold_atyps, fold_aterms, fold_term_types,
wenzelm@17408
  4216
fold_types traverse types/terms from left to right, observing natural
wenzelm@17408
  4217
argument order.  Supercedes previous foldl_XXX versions, add_frees,
wenzelm@17408
  4218
add_vars etc. have been adapted as well: INCOMPATIBILITY.
wenzelm@17408
  4219
wenzelm@16151
  4220
* Pure: name spaces have been refined, with significant changes of the
wenzelm@16234
  4221
internal interfaces -- INCOMPATIBILITY.  Renamed cond_extern(_table)
wenzelm@16234
  4222
to extern(_table).  The plain name entry path is superceded by a
wenzelm@16234
  4223
general 'naming' context, which also includes the 'policy' to produce
wenzelm@16234
  4224
a fully qualified name and external accesses of a fully qualified
wenzelm@16234
  4225
name; NameSpace.extend is superceded by context dependent
wenzelm@16234
  4226
Sign.declare_name.  Several theory and proof context operations modify
wenzelm@16234
  4227
the naming context.  Especially note Theory.restore_naming and
wenzelm@16234
  4228
ProofContext.restore_naming to get back to a sane state; note that
wenzelm@16234
  4229
Theory.add_path is no longer sufficient to recover from
wenzelm@16234
  4230
Theory.absolute_path in particular.
wenzelm@16234
  4231
wenzelm@16234
  4232
* Pure: new flags short_names (default false) and unique_names
wenzelm@16234
  4233
(default true) for controlling output of qualified names.  If
wenzelm@16234
  4234
short_names is set, names are printed unqualified.  If unique_names is
wenzelm@16234
  4235
reset, the name prefix is reduced to the minimum required to achieve
wenzelm@16234
  4236
the original result when interning again, even if there is an overlap
wenzelm@16234
  4237
with earlier declarations.
wenzelm@16151
  4238
wenzelm@16456
  4239
* Pure/TheoryDataFun: change of the argument structure; 'prep_ext' is
wenzelm@16456
  4240
now 'extend', and 'merge' gets an additional Pretty.pp argument
wenzelm@16456
  4241
(useful for printing error messages).  INCOMPATIBILITY.
wenzelm@16456
  4242
wenzelm@16456
  4243
* Pure: major reorganization of the theory context.  Type Sign.sg and
wenzelm@16456
  4244
Theory.theory are now identified, referring to the universal
wenzelm@16456
  4245
Context.theory (see Pure/context.ML).  Actual signature and theory
wenzelm@16456
  4246
content is managed as theory data.  The old code and interfaces were
wenzelm@16456
  4247
spread over many files and structures; the new arrangement introduces
wenzelm@16456
  4248
considerable INCOMPATIBILITY to gain more clarity:
wenzelm@16456
  4249
wenzelm@16456
  4250
  Context -- theory management operations (name, identity, inclusion,
wenzelm@16456
  4251
    parents, ancestors, merge, etc.), plus generic theory data;
wenzelm@16456
  4252
wenzelm@16456
  4253
  Sign -- logical signature and syntax operations (declaring consts,
wenzelm@16456
  4254
    types, etc.), plus certify/read for common entities;
wenzelm@16456
  4255
wenzelm@16456
  4256
  Theory -- logical theory operations (stating axioms, definitions,
wenzelm@16456
  4257
    oracles), plus a copy of logical signature operations (consts,
wenzelm@16456
  4258
    types, etc.); also a few basic management operations (Theory.copy,
wenzelm@16456
  4259
    Theory.merge, etc.)
wenzelm@16456
  4260
wenzelm@16456
  4261
The most basic sign_of operations (Theory.sign_of, Thm.sign_of_thm
wenzelm@16456
  4262
etc.) as well as the sign field in Thm.rep_thm etc. have been retained
wenzelm@16456
  4263
for convenience -- they merely return the theory.
wenzelm@16456
  4264
wenzelm@17193
  4265
* Pure: type Type.tsig is superceded by theory in most interfaces.
wenzelm@17193
  4266
wenzelm@16547
  4267
* Pure: the Isar proof context type is already defined early in Pure
wenzelm@16547
  4268
as Context.proof (note that ProofContext.context and Proof.context are
wenzelm@16547
  4269
aliases, where the latter is the preferred name).  This enables other
wenzelm@16547
  4270
Isabelle components to refer to that type even before Isar is present.
wenzelm@16547
  4271
wenzelm@16373
  4272
* Pure/sign/theory: discontinued named name spaces (i.e. classK,
wenzelm@16373
  4273
typeK, constK, axiomK, oracleK), but provide explicit operations for
wenzelm@16373
  4274
any of these kinds.  For example, Sign.intern typeK is now
wenzelm@16373
  4275
Sign.intern_type, Theory.hide_space Sign.typeK is now
wenzelm@16373
  4276
Theory.hide_types.  Also note that former
wenzelm@16373
  4277
Theory.hide_classes/types/consts are now
wenzelm@16373
  4278
Theory.hide_classes_i/types_i/consts_i, while the non '_i' versions
wenzelm@16373
  4279
internalize their arguments!  INCOMPATIBILITY.
wenzelm@16373
  4280
wenzelm@16506
  4281
* Pure: get_thm interface (of PureThy and ProofContext) expects
wenzelm@16506
  4282
datatype thmref (with constructors Name and NameSelection) instead of
wenzelm@16506
  4283
plain string -- INCOMPATIBILITY;
wenzelm@16506
  4284
wenzelm@16151
  4285
* Pure: cases produced by proof methods specify options, where NONE
wenzelm@16234
  4286
means to remove case bindings -- INCOMPATIBILITY in
wenzelm@16234
  4287
(RAW_)METHOD_CASES.
wenzelm@16151
  4288
wenzelm@16373
  4289
* Pure: the following operations retrieve axioms or theorems from a
wenzelm@16373
  4290
theory node or theory hierarchy, respectively:
wenzelm@16373
  4291
wenzelm@16373
  4292
  Theory.axioms_of: theory -> (string * term) list
wenzelm@16373
  4293
  Theory.all_axioms_of: theory -> (string * term) list
wenzelm@16373
  4294
  PureThy.thms_of: theory -> (string * thm) list
wenzelm@16373
  4295
  PureThy.all_thms_of: theory -> (string * thm) list
wenzelm@16373
  4296
wenzelm@16718
  4297
* Pure: print_tac now outputs the goal through the trace channel.
wenzelm@16718
  4298
wenzelm@17408
  4299
* Isar toplevel: improved diagnostics, mostly for Poly/ML only.
wenzelm@17408
  4300
Reference Toplevel.debug (default false) controls detailed printing
wenzelm@17408
  4301
and tracing of low-level exceptions; Toplevel.profiling (default 0)
wenzelm@17408
  4302
controls execution profiling -- set to 1 for time and 2 for space
wenzelm@17408
  4303
(both increase the runtime).
wenzelm@17408
  4304
wenzelm@17408
  4305
* Isar session: The initial use of ROOT.ML is now always timed,
wenzelm@17408
  4306
i.e. the log will show the actual process times, in contrast to the
wenzelm@17408
  4307
elapsed wall-clock time that the outer shell wrapper produces.
wenzelm@17408
  4308
wenzelm@17408
  4309
* Simplifier: improved handling of bound variables (nameless
wenzelm@16997
  4310
representation, avoid allocating new strings).  Simprocs that invoke
wenzelm@16997
  4311
the Simplifier recursively should use Simplifier.inherit_bounds to
wenzelm@17720
  4312
avoid local name clashes.  Failure to do so produces warnings
wenzelm@17720
  4313
"Simplifier: renamed bound variable ..."; set Simplifier.debug_bounds
wenzelm@17720
  4314
for further details.
wenzelm@16234
  4315
wenzelm@17166
  4316
* ML functions legacy_bindings and use_legacy_bindings produce ML fact
wenzelm@17166
  4317
bindings for all theorems stored within a given theory; this may help
wenzelm@17166
  4318
in porting non-Isar theories to Isar ones, while keeping ML proof
wenzelm@17166
  4319
scripts for the time being.
wenzelm@17166
  4320
wenzelm@17457
  4321
* ML operator HTML.with_charset specifies the charset begin used for
wenzelm@17457
  4322
generated HTML files.  For example:
wenzelm@17457
  4323
wenzelm@17457
  4324
  HTML.with_charset "utf-8" use_thy "Hebrew";
wenzelm@17538
  4325
  HTML.with_charset "utf-8" use_thy "Chinese";
wenzelm@17457
  4326
wenzelm@16234
  4327
wenzelm@16234
  4328
*** System ***
wenzelm@16234
  4329
wenzelm@16234
  4330
* Allow symlinks to all proper Isabelle executables (Isabelle,
wenzelm@16234
  4331
isabelle, isatool etc.).
wenzelm@16234
  4332
wenzelm@16234
  4333
* ISABELLE_DOC_FORMAT setting specifies preferred document format (for
wenzelm@16234
  4334
isatool doc, isatool mkdir, display_drafts etc.).
wenzelm@16234
  4335
wenzelm@16234
  4336
* isatool usedir: option -f allows specification of the ML file to be
wenzelm@16234
  4337
used by Isabelle; default is ROOT.ML.
wenzelm@16234
  4338
wenzelm@16251
  4339
* New isatool version outputs the version identifier of the Isabelle
wenzelm@16251
  4340
distribution being used.
wenzelm@16251
  4341
wenzelm@16251
  4342
* HOL: new isatool dimacs2hol converts files in DIMACS CNF format
wenzelm@16234
  4343
(containing Boolean satisfiability problems) into Isabelle/HOL
wenzelm@16234
  4344
theories.
paulson@14885
  4345
paulson@14885
  4346
wenzelm@14655
  4347
wenzelm@14606
  4348
New in Isabelle2004 (April 2004)
wenzelm@14606
  4349
--------------------------------
wenzelm@13280
  4350
skalberg@14171
  4351
*** General ***
skalberg@14171
  4352
ballarin@14398
  4353
* Provers/order.ML:  new efficient reasoner for partial and linear orders.
ballarin@14398
  4354
  Replaces linorder.ML.
ballarin@14398
  4355
wenzelm@14606
  4356
* Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic
wenzelm@14606
  4357
  (\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler
skalberg@14173
  4358
  (\<a>...\<z>), are now considered normal letters, and can therefore
skalberg@14173
  4359
  be used anywhere where an ASCII letter (a...zA...Z) has until
skalberg@14173
  4360
  now. COMPATIBILITY: This obviously changes the parsing of some
skalberg@14173
  4361
  terms, especially where a symbol has been used as a binder, say
skalberg@14173
  4362
  '\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed
skalberg@14173
  4363
  as an identifier.  Fix it by inserting a space around former
skalberg@14173
  4364
  symbols.  Call 'isatool fixgreek' to try to fix parsing errors in
skalberg@14173
  4365
  existing theory and ML files.
skalberg@14171
  4366
paulson@14237
  4367
* Pure: Macintosh and Windows line-breaks are now allowed in theory files.
paulson@14237
  4368
wenzelm@14731
  4369
* Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now
wenzelm@14731
  4370
  allowed in identifiers. Similar to Greek letters \<^isub> is now considered
wenzelm@14731
  4371
  a normal (but invisible) letter. For multiple letter subscripts repeat
wenzelm@14731
  4372
  \<^isub> like this: x\<^isub>1\<^isub>2.
kleing@14233
  4373
kleing@14333
  4374
* Pure: There are now sub-/superscripts that can span more than one
kleing@14333
  4375
  character. Text between \<^bsub> and \<^esub> is set in subscript in
wenzelm@14606
  4376
  ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in
wenzelm@14606
  4377
  superscript. The new control characters are not identifier parts.
kleing@14333
  4378
schirmer@14561
  4379
* Pure: Control-symbols of the form \<^raw:...> will literally print the
wenzelm@14606
  4380
  content of "..." to the latex file instead of \isacntrl... . The "..."
wenzelm@14606
  4381
  may consist of any printable characters excluding the end bracket >.
schirmer@14361
  4382
paulson@14237
  4383
* Pure: Using new Isar command "finalconsts" (or the ML functions
paulson@14237
  4384
  Theory.add_finals or Theory.add_finals_i) it is now possible to
paulson@14237
  4385
  declare constants "final", which prevents their being given a definition
paulson@14237
  4386
  later.  It is useful for constants whose behaviour is fixed axiomatically
skalberg@14224
  4387
  rather than definitionally, such as the meta-logic connectives.
skalberg@14224
  4388
wenzelm@14606
  4389
* Pure: 'instance' now handles general arities with general sorts
wenzelm@14606
  4390
  (i.e. intersections of classes),
skalberg@14503
  4391
kleing@14547
  4392
* Presentation: generated HTML now uses a CSS style sheet to make layout
wenzelm@14731
  4393
  (somewhat) independent of content. It is copied from lib/html/isabelle.css.
kleing@14547
  4394
  It can be changed to alter the colors/layout of generated pages.
kleing@14547
  4395
wenzelm@14556
  4396
ballarin@14175
  4397
*** Isar ***
ballarin@14175
  4398
ballarin@14508
  4399
* Tactic emulation methods rule_tac, erule_tac, drule_tac, frule_tac,
ballarin@14508
  4400
  cut_tac, subgoal_tac and thin_tac:
ballarin@14175
  4401
  - Now understand static (Isar) contexts.  As a consequence, users of Isar
ballarin@14175
  4402
    locales are no longer forced to write Isar proof scripts.
ballarin@14175
  4403
    For details see Isar Reference Manual, paragraph 4.3.2: Further tactic
ballarin@14175
  4404
    emulations.
ballarin@14175
  4405
  - INCOMPATIBILITY: names of variables to be instantiated may no
ballarin@14211
  4406
    longer be enclosed in quotes.  Instead, precede variable name with `?'.
ballarin@14211
  4407
    This is consistent with the instantiation attribute "where".
ballarin@14211
  4408
ballarin@14257
  4409
* Attributes "where" and "of":
ballarin@14285
  4410
  - Now take type variables of instantiated theorem into account when reading
ballarin@14285
  4411
    the instantiation string.  This fixes a bug that caused instantiated
ballarin@14285
  4412
    theorems to have too special types in some circumstances.
ballarin@14285
  4413
  - "where" permits explicit instantiations of type variables.
ballarin@14257
  4414
wenzelm@14556
  4415
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm@14556
  4416
  current facts ("this"), admitting arbitrary combinations with "then"
wenzelm@14556
  4417
  and derived forms.
kleing@14283
  4418
ballarin@14211
  4419
* Locales:
ballarin@14211
  4420
  - Goal statements involving the context element "includes" no longer
ballarin@14211
  4421
    generate theorems with internal delta predicates (those ending on
ballarin@14211
  4422
    "_axioms") in the premise.
ballarin@14211
  4423
    Resolve particular premise with <locale>.intro to obtain old form.
ballarin@14211
  4424
  - Fixed bug in type inference ("unify_frozen") that prevented mix of target
ballarin@14211
  4425
    specification and "includes" elements in goal statement.
ballarin@14254
  4426
  - Rule sets <locale>.intro and <locale>.axioms no longer declared as
ballarin@14254
  4427
    [intro?] and [elim?] (respectively) by default.
ballarin@14508
  4428
  - Experimental command for instantiation of locales in proof contexts:
ballarin@14551
  4429
        instantiate <label>[<attrs>]: <loc>
ballarin@14508
  4430
    Instantiates locale <loc> and adds all its theorems to the current context
ballarin@14551
  4431
    taking into account their attributes.  Label and attrs are optional
ballarin@14551
  4432
    modifiers, like in theorem declarations.  If present, names of
ballarin@14551
  4433
    instantiated theorems are qualified with <label>, and the attributes
ballarin@14551
  4434
    <attrs> are applied after any attributes these theorems might have already.
ballarin@14551
  4435
      If the locale has assumptions, a chained fact of the form
ballarin@14508
  4436
    "<loc> t1 ... tn" is expected from which instantiations of the parameters
ballarin@14551
  4437
    are derived.  The command does not support old-style locales declared
ballarin@14551
  4438
    with "locale (open)".
ballarin@14551
  4439
      A few (very simple) examples can be found in FOL/ex/LocaleInst.thy.
ballarin@14175
  4440
ballarin@14175
  4441
* HOL: Tactic emulation methods induct_tac and case_tac understand static
ballarin@14175
  4442
  (Isar) contexts.
ballarin@14175
  4443
wenzelm@14556
  4444
kleing@14136
  4445
*** HOL ***
kleing@14136
  4446
kleing@14624
  4447
* Proof import: new image HOL4 contains the imported library from
kleing@14624
  4448
  the HOL4 system with about 2500 theorems. It is imported by
kleing@14624
  4449
  replaying proof terms produced by HOL4 in Isabelle. The HOL4 image
kleing@14624
  4450
  can be used like any other Isabelle image.  See
kleing@14624
  4451
  HOL/Import/HOL/README for more information.
kleing@14624
  4452
ballarin@14398
  4453
* Simplifier:
ballarin@14398
  4454
  - Much improved handling of linear and partial orders.
ballarin@14398
  4455
    Reasoners for linear and partial orders are set up for type classes
ballarin@14398
  4456
    "linorder" and "order" respectively, and are added to the default simpset
ballarin@14398
  4457
    as solvers.  This means that the simplifier can build transitivity chains
ballarin@14398
  4458
    to solve goals from the assumptions.
ballarin@14398
  4459
  - INCOMPATIBILITY: old proofs break occasionally.  Typically, applications
ballarin@14398
  4460
    of blast or auto after simplification become unnecessary because the goal
ballarin@14398
  4461
    is solved by simplification already.
ballarin@14398
  4462
wenzelm@14731
  4463
* Numerics: new theory Ring_and_Field contains over 250 basic numerical laws,
paulson@14389
  4464
    all proved in axiomatic type classes for semirings, rings and fields.
paulson@14389
  4465
paulson@14389
  4466
* Numerics:
paulson@14389
  4467
  - Numeric types (nat, int, and in HOL-Complex rat, real, complex, etc.) are
wenzelm@14731
  4468
    now formalized using the Ring_and_Field theory mentioned above.
paulson@14389
  4469
  - INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently
paulson@14389
  4470
    than before, because now they are set up once in a generic manner.
wenzelm@14731
  4471
  - INCOMPATIBILITY: many type-specific arithmetic laws have gone.
paulson@14480
  4472
    Look for the general versions in Ring_and_Field (and Power if they concern
paulson@14480
  4473
    exponentiation).
paulson@14389
  4474
paulson@14401
  4475
* Type "rat" of the rational numbers is now available in HOL-Complex.
paulson@14389
  4476
schirmer@14255
  4477
* Records:
schirmer@14255
  4478
  - Record types are now by default printed with their type abbreviation
schirmer@14255
  4479
    instead of the list of all field types. This can be configured via
schirmer@14255
  4480
    the reference "print_record_type_abbr".
wenzelm@14731
  4481
  - Simproc "record_upd_simproc" for simplification of multiple updates added
schirmer@14255
  4482
    (not enabled by default).
schirmer@14427
  4483
  - Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp.
schirmer@14427
  4484
    EX x. x = sel r to True (not enabled by default).
schirmer@14255
  4485
  - Tactic "record_split_simp_tac" to split and simplify records added.
wenzelm@14731
  4486
kleing@14136
  4487
* 'specification' command added, allowing for definition by
skalberg@14224
  4488
  specification.  There is also an 'ax_specification' command that
skalberg@14224
  4489
  introduces the new constants axiomatically.
kleing@14136
  4490
nipkow@14375
  4491
* arith(_tac) is now able to generate counterexamples for reals as well.
nipkow@14375
  4492
ballarin@14399
  4493
* HOL-Algebra: new locale "ring" for non-commutative rings.
ballarin@14399
  4494
paulson@14243
  4495
* HOL-ex: InductiveInvariant_examples illustrates advanced recursive function
kleing@14610
  4496
  definitions, thanks to Sava Krsti\'{c} and John Matthews.
kleing@14610
  4497
wenzelm@14731
  4498
* HOL-Matrix: a first theory for matrices in HOL with an application of
kleing@14610
  4499
  matrix theory to linear programming.
kleing@14136
  4500
nipkow@14380
  4501
* Unions and Intersections:
nipkow@15119
  4502
  The latex output syntax of UN and INT has been changed
nipkow@15119
  4503
  from "\Union x \in A. B" to "\Union_{x \in A} B"
nipkow@15119
  4504
  i.e. the index formulae has become a subscript.
nipkow@15119
  4505
  Similarly for "\Union x. B", and for \Inter instead of \Union.
nipkow@14380
  4506
kleing@14418
  4507
* Unions and Intersections over Intervals:
wenzelm@14731
  4508
  There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is
wenzelm@14731
  4509
  also an x-symbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A"
kleing@14418
  4510
  like in normal math, and corresponding versions for < and for intersection.
kleing@14418
  4511
nipkow@15677
  4512
* HOL/List: Ordering "lexico" is renamed "lenlex" and the standard
nipkow@15677
  4513
  lexicographic dictonary ordering has been added as "lexord".
nipkow@15677
  4514
paulson@14401
  4515
* ML: the legacy theory structures Int and List have been removed. They had
paulson@14401
  4516
  conflicted with ML Basis Library structures having the same names.
nipkow@14380
  4517
webertj@14464
  4518
* 'refute' command added to search for (finite) countermodels.  Only works
webertj@14464
  4519
  for a fragment of HOL.  The installation of an external SAT solver is
webertj@14464
  4520
  highly recommended.  See "HOL/Refute.thy" for details.
webertj@14464
  4521
berghofe@14602
  4522
* 'quickcheck' command: Allows to find counterexamples by evaluating
berghofe@14602
  4523
  formulae under an assignment of free variables to random values.
berghofe@14602
  4524
  In contrast to 'refute', it can deal with inductive datatypes,
berghofe@14602
  4525
  but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy"
berghofe@14602
  4526
  for examples.
webertj@14464
  4527
wenzelm@14606
  4528
oheimb@14536
  4529
*** HOLCF ***
oheimb@14536
  4530
oheimb@14536
  4531
* Streams now come with concatenation and are part of the HOLCF image
oheimb@14536
  4532
wenzelm@14572
  4533
wenzelm@14572
  4534
kleing@14136
  4535
New in Isabelle2003 (May 2003)
wenzelm@14606
  4536
------------------------------
kleing@14136
  4537
wenzelm@13280
  4538
*** General ***
wenzelm@13280
  4539
berghofe@13618
  4540
* Provers/simplifier:
berghofe@13618
  4541
nipkow@13781
  4542
  - Completely reimplemented method simp (ML: Asm_full_simp_tac):
berghofe@13618
  4543
    Assumptions are now subject to complete mutual simplification,
berghofe@13618
  4544
    not just from left to right. The simplifier now preserves
berghofe@13618
  4545
    the order of assumptions.
berghofe@13618
  4546
berghofe@13618
  4547
    Potential INCOMPATIBILITY:
berghofe@13618
  4548
nipkow@13781
  4549
    -- simp sometimes diverges where the old version did
nipkow@13781
  4550
       not, e.g. invoking simp on the goal
berghofe@13618
  4551
berghofe@13618
  4552
        [| P (f x); y = x; f x = f y |] ==> Q
berghofe@13618
  4553
nipkow@13781
  4554
       now gives rise to the infinite reduction sequence
nipkow@13781
  4555
nipkow@13781
  4556
        P(f x) --(f x = f y)--> P(f y) --(y = x)--> P(f x) --(f x = f y)--> ...
nipkow@13781
  4557
nipkow@13781
  4558
       Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this
nipkow@13781
  4559
       kind of problem.
nipkow@13781
  4560
nipkow@13781
  4561
    -- Tactics combining classical reasoner and simplification (such as auto)
nipkow@13781
  4562
       are also affected by this change, because many of them rely on
nipkow@13781
  4563
       simp. They may sometimes diverge as well or yield a different numbers
nipkow@13781
  4564
       of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto
nipkow@13781
  4565
       in case of problems. Sometimes subsequent calls to the classical
nipkow@13781
  4566
       reasoner will fail because a preceeding call to the simplifier too
nipkow@13781
  4567
       eagerly simplified the goal, e.g. deleted redundant premises.
berghofe@13618
  4568
berghofe@13618
  4569
  - The simplifier trace now shows the names of the applied rewrite rules
berghofe@13618
  4570
nipkow@13829
  4571
  - You can limit the number of recursive invocations of the simplifier
nipkow@13829
  4572
    during conditional rewriting (where the simplifie tries to solve the
nipkow@13829
  4573
    conditions before applying the rewrite rule):
nipkow@13829
  4574
    ML "simp_depth_limit := n"
nipkow@13829
  4575
    where n is an integer. Thus you can force termination where previously
nipkow@13829
  4576
    the simplifier would diverge.
nipkow@13829
  4577
ballarin@13835
  4578
  - Accepts free variables as head terms in congruence rules.  Useful in Isar.
nipkow@13829
  4579
ballarin@13938
  4580
  - No longer aborts on failed congruence proof.  Instead, the
ballarin@13938
  4581
    congruence is ignored.
ballarin@13938
  4582
berghofe@14008
  4583
* Pure: New generic framework for extracting programs from constructive
berghofe@14008
  4584
  proofs. See HOL/Extraction.thy for an example instantiation, as well
berghofe@14008
  4585
  as HOL/Extraction for some case studies.
berghofe@14008
  4586
nipkow@13868
  4587
* Pure: The main goal of the proof state is no longer shown by default, only
nipkow@13868
  4588
the subgoals. This behaviour is controlled by a new flag.
ballarin@13835
  4589
   PG menu: Isabelle/Isar -> Settings -> Show Main Goal
nipkow@13815
  4590
(ML: Proof.show_main_goal).
nipkow@13815
  4591
nipkow@13815
  4592
* Pure: You can find all matching introduction rules for subgoal 1, i.e. all
nipkow@13815
  4593
rules whose conclusion matches subgoal 1:
nipkow@13815
  4594
      PG menu: Isabelle/Isar -> Show me -> matching rules
nipkow@13815
  4595
The rules are ordered by how closely they match the subgoal.
nipkow@13815
  4596
In particular, rules that solve a subgoal outright are displayed first
nipkow@13815
  4597
(or rather last, the way they are printed).
nipkow@13815
  4598
(ML: ProofGeneral.print_intros())
nipkow@13815
  4599
nipkow@13815
  4600
* Pure: New flag trace_unify_fail causes unification to print
nipkow@13781
  4601
diagnostic information (PG: in trace buffer) when it fails. This is
nipkow@13781
  4602
useful for figuring out why single step proofs like rule, erule or
nipkow@13781
  4603
assumption failed.
nipkow@13781
  4604
nipkow@13815
  4605
* Pure: Locale specifications now produce predicate definitions
wenzelm@13410
  4606
according to the body of text (covering assumptions modulo local
wenzelm@13410
  4607
definitions); predicate "loc_axioms" covers newly introduced text,
wenzelm@13410
  4608
while "loc" is cumulative wrt. all included locale expressions; the
wenzelm@13410
  4609
latter view is presented only on export into the global theory
wenzelm@13410
  4610
context; potential INCOMPATIBILITY, use "(open)" option to fall back
wenzelm@13410
  4611
on the old view without predicates;
wenzelm@13410
  4612
wenzelm@13459
  4613
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm@13459
  4614
parameters (as in CASL, for example); just specify something like
wenzelm@13459
  4615
``var x + var y + struct M'' as import;
wenzelm@13459
  4616
wenzelm@13463
  4617
* Pure: improved thms_containing: proper indexing of facts instead of
wenzelm@13463
  4618
raw theorems; check validity of results wrt. current name space;
wenzelm@13463
  4619
include local facts of proof configuration (also covers active
wenzelm@13541
  4620
locales), cover fixed variables in index; may use "_" in term
wenzelm@13541
  4621
specification; an optional limit for the number of printed facts may
wenzelm@13541
  4622
be given (the default is 40);
wenzelm@13541
  4623
wenzelm@13541
  4624
* Pure: disallow duplicate fact bindings within new-style theory files
wenzelm@13541
  4625
(batch-mode only);
wenzelm@13540
  4626
wenzelm@13463
  4627
* Provers: improved induct method: assumptions introduced by case
wenzelm@13463
  4628
"foo" are split into "foo.hyps" (from the rule) and "foo.prems" (from
wenzelm@13463
  4629
the goal statement); "foo" still refers to all facts collectively;
wenzelm@13463
  4630
paulson@13550
  4631
* Provers: the function blast.overloaded has been removed: all constants
paulson@13550
  4632
are regarded as potentially overloaded, which improves robustness in exchange
paulson@13550
  4633
for slight decrease in efficiency;
paulson@13550
  4634
nipkow@13781
  4635
* Provers/linorder: New generic prover for transitivity reasoning over
nipkow@13781
  4636
linear orders.  Note: this prover is not efficient!
nipkow@13781
  4637
wenzelm@13522
  4638
* Isar: preview of problems to finish 'show' now produce an error
wenzelm@13522
  4639
rather than just a warning (in interactive mode);
wenzelm@13522
  4640
wenzelm@13280
  4641
nipkow@13158
  4642
*** HOL ***
nipkow@13158
  4643
nipkow@13899
  4644
* arith(_tac)
nipkow@13899
  4645
nipkow@13899
  4646
 - Produces a counter example if it cannot prove a goal.
nipkow@13899
  4647
   Note that the counter example may be spurious if the goal is not a formula
nipkow@13899
  4648
   of quantifier-free linear arithmetic.
nipkow@13899
  4649
   In ProofGeneral the counter example appears in the trace buffer.
nipkow@13899
  4650
nipkow@13899
  4651
 - Knows about div k and mod k where k is a numeral of type nat or int.
nipkow@13899
  4652
nipkow@13899
  4653
 - Calls full Presburger arithmetic (by Amine Chaieb) if quantifier-free
nipkow@13899
  4654
   linear arithmetic fails. This takes account of quantifiers and divisibility.
wenzelm@14731
  4655
   Presburger arithmetic can also be called explicitly via presburger(_tac).
nipkow@13899
  4656
nipkow@13899
  4657
* simp's arithmetic capabilities have been enhanced a bit: it now
nipkow@13899
  4658
takes ~= in premises into account (by performing a case split);
nipkow@13899
  4659
nipkow@13899
  4660
* simp reduces "m*(n div m) + n mod m" to n, even if the two summands
nipkow@13899
  4661
are distributed over a sum of terms;
nipkow@13899
  4662
ballarin@13735
  4663
* New tactic "trans_tac" and method "trans" instantiate
ballarin@13735
  4664
Provers/linorder.ML for axclasses "order" and "linorder" (predicates
wenzelm@14731
  4665
"<=", "<" and "=").
wenzelm@14731
  4666
wenzelm@14731
  4667
* function INCOMPATIBILITIES: Pi-sets have been redefined and moved from main
paulson@13587
  4668
HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp";
paulson@13587
  4669
wenzelm@13443
  4670
* 'typedef' command has new option "open" to suppress the set
wenzelm@13443
  4671
definition;
wenzelm@13443
  4672
wenzelm@13522
  4673
* functions Min and Max on finite sets have been introduced (theory
wenzelm@13522
  4674
Finite_Set);
nipkow@13492
  4675
wenzelm@13443
  4676
* attribute [symmetric] now works for relations as well; it turns
wenzelm@13443
  4677
(x,y) : R^-1 into (y,x) : R, and vice versa;
wenzelm@13443
  4678
nipkow@13613
  4679
* induct over a !!-quantified statement (say !!x1..xn):
nipkow@13613
  4680
  each "case" automatically performs "fix x1 .. xn" with exactly those names.
nipkow@13613
  4681
nipkow@13899
  4682
* Map: `empty' is no longer a constant but a syntactic abbreviation for
nipkow@13899
  4683
%x. None. Warning: empty_def now refers to the previously hidden definition
nipkow@13899
  4684
of the empty set.
nipkow@13899
  4685
ballarin@14018
  4686
* Algebra: formalization of classical algebra.  Intended as base for
ballarin@14018
  4687
any algebraic development in Isabelle.  Currently covers group theory
ballarin@14018
  4688
(up to Sylow's theorem) and ring theory (Universal Property of
ballarin@14018
  4689
Univariate Polynomials).  Contributions welcome;
paulson@13960
  4690
paulson@13960
  4691
* GroupTheory: deleted, since its material has been moved to Algebra;
paulson@13960
  4692
wenzelm@14731
  4693
* Complex: new directory of the complex numbers with numeric constants,
wenzelm@14731
  4694
nonstandard complex numbers, and some complex analysis, standard and
paulson@13966
  4695
nonstandard (Jacques Fleuriot);
paulson@13966
  4696
paulson@13966
  4697
* HOL-Complex: new image for analysis, replacing HOL-Real and HOL-Hyperreal;
paulson@13966
  4698
wenzelm@14731
  4699
* Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques
paulson@13966
  4700
Fleuriot);
paulson@13960
  4701
wenzelm@13549
  4702
* Real/HahnBanach: updated and adapted to locales;
wenzelm@13549
  4703
ballarin@13995
  4704
* NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad,
ballarin@13995
  4705
Gray and Kramer);
paulson@13872
  4706
paulson@13872
  4707
* UNITY: added the Meier-Sanders theory of progress sets;
paulson@13872
  4708
kleing@14011
  4709
* MicroJava: bytecode verifier and lightweight bytecode verifier
kleing@14011
  4710
as abstract algorithms, instantiated to the JVM;
kleing@14011
  4711
schirmer@14010
  4712
* Bali: Java source language formalization. Type system, operational
schirmer@14010
  4713
semantics, axiomatic semantics. Supported language features:
schirmer@14010
  4714
classes, interfaces, objects,virtual methods, static methods,
schirmer@14010
  4715
static/instance fields, arrays, access modifiers, definite
schirmer@14010
  4716
assignment, exceptions.
wenzelm@13549
  4717
kleing@14011
  4718
wenzelm@13549
  4719
*** ZF ***
wenzelm@13549
  4720
webertj@15154
  4721
* ZF/Constructible: consistency proof for AC (Gdel's constructible
wenzelm@13549
  4722
universe, etc.);
wenzelm@13549
  4723
paulson@13872
  4724
* Main ZF: virtually all theories converted to new-style format;
nipkow@13518
  4725
wenzelm@13280
  4726
wenzelm@13478
  4727
*** ML ***
wenzelm@13478
  4728
wenzelm@13478
  4729
* Pure: Tactic.prove provides sane interface for internal proofs;
wenzelm@13478
  4730
omits the infamous "standard" operation, so this is more appropriate
wenzelm@13478
  4731
than prove_goalw_cterm in many situations (e.g. in simprocs);
wenzelm@13478
  4732
wenzelm@13478
  4733
* Pure: improved error reporting of simprocs;
wenzelm@13478
  4734
wenzelm@13478
  4735
* Provers: Simplifier.simproc(_i) provides sane interface for setting
wenzelm@13478
  4736
up simprocs;
wenzelm@13478
  4737
wenzelm@13478
  4738
kleing@13953
  4739
*** Document preparation ***
kleing@13953
  4740
kleing@13953
  4741
* uses \par instead of \\ for line breaks in theory text. This may
kleing@13953
  4742
shift some page breaks in large documents. To get the old behaviour
kleing@13953
  4743
use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex.
kleing@13953
  4744
wenzelm@14731
  4745
* minimized dependencies of isabelle.sty and isabellesym.sty on
kleing@13953
  4746
other packages
kleing@13953
  4747
kleing@13953
  4748
* \<euro> now needs package babel/greek instead of marvosym (which
kleing@13953
  4749
broke \Rightarrow)
kleing@13953
  4750
wenzelm@14731
  4751
* normal size for \<zero>...\<nine> (uses \mathbf instead of
kleing@13954
  4752
textcomp package)
kleing@13953
  4753
wenzelm@13280
  4754
wenzelm@14572
  4755
wenzelm@12984
  4756
New in Isabelle2002 (March 2002)
wenzelm@12984
  4757
--------------------------------
wenzelm@11474
  4758
wenzelm@11572
  4759
*** Document preparation ***
wenzelm@11572
  4760
wenzelm@11842
  4761
* greatly simplified document preparation setup, including more
wenzelm@11842
  4762
graceful interpretation of isatool usedir -i/-d/-D options, and more
wenzelm@11842
  4763
instructive isatool mkdir; users should basically be able to get
wenzelm@12899
  4764
started with "isatool mkdir HOL Test && isatool make"; alternatively,
wenzelm@12899
  4765
users may run a separate document processing stage manually like this:
wenzelm@12899
  4766
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm@11842
  4767
wenzelm@11842
  4768
* theory dependency graph may now be incorporated into documents;
wenzelm@11842
  4769
isatool usedir -g true will produce session_graph.eps/.pdf for use
wenzelm@11842
  4770
with \includegraphics of LaTeX;
wenzelm@11842
  4771
wenzelm@11864
  4772
* proper spacing of consecutive markup elements, especially text
wenzelm@11864
  4773
blocks after section headings;
wenzelm@11864
  4774
wenzelm@11572
  4775
* support bold style (for single symbols only), input syntax is like
wenzelm@11572
  4776
this: "\<^bold>\<alpha>" or "\<^bold>A";
wenzelm@11572
  4777
wenzelm@11814
  4778
* \<bullet> is now output as bold \cdot by default, which looks much
wenzelm@11572
  4779
better in printed text;
wenzelm@11572
  4780
wenzelm@11712
  4781
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm@11712
  4782
note that these symbols are currently unavailable in Proof General /
wenzelm@12769
  4783
X-Symbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>;
wenzelm@12690
  4784
wenzelm@12690
  4785
* isatool latex no longer depends on changed TEXINPUTS, instead
wenzelm@12690
  4786
isatool document copies the Isabelle style files to the target
wenzelm@12690
  4787
location;
wenzelm@11712
  4788
wenzelm@11572
  4789
wenzelm@11633
  4790
*** Isar ***
wenzelm@11633
  4791
wenzelm@12312
  4792
* Pure/Provers: improved proof by cases and induction;
wenzelm@12280
  4793
  - 'case' command admits impromptu naming of parameters (such as
wenzelm@12280
  4794
    "case (Suc n)");
wenzelm@12280
  4795
  - 'induct' method divinates rule instantiation from the inductive
wenzelm@12280
  4796
    claim; no longer requires excessive ?P bindings for proper
wenzelm@12280
  4797
    instantiation of cases;
wenzelm@12280
  4798
  - 'induct' method properly enumerates all possibilities of set/type
wenzelm@12280
  4799
    rules; as a consequence facts may be also passed through *type*
wenzelm@12280
  4800
    rules without further ado;
wenzelm@12280
  4801
  - 'induct' method now derives symbolic cases from the *rulified*
wenzelm@12280
  4802
    rule (before it used to rulify cases stemming from the internal
wenzelm@12280
  4803
    atomized version); this means that the context of a non-atomic
wenzelm@12280
  4804
    statement becomes is included in the hypothesis, avoiding the
wenzelm@12280
  4805
    slightly cumbersome show "PROP ?case" form;
wenzelm@12280
  4806
  - 'induct' may now use elim-style induction rules without chaining
wenzelm@12280
  4807
    facts, using ``missing'' premises from the goal state; this allows
wenzelm@12280
  4808
    rules stemming from inductive sets to be applied in unstructured
wenzelm@12280
  4809
    scripts, while still benefitting from proper handling of non-atomic
wenzelm@12280
  4810
    statements; NB: major inductive premises need to be put first, all
wenzelm@12280
  4811
    the rest of the goal is passed through the induction;
wenzelm@12280
  4812
  - 'induct' proper support for mutual induction involving non-atomic
wenzelm@12280
  4813
    rule statements (uses the new concept of simultaneous goals, see
wenzelm@12280
  4814
    below);
wenzelm@12853
  4815
  - append all possible rule selections, but only use the first
wenzelm@12853
  4816
    success (no backtracking);
wenzelm@11995
  4817
  - removed obsolete "(simplified)" and "(stripped)" options of methods;
wenzelm@12754
  4818
  - undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm@12754
  4819
  - added 'print_induct_rules' (covered by help item in recent Proof
wenzelm@12754
  4820
    General versions);
wenzelm@11995
  4821
  - moved induct/cases attributes to Pure, methods to Provers;
wenzelm@11995
  4822
  - generic method setup instantiated for FOL and HOL;
wenzelm@11986
  4823
wenzelm@12163
  4824
* Pure: support multiple simultaneous goal statements, for example
wenzelm@12163
  4825
"have a: A and b: B" (same for 'theorem' etc.); being a pure
wenzelm@12163
  4826
meta-level mechanism, this acts as if several individual goals had
wenzelm@12163
  4827
been stated separately; in particular common proof methods need to be
wenzelm@12163
  4828
repeated in order to cover all claims; note that a single elimination
wenzelm@12163
  4829
step is *not* sufficient to establish the two conjunctions, so this
wenzelm@12163
  4830
fails:
wenzelm@12163
  4831
wenzelm@12163
  4832
  assume "A & B" then have A and B ..   (*".." fails*)
wenzelm@12163
  4833
wenzelm@12163
  4834
better use "obtain" in situations as above; alternative refer to
wenzelm@12163
  4835
multi-step methods like 'auto', 'simp_all', 'blast+' etc.;
wenzelm@12163
  4836
wenzelm@12078
  4837
* Pure: proper integration with ``locales''; unlike the original
webertj@15154
  4838
version by Florian Kammller, Isar locales package high-level proof
wenzelm@12078
  4839
contexts rather than raw logical ones (e.g. we admit to include
wenzelm@12280
  4840
attributes everywhere); operations on locales include merge and
wenzelm@12964
  4841
rename; support for implicit arguments (``structures''); simultaneous
wenzelm@12964
  4842
type-inference over imports and text; see also HOL/ex/Locales.thy for
wenzelm@12964
  4843
some examples;
wenzelm@12078
  4844
wenzelm@12707
  4845
* Pure: the following commands have been ``localized'', supporting a
wenzelm@12707
  4846
target locale specification "(in name)": 'lemma', 'theorem',
wenzelm@12707
  4847
'corollary', 'lemmas', 'theorems', 'declare'; the results will be
wenzelm@12707
  4848
stored both within the locale and at the theory level (exported and
wenzelm@12707
  4849
qualified by the locale name);
wenzelm@12707
  4850
wenzelm@12964
  4851
* Pure: theory goals may now be specified in ``long'' form, with
wenzelm@12964
  4852
ad-hoc contexts consisting of arbitrary locale elements. for example
wenzelm@12964
  4853
``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and
wenzelm@12964
  4854
definitions may be given, too); the result is a meta-level rule with
wenzelm@12964
  4855
the context elements being discharged in the obvious way;
wenzelm@12964
  4856
wenzelm@12964
  4857
* Pure: new proof command 'using' allows to augment currently used
wenzelm@12964
  4858
facts after a goal statement ('using' is syntactically analogous to
wenzelm@12964
  4859
'apply', but acts on the goal's facts only); this allows chained facts
wenzelm@12964
  4860
to be separated into parts given before and after a claim, as in
wenzelm@12964
  4861
``from a and b have C using d and e <proof>'';
wenzelm@12078
  4862
wenzelm@11722
  4863
* Pure: renamed "antecedent" case to "rule_context";
wenzelm@11722
  4864
wenzelm@12964
  4865
* Pure: new 'judgment' command records explicit information about the
wenzelm@12964
  4866
object-logic embedding (used by several tools internally); no longer
wenzelm@12964
  4867
use hard-wired "Trueprop";
wenzelm@12964
  4868
wenzelm@11738
  4869
* Pure: added 'corollary' command;
wenzelm@11738
  4870
wenzelm@11722
  4871
* Pure: fixed 'token_translation' command;
wenzelm@11722
  4872
wenzelm@11899
  4873
* Pure: removed obsolete 'exported' attribute;
wenzelm@11899
  4874
wenzelm@11933
  4875
* Pure: dummy pattern "_" in is/let is now automatically lifted over
wenzelm@11933
  4876
bound variables: "ALL x. P x --> Q x" (is "ALL x. _ --> ?C x")
wenzelm@11899
  4877
supersedes more cumbersome ... (is "ALL x. _ x --> ?C x");
wenzelm@11899
  4878
wenzelm@11952
  4879
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm@11952
  4880
statements (atomic meta-level propositions); setup controlled via
wenzelm@11952
  4881
rewrite rules declarations of 'atomize' attribute; example
wenzelm@11952
  4882
application: 'induct' method with proper rule statements in improper
wenzelm@11952
  4883
proof *scripts*;
wenzelm@11952
  4884
wenzelm@12106
  4885
* Pure: emulation of instantiation tactics (rule_tac, cut_tac, etc.)
wenzelm@12106
  4886
now consider the syntactic context of assumptions, giving a better
wenzelm@12106
  4887
chance to get type-inference of the arguments right (this is
wenzelm@12106
  4888
especially important for locales);
wenzelm@12106
  4889
wenzelm@12312
  4890
* Pure: "sorry" no longer requires quick_and_dirty in interactive
wenzelm@12312
  4891
mode;
wenzelm@12312
  4892
wenzelm@12405
  4893
* Pure/obtain: the formal conclusion "thesis", being marked as
wenzelm@12405
  4894
``internal'', may no longer be reference directly in the text;
wenzelm@12405
  4895
potential INCOMPATIBILITY, may need to use "?thesis" in rare
wenzelm@12405
  4896
situations;
wenzelm@12405
  4897
wenzelm@12405
  4898
* Pure: generic 'sym' attribute which declares a rule both as pure
wenzelm@12405
  4899
'elim?' and for the 'symmetric' operation;
wenzelm@12405
  4900
wenzelm@12877
  4901
* Pure: marginal comments ``--'' may now occur just anywhere in the
wenzelm@12877
  4902
text; the fixed correlation with particular command syntax has been
wenzelm@12877
  4903
discontinued;
wenzelm@12877
  4904
berghofe@13023
  4905
* Pure: new method 'rules' is particularly well-suited for proof
berghofe@13023
  4906
search in intuitionistic logic; a bit slower than 'blast' or 'fast',
berghofe@13023
  4907
but often produces more compact proof terms with less detours;
berghofe@13023
  4908
wenzelm@12364
  4909
* Pure/Provers/classical: simplified integration with pure rule
wenzelm@12364
  4910
attributes and methods; the classical "intro?/elim?/dest?"
wenzelm@12364
  4911
declarations coincide with the pure ones; the "rule" method no longer
wenzelm@12364
  4912
includes classically swapped intros; "intro" and "elim" methods no
wenzelm@12364
  4913
longer pick rules from the context; also got rid of ML declarations
wenzelm@12364
  4914
AddXIs/AddXEs/AddXDs; all of this has some potential for
wenzelm@12364
  4915
INCOMPATIBILITY;
wenzelm@12364
  4916
wenzelm@12405
  4917
* Provers/classical: attribute 'swapped' produces classical inversions
wenzelm@12405
  4918
of introduction rules;
wenzelm@12405
  4919
wenzelm@12364
  4920
* Provers/simplifier: 'simplified' attribute may refer to explicit
wenzelm@12364
  4921
rules instead of full simplifier context; 'iff' attribute handles
wenzelm@12364
  4922
conditional rules;
wenzelm@11936
  4923
wenzelm@11745
  4924
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm@11745
  4925
wenzelm@11690
  4926
* HOL: 'recdef' now fails on unfinished automated proofs, use
wenzelm@11633
  4927
"(permissive)" option to recover old behavior;
wenzelm@11633
  4928
wenzelm@11933
  4929
* HOL: 'inductive' no longer features separate (collective) attributes
wenzelm@11933
  4930
for 'intros' (was found too confusing);
wenzelm@11933
  4931
wenzelm@12405
  4932
* HOL: properly declared induction rules less_induct and
wenzelm@12405
  4933
wf_induct_rule;
wenzelm@12405
  4934
kleing@11788
  4935
wenzelm@11474
  4936
*** HOL ***
wenzelm@11474
  4937
wenzelm@11702
  4938
* HOL: moved over to sane numeral syntax; the new policy is as
wenzelm@11702
  4939
follows:
wenzelm@11702
  4940
wenzelm@11702
  4941
  - 0 and 1 are polymorphic constants, which are defined on any
wenzelm@11702
  4942
  numeric type (nat, int, real etc.);
wenzelm@11702
  4943
wenzelm@11702
  4944
  - 2, 3, 4, ... and -1, -2, -3, ... are polymorphic numerals, based
wenzelm@11702
  4945
  binary representation internally;
wenzelm@11702
  4946
wenzelm@11702
  4947
  - type nat has special constructor Suc, and generally prefers Suc 0
wenzelm@11702
  4948
  over 1::nat and Suc (Suc 0) over 2::nat;
wenzelm@11702
  4949
wenzelm@12364
  4950
This change may cause significant problems of INCOMPATIBILITY; here
wenzelm@12364
  4951
are some hints on converting existing sources:
wenzelm@11702
  4952
wenzelm@11702
  4953
  - due to the new "num" token, "-0" and "-1" etc. are now atomic
wenzelm@11702
  4954
  entities, so expressions involving "-" (unary or binary minus) need
wenzelm@11702
  4955
  to be spaced properly;
wenzelm@11702
  4956
wenzelm@11702
  4957
  - existing occurrences of "1" may need to be constraint "1::nat" or
wenzelm@11702
  4958
  even replaced by Suc 0; similar for old "2";
wenzelm@11702
  4959
wenzelm@11702
  4960
  - replace "#nnn" by "nnn", and "#-nnn" by "-nnn";
wenzelm@11702
  4961
wenzelm@11702
  4962
  - remove all special provisions on numerals in proofs;
wenzelm@11702
  4963
wenzelm@13042
  4964
* HOL: simp rules nat_number expand numerals on nat to Suc/0
wenzelm@12837
  4965
representation (depends on bin_arith_simps in the default context);
wenzelm@12837
  4966
wenzelm@12736
  4967
* HOL: symbolic syntax for x^2 (numeral 2);
wenzelm@12736
  4968
wenzelm@12335
  4969
* HOL: the class of all HOL types is now called "type" rather than
wenzelm@12335
  4970
"term"; INCOMPATIBILITY, need to adapt references to this type class
wenzelm@12335
  4971
in axclass/classes, instance/arities, and (usually rare) occurrences
wenzelm@12335
  4972
in typings (of consts etc.); internally the class is called
wenzelm@12335
  4973
"HOL.type", ML programs should refer to HOLogic.typeS;
wenzelm@12335
  4974
wenzelm@12280
  4975
* HOL/record package improvements:
wenzelm@12280
  4976
  - new derived operations "fields" to build a partial record section,
wenzelm@12280
  4977
    "extend" to promote a fixed record to a record scheme, and
wenzelm@12280
  4978
    "truncate" for the reverse; cf. theorems "xxx.defs", which are *not*
wenzelm@12280
  4979
    declared as simp by default;
wenzelm@12587
  4980
  - shared operations ("more", "fields", etc.) now need to be always
wenzelm@12587
  4981
    qualified) --- potential INCOMPATIBILITY;
wenzelm@12280
  4982
  - removed "make_scheme" operations (use "make" with "extend") --
wenzelm@12280
  4983
    INCOMPATIBILITY;
wenzelm@11937
  4984
  - removed "more" class (simply use "term") -- INCOMPATIBILITY;
wenzelm@12253
  4985
  - provides cases/induct rules for use with corresponding Isar
wenzelm@12253
  4986
    methods (for concrete records, record schemes, concrete more
wenzelm@12280
  4987
    parts, and schematic more parts -- in that order);
wenzelm@11930
  4988
  - internal definitions directly based on a light-weight abstract
wenzelm@11930
  4989
    theory of product types over typedef rather than datatype;
wenzelm@11930
  4990
berghofe@13023
  4991
* HOL: generic code generator for generating executable ML code from
berghofe@13023
  4992
specifications; specific support for HOL constructs such as inductive
berghofe@13023
  4993
datatypes and sets, as well as recursive functions; can be invoked
berghofe@13023
  4994
via 'generate_code' theory section;
berghofe@13023
  4995
wenzelm@11933
  4996
* HOL: canonical cases/induct rules for n-tuples (n = 3..7);
wenzelm@11933
  4997
paulson@13824
  4998
* HOL: consolidated and renamed several theories.  In particular:
wenzelm@14731
  4999
        Ord.thy has been absorbed into HOL.thy
wenzelm@14731
  5000
        String.thy has been absorbed into List.thy
wenzelm@14731
  5001
wenzelm@11802
  5002
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm@11802
  5003
(beware of argument permutation!);
wenzelm@11802
  5004
wenzelm@11657
  5005
* HOL: linorder_less_split superseded by linorder_cases;
wenzelm@11657
  5006
wenzelm@12917
  5007
* HOL/List: "nodups" renamed to "distinct";
nipkow@12889
  5008
wenzelm@11633
  5009
* HOL: added "The" definite description operator; move Hilbert's "Eps"
paulson@13824
  5010
to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES:
paulson@13824
  5011
  - Ex_def has changed, now need to use some_eq_ex
wenzelm@11437
  5012
wenzelm@11572
  5013
* HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so
wenzelm@11572
  5014
in this (rare) case use:
wenzelm@11572
  5015
wenzelm@11572
  5016
  delSWrapper "split_all_tac"
wenzelm@11572
  5017
  addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac)
wenzelm@11572
  5018
wenzelm@11572
  5019
* HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS
wenzelm@11474
  5020
MAY FAIL;
nipkow@11361
  5021
wenzelm@11572
  5022
* HOL: introduced f^n = f o ... o f; warning: due to the limits of
wenzelm@11572
  5023
Isabelle's type classes, ^ on functions and relations has too general
wenzelm@11572
  5024
a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be
wenzelm@11572
  5025
necessary to attach explicit type constraints;
nipkow@11307
  5026
wenzelm@12917
  5027
* HOL/Relation: the prefix name of the infix "O" has been changed from
wenzelm@12917
  5028
"comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been
wenzelm@12917
  5029
renamed accordingly (eg "compI" -> "rel_compI").
nipkow@12489
  5030
wenzelm@11487
  5031
* HOL: syntax translations now work properly with numerals and records
wenzelm@11487
  5032
expressions;
wenzelm@11474
  5033
wenzelm@12457
  5034
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm@12457
  5035
of "lam" -- INCOMPATIBILITY;
wenzelm@11474
  5036
wenzelm@11933
  5037
* HOL: got rid of some global declarations (potential INCOMPATIBILITY
wenzelm@11933
  5038
for ML tools): const "()" renamed "Product_Type.Unity", type "unit"
wenzelm@11933
  5039
renamed "Product_Type.unit";
wenzelm@11611
  5040
nipkow@12564
  5041
* HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl
nipkow@12564
  5042
wenzelm@12924
  5043
* HOL: removed obsolete theorem "optionE" (use "option.exhaust", or
wenzelm@12924
  5044
the "cases" method);
wenzelm@12924
  5045
wenzelm@12597
  5046
* HOL/GroupTheory: group theory examples including Sylow's theorem (by
webertj@15154
  5047
Florian Kammller);
wenzelm@12597
  5048
wenzelm@12608
  5049
* HOL/IMP: updated and converted to new-style theory format; several
wenzelm@12608
  5050
parts turned into readable document, with proper Isar proof texts and
wenzelm@12608
  5051
some explanations (by Gerwin Klein);
wenzelm@12597
  5052
wenzelm@12734
  5053
* HOL-Real: added Complex_Numbers (by Gertrud Bauer);
wenzelm@12734
  5054
wenzelm@12690
  5055
* HOL-Hyperreal is now a logic image;
wenzelm@12690
  5056
wenzelm@11611
  5057
wenzelm@12022
  5058
*** HOLCF ***
wenzelm@12022
  5059
wenzelm@12622
  5060
* Isar: consts/constdefs supports mixfix syntax for continuous
wenzelm@12622
  5061
operations;
wenzelm@12622
  5062
wenzelm@12622
  5063
* Isar: domain package adapted to new-style theory format, e.g. see
wenzelm@12622
  5064
HOLCF/ex/Dnat.thy;
wenzelm@12622
  5065
wenzelm@12622
  5066
* theory Lift: proper use of rep_datatype lift instead of ML hacks --
wenzelm@12280
  5067
potential INCOMPATIBILITY; now use plain induct_tac instead of former
wenzelm@12280
  5068
lift.induct_tac, always use UU instead of Undef;
wenzelm@12022
  5069
wenzelm@12597
  5070
* HOLCF/IMP: updated and converted to new-style theory;
wenzelm@12597
  5071
wenzelm@12022
  5072
wenzelm@11474
  5073
*** ZF ***
wenzelm@11474
  5074
wenzelm@12622
  5075
* Isar: proper integration of logic-specific tools and packages,
wenzelm@12622
  5076
including theory commands '(co)inductive', '(co)datatype',
wenzelm@12622
  5077
'rep_datatype', 'inductive_cases', as well as methods 'ind_cases',
wenzelm@12622
  5078
'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC');
wenzelm@12622
  5079
wenzelm@12622
  5080
* theory Main no longer includes AC; for the Axiom of Choice, base
wenzelm@12622
  5081
your theory on Main_ZFC;
wenzelm@12622
  5082
wenzelm@12622
  5083
* the integer library now covers quotients and remainders, with many
wenzelm@12622
  5084
laws relating division to addition, multiplication, etc.;
paulson@12563
  5085
wenzelm@12280
  5086
* ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a
wenzelm@12280
  5087
typeless version of the formalism;
wenzelm@12280
  5088
wenzelm@13025
  5089
* ZF/AC, Coind, IMP, Resid: updated and converted to new-style theory
wenzelm@13025
  5090
format;
wenzelm@12608
  5091
wenzelm@12280
  5092
* ZF/Induct: new directory for examples of inductive definitions,
wenzelm@12608
  5093
including theory Multiset for multiset orderings; converted to
wenzelm@12608
  5094
new-style theory format;
wenzelm@12177
  5095
wenzelm@13025
  5096
* ZF: many new theorems about lists, ordinals, etc.;
paulson@12850
  5097
wenzelm@11474
  5098
wenzelm@11474
  5099
*** General ***
wenzelm@11474
  5100
wenzelm@12280
  5101
* Pure/kernel: meta-level proof terms (by Stefan Berghofer); reference
wenzelm@12280
  5102
variable proof controls level of detail: 0 = no proofs (only oracle
wenzelm@12280
  5103
dependencies), 1 = lemma dependencies, 2 = compact proof terms; see
wenzelm@12280
  5104
also ref manual for further ML interfaces;
wenzelm@12280
  5105
wenzelm@12280
  5106
* Pure/axclass: removed obsolete ML interface
wenzelm@12280
  5107
goal_subclass/goal_arity;
wenzelm@12280
  5108
wenzelm@12280
  5109
* Pure/syntax: new token syntax "num" for plain numerals (without "#"
wenzelm@12280
  5110
of "xnum"); potential INCOMPATIBILITY, since -0, -1 etc. are now
wenzelm@12280
  5111
separate tokens, so expressions involving minus need to be spaced
wenzelm@12280
  5112
properly;
wenzelm@12280
  5113
wenzelm@12312
  5114
* Pure/syntax: support non-oriented infixes, using keyword "infix"
wenzelm@12312
  5115
rather than "infixl" or "infixr";
wenzelm@12312
  5116
wenzelm@12312
  5117
* Pure/syntax: concrete syntax for dummy type variables admits genuine
wenzelm@12312
  5118
sort constraint specifications in type inference; e.g. "x::_::foo"
wenzelm@12312
  5119
ensures that the type of "x" is of sort "foo" (but not necessarily a
wenzelm@12312
  5120
type variable);
wenzelm@12280
  5121
wenzelm@12280
  5122
* Pure/syntax: print modes "type_brackets" and "no_type_brackets"
wenzelm@12280
  5123
control output of nested => (types); the default behavior is
wenzelm@12280
  5124
"type_brackets";
wenzelm@12280
  5125
wenzelm@12280
  5126
* Pure/syntax: builtin parse translation for "_constify" turns valued
wenzelm@11817
  5127
tokens into AST constants;
wenzelm@11474
  5128
wenzelm@12280
  5129
* Pure/syntax: prefer later declarations of translations and print
wenzelm@12280
  5130
translation functions; potential INCOMPATIBILITY: need to reverse
wenzelm@12280
  5131
multiple declarations for same syntax element constant;
wenzelm@12280
  5132
wenzelm@12832
  5133
* Pure/show_hyps reset by default (in accordance to existing Isar
wenzelm@12832
  5134
practice);
wenzelm@12832
  5135
wenzelm@12280
  5136
* Provers/classical: renamed addaltern to addafter, addSaltern to
wenzelm@12280
  5137
addSafter;
wenzelm@12280
  5138
wenzelm@12280
  5139
* Provers/clasimp: ``iff'' declarations now handle conditional rules
wenzelm@12280
  5140
as well;
wenzelm@12253
  5141
wenzelm@12538
  5142
* system: tested support for MacOS X; should be able to get Isabelle +
wenzelm@12538
  5143
Proof General to work in a plain Terminal after installing Poly/ML
wenzelm@12538
  5144
(e.g. from the Isabelle distribution area) and GNU bash alone
wenzelm@12538
  5145
(e.g. from http://www.apple.com); full X11, XEmacs and X-Symbol
wenzelm@12538
  5146
support requires further installations, e.g. from
wenzelm@12538
  5147
http://fink.sourceforge.net/);
wenzelm@12538
  5148
wenzelm@12280
  5149
* system: support Poly/ML 4.1.1 (able to manage larger heaps);
wenzelm@11551
  5150
wenzelm@12753
  5151
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm@12753
  5152
of 40 MB), cf. ML_OPTIONS;
wenzelm@12753
  5153
wenzelm@11633
  5154
* system: Proof General keywords specification is now part of the
wenzelm@11633
  5155
Isabelle distribution (see etc/isar-keywords.el);
wenzelm@11633
  5156
wenzelm@12728
  5157
* system: support for persistent Proof General sessions (refrain from
wenzelm@12728
  5158
outdating all loaded theories on startup); user may create writable
wenzelm@12728
  5159
logic images like this: ``isabelle -q HOL Test'';
wenzelm@12597
  5160
wenzelm@11551
  5161
* system: smart selection of Isabelle process versus Isabelle
wenzelm@11572
  5162
interface, accommodates case-insensitive file systems (e.g. HFS+); may
wenzelm@11572
  5163
run both "isabelle" and "Isabelle" even if file names are badly
wenzelm@11572
  5164
damaged (executable inspects the case of the first letter of its own
wenzelm@11572
  5165
name); added separate "isabelle-process" and "isabelle-interface";
wenzelm@11551
  5166
wenzelm@12472
  5167
* system: refrain from any attempt at filtering input streams; no
wenzelm@12472
  5168
longer support ``8bit'' encoding of old isabelle font, instead proper
wenzelm@12472
  5169
iso-latin characters may now be used; the related isatools
wenzelm@12472
  5170
"symbolinput" and "nonascii" have disappeared as well;
wenzelm@12472
  5171
wenzelm@12472
  5172
* system: removed old "xterm" interface (the print modes "xterm" and
wenzelm@12472
  5173
"xterm_color" are still available for direct use in a suitable
wenzelm@12472
  5174
terminal);
wenzelm@12472
  5175
paulson@11314
  5176
oheimb@11169
  5177
wenzelm@11062
  5178
New in Isabelle99-2 (February 2001)
wenzelm@11062
  5179
-----------------------------------
wenzelm@11062
  5180
nipkow@10224
  5181
*** Overview of INCOMPATIBILITIES ***
nipkow@10224
  5182
paulson@11241
  5183
* HOL: please note that theories in the Library and elsewhere often use the
paulson@11241
  5184
new-style (Isar) format; to refer to their theorems in an ML script you must
wenzelm@12622
  5185
bind them to ML identifers by e.g.      val thm_name = thm "thm_name";
paulson@11241
  5186
wenzelm@11043
  5187
* HOL: inductive package no longer splits induction rule aggressively,
wenzelm@11043
  5188
but only as far as specified by the introductions given; the old
oheimb@11130
  5189
format may be recovered via ML function complete_split_rule or attribute
wenzelm@11043
  5190
'split_rule (complete)';
wenzelm@11043
  5191
wenzelm@10998
  5192
* HOL: induct renamed to lfp_induct, lfp_Tarski to lfp_unfold,
wenzelm@10998
  5193
gfp_Tarski to gfp_unfold;
nipkow@10224
  5194
paulson@10288
  5195
* HOL: contrapos, contrapos2 renamed to contrapos_nn, contrapos_pp;
paulson@10288
  5196
wenzelm@10858
  5197
* HOL: infix "dvd" now has priority 50 rather than 70 (because it is a
wenzelm@10858
  5198
relation); infix "^^" has been renamed "``"; infix "``" has been
wenzelm@10858
  5199
renamed "`"; "univalent" has been renamed "single_valued";
nipkow@10793
  5200
wenzelm@10998
  5201
* HOL/Real: "rinv" and "hrinv" replaced by overloaded "inverse"
wenzelm@10998
  5202
operation;
wenzelm@10998
  5203
nipkow@10868
  5204
* HOLCF: infix "`" has been renamed "$"; the symbol syntax is \<cdot>;
nipkow@10856
  5205
wenzelm@10391
  5206
* Isar: 'obtain' no longer declares "that" fact as simp/intro;
wenzelm@10391
  5207
wenzelm@10401
  5208
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm@10401
  5209
consequence, it is no longer monotonic wrt. the local goal context
wenzelm@10401
  5210
(which is now passed through the inductive cases);
wenzelm@10401
  5211
wenzelm@10976
  5212
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm@10976
  5213
\<gg> to \<ggreater>;
wenzelm@10976
  5214
nipkow@10224
  5215
wenzelm@10245
  5216
*** Document preparation ***
wenzelm@10245
  5217
wenzelm@10858
  5218
* \isabellestyle{NAME} selects version of Isabelle output (currently
wenzelm@10858
  5219
available: are "it" for near math-mode best-style output, "sl" for
wenzelm@10858
  5220
slanted text style, and "tt" for plain type-writer; if no
wenzelm@10858
  5221
\isabellestyle command is given, output is according to slanted
wenzelm@10858
  5222
type-writer);
wenzelm@10858
  5223
wenzelm@10322
  5224
* support sub/super scripts (for single symbols only), input syntax is
wenzelm@10322
  5225
like this: "A\<^sup>*" or "A\<^sup>\<star>";
wenzelm@10322
  5226
wenzelm@10858
  5227
* some more standard symbols; see Appendix A of the system manual for
wenzelm@11062
  5228
the complete list of symbols defined in isabellesym.sty;
wenzelm@10858
  5229
wenzelm@10998
  5230
* improved isabelle style files; more abstract symbol implementation
wenzelm@10998
  5231
(should now use \isamath{...} and \isatext{...} in custom symbol
wenzelm@10998
  5232
definitions);
wenzelm@10998
  5233
wenzelm@10634
  5234
* antiquotation @{goals} and @{subgoals} for output of *dynamic* goals
wenzelm@10634
  5235
state; Note that presentation of goal states does not conform to
wenzelm@10634
  5236
actual human-readable proof documents.  Please do not include goal
wenzelm@10634
  5237
states into document output unless you really know what you are doing!
wenzelm@10322
  5238
wenzelm@11062
  5239
* proper indentation of antiquoted output with proportional LaTeX
wenzelm@11062
  5240
fonts;
wenzelm@10862
  5241
wenzelm@11050
  5242
* no_document ML operator temporarily disables LaTeX document
wenzelm@11050
  5243
generation;
wenzelm@11050
  5244
wenzelm@11062
  5245
* isatool unsymbolize tunes sources for plain ASCII communication;
wenzelm@11062
  5246
wenzelm@10322
  5247
wenzelm@10306
  5248
*** Isar ***
wenzelm@10306
  5249
wenzelm@10547
  5250
* Pure: Isar now suffers initial goal statements to contain unbound
wenzelm@10547
  5251
schematic variables (this does not conform to actual readable proof
wenzelm@10547
  5252
documents, due to unpredictable outcome and non-compositional proof
wenzelm@10547
  5253
checking); users who know what they are doing may use schematic goals
wenzelm@10547
  5254
for Prolog-style synthesis of proven results;
wenzelm@10547
  5255
wenzelm@10391
  5256
* Pure: assumption method (an implicit finishing) now handles actual
wenzelm@10391
  5257
rules as well;
wenzelm@10391
  5258
wenzelm@10391
  5259
* Pure: improved 'obtain' --- moved to Pure, insert "that" into
wenzelm@10391
  5260
initial goal, declare "that" only as Pure intro (only for single
wenzelm@10391
  5261
steps); the "that" rule assumption may now be involved in implicit
wenzelm@10391
  5262
finishing, thus ".." becomes a feasible for trivial obtains;
wenzelm@10391
  5263
wenzelm@10391
  5264
* Pure: default proof step now includes 'intro_classes'; thus trivial
wenzelm@10391
  5265
instance proofs may be performed by "..";
wenzelm@10391
  5266
wenzelm@10391
  5267
* Pure: ?thesis / ?this / "..." now work for pure meta-level
wenzelm@10391
  5268
statements as well;
wenzelm@10306
  5269
wenzelm@11097
  5270
* Pure: more robust selection of calculational rules;
wenzelm@11097
  5271
wenzelm@10858
  5272
* Pure: the builtin notion of 'finished' goal now includes the ==-refl
wenzelm@10858
  5273
rule (as well as the assumption rule);
wenzelm@10858
  5274
wenzelm@10858
  5275
* Pure: 'thm_deps' command visualizes dependencies of theorems and
wenzelm@10858
  5276
lemmas, using the graph browser tool;
wenzelm@10858
  5277
wenzelm@10944
  5278
* Pure: predict failure of "show" in interactive mode;
wenzelm@10944
  5279
wenzelm@11016
  5280
* Pure: 'thms_containing' now takes actual terms as arguments;
wenzelm@11016
  5281
wenzelm@10401
  5282
* HOL: improved method 'induct' --- now handles non-atomic goals
wenzelm@10401
  5283
(potential INCOMPATIBILITY); tuned error handling;
wenzelm@10401
  5284
wenzelm@10557
  5285
* HOL: cases and induct rules now provide explicit hints about the
wenzelm@10547
  5286
number of facts to be consumed (0 for "type" and 1 for "set" rules);
wenzelm@10547
  5287
any remaining facts are inserted into the goal verbatim;
wenzelm@10547
  5288
wenzelm@10858
  5289
* HOL: local contexts (aka cases) may now contain term bindings as
wenzelm@10858
  5290
well; the 'cases' and 'induct' methods new provide a ?case binding for
wenzelm@10858
  5291
the result to be shown in each case;
wenzelm@10858
  5292
wenzelm@10770
  5293
* HOL: added 'recdef_tc' command;
wenzelm@10770
  5294
wenzelm@11016
  5295
* isatool convert assists in eliminating legacy ML scripts;
wenzelm@11016
  5296
wenzelm@10306
  5297
wenzelm@10245
  5298
*** HOL ***
wenzelm@10245
  5299
wenzelm@10245
  5300
* HOL/Library: a collection of generic theories to be used together
wenzelm@10245
  5301
with main HOL; the theory loader path already includes this directory
wenzelm@10245
  5302
by default; the following existing theories have been moved here:
wenzelm@10245
  5303
HOL/Induct/Multiset, HOL/Induct/Acc (as Accessible_Part), HOL/While
wenzelm@10337
  5304
(as While_Combinator), HOL/Lex/Prefix (as List_Prefix);
wenzelm@10245
  5305
wenzelm@10966
  5306
* HOL/Unix: "Some aspects of Unix file-system security", a typical
wenzelm@10966
  5307
modelling and verification task performed in Isabelle/HOL +
wenzelm@10966
  5308
Isabelle/Isar + Isabelle document preparation (by Markus Wenzel).
wenzelm@10966
  5309
wenzelm@11094
  5310
* HOL/Algebra: special summation operator SUM no longer exists, it has
wenzelm@11094
  5311
been replaced by setsum; infix 'assoc' now has priority 50 (like
wenzelm@11094
  5312
'dvd'); axiom 'one_not_zero' has been moved from axclass 'ring' to
wenzelm@11094
  5313
'domain', this makes the theory consistent with mathematical
wenzelm@11094
  5314
literature;
wenzelm@11094
  5315
wenzelm@10514
  5316
* HOL basics: added overloaded operations "inverse" and "divide"
wenzelm@10726
  5317
(infix "/"), syntax for generic "abs" operation, generic summation
wenzelm@11094
  5318
operator \<Sum>;
wenzelm@10452
  5319
wenzelm@10391
  5320
* HOL/typedef: simplified package, provide more useful rules (see also
wenzelm@10391
  5321
HOL/subset.thy);
wenzelm@10391
  5322
wenzelm@10915
  5323
* HOL/datatype: induction rule for arbitrarily branching datatypes is
wenzelm@10915
  5324
now expressed as a proper nested rule (old-style tactic scripts may
wenzelm@10915
  5325
require atomize_strip_tac to cope with non-atomic premises);
wenzelm@10915
  5326
wenzelm@10915
  5327
* HOL: renamed theory "Prod" to "Product_Type", renamed "split" rule
wenzelm@10915
  5328
to "split_conv" (old name still available for compatibility);
wenzelm@10915
  5329
wenzelm@10915
  5330
* HOL: improved concrete syntax for strings (e.g. allows translation
wenzelm@10915
  5331
rules with string literals);
wenzelm@10915
  5332
paulson@12245
  5333
* HOL-Real-Hyperreal: this extends HOL-Real with the hyperreals
paulson@12245
  5334
 and Fleuriot's mechanization of analysis, including the transcendental
paulson@12245
  5335
 functions for the reals;
paulson@10756
  5336
wenzelm@11094
  5337
* HOL/Real, HOL/Hyperreal: improved arithmetic simplification;
wenzelm@10391
  5338
wenzelm@10858
  5339
paulson@10474
  5340
*** CTT ***
paulson@10474
  5341
wenzelm@10547
  5342
* CTT: x-symbol support for Pi, Sigma, -->, : (membership); note that
wenzelm@10547
  5343
"lam" is displayed as TWO lambda-symbols
paulson@10474
  5344
wenzelm@10547
  5345
* CTT: theory Main now available, containing everything (that is, Bool
wenzelm@10547
  5346
and Arith);
wenzelm@10547
  5347
paulson@10474
  5348
wenzelm@10391
  5349
*** General ***
wenzelm@10391
  5350
wenzelm@10547
  5351
* Pure: the Simplifier has been implemented properly as a derived rule
wenzelm@10547
  5352
outside of the actual kernel (at last!); the overall performance
wenzelm@10547
  5353
penalty in practical applications is about 50%, while reliability of
wenzelm@10547
  5354
the Isabelle inference kernel has been greatly improved;
wenzelm@10547
  5355
wenzelm@11112
  5356
* print modes "brackets" and "no_brackets" control output of nested =>
wenzelm@11112
  5357
(types) and ==> (props); the default behaviour is "brackets";
wenzelm@11112
  5358
wenzelm@10391
  5359
* Provers: fast_tac (and friends) now handle actual object-logic rules
wenzelm@10391
  5360
as assumptions as well;
wenzelm@10391
  5361
wenzelm@11124
  5362
* system: support Poly/ML 4.0;
wenzelm@11124
  5363
wenzelm@11124
  5364
* system: isatool install handles KDE version 1 or 2;
wenzelm@11124
  5365
wenzelm@10391
  5366
wenzelm@10245
  5367
wenzelm@10103
  5368
New in Isabelle99-1 (October 2000)
wenzelm@10103
  5369
----------------------------------
wenzelm@8015
  5370
wenzelm@10003
  5371
*** Overview of INCOMPATIBILITIES ***
paulson@8014
  5372
wenzelm@8848
  5373
* HOL: simplification of natural numbers is much changed; to partly
wenzelm@8848
  5374
recover the old behaviour (e.g. to prevent n+n rewriting to #2*n)
wenzelm@8848
  5375
issue the following ML commands:
wenzelm@8848
  5376
wenzelm@8848
  5377
  Delsimprocs Nat_Numeral_Simprocs.cancel_numerals;
wenzelm@8848
  5378
  Delsimprocs [Nat_Numeral_Simprocs.combine_numerals];
paulson@8788
  5379
wenzelm@10129
  5380
* HOL: simplification no longer dives into case-expressions; this is
wenzelm@10129
  5381
controlled by "t.weak_case_cong" for each datatype t;
paulson@8967
  5382
wenzelm@10003
  5383
* HOL: nat_less_induct renamed to less_induct;
wenzelm@10003
  5384
wenzelm@10003
  5385
* HOL: systematic renaming of the SOME (Eps) rules, may use isatool
wenzelm@10003
  5386
fixsome to patch .thy and .ML sources automatically;
wenzelm@10003
  5387
wenzelm@10003
  5388
  select_equality  -> some_equality
wenzelm@10003
  5389
  select_eq_Ex     -> some_eq_ex
wenzelm@10003
  5390
  selectI2EX       -> someI2_ex
wenzelm@10003
  5391
  selectI2         -> someI2
wenzelm@10003
  5392
  selectI          -> someI
wenzelm@10003
  5393
  select1_equality -> some1_equality
wenzelm@10003
  5394
  Eps_sym_eq       -> some_sym_eq_trivial
wenzelm@10003
  5395
  Eps_eq           -> some_eq_trivial
wenzelm@10003
  5396
wenzelm@10003
  5397
* HOL: exhaust_tac on datatypes superceded by new generic case_tac;
wenzelm@10003
  5398
wenzelm@10003
  5399
* HOL: removed obsolete theorem binding expand_if (refer to split_if
wenzelm@10003
  5400
instead);
wenzelm@10003
  5401
wenzelm@10003
  5402
* HOL: the recursion equations generated by 'recdef' are now called
wenzelm@10003
  5403
f.simps instead of f.rules;
wenzelm@10003
  5404
wenzelm@10003
  5405
* HOL: qed_spec_mp now also handles bounded ALL as well;
wenzelm@10003
  5406
wenzelm@10003
  5407
* HOL: 0 is now overloaded, so the type constraint ":: nat" may
wenzelm@10003
  5408
sometimes be needed;
wenzelm@10003
  5409
wenzelm@10003
  5410
* HOL: the constant for "f``x" is now "image" rather than "op ``";
paulson@8014
  5411
paulson@10065
  5412
* HOL: the constant for "f-``x" is now "vimage" rather than "op -``";
paulson@10065
  5413
wenzelm@9330
  5414
* HOL: the disjoint sum is now "<+>" instead of "Plus"; the cartesian
wenzelm@9330
  5415
product is now "<*>" instead of "Times"; the lexicographic product is
wenzelm@9330
  5416
now "<*lex*>" instead of "**";
nipkow@8705
  5417
wenzelm@10003
  5418
* HOL: theory Sexp is now in HOL/Induct examples (it used to be part
wenzelm@10003
  5419
of main HOL, but was unused); better use HOL's datatype package;
paulson@9971
  5420
wenzelm@10137
  5421
* HOL: removed "symbols" syntax for constant "override" of theory Map;
wenzelm@10137
  5422
the old syntax may be recovered as follows:
wenzelm@10137
  5423
wenzelm@10137
  5424
  syntax (symbols)
wenzelm@10137
  5425
    override  :: "('a ~=> 'b) => ('a ~=> 'b) => ('a ~=> 'b)"
wenzelm@10137
  5426
      (infixl "\\<oplus>" 100)
wenzelm@10137
  5427
wenzelm@8848
  5428
* HOL/Real: "rabs" replaced by overloaded "abs" function;
wenzelm@8848
  5429
wenzelm@8887
  5430
* HOL/ML: even fewer consts are declared as global (see theories Ord,
wenzelm@8887
  5431
Lfp, Gfp, WF); this only affects ML packages that refer to const names
wenzelm@8887
  5432
internally;
wenzelm@8887
  5433
wenzelm@10003
  5434
* HOL and ZF: syntax for quotienting wrt an equivalence relation
wenzelm@10003
  5435
changed from A/r to A//r;
wenzelm@9908
  5436
wenzelm@10003
  5437
* ZF: new treatment of arithmetic (nat & int) may break some old
wenzelm@10003
  5438
proofs;
paulson@9388
  5439
wenzelm@10003
  5440
* Isar: renamed some attributes (RS -> THEN, simplify -> simplified,
wenzelm@10003
  5441
rulify -> rule_format, elimify -> elim_format, ...);
paulson@9542
  5442
wenzelm@9941
  5443
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  5444
intro/intro!/intro!! flags to intro!/intro/intro? (in most cases, one
wenzelm@9937
  5445
should have to change intro!! to intro? only); replaced "delrule" by
wenzelm@9937
  5446
"rule del";
wenzelm@9437
  5447
wenzelm@9612
  5448
* Isar/HOL: renamed "intrs" to "intros" in inductive definitions;
wenzelm@9612
  5449
wenzelm@9437
  5450
* Provers: strengthened force_tac by using new first_best_tac;
oheimb@9402
  5451
wenzelm@10003
  5452
* LaTeX document preparation: several changes of isabelle.sty (see
wenzelm@10003
  5453
lib/texinputs);
wenzelm@8729
  5454
paulson@8014
  5455
wenzelm@8487
  5456
*** Document preparation ***
wenzelm@8358
  5457
wenzelm@9198
  5458
* formal comments (text blocks etc.) in new-style theories may now
wenzelm@9753
  5459
contain antiquotations of thm/prop/term/typ/text to be presented
wenzelm@9753
  5460
according to latex print mode; concrete syntax is like this:
wenzelm@9753
  5461
@{term[show_types] "f(x) = a + x"};
wenzelm@9198
  5462
wenzelm@8358
  5463
* isatool mkdir provides easy setup of Isabelle session directories,
wenzelm@8518
  5464
including proper document sources;
wenzelm@8358
  5465
wenzelm@8358
  5466
* generated LaTeX sources are now deleted after successful run
wenzelm@8358
  5467
(isatool document -c); may retain a copy somewhere else via -D option
wenzelm@8358
  5468
of isatool usedir;
wenzelm@8358
  5469
wenzelm@8566
  5470
* isatool usedir -D now lets isatool latex -o sty update the Isabelle
wenzelm@10003
  5471
style files, achieving self-contained LaTeX sources and simplifying
wenzelm@10003
  5472
LaTeX debugging;
wenzelm@8566
  5473
wenzelm@8518
  5474
* old-style theories now produce (crude) LaTeX output as well;
wenzelm@8358
  5475
wenzelm@9057
  5476
* browser info session directories are now self-contained (may be put
wenzelm@9437
  5477
on WWW server seperately); improved graphs of nested sessions; removed
wenzelm@9437
  5478
graph for 'all sessions';
wenzelm@9057
  5479
wenzelm@10003
  5480
* several improvements in isabelle style files; \isabellestyle{it}
wenzelm@10003
  5481
produces fake math mode output; \isamarkupheader is now \section by
wenzelm@10003
  5482
default; see lib/texinputs/isabelle.sty etc.;
wenzelm@9489
  5483
wenzelm@8358
  5484
wenzelm@8184
  5485
*** Isar ***
wenzelm@8184
  5486
wenzelm@10003
  5487
* Isar/Pure: local results and corresponding term bindings are now
wenzelm@10003
  5488
subject to Hindley-Milner polymorphism (similar to ML); this
wenzelm@10003
  5489
accommodates incremental type-inference very nicely;
wenzelm@8283
  5490
wenzelm@10003
  5491
* Isar/Pure: new derived language element 'obtain' supports
wenzelm@10003
  5492
generalized existence reasoning;
wenzelm@8621
  5493
wenzelm@10003
  5494
* Isar/Pure: new calculational elements 'moreover' and 'ultimately'
wenzelm@10003
  5495
support accumulation of results, without applying any rules yet;
wenzelm@10003
  5496
useful to collect intermediate results without explicit name
wenzelm@10003
  5497
references, and for use with transitivity rules with more than 2
wenzelm@10003
  5498
premises;
wenzelm@8184
  5499
wenzelm@10003
  5500
* Isar/Pure: scalable support for case-analysis type proofs: new
wenzelm@10003
  5501
'case' language element refers to local contexts symbolically, as
wenzelm@10003
  5502
produced by certain proof methods; internally, case names are attached
wenzelm@10003
  5503
to theorems as "tags";
wenzelm@8440
  5504
wenzelm@10003
  5505
* Isar/Pure: theory command 'hide' removes declarations from
wenzelm@9330
  5506
class/type/const name spaces;
wenzelm@9330
  5507
wenzelm@10003
  5508
* Isar/Pure: theory command 'defs' supports option "(overloaded)" to
wenzelm@9330
  5509
indicate potential overloading;
wenzelm@9330
  5510
wenzelm@10003
  5511
* Isar/Pure: changed syntax of local blocks from {{ }} to { };
wenzelm@8921
  5512
wenzelm@10003
  5513
* Isar/Pure: syntax of sorts made 'inner', i.e. have to write
wenzelm@10003
  5514
"{a,b,c}" instead of {a,b,c};
wenzelm@9612
  5515
wenzelm@10003
  5516
* Isar/Pure now provides its own version of intro/elim/dest
wenzelm@10003
  5517
attributes; useful for building new logics, but beware of confusion
wenzelm@10003
  5518
with the version in Provers/classical;
wenzelm@8921
  5519
wenzelm@10003
  5520
* Isar/Pure: the local context of (non-atomic) goals is provided via
wenzelm@10003
  5521
case name 'antecedent';
wenzelm@8621
  5522
wenzelm@10003
  5523
* Isar/Pure: removed obsolete 'transfer' attribute (transfer of thms
wenzelm@10003
  5524
to the current context is now done automatically);
wenzelm@8991
  5525
wenzelm@10003
  5526
* Isar/Pure: theory command 'method_setup' provides a simple interface
wenzelm@10003
  5527
for definining proof methods in ML;
wenzelm@9011
  5528
wenzelm@10003
  5529
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  5530
intro/intro!/intro!! flags to intro!/intro/intro? (INCOMPATIBILITY, in
wenzelm@9941
  5531
most cases, one should have to change intro!! to intro? only);
wenzelm@9941
  5532
replaced "delrule" by "rule del";
wenzelm@8283
  5533
wenzelm@10003
  5534
* Isar/Provers: new 'hypsubst' method, plain 'subst' method and
wenzelm@10003
  5535
'symmetric' attribute (the latter supercedes [RS sym]);
wenzelm@9612
  5536
wenzelm@10003
  5537
* Isar/Provers: splitter support (via 'split' attribute and 'simp'
wenzelm@10003
  5538
method modifier); 'simp' method: 'only:' modifier removes loopers as
wenzelm@10003
  5539
well (including splits);
wenzelm@10003
  5540
wenzelm@10003
  5541
* Isar/Provers: Simplifier and Classical methods now support all kind
wenzelm@10003
  5542
of modifiers used in the past, including 'cong', 'iff', etc.
wenzelm@10003
  5543
wenzelm@10003
  5544
* Isar/Provers: added 'fastsimp' and 'clarsimp' methods (combination
wenzelm@10003
  5545
of Simplifier and Classical reasoner);
wenzelm@10003
  5546
wenzelm@10003
  5547
* Isar/HOL: new proof method 'cases' and improved version of 'induct'
wenzelm@10003
  5548
now support named cases; major packages (inductive, datatype, primrec,
wenzelm@10003
  5549
recdef) support case names and properly name parameters;
wenzelm@10003
  5550
wenzelm@10003
  5551
* Isar/HOL: new transitivity rules for substitution in inequalities --
wenzelm@10003
  5552
monotonicity conditions are extracted to be proven at end of
wenzelm@10003
  5553
calculations;
wenzelm@10003
  5554
wenzelm@10003
  5555
* Isar/HOL: removed 'case_split' thm binding, should use 'cases' proof
wenzelm@10003
  5556
method anyway;
wenzelm@10003
  5557
wenzelm@10003
  5558
* Isar/HOL: removed old expand_if = split_if; theorems if_splits =
wenzelm@10003
  5559
split_if split_if_asm; datatype package provides theorems foo.splits =
wenzelm@10003
  5560
foo.split foo.split_asm for each datatype;
wenzelm@10003
  5561
wenzelm@10003
  5562
* Isar/HOL: tuned inductive package, rename "intrs" to "intros"
wenzelm@10003
  5563
(potential INCOMPATIBILITY), emulation of mk_cases feature for proof
wenzelm@10003
  5564
scripts: new 'inductive_cases' command and 'ind_cases' method; (Note:
wenzelm@10003
  5565
use "(cases (simplified))" method in proper proof texts);
wenzelm@10003
  5566
wenzelm@10003
  5567
* Isar/HOL: added global 'arith_split' attribute for 'arith' method;
wenzelm@10003
  5568
wenzelm@10003
  5569
* Isar: names of theorems etc. may be natural numbers as well;
wenzelm@10003
  5570
wenzelm@10003
  5571
* Isar: 'pr' command: optional arguments for goals_limit and
wenzelm@9724
  5572
ProofContext.prems_limit; no longer prints theory contexts, but only
wenzelm@9724
  5573
proof states;
wenzelm@8487
  5574
wenzelm@10003
  5575
* Isar: diagnostic commands 'pr', 'thm', 'prop', 'term', 'typ' admit
wenzelm@8518
  5576
additional print modes to be specified; e.g. "pr(latex)" will print
wenzelm@8518
  5577
proof state according to the Isabelle LaTeX style;
wenzelm@8487
  5578
wenzelm@10003
  5579
* Isar: improved support for emulating tactic scripts, including proof
wenzelm@9612
  5580
methods 'rule_tac' etc., 'cut_tac', 'thin_tac', 'subgoal_tac',
wenzelm@9612
  5581
'rename_tac', 'rotate_tac', 'tactic', and 'case_tac' / 'induct_tac'
wenzelm@9612
  5582
(for HOL datatypes);
wenzelm@8534
  5583
wenzelm@10003
  5584
* Isar: simplified (more robust) goal selection of proof methods: 1st
wenzelm@10003
  5585
goal, all goals, or explicit goal specifier (tactic emulation); thus
wenzelm@10003
  5586
'proof method scripts' have to be in depth-first order;
wenzelm@8673
  5587
wenzelm@10003
  5588
* Isar: tuned 'let' syntax: replaced 'as' keyword by 'and';
wenzelm@8729
  5589
wenzelm@10003
  5590
* Isar: removed 'help' command, which hasn't been too helpful anyway;
wenzelm@10003
  5591
should instead use individual commands for printing items
wenzelm@10003
  5592
(print_commands, print_methods etc.);
wenzelm@9224
  5593
wenzelm@10003
  5594
* Isar: added 'nothing' --- the empty list of theorems;
wenzelm@9239
  5595
wenzelm@8184
  5596
paulson@8014
  5597
*** HOL ***
paulson@8014
  5598
wenzelm@10080
  5599
* HOL/MicroJava: formalization of a fragment of Java, together with a
wenzelm@10080
  5600
corresponding virtual machine and a specification of its bytecode
wenzelm@10080
  5601
verifier and a lightweight bytecode verifier, including proofs of
wenzelm@10080
  5602
type-safety; by Gerwin Klein, Tobias Nipkow, David von Oheimb, and
wenzelm@10080
  5603
Cornelia Pusch (see also the homepage of project Bali at
wenzelm@10080
  5604
http://isabelle.in.tum.de/Bali/);
wenzelm@10080
  5605
wenzelm@8518
  5606
* HOL/Algebra: new theory of rings and univariate polynomials, by
wenzelm@8518
  5607
Clemens Ballarin;
paulson@8014
  5608
wenzelm@10157
  5609
* HOL/NumberTheory: fundamental Theorem of Arithmetic, Chinese
wenzelm@10003
  5610
Remainder Theorem, Fermat/Euler Theorem, Wilson's Theorem, by Thomas M
wenzelm@10003
  5611
Rasmussen;
wenzelm@8007
  5612
wenzelm@10157
  5613
* HOL/Lattice: fundamental concepts of lattice theory and order
wenzelm@10157
  5614
structures, including duals, properties of bounds versus algebraic
wenzelm@10157
  5615
laws, lattice operations versus set-theoretic ones, the Knaster-Tarski
wenzelm@10157
  5616
Theorem for complete lattices etc.; may also serve as a demonstration
wenzelm@10157
  5617
for abstract algebraic reasoning using axiomatic type classes, and
wenzelm@10157
  5618
mathematics-style proof in Isabelle/Isar; by Markus Wenzel;
wenzelm@10157
  5619
wenzelm@10003
  5620
* HOL/Prolog: a (bare-bones) implementation of Lambda-Prolog, by David
wenzelm@10003
  5621
von Oheimb;
wenzelm@8570
  5622
wenzelm@10164
  5623
* HOL/IMPP: extension of IMP with local variables and mutually
wenzelm@10164
  5624
recursive procedures, by David von Oheimb;
wenzelm@10164
  5625
wenzelm@10003
  5626
* HOL/Lambda: converted into new-style theory and document;
paulson@9542
  5627
wenzelm@10003
  5628
* HOL/ex/Multiquote: example of multiple nested quotations and
wenzelm@10003
  5629
anti-quotations -- basically a generalized version of de-Bruijn
wenzelm@10003
  5630
representation; very useful in avoiding lifting of operations;
wenzelm@8848
  5631
wenzelm@9612
  5632
* HOL/record: added general record equality rule to simpset; fixed
wenzelm@9612
  5633
select-update simplification procedure to handle extended records as
wenzelm@9612
  5634
well; admit "r" as field name;
paulson@9542
  5635
paulson@8967
  5636
* HOL: 0 is now overloaded over the new sort "zero", allowing its use with
paulson@8967
  5637
other numeric types and also as the identity of groups, rings, etc.;
paulson@8967
  5638
paulson@8967
  5639
* HOL: new axclass plus_ac0 for addition with the AC-laws and 0 as identity.
paulson@8967
  5640
Types nat and int belong to this axclass;
paulson@8967
  5641
wenzelm@10003
  5642
* HOL: greatly improved simplification involving numerals of type nat, int, real:
paulson@8788
  5643
   (i + #8 + j) = Suc k simplifies to  #7 + (i + j) = k
paulson@8832
  5644
   i*j + k + j*#3*i     simplifies to  #4*(i*j) + k
paulson@8832
  5645
  two terms #m*u and #n*u are replaced by #(m+n)*u
paulson@8832
  5646
    (where #m, #n and u can implicitly be 1; this is simproc combine_numerals)
paulson@8832
  5647
  and the term/formula #m*u+x ~~ #n*u+y simplifies simplifies to #(m-n)+x ~~ y
paulson@8832
  5648
    or x ~~ #(n-m)+y, where ~~ is one of = < <= or - (simproc cancel_numerals);
paulson@8736
  5649
wenzelm@10003
  5650
* HOL: meson_tac is available (previously in ex/meson.ML); it is a
wenzelm@10003
  5651
powerful prover for predicate logic but knows nothing of clasets; see
wenzelm@10003
  5652
ex/mesontest.ML and ex/mesontest2.ML for example applications;
paulson@9835
  5653
wenzelm@8848
  5654
* HOL: new version of "case_tac" subsumes both boolean case split and
wenzelm@8440
  5655
"exhaust_tac" on datatypes; INCOMPATIBILITY: exhaust_tac no longer
wenzelm@8518
  5656
exists, may define val exhaust_tac = case_tac for ad-hoc portability;
wenzelm@8440
  5657
wenzelm@8848
  5658
* HOL: simplification no longer dives into case-expressions: only the
wenzelm@10129
  5659
selector expression is simplified, but not the remaining arms; to
wenzelm@10129
  5660
enable full simplification of case-expressions for datatype t, you may
wenzelm@10129
  5661
remove t.weak_case_cong from the simpset, either globally (Delcongs
wenzelm@10129
  5662
[thm"t.weak_case_cong"];) or locally (delcongs [...]).
nipkow@8603
  5663
wenzelm@8848
  5664
* HOL/recdef: the recursion equations generated by 'recdef' for
wenzelm@8848
  5665
function 'f' are now called f.simps instead of f.rules; if all
wenzelm@8848
  5666
termination conditions are proved automatically, these simplification
wenzelm@8848
  5667
rules are added to the simpset, as in primrec; rules may be named
wenzelm@8848
  5668
individually as well, resulting in a separate list of theorems for
wenzelm@8848
  5669
each equation;
wenzelm@8848
  5670
wenzelm@9489
  5671
* HOL/While is a new theory that provides a while-combinator. It
wenzelm@9489
  5672
permits the definition of tail-recursive functions without the
wenzelm@9489
  5673
provision of a termination measure. The latter is necessary once the
wenzelm@9489
  5674
invariant proof rule for while is applied.
nipkow@9457
  5675
wenzelm@10003
  5676
* HOL: new (overloaded) notation for the set of elements below/above
wenzelm@10003
  5677
some element: {..u}, {..u(}, {l..}, {)l..}. See theory SetInterval.
nipkow@8925
  5678
wenzelm@8848
  5679
* HOL: theorems impI, allI, ballI bound as "strip";
wenzelm@8848
  5680
wenzelm@10003
  5681
* HOL: new tactic induct_thm_tac: thm -> string -> int -> tactic
nipkow@9746
  5682
induct_tac th "x1 ... xn" expects th to have a conclusion of the form
nipkow@9746
  5683
P v1 ... vn and abbreviates res_inst_tac [("v1","x1"),...,("vn","xn")] th;
nipkow@9746
  5684
wenzelm@10003
  5685
* HOL/Real: "rabs" replaced by overloaded "abs" function;
nipkow@9737
  5686
wenzelm@10003
  5687
* HOL: theory Sexp now in HOL/Induct examples (it used to be part of
wenzelm@10003
  5688
main HOL, but was unused);
nipkow@8626
  5689
wenzelm@10003
  5690
* HOL: fewer consts declared as global (e.g. have to refer to
wenzelm@10003
  5691
"Lfp.lfp" instead of "lfp" internally; affects ML packages only);
wenzelm@8887
  5692
wenzelm@10003
  5693
* HOL: tuned AST representation of nested pairs, avoiding bogus output
wenzelm@10003
  5694
in case of overlap with user translations (e.g. judgements over
wenzelm@10003
  5695
tuples); (note that the underlying logical represenation is still
wenzelm@10003
  5696
bogus);
wenzelm@9349
  5697
nipkow@8412
  5698
paulson@9542
  5699
*** ZF ***
paulson@9542
  5700
wenzelm@10003
  5701
* ZF: simplification automatically cancels common terms in arithmetic
wenzelm@10003
  5702
expressions over nat and int;
paulson@9542
  5703
wenzelm@10003
  5704
* ZF: new treatment of nat to minimize type-checking: all operators
wenzelm@10003
  5705
coerce their operands to a natural number using the function natify,
wenzelm@10003
  5706
making the algebraic laws unconditional;
paulson@9542
  5707
wenzelm@10003
  5708
* ZF: as above, for int: operators coerce their operands to an integer
wenzelm@10003
  5709
using the function intify;
paulson@9542
  5710
wenzelm@10003
  5711
* ZF: the integer library now contains many of the usual laws for the
wenzelm@10003
  5712
orderings, including $<=, and monotonicity laws for $+ and $*;
paulson@9542
  5713
wenzelm@10003
  5714
* ZF: new example ZF/ex/NatSum to demonstrate integer arithmetic
wenzelm@10003
  5715
simplification;
paulson@9542
  5716
wenzelm@10003
  5717
* FOL and ZF: AddIffs now available, giving theorems of the form P<->Q
wenzelm@10003
  5718
to the simplifier and classical reasoner simultaneously;
paulson@9388
  5719
paulson@9388
  5720
wenzelm@8358
  5721
*** General ***
wenzelm@8358
  5722
wenzelm@10003
  5723
* Provers: blast_tac now handles actual object-logic rules as
wenzelm@10003
  5724
assumptions; note that auto_tac uses blast_tac internally as well;
wenzelm@10003
  5725
wenzelm@10003
  5726
* Provers: new functions rulify/rulify_no_asm: thm -> thm for turning
wenzelm@10003
  5727
outer -->/All/Ball into ==>/!!; qed_spec_mp now uses rulify_no_asm;
wenzelm@10003
  5728
wenzelm@9941
  5729
* Provers: delrules now handles destruct rules as well (no longer need
wenzelm@9941
  5730
explicit make_elim);
wenzelm@9941
  5731
wenzelm@10003
  5732
* Provers: Blast_tac now warns of and ignores "weak elimination rules" e.g.
wenzelm@10003
  5733
  [| inj ?f;          ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  5734
use instead the strong form,
wenzelm@10003
  5735
  [| inj ?f; ~ ?W ==> ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  5736
in HOL, FOL and ZF the function cla_make_elim will create such rules
wenzelm@10003
  5737
from destruct-rules;
wenzelm@9489
  5738
wenzelm@9709
  5739
* Provers: Simplifier.easy_setup provides a fast path to basic
wenzelm@9709
  5740
Simplifier setup for new object-logics;
wenzelm@9349
  5741
wenzelm@9709
  5742
* Pure: AST translation rules no longer require constant head on LHS;
wenzelm@8729
  5743
wenzelm@9709
  5744
* Pure: improved name spaces: ambiguous output is qualified; support
wenzelm@9709
  5745
for hiding of names;
wenzelm@8358
  5746
wenzelm@10003
  5747
* system: smart setup of canonical ML_HOME, ISABELLE_INTERFACE, and
wenzelm@10003
  5748
XSYMBOL_HOME; no longer need to do manual configuration in most
wenzelm@10003
  5749
situations;
wenzelm@10003
  5750
wenzelm@9709
  5751
* system: compression of ML heaps images may now be controlled via -c
wenzelm@9709
  5752
option of isabelle and isatool usedir (currently only observed by
wenzelm@9709
  5753
Poly/ML);
wenzelm@9709
  5754
wenzelm@9981
  5755
* system: isatool installfonts may handle X-Symbol fonts as well (very
wenzelm@9981
  5756
useful for remote X11);
wenzelm@9981
  5757
wenzelm@9709
  5758
* system: provide TAGS file for Isabelle sources;
wenzelm@9052
  5759
wenzelm@9288
  5760
* ML: infix 'OF' is a version of 'MRS' with more appropriate argument
wenzelm@9288
  5761
order;
wenzelm@9288
  5762
wenzelm@8994
  5763
* ML: renamed flags Syntax.trace_norm_ast to Syntax.trace_ast; global
wenzelm@8994
  5764
timing flag supersedes proof_timing and Toplevel.trace;
wenzelm@8994
  5765
wenzelm@10003
  5766
* ML: new combinators |>> and |>>> for incremental transformations
wenzelm@10003
  5767
with secondary results (e.g. certain theory extensions):
wenzelm@10003
  5768
wenzelm@9330
  5769
* ML: PureThy.add_defs gets additional argument to indicate potential
wenzelm@9330
  5770
overloading (usually false);
wenzelm@9330
  5771
wenzelm@10003
  5772
* ML: PureThy.add_thms/add_axioms/add_defs now return theorems as
wenzelm@10003
  5773
results;
wenzelm@8440
  5774
wenzelm@8358
  5775
wenzelm@8015
  5776
wenzelm@7986
  5777
New in Isabelle99 (October 1999)
wenzelm@7986
  5778
--------------------------------
oheimb@4649
  5779
paulson@5931
  5780
*** Overview of INCOMPATIBILITIES (see below for more details) ***
paulson@5931
  5781
paulson@6922
  5782
* HOL: The THEN and ELSE parts of conditional expressions (if P then x else y)
paulson@6922
  5783
are no longer simplified.  (This allows the simplifier to unfold recursive
paulson@6922
  5784
functional programs.)  To restore the old behaviour, declare
wenzelm@7215
  5785
wenzelm@7215
  5786
    Delcongs [if_weak_cong];
paulson@6922
  5787
wenzelm@6269
  5788
* HOL: Removed the obsolete syntax "Compl A"; use -A for set
wenzelm@6269
  5789
complement;
paulson@5931
  5790
wenzelm@6269
  5791
* HOL: the predicate "inj" is now defined by translation to "inj_on";
paulson@6174
  5792
berghofe@7847
  5793
* HOL/datatype: mutual_induct_tac no longer exists --
berghofe@7847
  5794
  use induct_tac "x_1 ... x_n" instead of mutual_induct_tac ["x_1", ..., "x_n"]
berghofe@7847
  5795
wenzelm@6386
  5796
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  5797
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  5798
wenzelm@6269
  5799
* ZF: The con_defs part of an inductive definition may no longer refer
wenzelm@6269
  5800
to constants declared in the same theory;
nipkow@6057
  5801
wenzelm@6269
  5802
* HOL, ZF: the function mk_cases, generated by the inductive
wenzelm@6269
  5803
definition package, has lost an argument.  To simplify its result, it
wenzelm@6269
  5804
uses the default simpset instead of a supplied list of theorems.
paulson@6141
  5805
wenzelm@7215
  5806
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  5807
nipkow@7619
  5808
* Simplifier: the type of the infix ML functions
wenzelm@8729
  5809
        setSSolver addSSolver setSolver addSolver
nipkow@7619
  5810
is now  simpset * solver -> simpset  where `solver' is a new abstract type
nipkow@7619
  5811
for packaging solvers. A solver is created via
wenzelm@8729
  5812
        mk_solver: string -> (thm list -> int -> tactic) -> solver
nipkow@7619
  5813
where the string argument is only a comment.
nipkow@6057
  5814
wenzelm@7647
  5815
paulson@6069
  5816
*** Proof tools ***
paulson@6069
  5817
wenzelm@6343
  5818
* Provers/Arith/fast_lin_arith.ML contains a functor for creating a
wenzelm@6343
  5819
decision procedure for linear arithmetic. Currently it is used for
wenzelm@7593
  5820
types `nat', `int', and `real' in HOL (see below); it can, should and
wenzelm@7593
  5821
will be instantiated for other types and logics as well.
paulson@6069
  5822
nipkow@7324
  5823
* The simplifier now accepts rewrite rules with flexible heads, eg
nipkow@7324
  5824
     hom ?f ==> ?f(?x+?y) = ?f ?x + ?f ?y
nipkow@7324
  5825
  They are applied like any rule with a non-pattern lhs, i.e. by first-order
nipkow@7324
  5826
  matching.
paulson@6069
  5827
wenzelm@7593
  5828
paulson@6014
  5829
*** General ***
paulson@6014
  5830
wenzelm@7986
  5831
* New Isabelle/Isar subsystem provides an alternative to traditional
wenzelm@7215
  5832
tactical theorem proving; together with the ProofGeneral/isar user
wenzelm@7215
  5833
interface it offers an interactive environment for developing human
wenzelm@7215
  5834
readable proof documents (Isar == Intelligible semi-automated
wenzelm@7886
  5835
reasoning); for further information see isatool doc isar-ref,
wenzelm@7986
  5836
src/HOL/Isar_examples and http://isabelle.in.tum.de/Isar/
wenzelm@7886
  5837
wenzelm@9612
  5838
* improved and simplified presentation of theories: better HTML markup
wenzelm@9612
  5839
(including colors), graph views in several sizes; isatool usedir now
wenzelm@9612
  5840
provides a proper interface for user theories (via -P option); actual
wenzelm@9612
  5841
document preparation based on (PDF)LaTeX is available as well (for
wenzelm@9612
  5842
new-style theories only); see isatool doc system for more information;
wenzelm@7215
  5843
wenzelm@7252
  5844
* native support for Proof General, both for classic Isabelle and
wenzelm@7986
  5845
Isabelle/Isar;
wenzelm@7215
  5846
wenzelm@7791
  5847
* ML function thm_deps visualizes dependencies of theorems and lemmas,
wenzelm@7791
  5848
using the graph browser tool;
wenzelm@7791
  5849
wenzelm@6751
  5850
* Isabelle manuals now also available as PDF;
wenzelm@6751
  5851
wenzelm@6449
  5852
* theory loader rewritten from scratch (may not be fully
wenzelm@6449
  5853
bug-compatible); old loadpath variable has been replaced by show_path,
wenzelm@6671
  5854
add_path, del_path, reset_path functions; new operations such as
wenzelm@7593
  5855
update_thy, touch_thy, remove_thy, use/update_thy_only (see also
wenzelm@7593
  5856
isatool doc ref);
wenzelm@6449
  5857
wenzelm@7215
  5858
* improved isatool install: option -k creates KDE application icon,
wenzelm@7215
  5859
option -p DIR installs standalone binaries;
wenzelm@7215
  5860
wenzelm@7215
  5861
* added ML_PLATFORM setting (useful for cross-platform installations);
wenzelm@7215
  5862
more robust handling of platform specific ML images for SML/NJ;
wenzelm@7215
  5863
wenzelm@7886
  5864
* the settings environment is now statically scoped, i.e. it is never
wenzelm@7986
  5865
created again in sub-processes invoked from isabelle, isatool, or
wenzelm@7886
  5866
Isabelle;
wenzelm@7886
  5867
wenzelm@7215
  5868
* path element specification '~~' refers to '$ISABELLE_HOME';
wenzelm@7215
  5869
wenzelm@6343
  5870
* in locales, the "assumes" and "defines" parts may be omitted if
wenzelm@6343
  5871
empty;
wenzelm@5973
  5872
wenzelm@6269
  5873
* new print_mode "xsymbols" for extended symbol support (e.g. genuine
wenzelm@6269
  5874
long arrows);
wenzelm@6259
  5875
wenzelm@6343
  5876
* new print_mode "HTML";
wenzelm@6343
  5877
wenzelm@6343
  5878
* new flag show_tags controls display of tags of theorems (which are
wenzelm@6343
  5879
basically just comments that may be attached by some tools);
wenzelm@6343
  5880
wenzelm@6461
  5881
* Isamode 2.6 requires patch to accomodate change of Isabelle font
wenzelm@6461
  5882
mode and goal output format:
wenzelm@6461
  5883
wenzelm@6461
  5884
diff -r Isamode-2.6/elisp/isa-load.el Isamode/elisp/isa-load.el
wenzelm@6461
  5885
244c244
wenzelm@6461
  5886
<       (list (isa-getenv "ISABELLE") "-msymbols" logic-name)
wenzelm@6461
  5887
---
wenzelm@6533
  5888
>       (list (isa-getenv "ISABELLE") "-misabelle_font" "-msymbols" logic-name)
wenzelm@6461
  5889
diff -r Isabelle-2.6/elisp/isa-proofstate.el Isamode/elisp/isa-proofstate.el
wenzelm@6461
  5890
181c181
wenzelm@6461
  5891
< (defconst proofstate-proofstart-regexp "^Level [0-9]+$"
wenzelm@6461
  5892
---
wenzelm@6461
  5893
> (defconst proofstate-proofstart-regexp "^Level [0-9]+"
wenzelm@6461
  5894
wenzelm@7450
  5895
* function bind_thms stores lists of theorems (cf. bind_thm);
wenzelm@7450
  5896
wenzelm@7593
  5897
* new shorthand tactics ftac, eatac, datac, fatac;
wenzelm@7593
  5898
wenzelm@7593
  5899
* qed (and friends) now accept "" as result name; in that case the
wenzelm@7986
  5900
theorem is not stored, but proper checks and presentation of the
wenzelm@7986
  5901
result still apply;
wenzelm@7593
  5902
wenzelm@7805
  5903
* theorem database now also indexes constants "Trueprop", "all",
wenzelm@7805
  5904
"==>", "=="; thus thms_containing, findI etc. may retrieve more rules;
wenzelm@7805
  5905
oheimb@6028
  5906
nipkow@6057
  5907
*** HOL ***
nipkow@6057
  5908
wenzelm@7215
  5909
** HOL arithmetic **
wenzelm@7215
  5910
wenzelm@6343
  5911
* There are now decision procedures for linear arithmetic over nat and
wenzelm@6343
  5912
int:
nipkow@6131
  5913
wenzelm@6343
  5914
1. arith_tac copes with arbitrary formulae involving `=', `<', `<=',
wenzelm@6343
  5915
`+', `-', `Suc', `min', `max' and numerical constants; other subterms
wenzelm@6343
  5916
are treated as atomic; subformulae not involving type `nat' or `int'
wenzelm@6343
  5917
are ignored; quantified subformulae are ignored unless they are
wenzelm@6343
  5918
positive universal or negative existential. The tactic has to be
wenzelm@6343
  5919
invoked by hand and can be a little bit slow. In particular, the
wenzelm@6343
  5920
running time is exponential in the number of occurrences of `min' and
wenzelm@6343
  5921
`max', and `-' on `nat'.
nipkow@6131
  5922
wenzelm@6343
  5923
2. fast_arith_tac is a cut-down version of arith_tac: it only takes
wenzelm@6343
  5924
(negated) (in)equalities among the premises and the conclusion into
wenzelm@6343
  5925
account (i.e. no compound formulae) and does not know about `min' and
wenzelm@6343
  5926
`max', and `-' on `nat'. It is fast and is used automatically by the
wenzelm@6343
  5927
simplifier.
nipkow@6131
  5928
wenzelm@6343
  5929
NB: At the moment, these decision procedures do not cope with mixed
wenzelm@6343
  5930
nat/int formulae where the two parts interact, such as `m < n ==>
wenzelm@6343
  5931
int(m) < int(n)'.
oheimb@6028
  5932
wenzelm@7215
  5933
* HOL/Numeral provides a generic theory of numerals (encoded
wenzelm@7313
  5934
efficiently as bit strings); setup for types nat/int/real is in place;
wenzelm@7215
  5935
INCOMPATIBILITY: since numeral syntax is now polymorphic, rather than
wenzelm@7215
  5936
int, existing theories and proof scripts may require a few additional
wenzelm@7215
  5937
type constraints;
paulson@7157
  5938
wenzelm@7215
  5939
* integer division and remainder can now be performed on constant
wenzelm@7215
  5940
arguments;
paulson@6922
  5941
wenzelm@7215
  5942
* many properties of integer multiplication, division and remainder
wenzelm@7215
  5943
are now available;
wenzelm@7215
  5944
paulson@7287
  5945
* An interface to the Stanford Validity Checker (SVC) is available through the
paulson@7287
  5946
tactic svc_tac.  Propositional tautologies and theorems of linear arithmetic
paulson@7287
  5947
are proved automatically.  SVC must be installed separately, and its results
paulson@7287
  5948
must be TAKEN ON TRUST (Isabelle does not check the proofs, but tags any
paulson@7287
  5949
invocation of the underlying oracle).  For SVC see
paulson@7444
  5950
  http://verify.stanford.edu/SVC
paulson@6922
  5951
wenzelm@7125
  5952
* IsaMakefile: the HOL-Real target now builds an actual image;
wenzelm@7125
  5953
wenzelm@7215
  5954
wenzelm@7215
  5955
** HOL misc **
wenzelm@7215
  5956
wenzelm@7595
  5957
* HOL/Real/HahnBanach: the Hahn-Banach theorem for real vector spaces
wenzelm@7595
  5958
(in Isabelle/Isar) -- by Gertrud Bauer;
wenzelm@7595
  5959
wenzelm@7691
  5960
* HOL/BCV: generic model of bytecode verification, i.e. data-flow
wenzelm@7691
  5961
analysis for assembly languages with subtypes;
wenzelm@7691
  5962
wenzelm@6278
  5963
* HOL/TLA (Lamport's Temporal Logic of Actions): major reorganization
wenzelm@6278
  5964
-- avoids syntactic ambiguities and treats state, transition, and
wenzelm@6278
  5965
temporal levels more uniformly; introduces INCOMPATIBILITIES due to
wenzelm@6278
  5966
changed syntax and (many) tactics;
wenzelm@6278
  5967
wenzelm@7791
  5968
* HOL/inductive: Now also handles more general introduction rules such
wenzelm@7791
  5969
  as "ALL y. (y, x) : r --> y : acc r ==> x : acc r"; monotonicity
wenzelm@7791
  5970
  theorems are now maintained within the theory (maintained via the
wenzelm@7791
  5971
  "mono" attribute);
berghofe@7780
  5972
wenzelm@7238
  5973
* HOL/datatype: Now also handles arbitrarily branching datatypes
wenzelm@7238
  5974
  (using function types) such as
wenzelm@7238
  5975
wenzelm@7238
  5976
  datatype 'a tree = Atom 'a | Branch "nat => 'a tree"
berghofe@7047
  5977
wenzelm@7326
  5978
* HOL/record: record_simproc (part of the default simpset) takes care
wenzelm@7326
  5979
of selectors applied to updated records; record_split_tac is no longer
wenzelm@7327
  5980
part of the default claset; update_defs may now be removed from the
wenzelm@7327
  5981
simpset in many cases; COMPATIBILITY: old behavior achieved by
wenzelm@7326
  5982
wenzelm@7326
  5983
  claset_ref () := claset() addSWrapper record_split_wrapper;
wenzelm@7326
  5984
  Delsimprocs [record_simproc]
wenzelm@7326
  5985
wenzelm@6386
  5986
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  5987
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  5988
paulson@7287
  5989
* HOL/recdef (TFL): 'congs' syntax now expects comma separated list of theorem
paulson@7287
  5990
names rather than an ML expression;
paulson@7287
  5991
paulson@7287
  5992
* HOL/defer_recdef (TFL): like recdef but the well-founded relation can be
paulson@7287
  5993
supplied later.  Program schemes can be defined, such as
paulson@7287
  5994
    "While B C s = (if B s then While B C (C s) else s)"
paulson@7287
  5995
where the well-founded relation can be chosen after B and C have been given.
wenzelm@6563
  5996
wenzelm@7215
  5997
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  5998
INCOMPATIBILITY: while [] and infix # syntax is still there, of
wenzelm@7215
  5999
course, ML tools referring to List.list.op # etc. have to be adapted;
wenzelm@7215
  6000
wenzelm@7238
  6001
* HOL_quantifiers flag superseded by "HOL" print mode, which is
wenzelm@7238
  6002
disabled by default; run isabelle with option -m HOL to get back to
wenzelm@7238
  6003
the original Gordon/HOL-style output;
wenzelm@7238
  6004
wenzelm@7238
  6005
* HOL/Ord.thy: new bounded quantifier syntax (input only): ALL x<y. P,
wenzelm@7238
  6006
ALL x<=y. P, EX x<y. P, EX x<=y. P;
wenzelm@7238
  6007
wenzelm@7238
  6008
* HOL basic syntax simplified (more orthogonal): all variants of
wenzelm@7238
  6009
All/Ex now support plain / symbolic / HOL notation; plain syntax for
wenzelm@7238
  6010
Eps operator is provided as well: "SOME x. P[x]";
wenzelm@7238
  6011
berghofe@7320
  6012
* HOL/Sum.thy: sum_case has been moved to HOL/Datatype;
wenzelm@7261
  6013
wenzelm@7280
  6014
* HOL/Univ.thy: infix syntax <*>, <+>, <**>, <+> eliminated and made
wenzelm@7280
  6015
thus available for user theories;
wenzelm@7280
  6016
wenzelm@7300
  6017
* HOLCF/IOA/Sequents: renamed 'Cons' to 'Consq' to avoid clash with
wenzelm@7300
  6018
HOL/List; hardly an INCOMPATIBILITY since '>>' syntax is used all the
wenzelm@7300
  6019
time;
wenzelm@7300
  6020
wenzelm@7986
  6021
* HOL: new tactic smp_tac: int -> int -> tactic, which applies spec
wenzelm@7986
  6022
several times and then mp;
oheimb@7492
  6023
wenzelm@7215
  6024
paulson@7113
  6025
*** LK ***
paulson@7113
  6026
wenzelm@7215
  6027
* the notation <<...>> is now available as a notation for sequences of
wenzelm@7215
  6028
formulas;
paulson@7113
  6029
paulson@7113
  6030
* the simplifier is now installed
paulson@7113
  6031
wenzelm@8729
  6032
* the axiom system has been generalized (thanks to Soren Heilmann)
paulson@7113
  6033
paulson@7113
  6034
* the classical reasoner now has a default rule database
paulson@7113
  6035
paulson@7113
  6036
paulson@6064
  6037
*** ZF ***
paulson@6064
  6038
paulson@6064
  6039
* new primrec section allows primitive recursive functions to be given
wenzelm@6269
  6040
directly (as in HOL) over datatypes and the natural numbers;
paulson@6064
  6041
wenzelm@6269
  6042
* new tactics induct_tac and exhaust_tac for induction (or case
wenzelm@6269
  6043
analysis) over datatypes and the natural numbers;
paulson@6064
  6044
paulson@6064
  6045
* the datatype declaration of type T now defines the recursor T_rec;
paulson@6064
  6046
paulson@6141
  6047
* simplification automatically does freeness reasoning for datatype
wenzelm@6269
  6048
constructors;
paulson@6141
  6049
wenzelm@6269
  6050
* automatic type-inference, with AddTCs command to insert new
wenzelm@6269
  6051
type-checking rules;
paulson@6155
  6052
wenzelm@6269
  6053
* datatype introduction rules are now added as Safe Introduction rules
wenzelm@6269
  6054
to the claset;
paulson@6155
  6055
wenzelm@6269
  6056
* the syntax "if P then x else y" is now available in addition to
wenzelm@6269
  6057
if(P,x,y);
wenzelm@6269
  6058
paulson@6069
  6059
wenzelm@6343
  6060
*** Internal programming interfaces ***
wenzelm@6343
  6061
wenzelm@7919
  6062
* tuned simplifier trace output; new flag debug_simp;
wenzelm@7919
  6063
wenzelm@7420
  6064
* structures Vartab / Termtab (instances of TableFun) offer efficient
wenzelm@7420
  6065
tables indexed by indexname_ord / term_ord (compatible with aconv);
wenzelm@7420
  6066
wenzelm@6386
  6067
* AxClass.axclass_tac lost the theory argument;
wenzelm@6386
  6068
wenzelm@6343
  6069
* tuned current_goals_markers semantics: begin / end goal avoids
wenzelm@6343
  6070
printing empty lines;
wenzelm@6343
  6071
wenzelm@6343
  6072
* removed prs and prs_fn hook, which was broken because it did not
wenzelm@6343
  6073
include \n in its semantics, forcing writeln to add one
wenzelm@6343
  6074
uncoditionally; replaced prs_fn by writeln_fn; consider std_output:
wenzelm@6343
  6075
string -> unit if you really want to output text without newline;
wenzelm@6343
  6076
wenzelm@6343
  6077
* Symbol.output subject to print mode; INCOMPATIBILITY: defaults to
wenzelm@6343
  6078
plain output, interface builders may have to enable 'isabelle_font'
wenzelm@6343
  6079
mode to get Isabelle font glyphs as before;
wenzelm@6343
  6080
wenzelm@6343
  6081
* refined token_translation interface; INCOMPATIBILITY: output length
wenzelm@6343
  6082
now of type real instead of int;
wenzelm@6343
  6083
wenzelm@7196
  6084
* theory loader actions may be traced via new ThyInfo.add_hook
wenzelm@7196
  6085
interface (see src/Pure/Thy/thy_info.ML); example application: keep
wenzelm@7196
  6086
your own database of information attached to *whole* theories -- as
wenzelm@7196
  6087
opposed to intra-theory data slots offered via TheoryDataFun;
wenzelm@7196
  6088
wenzelm@7647
  6089
* proper handling of dangling sort hypotheses (at last!);
wenzelm@7647
  6090
Thm.strip_shyps and Drule.strip_shyps_warning take care of removing
wenzelm@7647
  6091
extra sort hypotheses that can be witnessed from the type signature;
wenzelm@7986
  6092
the force_strip_shyps flag is gone, any remaining shyps are simply
wenzelm@7986
  6093
left in the theorem (with a warning issued by strip_shyps_warning);
wenzelm@7647
  6094
wenzelm@6343
  6095
paulson@6064
  6096
wenzelm@5781
  6097
New in Isabelle98-1 (October 1998)
wenzelm@5781
  6098
----------------------------------
wenzelm@5781
  6099
wenzelm@5127
  6100
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4842
  6101
wenzelm@5726
  6102
* several changes of automated proof tools;
wenzelm@5207
  6103
wenzelm@5726
  6104
* HOL: major changes to the inductive and datatype packages, including
wenzelm@5726
  6105
some minor incompatibilities of theory syntax;
wenzelm@5373
  6106
wenzelm@5726
  6107
* HOL: renamed r^-1 to 'converse' from 'inverse'; 'inj_onto' is now
wenzelm@5217
  6108
called `inj_on';
paulson@5160
  6109
nipkow@5275
  6110
* HOL: removed duplicate thms in Arith:
nipkow@5275
  6111
  less_imp_add_less  should be replaced by  trans_less_add1
nipkow@5275
  6112
  le_imp_add_le      should be replaced by  trans_le_add1
paulson@5160
  6113
wenzelm@5726
  6114
* HOL: unary minus is now overloaded (new type constraints may be
wenzelm@5726
  6115
required);
paulson@5490
  6116
wenzelm@5726
  6117
* HOL and ZF: unary minus for integers is now #- instead of #~.  In
wenzelm@5726
  6118
ZF, expressions such as n#-1 must be changed to n#- 1, since #-1 is
wenzelm@5726
  6119
now taken as an integer constant.
paulson@5541
  6120
wenzelm@5726
  6121
* Pure: ML function 'theory_of' renamed to 'theory';
wenzelm@5397
  6122
wenzelm@5363
  6123
wenzelm@5127
  6124
*** Proof tools ***
nipkow@4880
  6125
nipkow@5657
  6126
* Simplifier:
nipkow@5657
  6127
  1. Asm_full_simp_tac is now more aggressive.
nipkow@5657
  6128
     1. It will sometimes reorient premises if that increases their power to
nipkow@5657
  6129
        simplify.
nipkow@5657
  6130
     2. It does no longer proceed strictly from left to right but may also
nipkow@5657
  6131
        rotate premises to achieve further simplification.
nipkow@5657
  6132
     For compatibility reasons there is now Asm_lr_simp_tac which is like the
nipkow@5657
  6133
     old Asm_full_simp_tac in that it does not rotate premises.
nipkow@5657
  6134
  2. The simplifier now knows a little bit about nat-arithmetic.
nipkow@4880
  6135
wenzelm@5127
  6136
* Classical reasoner: wrapper mechanism for the classical reasoner now
wenzelm@5127
  6137
allows for selected deletion of wrappers, by introduction of names for
wenzelm@5127
  6138
wrapper functionals.  This implies that addbefore, addSbefore,
wenzelm@5127
  6139
addaltern, and addSaltern now take a pair (name, tactic) as argument,
wenzelm@5127
  6140
and that adding two tactics with the same name overwrites the first
wenzelm@5127
  6141
one (emitting a warning).
oheimb@4824
  6142
  type wrapper = (int -> tactic) -> (int -> tactic)
oheimb@4649
  6143
  setWrapper, setSWrapper, compWrapper and compSWrapper are replaced by
oheimb@4824
  6144
  addWrapper, addSWrapper: claset * (string * wrapper) -> claset
oheimb@4824
  6145
  delWrapper, delSWrapper: claset *  string            -> claset
oheimb@4649
  6146
  getWrapper is renamed to appWrappers, getSWrapper to appSWrappers;
oheimb@4649
  6147
wenzelm@5705
  6148
* Classical reasoner: addbefore/addSbefore now have APPEND/ORELSE
wenzelm@5726
  6149
semantics; addbefore now affects only the unsafe part of step_tac
wenzelm@5726
  6150
etc.; this affects addss/auto_tac/force_tac, so EXISTING PROOFS MAY
wenzelm@5726
  6151
FAIL, but proofs should be fixable easily, e.g. by replacing Auto_tac
wenzelm@5726
  6152
by Force_tac;
oheimb@5524
  6153
wenzelm@5726
  6154
* Classical reasoner: setwrapper to setWrapper and compwrapper to
wenzelm@5726
  6155
compWrapper; added safe wrapper (and access functions for it);
oheimb@5524
  6156
wenzelm@5127
  6157
* HOL/split_all_tac is now much faster and fails if there is nothing
wenzelm@5726
  6158
to split.  Some EXISTING PROOFS MAY REQUIRE ADAPTION because the order
wenzelm@5726
  6159
and the names of the automatically generated variables have changed.
wenzelm@5726
  6160
split_all_tac has moved within claset() from unsafe wrappers to safe
wenzelm@5726
  6161
wrappers, which means that !!-bound variables are split much more
wenzelm@5726
  6162
aggressively, and safe_tac and clarify_tac now split such variables.
wenzelm@5726
  6163
If this splitting is not appropriate, use delSWrapper "split_all_tac".
wenzelm@5726
  6164
Note: the same holds for record_split_tac, which does the job of
wenzelm@5726
  6165
split_all_tac for record fields.
wenzelm@5127
  6166
wenzelm@5726
  6167
* HOL/Simplifier: Rewrite rules for case distinctions can now be added
wenzelm@5726
  6168
permanently to the default simpset using Addsplits just like
wenzelm@5726
  6169
Addsimps. They can be removed via Delsplits just like
wenzelm@5726
  6170
Delsimps. Lower-case versions are also available.
wenzelm@5127
  6171
wenzelm@5726
  6172
* HOL/Simplifier: The rule split_if is now part of the default
wenzelm@5726
  6173
simpset. This means that the simplifier will eliminate all occurrences
wenzelm@5726
  6174
of if-then-else in the conclusion of a goal. To prevent this, you can
wenzelm@5726
  6175
either remove split_if completely from the default simpset by
wenzelm@5726
  6176
`Delsplits [split_if]' or remove it in a specific call of the
wenzelm@5726
  6177
simplifier using `... delsplits [split_if]'.  You can also add/delete
wenzelm@5726
  6178
other case splitting rules to/from the default simpset: every datatype
wenzelm@5726
  6179
generates suitable rules `split_t_case' and `split_t_case_asm' (where
wenzelm@5726
  6180
t is the name of the datatype).
wenzelm@5127
  6181
wenzelm@5726
  6182
* Classical reasoner / Simplifier combination: new force_tac (and
wenzelm@5127
  6183
derivatives Force_tac, force) combines rewriting and classical
wenzelm@5127
  6184
reasoning (and whatever other tools) similarly to auto_tac, but is
wenzelm@5726
  6185
aimed to solve the given subgoal completely.
wenzelm@5127
  6186
wenzelm@5127
  6187
wenzelm@5127
  6188
*** General ***
wenzelm@5127
  6189
wenzelm@5217
  6190
* new top-level commands `Goal' and `Goalw' that improve upon `goal'
wenzelm@5127
  6191
and `goalw': the theory is no longer needed as an explicit argument -
wenzelm@5127
  6192
the current theory context is used; assumptions are no longer returned
wenzelm@5127
  6193
at the ML-level unless one of them starts with ==> or !!; it is
wenzelm@5217
  6194
recommended to convert to these new commands using isatool fixgoal
wenzelm@5217
  6195
(backup your sources first!);
wenzelm@4842
  6196
wenzelm@5217
  6197
* new top-level commands 'thm' and 'thms' for retrieving theorems from
wenzelm@5207
  6198
the current theory context, and 'theory' to lookup stored theories;
paulson@4806
  6199
paulson@5722
  6200
* new theory section 'locale' for declaring constants, assumptions and
paulson@5722
  6201
definitions that have local scope;
paulson@5722
  6202
wenzelm@5127
  6203
* new theory section 'nonterminals' for purely syntactic types;
wenzelm@4858
  6204
wenzelm@5127
  6205
* new theory section 'setup' for generic ML setup functions
wenzelm@5127
  6206
(e.g. package initialization);
wenzelm@4869
  6207
wenzelm@5131
  6208
* the distribution now includes Isabelle icons: see
wenzelm@5131
  6209
lib/logo/isabelle-{small,tiny}.xpm;
wenzelm@5131
  6210
wenzelm@5363
  6211
* isatool install - install binaries with absolute references to
wenzelm@5363
  6212
ISABELLE_HOME/bin;
wenzelm@5363
  6213
wenzelm@5572
  6214
* isatool logo -- create instances of the Isabelle logo (as EPS);
wenzelm@5572
  6215
wenzelm@5407
  6216
* print mode 'emacs' reserved for Isamode;
wenzelm@5407
  6217
wenzelm@5726
  6218
* support multiple print (ast) translations per constant name;
wenzelm@5726
  6219
wenzelm@6925
  6220
* theorems involving oracles are now printed with a suffixed [!];
wenzelm@6925
  6221
wenzelm@4711
  6222
paulson@4661
  6223
*** HOL ***
paulson@4661
  6224
wenzelm@5710
  6225
* there is now a tutorial on Isabelle/HOL (do 'isatool doc tutorial');
nipkow@5709
  6226
wenzelm@5217
  6227
* HOL/inductive package reorganized and improved: now supports mutual
paulson@5267
  6228
definitions such as
berghofe@5214
  6229
wenzelm@5217
  6230
  inductive EVEN ODD
wenzelm@5217
  6231
    intrs
wenzelm@5217
  6232
      null "0 : EVEN"
wenzelm@5217
  6233
      oddI "n : EVEN ==> Suc n : ODD"
wenzelm@5217
  6234
      evenI "n : ODD ==> Suc n : EVEN"
berghofe@5214
  6235
wenzelm@5217
  6236
new theorem list "elims" contains an elimination rule for each of the
wenzelm@5217
  6237
recursive sets; inductive definitions now handle disjunctive premises
wenzelm@5217
  6238
correctly (also ZF);
berghofe@5214
  6239
wenzelm@5217
  6240
INCOMPATIBILITIES: requires Inductive as an ancestor; component
wenzelm@5217
  6241
"mutual_induct" no longer exists - the induction rule is always
wenzelm@5217
  6242
contained in "induct";
berghofe@5214
  6243
berghofe@5214
  6244
wenzelm@5217
  6245
* HOL/datatype package re-implemented and greatly improved: now
paulson@5267
  6246
supports mutually recursive datatypes such as
berghofe@5214
  6247
wenzelm@5217
  6248
  datatype
wenzelm@5217
  6249
    'a aexp = IF_THEN_ELSE ('a bexp) ('a aexp) ('a aexp)
wenzelm@5217
  6250
            | SUM ('a aexp) ('a aexp)
wenzelm@5217
  6251
            | DIFF ('a aexp) ('a aexp)
wenzelm@5217
  6252
            | NUM 'a
wenzelm@5217
  6253
  and
wenzelm@5217
  6254
    'a bexp = LESS ('a aexp) ('a aexp)
wenzelm@5217
  6255
            | AND ('a bexp) ('a bexp)
wenzelm@5217
  6256
            | OR ('a bexp) ('a bexp)
wenzelm@5217
  6257
paulson@5267
  6258
as well as indirectly recursive datatypes such as
wenzelm@5217
  6259
wenzelm@5217
  6260
  datatype
wenzelm@5217
  6261
    ('a, 'b) term = Var 'a
wenzelm@5217
  6262
                  | App 'b ((('a, 'b) term) list)
wenzelm@5217
  6263
wenzelm@5217
  6264
The new tactic  mutual_induct_tac [<var_1>, ..., <var_n>] i  performs
wenzelm@5217
  6265
induction on mutually / indirectly recursive datatypes.
wenzelm@5217
  6266
wenzelm@5217
  6267
Primrec equations are now stored in theory and can be accessed via
wenzelm@5217
  6268
<function_name>.simps.
wenzelm@5217
  6269
wenzelm@5217
  6270
INCOMPATIBILITIES:
wenzelm@5217
  6271
wenzelm@5217
  6272
  - Theories using datatypes must now have theory Datatype as an
wenzelm@5217
  6273
    ancestor.
wenzelm@5217
  6274
  - The specific <typename>.induct_tac no longer exists - use the
wenzelm@5217
  6275
    generic induct_tac instead.
berghofe@5226
  6276
  - natE has been renamed to nat.exhaust - use exhaust_tac
wenzelm@5217
  6277
    instead of res_inst_tac ... natE. Note that the variable
berghofe@5226
  6278
    names in nat.exhaust differ from the names in natE, this
wenzelm@5217
  6279
    may cause some "fragile" proofs to fail.
wenzelm@5217
  6280
  - The theorems split_<typename>_case and split_<typename>_case_asm
wenzelm@5217
  6281
    have been renamed to <typename>.split and <typename>.split_asm.
wenzelm@5217
  6282
  - Since default sorts of type variables are now handled correctly,
wenzelm@5217
  6283
    some datatype definitions may have to be annotated with explicit
wenzelm@5217
  6284
    sort constraints.
wenzelm@5217
  6285
  - Primrec definitions no longer require function name and type
wenzelm@5217
  6286
    of recursive argument.
wenzelm@5217
  6287
wenzelm@5217
  6288
Consider using isatool fixdatatype to adapt your theories and proof
wenzelm@5217
  6289
scripts to the new package (backup your sources first!).
wenzelm@5217
  6290
wenzelm@5217
  6291
wenzelm@5726
  6292
* HOL/record package: considerably improved implementation; now
wenzelm@5726
  6293
includes concrete syntax for record types, terms, updates; theorems
wenzelm@5726
  6294
for surjective pairing and splitting !!-bound record variables; proof
wenzelm@5726
  6295
support is as follows:
wenzelm@5726
  6296
wenzelm@5726
  6297
  1) standard conversions (selectors or updates applied to record
wenzelm@5726
  6298
constructor terms) are part of the standard simpset;
wenzelm@5726
  6299
wenzelm@5726
  6300
  2) inject equations of the form ((x, y) = (x', y')) == x=x' & y=y' are
wenzelm@5726
  6301
made part of standard simpset and claset via addIffs;
wenzelm@5726
  6302
wenzelm@5726
  6303
  3) a tactic for record field splitting (record_split_tac) is part of
wenzelm@5726
  6304
the standard claset (addSWrapper);
wenzelm@5726
  6305
wenzelm@5726
  6306
To get a better idea about these rules you may retrieve them via
wenzelm@5726
  6307
something like 'thms "foo.simps"' or 'thms "foo.iffs"', where "foo" is
wenzelm@5726
  6308
the name of your record type.
wenzelm@5726
  6309
wenzelm@5726
  6310
The split tactic 3) conceptually simplifies by the following rule:
wenzelm@5726
  6311
wenzelm@5726
  6312
  "(!!x. PROP ?P x) == (!!a b. PROP ?P (a, b))"
wenzelm@5726
  6313
wenzelm@5726
  6314
Thus any record variable that is bound by meta-all will automatically
wenzelm@5726
  6315
blow up into some record constructor term, consequently the
wenzelm@5726
  6316
simplifications of 1), 2) apply.  Thus force_tac, auto_tac etc. shall
wenzelm@5726
  6317
solve record problems automatically.
wenzelm@5726
  6318
berghofe@5214
  6319
wenzelm@5125
  6320
* reorganized the main HOL image: HOL/Integ and String loaded by
wenzelm@5125
  6321
default; theory Main includes everything;
wenzelm@5125
  6322
paulson@5650
  6323
* automatic simplification of integer sums and comparisons, using cancellation;
paulson@5650
  6324
oheimb@5526
  6325
* added option_map_eq_Some and not_Some_eq to the default simpset and claset;
wenzelm@5125
  6326
wenzelm@5127
  6327
* added disj_not1 = "(~P | Q) = (P --> Q)" to the default simpset;
wenzelm@5125
  6328
wenzelm@5127
  6329
* many new identities for unions, intersections, set difference, etc.;
wenzelm@5127
  6330
wenzelm@5127
  6331
* expand_if, expand_split, expand_sum_case and expand_nat_case are now
wenzelm@5127
  6332
called split_if, split_split, split_sum_case and split_nat_case (to go
wenzelm@5127
  6333
with add/delsplits);
wenzelm@5127
  6334
wenzelm@5127
  6335
* HOL/Prod introduces simplification procedure unit_eq_proc rewriting
wenzelm@5127
  6336
(?x::unit) = (); this is made part of the default simpset, which COULD
wenzelm@5127
  6337
MAKE EXISTING PROOFS FAIL under rare circumstances (consider
wenzelm@5207
  6338
'Delsimprocs [unit_eq_proc];' as last resort); also note that
wenzelm@5207
  6339
unit_abs_eta_conv is added in order to counter the effect of
wenzelm@5207
  6340
unit_eq_proc on (%u::unit. f u), replacing it by f rather than by
wenzelm@5207
  6341
%u.f();
wenzelm@5127
  6342
wenzelm@5217
  6343
* HOL/Fun INCOMPATIBILITY: `inj_onto' is now called `inj_on' (which
wenzelm@5217
  6344
makes more sense);
wenzelm@5127
  6345
paulson@5475
  6346
* HOL/Set INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  6347
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  6348
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  6349
wenzelm@5217
  6350
* HOL/Relation INCOMPATIBILITY: renamed the relational operator r^-1
wenzelm@5217
  6351
to 'converse' from 'inverse' (for compatibility with ZF and some
wenzelm@5217
  6352
literature);
berghofe@5109
  6353
wenzelm@5127
  6354
* HOL/recdef can now declare non-recursive functions, with {} supplied as
wenzelm@5127
  6355
the well-founded relation;
wenzelm@5085
  6356
paulson@5490
  6357
* HOL/Set INCOMPATIBILITY: the complement of set A is now written -A instead of
paulson@5490
  6358
    Compl A.  The "Compl" syntax remains available as input syntax for this
paulson@5490
  6359
    release ONLY.
paulson@5490
  6360
wenzelm@5127
  6361
* HOL/Update: new theory of function updates:
wenzelm@5127
  6362
    f(a:=b) == %x. if x=a then b else f x
wenzelm@5127
  6363
may also be iterated as in f(a:=b,c:=d,...);
oheimb@4824
  6364
wenzelm@5127
  6365
* HOL/Vimage: new theory for inverse image of a function, syntax f-``B;
paulson@4899
  6366
nipkow@5282
  6367
* HOL/List:
nipkow@5282
  6368
  - new function list_update written xs[i:=v] that updates the i-th
nipkow@5282
  6369
    list position. May also be iterated as in xs[i:=a,j:=b,...].
nipkow@5428
  6370
  - new function `upt' written [i..j(] which generates the list
nipkow@5428
  6371
    [i,i+1,...,j-1], i.e. the upper bound is excluded. To include the upper
nipkow@5428
  6372
    bound write [i..j], which is a shorthand for [i..j+1(].
nipkow@5282
  6373
  - new lexicographic orderings and corresponding wellfoundedness theorems.
paulson@4779
  6374
wenzelm@5127
  6375
* HOL/Arith:
wenzelm@5127
  6376
  - removed 'pred' (predecessor) function;
wenzelm@5127
  6377
  - generalized some theorems about n-1;
wenzelm@5127
  6378
  - many new laws about "div" and "mod";
wenzelm@5127
  6379
  - new laws about greatest common divisors (see theory ex/Primes);
oheimb@4766
  6380
wenzelm@5127
  6381
* HOL/Relation: renamed the relational operator r^-1 "converse"
wenzelm@4842
  6382
instead of "inverse";
wenzelm@4711
  6383
nipkow@5651
  6384
* HOL/Induct/Multiset: a theory of multisets, including the wellfoundedness
nipkow@5651
  6385
  of the multiset ordering;
nipkow@5651
  6386
wenzelm@5127
  6387
* directory HOL/Real: a construction of the reals using Dedekind cuts
nipkow@5651
  6388
  (not included by default);
paulson@4806
  6389
wenzelm@5127
  6390
* directory HOL/UNITY: Chandy and Misra's UNITY formalism;
wenzelm@4711
  6391
nipkow@5651
  6392
* directory HOL/Hoare: a new version of Hoare logic which permits many-sorted
nipkow@5651
  6393
  programs, i.e. different program variables may have different types.
nipkow@5651
  6394
paulson@5142
  6395
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  6396
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  6397
  Now rew can involve either definitions or equalities (either == or =).
wenzelm@5002
  6398
wenzelm@5363
  6399
paulson@4879
  6400
*** ZF ***
paulson@4879
  6401
paulson@5332
  6402
* theory Main includes everything; INCOMPATIBILITY: theory ZF.thy contains
paulson@5332
  6403
  only the theorems proved on ZF.ML;
paulson@5160
  6404
paulson@5475
  6405
* ZF INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  6406
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  6407
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  6408
paulson@5160
  6409
* ZF/Update: new theory of function updates
paulson@5160
  6410
    with default rewrite rule  f(x:=y) ` z = if(z=x, y, f`z)
paulson@5160
  6411
  may also be iterated as in f(a:=b,c:=d,...);
paulson@5160
  6412
paulson@4879
  6413
* in  let x=t in u(x), neither t nor u(x) has to be an FOL term.
oheimb@4649
  6414
paulson@5142
  6415
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  6416
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  6417
  Now rew can involve either definitions or equalities (either == or =).
paulson@5142
  6418
paulson@5160
  6419
* case_tac provided for compatibility with HOL
paulson@5160
  6420
    (like the old excluded_middle_tac, but with subgoals swapped)
paulson@5160
  6421
wenzelm@4842
  6422
wenzelm@5127
  6423
*** Internal programming interfaces ***
wenzelm@5002
  6424
wenzelm@5251
  6425
* Pure: several new basic modules made available for general use, see
wenzelm@5251
  6426
also src/Pure/README;
wenzelm@5207
  6427
wenzelm@5008
  6428
* improved the theory data mechanism to support encapsulation (data
wenzelm@5008
  6429
kind name replaced by private Object.kind, acting as authorization
wenzelm@5373
  6430
key); new type-safe user interface via functor TheoryDataFun; generic
wenzelm@5373
  6431
print_data function becomes basically useless;
wenzelm@5002
  6432
wenzelm@5251
  6433
* removed global_names compatibility flag -- all theory declarations
wenzelm@5251
  6434
are qualified by default;
wenzelm@5251
  6435
wenzelm@5085
  6436
* module Pure/Syntax now offers quote / antiquote translation
wenzelm@5085
  6437
functions (useful for Hoare logic etc. with implicit dependencies);
wenzelm@5373
  6438
see HOL/ex/Antiquote for an example use;
wenzelm@5085
  6439
wenzelm@5127
  6440
* Simplifier now offers conversions (asm_)(full_)rewrite: simpset ->
wenzelm@5127
  6441
cterm -> thm;
wenzelm@5127
  6442
wenzelm@5207
  6443
* new tactical CHANGED_GOAL for checking that a tactic modifies a
wenzelm@5207
  6444
subgoal;
paulson@5142
  6445
wenzelm@5251
  6446
* Display.print_goals function moved to Locale.print_goals;
wenzelm@5251
  6447
wenzelm@5731
  6448
* standard print function for goals supports current_goals_markers
wenzelm@5731
  6449
variable for marking begin of proof, end of proof, start of goal; the
wenzelm@5731
  6450
default is ("", "", ""); setting current_goals_markers := ("<proof>",
wenzelm@5731
  6451
"</proof>", "<goal>") causes SGML like tagged proof state printing,
wenzelm@5731
  6452
for example;
wenzelm@5731
  6453
wenzelm@5002
  6454
wenzelm@5002
  6455
wenzelm@4410
  6456
New in Isabelle98 (January 1998)
wenzelm@4410
  6457
--------------------------------
wenzelm@4410
  6458
wenzelm@4410
  6459
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4410
  6460
wenzelm@4410
  6461
* changed lexical syntax of terms / types: dots made part of long
wenzelm@4410
  6462
identifiers, e.g. "%x.x" no longer possible, should be "%x. x";
wenzelm@4410
  6463
wenzelm@4410
  6464
* simpset (and claset) reference variable replaced by functions
wenzelm@4410
  6465
simpset / simpset_ref;
wenzelm@4410
  6466
wenzelm@4410
  6467
* no longer supports theory aliases (via merge) and non-trivial
wenzelm@4410
  6468
implicit merge of thms' signatures;
wenzelm@4410
  6469
wenzelm@4410
  6470
* most internal names of constants changed due to qualified names;
wenzelm@4410
  6471
wenzelm@4410
  6472
* changed Pure/Sequence interface (see Pure/seq.ML);
wenzelm@4410
  6473
wenzelm@3454
  6474
paulson@3715
  6475
*** General Changes ***
wenzelm@3697
  6476
wenzelm@4174
  6477
* hierachically structured name spaces (for consts, types, axms, thms
wenzelm@3943
  6478
etc.); new lexical class 'longid' (e.g. Foo.bar.x) may render much of
wenzelm@4108
  6479
old input syntactically incorrect (e.g. "%x.x"); COMPATIBILITY:
wenzelm@4108
  6480
isatool fixdots ensures space after dots (e.g. "%x. x"); set
wenzelm@4174
  6481
long_names for fully qualified output names; NOTE: ML programs
wenzelm@4174
  6482
(special tactics, packages etc.) referring to internal names may have
wenzelm@4174
  6483
to be adapted to cope with fully qualified names; in case of severe
wenzelm@4174
  6484
backward campatibility problems try setting 'global_names' at compile
wenzelm@4174
  6485
time to have enrything declared within a flat name space; one may also
wenzelm@4174
  6486
fine tune name declarations in theories via the 'global' and 'local'
wenzelm@4174
  6487
section;
wenzelm@4108
  6488
wenzelm@4108
  6489
* reimplemented the implicit simpset and claset using the new anytype
wenzelm@4108
  6490
data filed in signatures; references simpset:simpset ref etc. are
wenzelm@4108
  6491
replaced by functions simpset:unit->simpset and
wenzelm@4108
  6492
simpset_ref:unit->simpset ref; COMPATIBILITY: use isatool fixclasimp
wenzelm@4108
  6493
to patch your ML files accordingly;
paulson@3856
  6494
wenzelm@3857
  6495
* HTML output now includes theory graph data for display with Java
wenzelm@3857
  6496
applet or isatool browser; data generated automatically via isatool
wenzelm@3901
  6497
usedir (see -i option, ISABELLE_USEDIR_OPTIONS);
wenzelm@3857
  6498
paulson@3856
  6499
* defs may now be conditional; improved rewrite_goals_tac to handle
paulson@3856
  6500
conditional equations;
paulson@3856
  6501
wenzelm@4174
  6502
* defs now admits additional type arguments, using TYPE('a) syntax;
wenzelm@4174
  6503
wenzelm@3901
  6504
* theory aliases via merge (e.g. M=A+B+C) no longer supported, always
wenzelm@3901
  6505
creates a new theory node; implicit merge of thms' signatures is
wenzelm@4112
  6506
restricted to 'trivial' ones; COMPATIBILITY: one may have to use
wenzelm@3901
  6507
transfer:theory->thm->thm in (rare) cases;
wenzelm@3901
  6508
wenzelm@3968
  6509
* improved handling of draft signatures / theories; draft thms (and
wenzelm@3968
  6510
ctyps, cterms) are automatically promoted to real ones;
wenzelm@3968
  6511
wenzelm@3901
  6512
* slightly changed interfaces for oracles: admit many per theory, named
wenzelm@3901
  6513
(e.g. oracle foo = mlfun), additional name argument for invoke_oracle;
wenzelm@3901
  6514
wenzelm@3901
  6515
* print_goals: optional output of const types (set show_consts and
wenzelm@3901
  6516
show_types);
wenzelm@3851
  6517
wenzelm@4388
  6518
* improved output of warnings (###) and errors (***);
wenzelm@3697
  6519
paulson@4178
  6520
* subgoal_tac displays a warning if the new subgoal has type variables;
paulson@4178
  6521
paulson@3715
  6522
* removed old README and Makefiles;
paulson@3715
  6523
paulson@3856
  6524
* replaced print_goals_ref hook by print_current_goals_fn and result_error_fn;
wenzelm@3670
  6525
paulson@3715
  6526
* removed obsolete init_pps and init_database;
paulson@3715
  6527
paulson@3715
  6528
* deleted the obsolete tactical STATE, which was declared by
paulson@3715
  6529
    fun STATE tacfun st = tacfun st st;
paulson@3715
  6530
wenzelm@4388
  6531
* cd and use now support path variables, e.g. $ISABELLE_HOME, or ~
wenzelm@4388
  6532
(which abbreviates $HOME);
wenzelm@4269
  6533
wenzelm@4269
  6534
* changed Pure/Sequence interface (see Pure/seq.ML); COMPATIBILITY:
wenzelm@4269
  6535
use isatool fixseq to adapt your ML programs (this works for fully
wenzelm@4269
  6536
qualified references to the Sequence structure only!);
wenzelm@4269
  6537
wenzelm@4381
  6538
* use_thy no longer requires writable current directory; it always
wenzelm@4381
  6539
reloads .ML *and* .thy file, if either one is out of date;
wenzelm@4269
  6540
paulson@3715
  6541
paulson@3715
  6542
*** Classical Reasoner ***
paulson@3715
  6543
wenzelm@3744
  6544
* Clarify_tac, clarify_tac, clarify_step_tac, Clarify_step_tac: new
wenzelm@3744
  6545
tactics that use classical reasoning to simplify a subgoal without
wenzelm@3744
  6546
splitting it into several subgoals;
paulson@3715
  6547
paulson@3719
  6548
* Safe_tac: like safe_tac but uses the default claset;
paulson@3719
  6549
paulson@3715
  6550
paulson@3715
  6551
*** Simplifier ***
paulson@3715
  6552
paulson@3715
  6553
* added simplification meta rules:
paulson@3715
  6554
    (asm_)(full_)simplify: simpset -> thm -> thm;
paulson@3715
  6555
paulson@3715
  6556
* simplifier.ML no longer part of Pure -- has to be loaded by object
paulson@3715
  6557
logics (again);
paulson@3715
  6558
paulson@3715
  6559
* added prems argument to simplification procedures;
paulson@3715
  6560
paulson@4325
  6561
* HOL, FOL, ZF: added infix function `addsplits':
paulson@4325
  6562
  instead of `<simpset> setloop (split_tac <thms>)'
paulson@4325
  6563
  you can simply write `<simpset> addsplits <thms>'
paulson@4325
  6564
paulson@3715
  6565
paulson@3715
  6566
*** Syntax ***
paulson@3715
  6567
wenzelm@4174
  6568
* TYPE('a) syntax for type reflection terms;
wenzelm@4174
  6569
wenzelm@3985
  6570
* no longer handles consts with name "" -- declare as 'syntax' instead;
paulson@3856
  6571
paulson@3856
  6572
* pretty printer: changed order of mixfix annotation preference (again!);
wenzelm@3846
  6573
paulson@3715
  6574
* Pure: fixed idt/idts vs. pttrn/pttrns syntactic categories;
paulson@3715
  6575
paulson@3715
  6576
paulson@3715
  6577
*** HOL ***
paulson@3715
  6578
wenzelm@5726
  6579
* HOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  6580
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  6581
nipkow@4035
  6582
* HOL/TLA: Stephan Merz's formalization of Lamport's Temporal Logic of Actions;
wenzelm@3985
  6583
wenzelm@3985
  6584
* HOL/Auth: new protocol proofs including some for the Internet
nipkow@4035
  6585
  protocol TLS;
wenzelm@3985
  6586
wenzelm@4125
  6587
* HOL/Map: new theory of `maps' a la VDM;
nipkow@3982
  6588
wenzelm@4335
  6589
* HOL/simplifier: simplification procedures nat_cancel_sums for
wenzelm@4335
  6590
cancelling out common nat summands from =, <, <= (in)equalities, or
wenzelm@4335
  6591
differences; simplification procedures nat_cancel_factor for
wenzelm@4335
  6592
cancelling common factor from =, <, <= (in)equalities over natural
wenzelm@4373
  6593
sums; nat_cancel contains both kinds of procedures, it is installed by
wenzelm@4373
  6594
default in Arith.thy -- this COULD MAKE EXISTING PROOFS FAIL;
wenzelm@4335
  6595
nipkow@3580
  6596
* HOL/simplifier: terms of the form
paulson@4325
  6597
  `? x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x)'  (or t=x)
nipkow@3580
  6598
  are rewritten to
nipkow@4035
  6599
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t)',
nipkow@4035
  6600
  and those of the form
paulson@4325
  6601
  `! x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x) --> R(x)'  (or t=x)
nipkow@4035
  6602
  are rewritten to
nipkow@4035
  6603
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t) --> R(t)',
nipkow@3580
  6604
nipkow@4035
  6605
* HOL/datatype
nipkow@4035
  6606
  Each datatype `t' now comes with a theorem `split_t_case' of the form
nipkow@4035
  6607
nipkow@4035
  6608
  P(t_case f1 ... fn x) =
nipkow@4035
  6609
     ( (!y1 ... ym1. x = C1 y1 ... ym1 --> P(f1 y1 ... ym1)) &
nipkow@4035
  6610
        ...
oheimb@4189
  6611
       (!y1 ... ymn. x = Cn y1 ... ymn --> P(f1 y1 ... ymn))
nipkow@4035
  6612
     )
nipkow@4035
  6613
oheimb@4930
  6614
  and a theorem `split_t_case_asm' of the form
oheimb@4189
  6615
oheimb@4189
  6616
  P(t_case f1 ... fn x) =
oheimb@4189
  6617
    ~( (? y1 ... ym1. x = C1 y1 ... ym1 & ~P(f1 y1 ... ym1)) |
oheimb@4189
  6618
        ...
oheimb@4189
  6619
       (? y1 ... ymn. x = Cn y1 ... ymn & ~P(f1 y1 ... ymn))
oheimb@4189
  6620
     )
oheimb@4930
  6621
  which can be added to a simpset via `addsplits'. The existing theorems
oheimb@4930
  6622
  expand_list_case and expand_option_case have been renamed to
oheimb@4930
  6623
  split_list_case and split_option_case.
oheimb@4189
  6624
nipkow@4361
  6625
* HOL/Arithmetic:
nipkow@4361
  6626
  - `pred n' is automatically converted to `n-1'.
nipkow@4361
  6627
    Users are strongly encouraged not to use `pred' any longer,
nipkow@4361
  6628
    because it will disappear altogether at some point.
nipkow@4361
  6629
  - Users are strongly encouraged to write "0 < n" rather than
nipkow@4361
  6630
    "n ~= 0". Theorems and proof tools have been modified towards this
nipkow@4361
  6631
    `standard'.
nipkow@4357
  6632
nipkow@4502
  6633
* HOL/Lists:
nipkow@4502
  6634
  the function "set_of_list" has been renamed "set" (and its theorems too);
nipkow@4502
  6635
  the function "nth" now takes its arguments in the reverse order and
nipkow@4502
  6636
  has acquired the infix notation "!" as in "xs!n".
paulson@3570
  6637
paulson@4154
  6638
* HOL/Set: UNIV is now a constant and is no longer translated to Compl{};
paulson@4154
  6639
paulson@4154
  6640
* HOL/Set: The operator (UN x.B x) now abbreviates (UN x:UNIV. B x) and its
paulson@4154
  6641
  specialist theorems (like UN1_I) are gone.  Similarly for (INT x.B x);
paulson@4154
  6642
wenzelm@4575
  6643
* HOL/record: extensible records with schematic structural subtyping
wenzelm@4575
  6644
(single inheritance); EXPERIMENTAL version demonstrating the encoding,
wenzelm@4575
  6645
still lacks various theorems and concrete record syntax;
wenzelm@4575
  6646
wenzelm@4125
  6647
paulson@3715
  6648
*** HOLCF ***
wenzelm@3511
  6649
wenzelm@4125
  6650
* removed "axioms" and "generated by" sections;
wenzelm@4125
  6651
oheimb@4123
  6652
* replaced "ops" section by extended "consts" section, which is capable of
wenzelm@4125
  6653
  handling the continuous function space "->" directly;
wenzelm@4125
  6654
wenzelm@4125
  6655
* domain package:
wenzelm@4125
  6656
  . proves theorems immediately and stores them in the theory,
wenzelm@4125
  6657
  . creates hierachical name space,
wenzelm@4125
  6658
  . now uses normal mixfix annotations (instead of cinfix...),
wenzelm@4125
  6659
  . minor changes to some names and values (for consistency),
wenzelm@4125
  6660
  . e.g. cases -> casedist, dists_eq -> dist_eqs, [take_lemma] -> take_lemmas,
wenzelm@4125
  6661
  . separator between mutual domain defs: changed "," to "and",
wenzelm@4125
  6662
  . improved handling of sort constraints;  now they have to
wenzelm@4125
  6663
    appear on the left-hand side of the equations only;
oheimb@4123
  6664
oheimb@4123
  6665
* fixed LAM <x,y,zs>.b syntax;
wenzelm@3535
  6666
wenzelm@3744
  6667
* added extended adm_tac to simplifier in HOLCF -- can now discharge
wenzelm@3744
  6668
adm (%x. P (t x)), where P is chainfinite and t continuous;
wenzelm@3579
  6669
wenzelm@3579
  6670
paulson@3719
  6671
*** FOL and ZF ***
paulson@3719
  6672
wenzelm@5726
  6673
* FOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  6674
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  6675
wenzelm@3744
  6676
* qed_spec_mp, qed_goal_spec_mp, qed_goalw_spec_mp are available, as
wenzelm@3744
  6677
in HOL, they strip ALL and --> from proved theorems;
wenzelm@3744
  6678
paulson@3719
  6679
wenzelm@3579
  6680
wenzelm@3006
  6681
New in Isabelle94-8 (May 1997)
wenzelm@3006
  6682
------------------------------
wenzelm@2654
  6683
paulson@3002
  6684
*** General Changes ***
paulson@3002
  6685
paulson@3002
  6686
* new utilities to build / run / maintain Isabelle etc. (in parts
paulson@3002
  6687
still somewhat experimental); old Makefiles etc. still functional;
wenzelm@2971
  6688
wenzelm@3205
  6689
* new 'Isabelle System Manual';
wenzelm@3205
  6690
wenzelm@2825
  6691
* INSTALL text, together with ./configure and ./build scripts;
wenzelm@2773
  6692
wenzelm@3006
  6693
* reimplemented type inference for greater efficiency, better error
wenzelm@3006
  6694
messages and clean internal interface;
paulson@3002
  6695
paulson@3002
  6696
* prlim command for dealing with lots of subgoals (an easier way of
paulson@3002
  6697
setting goals_limit);
paulson@3002
  6698
wenzelm@3006
  6699
wenzelm@3006
  6700
*** Syntax ***
paulson@3002
  6701
wenzelm@3116
  6702
* supports alternative (named) syntax tables (parser and pretty
wenzelm@3116
  6703
printer); internal interface is provided by add_modesyntax(_i);
wenzelm@3116
  6704
paulson@3002
  6705
* Pure, FOL, ZF, HOL, HOLCF now support symbolic input and output; to
paulson@3002
  6706
be used in conjunction with the Isabelle symbol font; uses the
paulson@3002
  6707
"symbols" syntax table;
paulson@3002
  6708
wenzelm@2705
  6709
* added token_translation interface (may translate name tokens in
wenzelm@2756
  6710
arbitrary ways, dependent on their type (free, bound, tfree, ...) and
wenzelm@3116
  6711
the current print_mode); IMPORTANT: user print translation functions
wenzelm@3116
  6712
are responsible for marking newly introduced bounds
wenzelm@3116
  6713
(Syntax.mark_boundT);
wenzelm@2705
  6714
wenzelm@2730
  6715
* token translations for modes "xterm" and "xterm_color" that display
wenzelm@3006
  6716
names in bold, underline etc. or colors (which requires a color
wenzelm@3006
  6717
version of xterm);
wenzelm@2730
  6718
paulson@3002
  6719
* infixes may now be declared with names independent of their syntax;
paulson@3002
  6720
paulson@3002
  6721
* added typed_print_translation (like print_translation, but may
paulson@3002
  6722
access type of constant);
paulson@3002
  6723
wenzelm@3006
  6724
paulson@3002
  6725
*** Classical Reasoner ***
paulson@3002
  6726
paulson@3002
  6727
Blast_tac: a new tactic!  It is often more powerful than fast_tac, but has
paulson@3002
  6728
some limitations.  Blast_tac...
paulson@3002
  6729
  + ignores addss, addbefore, addafter; this restriction is intrinsic
paulson@3002
  6730
  + ignores elimination rules that don't have the correct format
wenzelm@5726
  6731
        (the conclusion MUST be a formula variable)
paulson@3002
  6732
  + ignores types, which can make HOL proofs fail
paulson@3002
  6733
  + rules must not require higher-order unification, e.g. apply_type in ZF
paulson@3002
  6734
    [message "Function Var's argument not a bound variable" relates to this]
paulson@3002
  6735
  + its proof strategy is more general but can actually be slower
paulson@3002
  6736
wenzelm@3107
  6737
* substitution with equality assumptions no longer permutes other
wenzelm@3107
  6738
assumptions;
paulson@3002
  6739
paulson@3002
  6740
* minor changes in semantics of addafter (now called addaltern); renamed
paulson@3002
  6741
setwrapper to setWrapper and compwrapper to compWrapper; added safe wrapper
wenzelm@3107
  6742
(and access functions for it);
paulson@3002
  6743
wenzelm@5726
  6744
* improved combination of classical reasoner and simplifier:
oheimb@3317
  6745
  + functions for handling clasimpsets
oheimb@3317
  6746
  + improvement of addss: now the simplifier is called _after_ the
oheimb@3317
  6747
    safe steps.
oheimb@3317
  6748
  + safe variant of addss called addSss: uses safe simplifications
wenzelm@5726
  6749
    _during_ the safe steps. It is more complete as it allows multiple
oheimb@3317
  6750
    instantiations of unknowns (e.g. with slow_tac).
wenzelm@3006
  6751
paulson@3002
  6752
*** Simplifier ***
paulson@3002
  6753
wenzelm@3006
  6754
* added interface for simplification procedures (functions that
wenzelm@3006
  6755
produce *proven* rewrite rules on the fly, depending on current
wenzelm@3006
  6756
redex);
wenzelm@3006
  6757
wenzelm@3006
  6758
* ordering on terms as parameter (used for ordered rewriting);
wenzelm@3006
  6759
wenzelm@3107
  6760
* new functions delcongs, deleqcongs, and Delcongs. richer rep_ss;
paulson@3002
  6761
paulson@3002
  6762
* the solver is now split into a safe and an unsafe part.
paulson@3002
  6763
This should be invisible for the normal user, except that the
paulson@3002
  6764
functions setsolver and addsolver have been renamed to setSolver and
wenzelm@3107
  6765
addSolver; added safe_asm_full_simp_tac;
paulson@3002
  6766
paulson@3002
  6767
paulson@3002
  6768
*** HOL ***
paulson@3002
  6769
nipkow@3042
  6770
* a generic induction tactic `induct_tac' which works for all datatypes and
wenzelm@3107
  6771
also for type `nat';
nipkow@3042
  6772
nipkow@3316
  6773
* a generic case distinction tactic `exhaust_tac' which works for all
nipkow@3316
  6774
datatypes and also for type `nat';
nipkow@3316
  6775
nipkow@3316
  6776
* each datatype comes with a function `size';
nipkow@3316
  6777
paulson@3002
  6778
* patterns in case expressions allow tuple patterns as arguments to
wenzelm@3107
  6779
constructors, for example `case x of [] => ... | (x,y,z)#ps => ...';
paulson@3002
  6780
paulson@3002
  6781
* primrec now also works with type nat;
paulson@3002
  6782
paulson@3338
  6783
* recdef: a new declaration form, allows general recursive functions to be
paulson@3338
  6784
defined in theory files.  See HOL/ex/Fib, HOL/ex/Primes, HOL/Subst/Unify.
paulson@3338
  6785
paulson@3002
  6786
* the constant for negation has been renamed from "not" to "Not" to
wenzelm@3107
  6787
harmonize with FOL, ZF, LK, etc.;
paulson@3002
  6788
wenzelm@3107
  6789
* HOL/ex/LFilter theory of a corecursive "filter" functional for
wenzelm@3107
  6790
infinite lists;
paulson@3002
  6791
wenzelm@3227
  6792
* HOL/Modelcheck demonstrates invocation of model checker oracle;
wenzelm@3227
  6793
paulson@3002
  6794
* HOL/ex/Ring.thy declares cring_simp, which solves equational
paulson@3002
  6795
problems in commutative rings, using axiomatic type classes for + and *;
paulson@3002
  6796
paulson@3002
  6797
* more examples in HOL/MiniML and HOL/Auth;
paulson@3002
  6798
paulson@3002
  6799
* more default rewrite rules for quantifiers, union/intersection;
paulson@3002
  6800
nipkow@3321
  6801
* a new constant `arbitrary == @x.False';
nipkow@3321
  6802
wenzelm@3107
  6803
* HOLCF/IOA replaces old HOL/IOA;
wenzelm@3107
  6804
wenzelm@5726
  6805
* HOLCF changes: derived all rules and arities
wenzelm@5726
  6806
  + axiomatic type classes instead of classes
slotosch@2653
  6807
  + typedef instead of faking type definitions
paulson@2747
  6808
  + eliminated the internal constants less_fun, less_cfun, UU_fun, UU_cfun etc.
wenzelm@2730
  6809
  + new axclasses cpo, chfin, flat with flat < chfin < pcpo < cpo < po
slotosch@2653
  6810
  + eliminated the types void, one, tr
slotosch@2653
  6811
  + use unit lift and bool lift (with translations) instead of one and tr
slotosch@2653
  6812
  + eliminated blift from Lift3.thy (use Def instead of blift)
wenzelm@3107
  6813
  all eliminated rules are derived as theorems --> no visible changes ;
oheimb@2649
  6814
wenzelm@3006
  6815
paulson@3002
  6816
*** ZF ***
wenzelm@2553
  6817
paulson@2865
  6818
* ZF now has Fast_tac, Simp_tac and Auto_tac.  Union_iff is a now a default
paulson@2865
  6819
rewrite rule; this may affect some proofs.  eq_cs is gone but can be put back
paulson@2865
  6820
as ZF_cs addSIs [equalityI];
wenzelm@2553
  6821
wenzelm@2554
  6822
wenzelm@2732
  6823
wenzelm@2553
  6824
New in Isabelle94-7 (November 96)
wenzelm@2553
  6825
---------------------------------
wenzelm@2553
  6826
wenzelm@2553
  6827
* allowing negative levels (as offsets) in prlev and choplev;
wenzelm@2553
  6828
wenzelm@2554
  6829
* super-linear speedup for large simplifications;
wenzelm@2554
  6830
wenzelm@2554
  6831
* FOL, ZF and HOL now use miniscoping: rewriting pushes
wenzelm@2554
  6832
quantifications in as far as possible (COULD MAKE EXISTING PROOFS
wenzelm@2554
  6833
FAIL); can suppress it using the command Delsimps (ex_simps @
wenzelm@2554
  6834
all_simps); De Morgan laws are also now included, by default;
wenzelm@2554
  6835
wenzelm@2554
  6836
* improved printing of ==>  :  ~:
wenzelm@2554
  6837
wenzelm@2554
  6838
* new object-logic "Sequents" adds linear logic, while replacing LK
wenzelm@2554
  6839
and Modal (thanks to Sara Kalvala);
wenzelm@2554
  6840
wenzelm@2554
  6841
* HOL/Auth: correctness proofs for authentication protocols;
wenzelm@2554
  6842
wenzelm@2554
  6843
* HOL: new auto_tac combines rewriting and classical reasoning (many
wenzelm@2554
  6844
examples on HOL/Auth);
wenzelm@2554
  6845
wenzelm@2554
  6846
* HOL: new command AddIffs for declaring theorems of the form P=Q to
wenzelm@2554
  6847
the rewriter and classical reasoner simultaneously;
wenzelm@2554
  6848
wenzelm@2554
  6849
* function uresult no longer returns theorems in "standard" format;
wenzelm@2554
  6850
regain previous version by: val uresult = standard o uresult;
wenzelm@2554
  6851
wenzelm@2554
  6852
wenzelm@2554
  6853
wenzelm@2554
  6854
New in Isabelle94-6
wenzelm@2554
  6855
-------------------
wenzelm@2554
  6856
wenzelm@2554
  6857
* oracles -- these establish an interface between Isabelle and trusted
wenzelm@2554
  6858
external reasoners, which may deliver results as theorems;
wenzelm@2554
  6859
wenzelm@2554
  6860
* proof objects (in particular record all uses of oracles);
wenzelm@2554
  6861
wenzelm@2554
  6862
* Simp_tac, Fast_tac, etc. that refer to implicit simpset / claset;
wenzelm@2554
  6863
wenzelm@2554
  6864
* "constdefs" section in theory files;
wenzelm@2554
  6865
wenzelm@2554
  6866
* "primrec" section (HOL) no longer requires names;
wenzelm@2554
  6867
wenzelm@2554
  6868
* internal type "tactic" now simply "thm -> thm Sequence.seq";
wenzelm@2554
  6869
wenzelm@2554
  6870
wenzelm@2554
  6871
wenzelm@2554
  6872
New in Isabelle94-5
wenzelm@2554
  6873
-------------------
wenzelm@2554
  6874
wenzelm@2554
  6875
* reduced space requirements;
wenzelm@2554
  6876
wenzelm@2554
  6877
* automatic HTML generation from theories;
wenzelm@2554
  6878
wenzelm@2554
  6879
* theory files no longer require "..." (quotes) around most types;
wenzelm@2554
  6880
wenzelm@2554
  6881
* new examples, including two proofs of the Church-Rosser theorem;
wenzelm@2554
  6882
wenzelm@2554
  6883
* non-curried (1994) version of HOL is no longer distributed;
wenzelm@2554
  6884
wenzelm@2553
  6885
paulson@2557
  6886
paulson@2557
  6887
New in Isabelle94-4
paulson@2557
  6888
-------------------
paulson@2557
  6889
paulson@2747
  6890
* greatly reduced space requirements;
paulson@2557
  6891
paulson@2557
  6892
* theory files (.thy) no longer require \...\ escapes at line breaks;
paulson@2557
  6893
wenzelm@5726
  6894
* searchable theorem database (see the section "Retrieving theorems" on
paulson@2557
  6895
page 8 of the Reference Manual);
paulson@2557
  6896
paulson@2557
  6897
* new examples, including Grabczewski's monumental case study of the
paulson@2557
  6898
Axiom of Choice;
paulson@2557
  6899
paulson@2557
  6900
* The previous version of HOL renamed to Old_HOL;
paulson@2557
  6901
wenzelm@5726
  6902
* The new version of HOL (previously called CHOL) uses a curried syntax
paulson@2557
  6903
for functions.  Application looks like f a b instead of f(a,b);
paulson@2557
  6904
paulson@2557
  6905
* Mutually recursive inductive definitions finally work in HOL;
paulson@2557
  6906
paulson@2557
  6907
* In ZF, pattern-matching on tuples is now available in all abstractions and
paulson@2557
  6908
translates to the operator "split";
paulson@2557
  6909
paulson@2557
  6910
paulson@2557
  6911
paulson@2557
  6912
New in Isabelle94-3
paulson@2557
  6913
-------------------
paulson@2557
  6914
wenzelm@5726
  6915
* new infix operator, addss, allowing the classical reasoner to
paulson@2557
  6916
perform simplification at each step of its search.  Example:
wenzelm@5726
  6917
        fast_tac (cs addss ss)
paulson@2557
  6918
wenzelm@5726
  6919
* a new logic, CHOL, the same as HOL, but with a curried syntax
wenzelm@5726
  6920
for functions.  Application looks like f a b instead of f(a,b).  Also pairs
paulson@2557
  6921
look like (a,b) instead of <a,b>;
paulson@2557
  6922
paulson@2557
  6923
* PLEASE NOTE: CHOL will eventually replace HOL!
paulson@2557
  6924
paulson@2557
  6925
* In CHOL, pattern-matching on tuples is now available in all abstractions.
paulson@2557
  6926
It translates to the operator "split".  A new theory of integers is available;
paulson@2557
  6927
paulson@2557
  6928
* In ZF, integer numerals now denote two's-complement binary integers.
paulson@2557
  6929
Arithmetic operations can be performed by rewriting.  See ZF/ex/Bin.ML;
paulson@2557
  6930
wenzelm@5726
  6931
* Many new examples: I/O automata, Church-Rosser theorem, equivalents
paulson@2557
  6932
of the Axiom of Choice;
paulson@2557
  6933
paulson@2557
  6934
paulson@2557
  6935
paulson@2557
  6936
New in Isabelle94-2
paulson@2557
  6937
-------------------
paulson@2557
  6938
wenzelm@5726
  6939
* Significantly faster resolution;
paulson@2557
  6940
paulson@2557
  6941
* the different sections in a .thy file can now be mixed and repeated
paulson@2557
  6942
freely;
paulson@2557
  6943
paulson@2557
  6944
* Database of theorems for FOL, HOL and ZF.  New
paulson@2557
  6945
commands including qed, qed_goal and bind_thm store theorems in the database.
paulson@2557
  6946
paulson@2557
  6947
* Simple database queries: return a named theorem (get_thm) or all theorems of
paulson@2557
  6948
a given theory (thms_of), or find out what theory a theorem was proved in
paulson@2557
  6949
(theory_of_thm);
paulson@2557
  6950
paulson@2557
  6951
* Bugs fixed in the inductive definition and datatype packages;
paulson@2557
  6952
paulson@2557
  6953
* The classical reasoner provides deepen_tac and depth_tac, making FOL_dup_cs
paulson@2557
  6954
and HOL_dup_cs obsolete;
paulson@2557
  6955
paulson@2557
  6956
* Syntactic ambiguities caused by the new treatment of syntax in Isabelle94-1
paulson@2557
  6957
have been removed;
paulson@2557
  6958
paulson@2557
  6959
* Simpler definition of function space in ZF;
paulson@2557
  6960
paulson@2557
  6961
* new results about cardinal and ordinal arithmetic in ZF;
paulson@2557
  6962
paulson@2557
  6963
* 'subtype' facility in HOL for introducing new types as subsets of existing
paulson@2557
  6964
types;
paulson@2557
  6965
wenzelm@24213
  6966
:mode=text:wrap=hard:maxLineLen=72: