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