NEWS
author huffman
Sun, 04 Sep 2011 09:49:45 -0700
changeset 45572 9caf6883f1f4
parent 45546 49ef76b4a634
child 45573 cd8dbfc272df
permissions -rw-r--r--
remove redundant lemmas about LIMSEQ
wenzelm@5363
     1
Isabelle NEWS -- history user-relevant changes
wenzelm@5363
     2
==============================================
wenzelm@2553
     3
wenzelm@42520
     4
New in this Isabelle version
wenzelm@42520
     5
----------------------------
wenzelm@42520
     6
wenzelm@42577
     7
*** General ***
wenzelm@42577
     8
wenzelm@42826
     9
* Theory loader: source files are identified by content via SHA1
wenzelm@42826
    10
digests.  Discontinued former path/modtime identification and optional
wenzelm@42826
    11
ISABELLE_FILE_IDENT plugin scripts.
wenzelm@42826
    12
wenzelm@42577
    13
* Parallelization of nested Isar proofs is subject to
wenzelm@42577
    14
Goal.parallel_proofs_threshold (default 100).  See also isabelle
wenzelm@42577
    15
usedir option -Q.
wenzelm@42577
    16
wenzelm@42598
    17
* Discontinued support for Poly/ML 5.2, which was the last version
wenzelm@42598
    18
without proper multithreading and TimeLimit implementation.
wenzelm@42598
    19
wenzelm@42605
    20
* Discontinued old lib/scripts/polyml-platform, which has been
wenzelm@42605
    21
obsolete since Isabelle2009-2.
wenzelm@42605
    22
wenzelm@42759
    23
* Theory loader: source files are exclusively located via the master
wenzelm@42759
    24
directory of each theory node (where the .thy file itself resides).
ballarin@44390
    25
The global load path (such as src/HOL/Library) has been discontinued.
ballarin@44390
    26
Note that the path element ~~ may be used to reference theories in the
ballarin@44390
    27
Isabelle home folder -- for instance, "~~/src/HOL/Library/FuncSet".
ballarin@44390
    28
INCOMPATIBILITY.
wenzelm@42759
    29
wenzelm@42821
    30
* Various optional external tools are referenced more robustly and
wenzelm@42823
    31
uniformly by explicit Isabelle settings as follows:
wenzelm@42823
    32
wenzelm@42823
    33
  ISABELLE_CSDP   (formerly CSDP_EXE)
wenzelm@42823
    34
  ISABELLE_GHC    (formerly EXEC_GHC or GHC_PATH)
wenzelm@42823
    35
  ISABELLE_OCAML  (formerly EXEC_OCAML)
wenzelm@42823
    36
  ISABELLE_SWIPL  (formerly EXEC_SWIPL)
wenzelm@42823
    37
  ISABELLE_YAP    (formerly EXEC_YAP)
wenzelm@42823
    38
wenzelm@42823
    39
Note that automated detection from the file-system or search path has
wenzelm@42823
    40
been discontinued.  INCOMPATIBILITY.
wenzelm@42821
    41
wenzelm@43542
    42
* Name space: former unsynchronized references are now proper
wenzelm@43542
    43
configuration options, with more conventional names:
wenzelm@43542
    44
wenzelm@43542
    45
  long_names   ~> names_long
wenzelm@43542
    46
  short_names  ~> names_short
wenzelm@43542
    47
  unique_names ~> names_unique
wenzelm@43542
    48
wenzelm@43542
    49
Minor INCOMPATIBILITY, need to declare options in context like this:
wenzelm@43542
    50
wenzelm@43542
    51
  declare [[names_unique = false]]
wenzelm@43229
    52
wenzelm@43373
    53
* Literal facts `prop` may contain dummy patterns, e.g. `_ = _`.  Note
wenzelm@43373
    54
that the result needs to be unique, which means fact specifications
wenzelm@43373
    55
may have to be refined after enriching a proof context.
wenzelm@43373
    56
wenzelm@43504
    57
* Isabelle/Isar reference manual provides more formal references in
wenzelm@43504
    58
syntax diagrams.
wenzelm@43504
    59
nipkow@45137
    60
* Attribute case_names has been refined: the assumptions in each case can
nipkow@45137
    61
be named now by following the case name with [name1 name2 ...].
nipkow@45137
    62
wenzelm@42577
    63
blanchet@42591
    64
*** HOL ***
blanchet@42591
    65
haftmann@44680
    66
* Classes bot and top require underlying partial order rather than preorder:
haftmann@44679
    67
uniqueness of bot and top is guaranteed.  INCOMPATIBILITY.
haftmann@44679
    68
haftmann@44811
    69
* Class complete_lattice: generalized a couple of lemmas from sets;
haftmann@44811
    70
generalized theorems INF_cong and SUP_cong.  New type classes for complete
huffman@44890
    71
boolean algebras and complete linear orders.  Lemmas Inf_less_iff,
haftmann@44811
    72
less_Sup_iff, INF_less_iff, less_SUP_iff now reside in class complete_linorder.
haftmann@45193
    73
Changed proposition of lemmas Inf_bool_def, Sup_bool_def, Inf_fun_def, Sup_fun_def,
haftmann@45193
    74
Inf_apply, Sup_apply.
haftmann@44972
    75
Redundant lemmas Inf_singleton, Sup_singleton, Inf_binary, Sup_binary,
haftmann@44972
    76
INF_eq, SUP_eq, INF_UNIV_range, SUP_UNIV_range, Int_eq_Inter,
haftmann@44972
    77
INTER_eq_Inter_image, Inter_def, INT_eq, Un_eq_Union, UNION_eq_Union_image,
haftmann@44972
    78
Union_def, UN_singleton, UN_eq have been discarded.
haftmann@44811
    79
More consistent and less misunderstandable names:
haftmann@44743
    80
  INFI_def ~> INF_def
haftmann@44743
    81
  SUPR_def ~> SUP_def
haftmann@44972
    82
  INF_leI ~> INF_lower
haftmann@44972
    83
  INF_leI2 ~> INF_lower2
haftmann@44972
    84
  le_INFI ~> INF_greatest
haftmann@44972
    85
  le_SUPI ~> SUP_upper
haftmann@44972
    86
  le_SUPI2 ~> SUP_upper2
haftmann@44972
    87
  SUP_leI ~> SUP_least
haftmann@44744
    88
  INFI_bool_eq ~> INF_bool_eq
haftmann@44744
    89
  SUPR_bool_eq ~> SUP_bool_eq
haftmann@44744
    90
  INFI_apply ~> INF_apply
haftmann@44744
    91
  SUPR_apply ~> SUP_apply
haftmann@44972
    92
  INTER_def ~> INTER_eq
haftmann@44972
    93
  UNION_def ~> UNION_eq
haftmann@44972
    94
haftmann@44736
    95
INCOMPATIBILITY.
haftmann@44736
    96
haftmann@44838
    97
* Theorem collections ball_simps and bex_simps do not contain theorems referring
haftmann@44838
    98
to UNION any longer;  these have been moved to collection UN_ball_bex_simps.
haftmann@44838
    99
INCOMPATIBILITY.
haftmann@44838
   100
huffman@44890
   101
* Archimedean_Field.thy:
bulwahn@44590
   102
    floor now is defined as parameter of a separate type class floor_ceiling.
bulwahn@44589
   103
 
haftmann@43743
   104
* Finite_Set.thy: more coherent development of fold_set locales:
haftmann@43743
   105
haftmann@43743
   106
    locale fun_left_comm ~> locale comp_fun_commute
haftmann@43743
   107
    locale fun_left_comm_idem ~> locale comp_fun_idem
haftmann@43743
   108
    
haftmann@43743
   109
Both use point-free characterisation; interpretation proofs may need adjustment.
haftmann@43743
   110
INCOMPATIBILITY.
haftmann@43743
   111
bulwahn@43712
   112
* Code generation:
bulwahn@43712
   113
  - theory Library/Code_Char_ord provides native ordering of characters
bulwahn@43712
   114
    in the target language.
bulwahn@44828
   115
  - commands code_module and code_library are legacy, use export_code instead. 
bulwahn@44894
   116
  - method evaluation is legacy, use method eval instead.
bulwahn@44894
   117
  - legacy evaluator "SML" is deactivated by default. To activate it, add the following
bulwahn@44894
   118
    line in your theory:
bulwahn@44894
   119
      setup {* Value.add_evaluator ("SML", Codegen.eval_term) *}
bulwahn@44894
   120
 
wenzelm@43686
   121
* Declare ext [intro] by default.  Rare INCOMPATIBILITY.
wenzelm@43686
   122
blanchet@42663
   123
* Nitpick:
blanchet@42748
   124
  - Added "need" and "total_consts" options.
blanchet@42864
   125
  - Reintroduced "show_skolems" option by popular demand.
blanchet@42663
   126
  - Renamed attribute: nitpick_def ~> nitpick_unfold.
blanchet@42663
   127
    INCOMPATIBILITY.
blanchet@42663
   128
blanchet@42591
   129
* Sledgehammer:
blanchet@44494
   130
  - sledgehammer available_provers ~> sledgehammer supported_provers.
blanchet@42591
   131
    INCOMPATIBILITY.
blanchet@43453
   132
  - Added support for SNARK and ToFoF-E on SystemOnTPTP and for simply typed
blanchet@43453
   133
    TPTP problems (TFF).
blanchet@44494
   134
  - Added "preplay_timeout", "slicing", "type_enc", "sound", "max_mono_iters",
blanchet@44494
   135
    and "max_new_mono_instances" options.
blanchet@44494
   136
  - Removed "explicit_apply" and "full_types" options as well as "Full Types"
blanchet@44494
   137
    Proof General menu item. INCOMPATIBILITY.
blanchet@42591
   138
blanchet@44047
   139
* Metis:
blanchet@44435
   140
  - Removed "metisF" -- use "metis" instead. INCOMPATIBILITY.
blanchet@44435
   141
  - Obsoleted "metisFT" -- use "metis (full_types)" instead. INCOMPATIBILITY.
blanchet@44047
   142
blanchet@42870
   143
* "try":
blanchet@44432
   144
  - Renamed "try_methods" and added "simp:", "intro:", "dest:", and "elim:"
blanchet@44432
   145
    options. INCOMPATIBILITY.
blanchet@44432
   146
  - Introduced "try" that not only runs "try_methods" but also "solve_direct",
blanchet@44432
   147
    "sledgehammer", "quickcheck", and "nitpick".
blanchet@42870
   148
bulwahn@43031
   149
* Quickcheck:
bulwahn@43031
   150
  - Added "eval" option to evaluate terms for the found counterexample
bulwahn@43031
   151
    (currently only supported by the default (exhaustive) tester)
bulwahn@43031
   152
  - Added post-processing of terms to obtain readable counterexamples
bulwahn@43031
   153
    (currently only supported by the default (exhaustive) tester)
bulwahn@44190
   154
  - New counterexample generator quickcheck[narrowing] enables
bulwahn@44190
   155
    narrowing-based testing.
bulwahn@44190
   156
    It requires that the Glasgow Haskell compiler is installed and
bulwahn@44190
   157
    its location is known to Isabelle with the environment variable
bulwahn@44190
   158
    ISABELLE_GHC.
bulwahn@44828
   159
  - Removed quickcheck tester "SML" based on the SML code generator
bulwahn@44828
   160
    from HOL-Library
bulwahn@43031
   161
krauss@42717
   162
* Function package: discontinued option "tailrec".
krauss@42717
   163
INCOMPATIBILITY. Use partial_function instead.
krauss@42717
   164
hoelzl@43020
   165
* HOL-Probability:
hoelzl@43020
   166
  - Caratheodory's extension lemma is now proved for ring_of_sets.
hoelzl@43020
   167
  - Infinite products of probability measures are now available.
hoelzl@43020
   168
  - Use extended reals instead of positive extended reals.
hoelzl@43020
   169
    INCOMPATIBILITY.
blanchet@42591
   170
krauss@44886
   171
* Old recdef package has been moved to Library/Old_Recdef.thy, where it
krauss@44886
   172
must be loaded explicitly.  INCOMPATIBILITY.
krauss@44886
   173
krauss@44886
   174
* Well-founded recursion combinator "wfrec" has been moved to
huffman@44889
   175
Library/Wfrec.thy. INCOMPATIBILITY.
krauss@44886
   176
huffman@44890
   177
* Theory Library/Nat_Infinity has been renamed to Library/Extended_Nat.
huffman@44890
   178
The names of the following types and constants have changed:
huffman@44890
   179
  inat (type) ~> enat
huffman@44890
   180
  Fin         ~> enat
huffman@44890
   181
  Infty       ~> infinity (overloaded)
huffman@44890
   182
  iSuc        ~> eSuc
huffman@44890
   183
  the_Fin     ~> the_enat
huffman@44890
   184
Every theorem name containing "inat", "Fin", "Infty", or "iSuc" has
huffman@44890
   185
been renamed accordingly.
huffman@44890
   186
huffman@44952
   187
* Limits.thy: Type "'a net" has been renamed to "'a filter", in
huffman@44952
   188
accordance with standard mathematical terminology. INCOMPATIBILITY.
huffman@44952
   189
huffman@45007
   190
* Session Multivariate_Analysis: Type "('a, 'b) cart" has been renamed
huffman@45007
   191
to "('a, 'b) vec" (the syntax "'a ^ 'b" remains unaffected). Constants
huffman@45007
   192
"Cart_nth" and "Cart_lambda" have been respectively renamed to
huffman@45007
   193
"vec_nth" and "vec_lambda"; theorems mentioning those names have
huffman@45007
   194
changed to match. Definition theorems for overloaded constants now use
huffman@45007
   195
the standard "foo_vec_def" naming scheme. A few other theorems have
huffman@45007
   196
been renamed as follows (INCOMPATIBILITY):
huffman@45007
   197
huffman@45007
   198
  Cart_eq          ~> vec_eq_iff
huffman@45007
   199
  dist_nth_le_cart ~> dist_vec_nth_le
huffman@45007
   200
  tendsto_vector   ~> vec_tendstoI
huffman@45007
   201
  Cauchy_vector    ~> vec_CauchyI
huffman@45007
   202
huffman@45377
   203
* Session Multivariate_Analysis: Several duplicate theorems have been
huffman@45511
   204
removed, and other theorems have been renamed or replaced with more
huffman@45511
   205
general versions. INCOMPATIBILITY.
huffman@45377
   206
huffman@45546
   207
  finite_choice ~> finite_set_choice
huffman@45377
   208
  eventually_conjI ~> eventually_conj
huffman@45377
   209
  eventually_and ~> eventually_conj_iff
huffman@45377
   210
  eventually_false ~> eventually_False
huffman@45409
   211
  setsum_norm ~> norm_setsum
huffman@45377
   212
  Lim_ident_at ~> LIM_ident
huffman@45377
   213
  Lim_const ~> tendsto_const
huffman@45377
   214
  Lim_cmul ~> tendsto_scaleR [OF tendsto_const]
huffman@45377
   215
  Lim_neg ~> tendsto_minus
huffman@45377
   216
  Lim_add ~> tendsto_add
huffman@45377
   217
  Lim_sub ~> tendsto_diff
huffman@45377
   218
  Lim_mul ~> tendsto_scaleR
huffman@45377
   219
  Lim_vmul ~> tendsto_scaleR [OF _ tendsto_const]
huffman@45377
   220
  Lim_null_norm ~> tendsto_norm_zero_iff [symmetric]
huffman@45377
   221
  Lim_linear ~> bounded_linear.tendsto
huffman@45377
   222
  Lim_component ~> tendsto_euclidean_component
huffman@45377
   223
  Lim_component_cart ~> tendsto_vec_nth
huffman@45385
   224
  Lim_inner ~> tendsto_inner [OF tendsto_const]
huffman@45382
   225
  dot_lsum ~> inner_setsum_left
huffman@45382
   226
  dot_rsum ~> inner_setsum_right
huffman@45511
   227
  continuous_cmul ~> continuous_scaleR [OF continuous_const]
huffman@45511
   228
  continuous_neg ~> continuous_minus
huffman@45511
   229
  continuous_sub ~> continuous_diff
huffman@45511
   230
  continuous_vmul ~> continuous_scaleR [OF _ continuous_const]
huffman@45511
   231
  continuous_mul ~> continuous_scaleR
huffman@45511
   232
  continuous_inv ~> continuous_inverse
huffman@45511
   233
  continuous_at_within_inv ~> continuous_at_within_inverse
huffman@45511
   234
  continuous_at_inv ~> continuous_at_inverse
huffman@45511
   235
  continuous_at_norm ~> continuous_norm [OF continuous_at_id]
huffman@45511
   236
  continuous_at_infnorm ~> continuous_infnorm [OF continuous_at_id]
huffman@45511
   237
  continuous_at_component ~> continuous_component [OF continuous_at_id]
huffman@45386
   238
  continuous_on_neg ~> continuous_on_minus
huffman@45386
   239
  continuous_on_sub ~> continuous_on_diff
huffman@45386
   240
  continuous_on_cmul ~> continuous_on_scaleR [OF continuous_on_const]
huffman@45386
   241
  continuous_on_vmul ~> continuous_on_scaleR [OF _ continuous_on_const]
huffman@45386
   242
  continuous_on_mul ~> continuous_on_scaleR
huffman@45386
   243
  continuous_on_mul_real ~> continuous_on_mult
huffman@45386
   244
  continuous_on_inner ~> continuous_on_inner [OF continuous_on_const]
huffman@45511
   245
  continuous_on_norm ~> continuous_on_norm [OF continuous_on_id]
huffman@45511
   246
  continuous_on_inverse ~> continuous_on_inv
huffman@45512
   247
  uniformly_continuous_on_neg ~> uniformly_continuous_on_minus
huffman@45512
   248
  uniformly_continuous_on_sub ~> uniformly_continuous_on_diff
huffman@45377
   249
  subset_interior ~> interior_mono
huffman@45377
   250
  subset_closure ~> closure_mono
huffman@45377
   251
  closure_univ ~> closure_UNIV
huffman@45537
   252
  real_arch_lt ~> reals_Archimedean2
huffman@45537
   253
  real_arch ~> reals_Archimedean3
huffman@45537
   254
  real_abs_norm ~> abs_norm_cancel
huffman@45537
   255
  real_abs_sub_norm ~> norm_triangle_ineq3
huffman@45537
   256
  norm_cauchy_schwarz_abs ~> Cauchy_Schwarz_ineq2
huffman@45377
   257
huffman@45145
   258
* Complex_Main: The locale interpretations for the bounded_linear and
huffman@45145
   259
bounded_bilinear locales have been removed, in order to reduce the
huffman@45145
   260
number of duplicate lemmas. Users must use the original names for
huffman@45145
   261
distributivity theorems, potential INCOMPATIBILITY.
huffman@45145
   262
huffman@45145
   263
  divide.add ~> add_divide_distrib
huffman@45145
   264
  divide.diff ~> diff_divide_distrib
huffman@45145
   265
  divide.setsum ~> setsum_divide_distrib
huffman@45145
   266
  mult.add_right ~> right_distrib
huffman@45145
   267
  mult.diff_right ~> right_diff_distrib
huffman@45145
   268
  mult_right.setsum ~> setsum_right_distrib
huffman@45145
   269
  mult_left.diff ~> left_diff_distrib
huffman@45145
   270
huffman@45439
   271
* Complex_Main: Several redundant theorems have been removed or
huffman@45439
   272
replaced by more general versions. INCOMPATIBILITY.
huffman@45377
   273
huffman@45377
   274
  real_0_le_divide_iff ~> zero_le_divide_iff
huffman@45377
   275
  realpow_two_disj ~> power2_eq_iff
huffman@45377
   276
  real_squared_diff_one_factored ~> square_diff_one_factored
huffman@45377
   277
  realpow_two_diff ~> square_diff_square_factored
huffman@45540
   278
  reals_complete2 ~> complete_real
huffman@45377
   279
  exp_ln_eq ~> ln_unique
huffman@45377
   280
  lemma_DERIV_subst ~> DERIV_cong
huffman@45439
   281
  LIMSEQ_Zfun_iff ~> tendsto_Zfun_iff
huffman@45439
   282
  LIMSEQ_const ~> tendsto_const
huffman@45439
   283
  LIMSEQ_norm ~> tendsto_norm
huffman@45439
   284
  LIMSEQ_add ~> tendsto_add
huffman@45439
   285
  LIMSEQ_minus ~> tendsto_minus
huffman@45439
   286
  LIMSEQ_minus_cancel ~> tendsto_minus_cancel
huffman@45439
   287
  LIMSEQ_diff ~> tendsto_diff
huffman@45439
   288
  bounded_linear.LIMSEQ ~> bounded_linear.tendsto
huffman@45439
   289
  bounded_bilinear.LIMSEQ ~> bounded_bilinear.tendsto
huffman@45439
   290
  LIMSEQ_mult ~> tendsto_mult
huffman@45439
   291
  LIMSEQ_inverse ~> tendsto_inverse
huffman@45439
   292
  LIMSEQ_divide ~> tendsto_divide
huffman@45439
   293
  LIMSEQ_pow ~> tendsto_power
huffman@45439
   294
  LIMSEQ_setsum ~> tendsto_setsum
huffman@45439
   295
  LIMSEQ_setprod ~> tendsto_setprod
huffman@45439
   296
  LIMSEQ_norm_zero ~> tendsto_norm_zero_iff
huffman@45439
   297
  LIMSEQ_rabs_zero ~> tendsto_rabs_zero_iff
huffman@45439
   298
  LIMSEQ_imp_rabs ~> tendsto_rabs
huffman@45572
   299
  LIMSEQ_add_minus ~> tendsto_add [OF _ tendsto_minus]
huffman@45572
   300
  LIMSEQ_add_const ~> tendsto_add [OF _ tendsto_const]
huffman@45572
   301
  LIMSEQ_diff_const ~> tendsto_diff [OF _ tendsto_const]
huffman@45439
   302
  LIM_ident ~> tendsto_ident_at
huffman@45439
   303
  LIM_const ~> tendsto_const
huffman@45439
   304
  LIM_add ~> tendsto_add
huffman@45439
   305
  LIM_add_zero ~> tendsto_add_zero
huffman@45439
   306
  LIM_minus ~> tendsto_minus
huffman@45439
   307
  LIM_diff ~> tendsto_diff
huffman@45439
   308
  LIM_norm ~> tendsto_norm
huffman@45439
   309
  LIM_norm_zero ~> tendsto_norm_zero
huffman@45439
   310
  LIM_norm_zero_cancel ~> tendsto_norm_zero_cancel
huffman@45439
   311
  LIM_norm_zero_iff ~> tendsto_norm_zero_iff
huffman@45439
   312
  LIM_rabs ~> tendsto_rabs
huffman@45439
   313
  LIM_rabs_zero ~> tendsto_rabs_zero
huffman@45439
   314
  LIM_rabs_zero_cancel ~> tendsto_rabs_zero_cancel
huffman@45439
   315
  LIM_rabs_zero_iff ~> tendsto_rabs_zero_iff
huffman@45439
   316
  LIM_compose ~> tendsto_compose
huffman@45439
   317
  LIM_mult ~> tendsto_mult
huffman@45439
   318
  LIM_scaleR ~> tendsto_scaleR
huffman@45439
   319
  LIM_of_real ~> tendsto_of_real
huffman@45439
   320
  LIM_power ~> tendsto_power
huffman@45439
   321
  LIM_inverse ~> tendsto_inverse
huffman@45439
   322
  LIM_sgn ~> tendsto_sgn
huffman@45439
   323
  isCont_LIM_compose ~> isCont_tendsto_compose
huffman@45439
   324
  bounded_linear.LIM ~> bounded_linear.tendsto
huffman@45439
   325
  bounded_linear.LIM_zero ~> bounded_linear.tendsto_zero
huffman@45439
   326
  bounded_bilinear.LIM ~> bounded_bilinear.tendsto
huffman@45439
   327
  bounded_bilinear.LIM_prod_zero ~> bounded_bilinear.tendsto_zero
huffman@45439
   328
  bounded_bilinear.LIM_left_zero ~> bounded_bilinear.tendsto_left_zero
huffman@45439
   329
  bounded_bilinear.LIM_right_zero ~> bounded_bilinear.tendsto_right_zero
huffman@45439
   330
  LIM_inverse_fun ~> tendsto_inverse [OF tendsto_ident_at]
huffman@45377
   331
wenzelm@43355
   332
krauss@42549
   333
*** Document preparation ***
krauss@42549
   334
wenzelm@44580
   335
* Discontinued special treatment of hard tabulators, which are better
wenzelm@44580
   336
avoided in the first place.  Implicit tab-width is 1.
wenzelm@44580
   337
wenzelm@43577
   338
* Antiquotation @{rail} layouts railroad syntax diagrams, see also
wenzelm@43577
   339
isar-ref manual.
wenzelm@43504
   340
bulwahn@44483
   341
* Antiquotation @{value} evaluates the given term and presents its result.
bulwahn@44483
   342
wenzelm@43385
   343
* Localized \isabellestyle switch can be used within blocks or groups
wenzelm@43385
   344
like this:
wenzelm@43385
   345
wenzelm@43385
   346
  \isabellestyle{it}  %preferred default
wenzelm@43385
   347
  {\isabellestylett @{text "typewriter stuff"}}
wenzelm@43385
   348
krauss@42549
   349
* New term style "isub" as ad-hoc conversion of variables x1, y23 into
krauss@42549
   350
subscripted form x\<^isub>1, y\<^isub>2\<^isub>3.
wenzelm@42520
   351
wenzelm@43355
   352
* Predefined LaTeX macros for Isabelle symbols \<bind> and \<then>
wenzelm@43355
   353
(e.g. see ~~/src/HOL/Library/Monad_Syntax.thy).
wenzelm@43355
   354
wenzelm@42520
   355
wenzelm@42815
   356
*** ML ***
wenzelm@42815
   357
wenzelm@44613
   358
* The inner syntax of sort/type/term/prop supports inlined YXML
wenzelm@44613
   359
representations within quoted string tokens.  By encoding logical
wenzelm@44613
   360
entities via Term_XML (in ML or Scala) concrete syntax can be
wenzelm@44613
   361
bypassed, which is particularly useful for producing bits of text
wenzelm@44613
   362
under external program control.
wenzelm@44613
   363
wenzelm@44451
   364
* Antiquotations for ML and document preparation are managed as theory
wenzelm@44451
   365
data, which requires explicit setup.
wenzelm@44451
   366
wenzelm@43772
   367
* Isabelle_Process.is_active allows tools to check if the official
wenzelm@43772
   368
process wrapper is running (Isabelle/Scala/jEdit) or the old TTY loop
wenzelm@43772
   369
(better known as Proof General).
wenzelm@43772
   370
wenzelm@43231
   371
* Structure Proof_Context follows standard naming scheme.  Old
wenzelm@43231
   372
ProofContext is still available for some time as legacy alias.
wenzelm@43231
   373
wenzelm@42886
   374
* Structure Timing provides various operations for timing; supersedes
wenzelm@42886
   375
former start_timing/end_timing etc.
wenzelm@42886
   376
wenzelm@42815
   377
* Path.print is the official way to show file-system paths to users
wenzelm@42815
   378
(including quotes etc.).
wenzelm@42815
   379
wenzelm@42937
   380
* Inner syntax: identifiers in parse trees of generic categories
wenzelm@42937
   381
"logic", "aprop", "idt" etc. carry position information (disguised as
wenzelm@42937
   382
type constraints).  Occasional INCOMPATIBILITY with non-compliant
wenzelm@42938
   383
translations that choke on unexpected type constraints.  Positions can
wenzelm@42938
   384
be stripped in ML translations via Syntax.strip_positions /
wenzelm@42938
   385
Syntax.strip_positions_ast, or via the syntax constant
wenzelm@42938
   386
"_strip_positions" within parse trees.  As last resort, positions can
wenzelm@42938
   387
be disabled via the configuration option Syntax.positions, which is
wenzelm@42938
   388
called "syntax_positions" in Isar attribute syntax.
wenzelm@42937
   389
wenzelm@43162
   390
* Discontinued special status of various ML structures that contribute
wenzelm@43162
   391
to structure Syntax (Ast, Lexicon, Mixfix, Parser, Printer etc.): less
wenzelm@43162
   392
pervasive content, no inclusion in structure Syntax.  INCOMPATIBILITY,
wenzelm@43162
   393
refer directly to Ast.Constant, Lexicon.is_identifier,
wenzelm@43162
   394
Syntax_Trans.mk_binder_tr etc.
wenzelm@43107
   395
wenzelm@43122
   396
* Typed print translation: discontinued show_sorts argument, which is
wenzelm@43122
   397
already available via context of "advanced" translation.
wenzelm@43122
   398
wenzelm@43241
   399
* Refined PARALLEL_GOALS tactical: degrades gracefully for schematic
wenzelm@43241
   400
goal states; body tactic needs to address all subgoals uniformly.
wenzelm@43241
   401
wenzelm@43284
   402
* Slightly more special eq_list/eq_set, with shortcut involving
wenzelm@43284
   403
pointer equality (assumes that eq relation is reflexive).
wenzelm@43284
   404
wenzelm@43665
   405
* Classical tactics use proper Proof.context instead of historic types
wenzelm@43665
   406
claset/clasimpset.  Old-style declarations like addIs, addEs, addDs
wenzelm@43665
   407
operate directly on Proof.context.  Raw type claset retains its use as
wenzelm@43665
   408
snapshot of the classical context, which can be recovered via
wenzelm@43665
   409
(put_claset HOL_cs) etc.  Type clasimpset has been discontinued.
wenzelm@43665
   410
INCOMPATIBILITY, classical tactics and derived proof methods require
wenzelm@43665
   411
proper Proof.context.
wenzelm@43665
   412
wenzelm@44628
   413
* Scala layer provides JVM method invocation service for static
wenzelm@44628
   414
methods of type (String)String, see Invoke_Scala.method in ML.
wenzelm@44628
   415
For example:
wenzelm@44628
   416
wenzelm@44628
   417
  Invoke_Scala.method "java.lang.System.getProperty" "java.home"
wenzelm@44628
   418
wenzelm@42815
   419
wenzelm@42577
   420
wenzelm@41760
   421
New in Isabelle2011 (January 2011)
wenzelm@41760
   422
----------------------------------
wenzelm@37358
   423
wenzelm@37553
   424
*** General ***
wenzelm@37553
   425
wenzelm@41821
   426
* Experimental Prover IDE based on Isabelle/Scala and jEdit (see
wenzelm@41859
   427
src/Tools/jEdit).  This also serves as IDE for Isabelle/ML, with
wenzelm@41859
   428
useful tooltips and hyperlinks produced from its static analysis.  The
wenzelm@41859
   429
bundled component provides an executable Isabelle tool that can be run
wenzelm@41859
   430
like this:
wenzelm@41859
   431
wenzelm@41859
   432
  Isabelle2011/bin/isabelle jedit
wenzelm@41821
   433
wenzelm@41196
   434
* Significantly improved Isabelle/Isar implementation manual.
wenzelm@41196
   435
wenzelm@41842
   436
* System settings: ISABELLE_HOME_USER now includes ISABELLE_IDENTIFIER
wenzelm@41843
   437
(and thus refers to something like $HOME/.isabelle/Isabelle2011),
wenzelm@41842
   438
while the default heap location within that directory lacks that extra
wenzelm@41842
   439
suffix.  This isolates multiple Isabelle installations from each
wenzelm@41842
   440
other, avoiding problems with old settings in new versions.
wenzelm@41842
   441
INCOMPATIBILITY, need to copy/upgrade old user settings manually.
wenzelm@41842
   442
wenzelm@41195
   443
* Source files are always encoded as UTF-8, instead of old-fashioned
wenzelm@41195
   444
ISO-Latin-1.  INCOMPATIBILITY.  Isabelle LaTeX documents might require
wenzelm@41196
   445
the following package declarations:
wenzelm@41195
   446
wenzelm@41195
   447
  \usepackage[utf8]{inputenc}
wenzelm@41195
   448
  \usepackage{textcomp}
wenzelm@41195
   449
krauss@41688
   450
* Explicit treatment of UTF-8 sequences as Isabelle symbols, such that
wenzelm@37553
   451
a Unicode character is treated as a single symbol, not a sequence of
wenzelm@37553
   452
non-ASCII bytes as before.  Since Isabelle/ML string literals may
wenzelm@37553
   453
contain symbols without further backslash escapes, Unicode can now be
wenzelm@37553
   454
used here as well.  Recall that Symbol.explode in ML provides a
wenzelm@37553
   455
consistent view on symbols, while raw explode (or String.explode)
wenzelm@37553
   456
merely give a byte-oriented representation.
wenzelm@37553
   457
wenzelm@41842
   458
* Theory loader: source files are primarily located via the master
wenzelm@41842
   459
directory of each theory node (where the .thy file itself resides).
wenzelm@41842
   460
The global load path is still partially available as legacy feature.
wenzelm@41842
   461
Minor INCOMPATIBILITY due to subtle change in file lookup: use
wenzelm@41842
   462
explicit paths, relatively to the theory.
wenzelm@38381
   463
wenzelm@38188
   464
* Special treatment of ML file names has been discontinued.
wenzelm@38188
   465
Historically, optional extensions .ML or .sml were added on demand --
wenzelm@38188
   466
at the cost of clarity of file dependencies.  Recall that Isabelle/ML
wenzelm@38188
   467
files exclusively use the .ML extension.  Minor INCOMPATIBILTY.
wenzelm@38188
   468
wenzelm@39285
   469
* Various options that affect pretty printing etc. are now properly
wenzelm@39042
   470
handled within the context via configuration options, instead of
wenzelm@41137
   471
unsynchronized references or print modes.  There are both ML Config.T
wenzelm@41137
   472
entities and Isar declaration attributes to access these.
wenzelm@39042
   473
wenzelm@39371
   474
  ML (Config.T)                 Isar (attribute)
wenzelm@39371
   475
wenzelm@39374
   476
  eta_contract                  eta_contract
wenzelm@39396
   477
  show_brackets                 show_brackets
wenzelm@39393
   478
  show_sorts                    show_sorts
wenzelm@39393
   479
  show_types                    show_types
wenzelm@39372
   480
  show_question_marks           show_question_marks
wenzelm@39372
   481
  show_consts                   show_consts
wenzelm@41137
   482
  show_abbrevs                  show_abbrevs
wenzelm@39372
   483
wenzelm@41628
   484
  Syntax.ast_trace              syntax_ast_trace
wenzelm@41628
   485
  Syntax.ast_stat               syntax_ast_stat
wenzelm@39372
   486
  Syntax.ambiguity_level        syntax_ambiguity_level
wenzelm@39372
   487
wenzelm@39372
   488
  Goal_Display.goals_limit      goals_limit
wenzelm@39372
   489
  Goal_Display.show_main_goal   show_main_goal
wenzelm@39372
   490
wenzelm@41628
   491
  Method.rule_trace             rule_trace
wenzelm@41628
   492
wenzelm@39371
   493
  Thy_Output.display            thy_output_display
wenzelm@39371
   494
  Thy_Output.quotes             thy_output_quotes
wenzelm@39371
   495
  Thy_Output.indent             thy_output_indent
wenzelm@39371
   496
  Thy_Output.source             thy_output_source
wenzelm@39371
   497
  Thy_Output.break              thy_output_break
wenzelm@39371
   498
krauss@41688
   499
Note that corresponding "..._default" references in ML may only be
wenzelm@39042
   500
changed globally at the ROOT session setup, but *not* within a theory.
wenzelm@41137
   501
The option "show_abbrevs" supersedes the former print mode
wenzelm@41137
   502
"no_abbrevs" with inverted meaning.
wenzelm@39042
   503
wenzelm@41136
   504
* More systematic naming of some configuration options.
huffman@41542
   505
INCOMPATIBILITY.
wenzelm@41136
   506
wenzelm@41136
   507
  trace_simp  ~>  simp_trace
wenzelm@41136
   508
  debug_simp  ~>  simp_debug
wenzelm@41136
   509
wenzelm@40537
   510
* Support for real valued configuration options, using simplistic
wenzelm@40537
   511
floating-point notation that coincides with the inner syntax for
wenzelm@40537
   512
float_token.
wenzelm@40537
   513
wenzelm@41842
   514
* Support for real valued preferences (with approximative PGIP type):
wenzelm@41842
   515
front-ends need to accept "pgint" values in float notation.
wenzelm@41842
   516
INCOMPATIBILITY.
wenzelm@41821
   517
wenzelm@41821
   518
* The IsabelleText font now includes Cyrillic, Hebrew, Arabic from
wenzelm@41821
   519
DejaVu Sans.
wenzelm@41821
   520
wenzelm@41842
   521
* Discontinued support for Poly/ML 5.0 and 5.1 versions.
wenzelm@41842
   522
wenzelm@41196
   523
wenzelm@41196
   524
*** Pure ***
wenzelm@41196
   525
wenzelm@41497
   526
* Command 'type_synonym' (with single argument) replaces somewhat
wenzelm@41497
   527
outdated 'types', which is still available as legacy feature for some
wenzelm@41497
   528
time.
wenzelm@41497
   529
wenzelm@41497
   530
* Command 'nonterminal' (with 'and' separated list of arguments)
wenzelm@41497
   531
replaces somewhat outdated 'nonterminals'.  INCOMPATIBILITY.
wenzelm@41495
   532
wenzelm@41213
   533
* Command 'notepad' replaces former 'example_proof' for
wenzelm@41268
   534
experimentation in Isar without any result.  INCOMPATIBILITY.
wenzelm@41213
   535
ballarin@41683
   536
* Locale interpretation commands 'interpret' and 'sublocale' accept
ballarin@41683
   537
lists of equations to map definitions in a locale to appropriate
ballarin@41683
   538
entities in the context of the interpretation.  The 'interpretation'
ballarin@41683
   539
command already provided this functionality.
ballarin@41683
   540
wenzelm@41842
   541
* Diagnostic command 'print_dependencies' prints the locale instances
wenzelm@41842
   542
that would be activated if the specified expression was interpreted in
wenzelm@41842
   543
the current context.  Variant "print_dependencies!" assumes a context
wenzelm@41842
   544
without interpretations.
ballarin@38356
   545
ballarin@38356
   546
* Diagnostic command 'print_interps' prints interpretations in proofs
ballarin@38356
   547
in addition to interpretations in theories.
ballarin@38356
   548
wenzelm@38956
   549
* Discontinued obsolete 'global' and 'local' commands to manipulate
wenzelm@38956
   550
the theory name space.  Rare INCOMPATIBILITY.  The ML functions
wenzelm@38956
   551
Sign.root_path and Sign.local_path may be applied directly where this
wenzelm@38956
   552
feature is still required for historical reasons.
wenzelm@38956
   553
wenzelm@41196
   554
* Discontinued obsolete 'constdefs' command.  INCOMPATIBILITY, use
haftmann@39445
   555
'definition' instead.
haftmann@39445
   556
wenzelm@41822
   557
* The "prems" fact, which refers to the accidental collection of
wenzelm@41822
   558
foundational premises in the context, is now explicitly marked as
wenzelm@41842
   559
legacy feature and will be discontinued soon.  Consider using "assms"
wenzelm@41842
   560
of the head statement or reference facts by explicit names.
wenzelm@41822
   561
wenzelm@41051
   562
* Document antiquotations @{class} and @{type} print classes and type
wenzelm@41051
   563
constructors.
wenzelm@41051
   564
wenzelm@41051
   565
* Document antiquotation @{file} checks file/directory entries within
wenzelm@41051
   566
the local file system.
haftmann@39551
   567
ballarin@38356
   568
haftmann@37362
   569
*** HOL ***
haftmann@37362
   570
wenzelm@41842
   571
* Coercive subtyping: functions can be declared as coercions and type
wenzelm@41842
   572
inference will add them as necessary upon input of a term.  Theory
wenzelm@41842
   573
Complex_Main declares real :: nat => real and real :: int => real as
wenzelm@41842
   574
coercions. A coercion function f is declared like this:
wenzelm@41187
   575
wenzelm@41187
   576
  declare [[coercion f]]
nipkow@41109
   577
wenzelm@41819
   578
To lift coercions through type constructors (e.g. from nat => real to
nipkow@41109
   579
nat list => real list), map functions can be declared, e.g.
nipkow@41109
   580
wenzelm@41187
   581
  declare [[coercion_map map]]
wenzelm@41187
   582
wenzelm@41187
   583
Currently coercion inference is activated only in theories including
wenzelm@41187
   584
real numbers, i.e. descendants of Complex_Main.  This is controlled by
wenzelm@41268
   585
the configuration option "coercion_enabled", e.g. it can be enabled in
wenzelm@41187
   586
other theories like this:
wenzelm@41187
   587
wenzelm@41187
   588
  declare [[coercion_enabled]]
nipkow@41109
   589
wenzelm@41819
   590
* Command 'partial_function' provides basic support for recursive
wenzelm@41819
   591
function definitions over complete partial orders.  Concrete instances
krauss@40424
   592
are provided for i) the option type, ii) tail recursion on arbitrary
wenzelm@41819
   593
types, and iii) the heap monad of Imperative_HOL.  See
wenzelm@41819
   594
src/HOL/ex/Fundefs.thy and src/HOL/Imperative_HOL/ex/Linked_Lists.thy
wenzelm@41819
   595
for examples.
krauss@40424
   596
wenzelm@41842
   597
* Function package: f.psimps rules are no longer implicitly declared
wenzelm@41842
   598
as [simp].  INCOMPATIBILITY.
wenzelm@41842
   599
wenzelm@41842
   600
* Datatype package: theorems generated for executable equality (class
wenzelm@41842
   601
"eq") carry proper names and are treated as default code equations.
haftmann@41646
   602
wenzelm@41819
   603
* Inductive package: now offers command 'inductive_simps' to
haftmann@41646
   604
automatically derive instantiated and simplified equations for
haftmann@41646
   605
inductive predicates, similar to 'inductive_cases'.
haftmann@41646
   606
wenzelm@41819
   607
* Command 'enriched_type' allows to register properties of the
wenzelm@41819
   608
functorial structure of types.
haftmann@40004
   609
haftmann@39868
   610
* Improved infrastructure for term evaluation using code generator
haftmann@39868
   611
techniques, in particular static evaluation conversions.
haftmann@39868
   612
wenzelm@41842
   613
* Code generator: Scala (2.8 or higher) has been added to the target
wenzelm@41842
   614
languages.
wenzelm@41842
   615
haftmann@41646
   616
* Code generator: globbing constant expressions "*" and "Theory.*"
haftmann@41646
   617
have been replaced by the more idiomatic "_" and "Theory._".
haftmann@41646
   618
INCOMPATIBILITY.
haftmann@41646
   619
haftmann@41646
   620
* Code generator: export_code without explicit file declaration prints
haftmann@41646
   621
to standard output.  INCOMPATIBILITY.
haftmann@41646
   622
haftmann@41646
   623
* Code generator: do not print function definitions for case
haftmann@41646
   624
combinators any longer.
haftmann@41646
   625
wenzelm@41842
   626
* Code generator: simplification with rules determined with
wenzelm@41819
   627
src/Tools/Code/code_simp.ML and method "code_simp".
wenzelm@41819
   628
wenzelm@41842
   629
* Code generator for records: more idiomatic representation of record
wenzelm@41842
   630
types.  Warning: records are not covered by ancient SML code
wenzelm@41842
   631
generation any longer.  INCOMPATIBILITY.  In cases of need, a suitable
wenzelm@41842
   632
rep_datatype declaration helps to succeed then:
wenzelm@41842
   633
wenzelm@41842
   634
  record 'a foo = ...
wenzelm@41842
   635
  ...
wenzelm@41842
   636
  rep_datatype foo_ext ...
wenzelm@41842
   637
wenzelm@41819
   638
* Records: logical foundation type for records does not carry a
wenzelm@41819
   639
'_type' suffix any longer (obsolete due to authentic syntax).
wenzelm@41819
   640
INCOMPATIBILITY.
wenzelm@41196
   641
haftmann@41646
   642
* Quickcheck now by default uses exhaustive testing instead of random
wenzelm@41819
   643
testing.  Random testing can be invoked by "quickcheck [random]",
wenzelm@41819
   644
exhaustive testing by "quickcheck [exhaustive]".
haftmann@41646
   645
haftmann@41646
   646
* Quickcheck instantiates polymorphic types with small finite
haftmann@41646
   647
datatypes by default. This enables a simple execution mechanism to
haftmann@41646
   648
handle quantifiers and function equality over the finite datatypes.
haftmann@41646
   649
wenzelm@41819
   650
* Quickcheck random generator has been renamed from "code" to
wenzelm@41819
   651
"random".  INCOMPATIBILITY.
haftmann@41646
   652
haftmann@41646
   653
* Quickcheck now has a configurable time limit which is set to 30
haftmann@41646
   654
seconds by default. This can be changed by adding [timeout = n] to the
haftmann@41646
   655
quickcheck command. The time limit for Auto Quickcheck is still set
haftmann@41646
   656
independently.
haftmann@38705
   657
haftmann@38705
   658
* Quickcheck in locales considers interpretations of that locale for
haftmann@38705
   659
counter example search.
haftmann@38705
   660
blanchet@40240
   661
* Sledgehammer:
wenzelm@41819
   662
  - Added "smt" and "remote_smt" provers based on the "smt" proof
wenzelm@41819
   663
    method. See the Sledgehammer manual for details ("isabelle doc
wenzelm@41819
   664
    sledgehammer").
blanchet@40240
   665
  - Renamed commands:
blanchet@40240
   666
    sledgehammer atp_info ~> sledgehammer running_provers
blanchet@40240
   667
    sledgehammer atp_kill ~> sledgehammer kill_provers
blanchet@40240
   668
    sledgehammer available_atps ~> sledgehammer available_provers
blanchet@40240
   669
    INCOMPATIBILITY.
blanchet@40240
   670
  - Renamed options:
blanchet@40240
   671
    sledgehammer [atps = ...] ~> sledgehammer [provers = ...]
blanchet@40243
   672
    sledgehammer [atp = ...] ~> sledgehammer [prover = ...]
blanchet@40582
   673
    sledgehammer [timeout = 77 s] ~> sledgehammer [timeout = 77]
blanchet@40582
   674
    (and "ms" and "min" are no longer supported)
blanchet@40582
   675
    INCOMPATIBILITY.
blanchet@40582
   676
blanchet@40582
   677
* Nitpick:
blanchet@40582
   678
  - Renamed options:
blanchet@40582
   679
    nitpick [timeout = 77 s] ~> nitpick [timeout = 77]
blanchet@40582
   680
    nitpick [tac_timeout = 777 ms] ~> nitpick [tac_timeout = 0.777]
blanchet@40240
   681
    INCOMPATIBILITY.
blanchet@40968
   682
  - Added support for partial quotient types.
blanchet@40968
   683
  - Added local versions of the "Nitpick.register_xxx" functions.
blanchet@40968
   684
  - Added "whack" option.
blanchet@40968
   685
  - Allow registration of quotient types as codatatypes.
blanchet@40968
   686
  - Improved "merge_type_vars" option to merge more types.
blanchet@40968
   687
  - Removed unsound "fast_descrs" option.
blanchet@40968
   688
  - Added custom symmetry breaking for datatypes, making it possible to reach
blanchet@40968
   689
    higher cardinalities.
blanchet@40968
   690
  - Prevent the expansion of too large definitions.
blanchet@40138
   691
wenzelm@41819
   692
* Proof methods "metis" and "meson" now have configuration options
wenzelm@41819
   693
"meson_trace", "metis_trace", and "metis_verbose" that can be enabled
wenzelm@41819
   694
to diagnose these tools. E.g.
wenzelm@41819
   695
wenzelm@41819
   696
    using [[metis_trace = true]]
wenzelm@41819
   697
haftmann@41646
   698
* Auto Solve: Renamed "Auto Solve Direct".  The tool is now available
haftmann@41646
   699
manually as command 'solve_direct'.
haftmann@41646
   700
boehmes@41846
   701
* The default SMT solver Z3 must be enabled explicitly (due to
boehmes@41846
   702
licensing issues) by setting the environment variable
wenzelm@41851
   703
Z3_NON_COMMERCIAL in etc/settings of the component, for example.  For
wenzelm@41851
   704
commercial applications, the SMT solver CVC3 is provided as fall-back;
wenzelm@41851
   705
changing the SMT solver is done via the configuration option
wenzelm@41851
   706
"smt_solver".
boehmes@41680
   707
boehmes@41680
   708
* Remote SMT solvers need to be referred to by the "remote_" prefix,
wenzelm@41819
   709
i.e. "remote_cvc3" and "remote_z3".
wenzelm@41819
   710
wenzelm@41819
   711
* Added basic SMT support for datatypes, records, and typedefs using
wenzelm@41819
   712
the oracle mode (no proofs).  Direct support of pairs has been dropped
wenzelm@41819
   713
in exchange (pass theorems fst_conv snd_conv pair_collapse to the SMT
wenzelm@41819
   714
support for a similar behavior).  Minor INCOMPATIBILITY.
boehmes@41680
   715
boehmes@40403
   716
* Changed SMT configuration options:
boehmes@40403
   717
  - Renamed:
boehmes@41680
   718
    z3_proofs ~> smt_oracle (with inverted meaning)
boehmes@40403
   719
    z3_trace_assms ~> smt_trace_used_facts
boehmes@40403
   720
    INCOMPATIBILITY.
boehmes@40403
   721
  - Added:
boehmes@40651
   722
    smt_verbose
boehmes@41680
   723
    smt_random_seed
boehmes@40651
   724
    smt_datatypes
boehmes@41680
   725
    smt_infer_triggers
boehmes@41680
   726
    smt_monomorph_limit
boehmes@40403
   727
    cvc3_options
boehmes@41680
   728
    remote_cvc3_options
boehmes@41680
   729
    remote_z3_options
boehmes@40403
   730
    yices_options
blanchet@40138
   731
wenzelm@41196
   732
* Boogie output files (.b2i files) need to be declared in the theory
wenzelm@41196
   733
header.
boehmes@40818
   734
wenzelm@41842
   735
* Simplification procedure "list_to_set_comprehension" rewrites list
wenzelm@41842
   736
comprehensions applied to List.set to set comprehensions.  Occasional
wenzelm@41842
   737
INCOMPATIBILITY, may be deactivated like this:
wenzelm@41842
   738
wenzelm@41842
   739
  declare [[simproc del: list_to_set_comprehension]]
wenzelm@41842
   740
wenzelm@41821
   741
* Removed old version of primrec package.  INCOMPATIBILITY.
haftmann@41646
   742
haftmann@41646
   743
* Removed simplifier congruence rule of "prod_case", as has for long
haftmann@41646
   744
been the case with "split".  INCOMPATIBILITY.
haftmann@41646
   745
haftmann@41646
   746
* String.literal is a type, but not a datatype.  INCOMPATIBILITY.
haftmann@41646
   747
krauss@40634
   748
* Removed [split_format ... and ... and ...] version of
krauss@40634
   749
[split_format].  Potential INCOMPATIBILITY.
krauss@40634
   750
wenzelm@41819
   751
* Predicate "sorted" now defined inductively, with nice induction
wenzelm@41819
   752
rules.  INCOMPATIBILITY: former sorted.simps now named sorted_simps.
haftmann@41646
   753
haftmann@41646
   754
* Constant "contents" renamed to "the_elem", to free the generic name
haftmann@41646
   755
contents for other uses.  INCOMPATIBILITY.
haftmann@41646
   756
haftmann@41646
   757
* Renamed class eq and constant eq (for code generation) to class
haftmann@41646
   758
equal and constant equal, plus renaming of related facts and various
haftmann@41646
   759
tuning.  INCOMPATIBILITY.
haftmann@41646
   760
haftmann@41646
   761
* Dropped type classes mult_mono and mult_mono1.  INCOMPATIBILITY.
haftmann@41646
   762
wenzelm@41819
   763
* Removed output syntax "'a ~=> 'b" for "'a => 'b option".
wenzelm@41819
   764
INCOMPATIBILITY.
haftmann@41646
   765
haftmann@41646
   766
* Renamed theory Fset to Cset, type Fset.fset to Cset.set, in order to
haftmann@41646
   767
avoid confusion with finite sets.  INCOMPATIBILITY.
haftmann@41646
   768
haftmann@41646
   769
* Abandoned locales equiv, congruent and congruent2 for equivalence
haftmann@41646
   770
relations.  INCOMPATIBILITY: use equivI rather than equiv_intro (same
haftmann@41646
   771
for congruent(2)).
haftmann@41646
   772
haftmann@41646
   773
* Some previously unqualified names have been qualified:
haftmann@41646
   774
haftmann@41646
   775
  types
haftmann@41646
   776
    bool ~> HOL.bool
haftmann@41646
   777
    nat ~> Nat.nat
haftmann@41646
   778
haftmann@41646
   779
  constants
haftmann@41646
   780
    Trueprop ~> HOL.Trueprop
haftmann@41646
   781
    True ~> HOL.True
haftmann@41646
   782
    False ~> HOL.False
haftmann@41646
   783
    op & ~> HOL.conj
haftmann@41646
   784
    op | ~> HOL.disj
haftmann@41646
   785
    op --> ~> HOL.implies
haftmann@41646
   786
    op = ~> HOL.eq
haftmann@41646
   787
    Not ~> HOL.Not
haftmann@41646
   788
    The ~> HOL.The
haftmann@41646
   789
    All ~> HOL.All
haftmann@41646
   790
    Ex ~> HOL.Ex
haftmann@41646
   791
    Ex1 ~> HOL.Ex1
haftmann@41646
   792
    Let ~> HOL.Let
haftmann@41646
   793
    If ~> HOL.If
haftmann@41646
   794
    Ball ~> Set.Ball
haftmann@41646
   795
    Bex ~> Set.Bex
haftmann@41646
   796
    Suc ~> Nat.Suc
haftmann@41646
   797
    Pair ~> Product_Type.Pair
haftmann@41646
   798
    fst ~> Product_Type.fst
haftmann@41646
   799
    snd ~> Product_Type.snd
haftmann@41646
   800
    curry ~> Product_Type.curry
haftmann@41646
   801
    op : ~> Set.member
haftmann@41646
   802
    Collect ~> Set.Collect
haftmann@41646
   803
haftmann@41646
   804
INCOMPATIBILITY.
haftmann@41646
   805
haftmann@41646
   806
* More canonical naming convention for some fundamental definitions:
haftmann@41646
   807
haftmann@41646
   808
    bot_bool_eq ~> bot_bool_def
haftmann@41646
   809
    top_bool_eq ~> top_bool_def
haftmann@41646
   810
    inf_bool_eq ~> inf_bool_def
haftmann@41646
   811
    sup_bool_eq ~> sup_bool_def
haftmann@41646
   812
    bot_fun_eq  ~> bot_fun_def
haftmann@41646
   813
    top_fun_eq  ~> top_fun_def
haftmann@41646
   814
    inf_fun_eq  ~> inf_fun_def
haftmann@41646
   815
    sup_fun_eq  ~> sup_fun_def
haftmann@41646
   816
haftmann@41646
   817
INCOMPATIBILITY.
haftmann@41646
   818
haftmann@41646
   819
* More stylized fact names:
haftmann@41646
   820
haftmann@41646
   821
  expand_fun_eq ~> fun_eq_iff
haftmann@41646
   822
  expand_set_eq ~> set_eq_iff
haftmann@41646
   823
  set_ext       ~> set_eqI
haftmann@41646
   824
  nat_number    ~> eval_nat_numeral
haftmann@41646
   825
haftmann@41646
   826
INCOMPATIBILITY.
haftmann@41646
   827
wenzelm@41819
   828
* Refactoring of code-generation specific operations in theory List:
haftmann@41646
   829
haftmann@41646
   830
  constants
haftmann@41646
   831
    null ~> List.null
haftmann@41646
   832
haftmann@41646
   833
  facts
haftmann@41646
   834
    mem_iff ~> member_def
haftmann@41646
   835
    null_empty ~> null_def
haftmann@41646
   836
haftmann@41646
   837
INCOMPATIBILITY.  Note that these were not supposed to be used
haftmann@41646
   838
regularly unless for striking reasons; their main purpose was code
haftmann@41646
   839
generation.
haftmann@41646
   840
haftmann@41646
   841
Various operations from the Haskell prelude are used for generating
haftmann@41646
   842
Haskell code.
haftmann@41646
   843
wenzelm@41819
   844
* Term "bij f" is now an abbreviation of "bij_betw f UNIV UNIV".  Term
wenzelm@41819
   845
"surj f" is now an abbreviation of "range f = UNIV".  The theorems
wenzelm@41819
   846
bij_def and surj_def are unchanged.  INCOMPATIBILITY.
haftmann@41646
   847
haftmann@41646
   848
* Abolished some non-alphabetic type names: "prod" and "sum" replace
haftmann@41646
   849
"*" and "+" respectively.  INCOMPATIBILITY.
haftmann@41646
   850
haftmann@41646
   851
* Name "Plus" of disjoint sum operator "<+>" is now hidden.  Write
wenzelm@41819
   852
"Sum_Type.Plus" instead.
haftmann@41646
   853
haftmann@41646
   854
* Constant "split" has been merged with constant "prod_case"; names of
haftmann@41646
   855
ML functions, facts etc. involving split have been retained so far,
haftmann@41646
   856
though.  INCOMPATIBILITY.
haftmann@41646
   857
haftmann@41646
   858
* Dropped old infix syntax "_ mem _" for List.member; use "_ : set _"
haftmann@41646
   859
instead.  INCOMPATIBILITY.
haftmann@41646
   860
wenzelm@41819
   861
* Removed lemma "Option.is_none_none" which duplicates "is_none_def".
haftmann@41646
   862
INCOMPATIBILITY.
haftmann@41646
   863
wenzelm@41842
   864
* Former theory Library/Enum is now part of the HOL-Main image.
wenzelm@41842
   865
INCOMPATIBILITY: all constants of the Enum theory now have to be
wenzelm@41842
   866
referred to by its qualified name.
wenzelm@41842
   867
wenzelm@41842
   868
  enum    ~>  Enum.enum
wenzelm@41842
   869
  nlists  ~>  Enum.nlists
wenzelm@41842
   870
  product ~>  Enum.product
wenzelm@41842
   871
wenzelm@41842
   872
* Theory Library/Monad_Syntax provides do-syntax for monad types.
wenzelm@41842
   873
Syntax in Library/State_Monad has been changed to avoid ambiguities.
wenzelm@41842
   874
INCOMPATIBILITY.
wenzelm@41842
   875
wenzelm@41842
   876
* Theory Library/SetsAndFunctions has been split into
wenzelm@41842
   877
Library/Function_Algebras and Library/Set_Algebras; canonical names
wenzelm@41842
   878
for instance definitions for functions; various improvements.
wenzelm@41842
   879
INCOMPATIBILITY.
wenzelm@41842
   880
wenzelm@41842
   881
* Theory Library/Multiset provides stable quicksort implementation of
wenzelm@41842
   882
sort_key.
wenzelm@41842
   883
wenzelm@41842
   884
* Theory Library/Multiset: renamed empty_idemp ~> empty_neutral.
wenzelm@41842
   885
INCOMPATIBILITY.
wenzelm@41842
   886
wenzelm@41842
   887
* Session Multivariate_Analysis: introduced a type class for euclidean
wenzelm@41842
   888
space.  Most theorems are now stated in terms of euclidean spaces
wenzelm@41842
   889
instead of finite cartesian products.
wenzelm@41842
   890
wenzelm@41842
   891
  types
wenzelm@41842
   892
    real ^ 'n ~>  'a::real_vector
wenzelm@41842
   893
              ~>  'a::euclidean_space
wenzelm@41842
   894
              ~>  'a::ordered_euclidean_space
wenzelm@41842
   895
        (depends on your needs)
wenzelm@41842
   896
wenzelm@41842
   897
  constants
wenzelm@41842
   898
     _ $ _        ~> _ $$ _
wenzelm@41842
   899
     \<chi> x. _  ~> \<chi>\<chi> x. _
wenzelm@41842
   900
     CARD('n)     ~> DIM('a)
wenzelm@41842
   901
wenzelm@41842
   902
Also note that the indices are now natural numbers and not from some
wenzelm@41842
   903
finite type. Finite cartesian products of euclidean spaces, products
wenzelm@41842
   904
of euclidean spaces the real and complex numbers are instantiated to
wenzelm@41842
   905
be euclidean_spaces.  INCOMPATIBILITY.
wenzelm@41842
   906
wenzelm@41842
   907
* Session Probability: introduced pextreal as positive extended real
wenzelm@41842
   908
numbers.  Use pextreal as value for measures.  Introduce the
wenzelm@41842
   909
Radon-Nikodym derivative, product spaces and Fubini's theorem for
wenzelm@41842
   910
arbitrary sigma finite measures.  Introduces Lebesgue measure based on
wenzelm@41842
   911
the integral in Multivariate Analysis.  INCOMPATIBILITY.
wenzelm@41842
   912
wenzelm@41842
   913
* Session Imperative_HOL: revamped, corrected dozens of inadequacies.
wenzelm@41842
   914
INCOMPATIBILITY.
wenzelm@41842
   915
wenzelm@41842
   916
* Session SPARK (with image HOL-SPARK) provides commands to load and
wenzelm@41842
   917
prove verification conditions generated by the SPARK Ada program
wenzelm@41842
   918
verifier.  See also src/HOL/SPARK and src/HOL/SPARK/Examples.
berghofe@41815
   919
huffman@40869
   920
ballarin@41681
   921
*** HOL-Algebra ***
ballarin@41681
   922
ballarin@41681
   923
* Theorems for additive ring operations (locale abelian_monoid and
ballarin@41681
   924
descendants) are generated by interpretation from their multiplicative
ballarin@41682
   925
counterparts.  Names (in particular theorem names) have the mandatory
ballarin@41682
   926
qualifier 'add'.  Previous theorem names are redeclared for
ballarin@41682
   927
compatibility.
ballarin@41682
   928
wenzelm@41819
   929
* Structure "int_ring" is now an abbreviation (previously a
ballarin@41682
   930
definition).  This fits more natural with advanced interpretations.
ballarin@41681
   931
ballarin@41681
   932
huffman@40869
   933
*** HOLCF ***
huffman@40869
   934
huffman@40869
   935
* The domain package now runs in definitional mode by default: The
wenzelm@41819
   936
former command 'new_domain' is now called 'domain'.  To use the domain
huffman@40869
   937
package in its original axiomatic mode, use 'domain (unsafe)'.
huffman@40869
   938
INCOMPATIBILITY.
huffman@40869
   939
wenzelm@41819
   940
* The new class "domain" is now the default sort.  Class "predomain"
wenzelm@41819
   941
is an unpointed version of "domain". Theories can be updated by
wenzelm@41819
   942
replacing sort annotations as shown below.  INCOMPATIBILITY.
huffman@40869
   943
huffman@40869
   944
  'a::type ~> 'a::countable
huffman@40869
   945
  'a::cpo  ~> 'a::predomain
huffman@40869
   946
  'a::pcpo ~> 'a::domain
huffman@40869
   947
wenzelm@41819
   948
* The old type class "rep" has been superseded by class "domain".
huffman@40869
   949
Accordingly, users of the definitional package must remove any
wenzelm@41819
   950
"default_sort rep" declarations.  INCOMPATIBILITY.
huffman@40869
   951
huffman@41649
   952
* The domain package (definitional mode) now supports unpointed
huffman@41649
   953
predomain argument types, as long as they are marked 'lazy'. (Strict
wenzelm@41819
   954
arguments must be in class "domain".) For example, the following
huffman@41649
   955
domain definition now works:
huffman@41649
   956
huffman@41649
   957
  domain natlist = nil | cons (lazy "nat discr") (lazy "natlist")
huffman@41649
   958
huffman@41649
   959
* Theory HOLCF/Library/HOL_Cpo provides cpo and predomain class
wenzelm@41819
   960
instances for types from main HOL: bool, nat, int, char, 'a + 'b,
wenzelm@41819
   961
'a option, and 'a list.  Additionally, it configures fixrec and the
wenzelm@41819
   962
domain package to work with these types.  For example:
huffman@41649
   963
huffman@41649
   964
  fixrec isInl :: "('a + 'b) u -> tr"
huffman@41649
   965
    where "isInl$(up$(Inl x)) = TT" | "isInl$(up$(Inr y)) = FF"
huffman@41649
   966
huffman@41649
   967
  domain V = VFun (lazy "V -> V") | VCon (lazy "nat") (lazy "V list")
huffman@41649
   968
wenzelm@41819
   969
* The "(permissive)" option of fixrec has been replaced with a
wenzelm@41819
   970
per-equation "(unchecked)" option. See
wenzelm@41819
   971
src/HOL/HOLCF/Tutorial/Fixrec_ex.thy for examples. INCOMPATIBILITY.
wenzelm@41819
   972
wenzelm@41819
   973
* The "bifinite" class no longer fixes a constant "approx"; the class
wenzelm@41819
   974
now just asserts that such a function exists.  INCOMPATIBILITY.
wenzelm@41819
   975
wenzelm@41819
   976
* Former type "alg_defl" has been renamed to "defl".  HOLCF no longer
huffman@41535
   977
defines an embedding of type 'a defl into udom by default; instances
wenzelm@41819
   978
of "bifinite" and "domain" classes are available in
wenzelm@41819
   979
src/HOL/HOLCF/Library/Defl_Bifinite.thy.
wenzelm@41819
   980
wenzelm@41819
   981
* The syntax "REP('a)" has been replaced with "DEFL('a)".
wenzelm@41819
   982
wenzelm@41819
   983
* The predicate "directed" has been removed.  INCOMPATIBILITY.
wenzelm@41819
   984
wenzelm@41819
   985
* The type class "finite_po" has been removed.  INCOMPATIBILITY.
wenzelm@41819
   986
wenzelm@41819
   987
* The function "cprod_map" has been renamed to "prod_map".
huffman@41649
   988
INCOMPATIBILITY.
huffman@41649
   989
huffman@41649
   990
* The monadic bind operator on each powerdomain has new binder syntax
wenzelm@41819
   991
similar to sets, e.g. "\<Union>\<sharp>x\<in>xs. t" represents
wenzelm@41819
   992
"upper_bind\<cdot>xs\<cdot>(\<Lambda> x. t)".
huffman@41649
   993
huffman@41649
   994
* The infix syntax for binary union on each powerdomain has changed
wenzelm@41819
   995
from e.g. "+\<sharp>" to "\<union>\<sharp>", for consistency with set
wenzelm@41819
   996
syntax.  INCOMPATIBILITY.
wenzelm@41819
   997
wenzelm@41819
   998
* The constant "UU" has been renamed to "bottom".  The syntax "UU" is
huffman@41677
   999
still supported as an input translation.
huffman@41677
  1000
huffman@40869
  1001
* Renamed some theorems (the original names are also still available).
wenzelm@41819
  1002
huffman@40869
  1003
  expand_fun_below   ~> fun_below_iff
huffman@40869
  1004
  below_fun_ext      ~> fun_belowI
huffman@40869
  1005
  expand_cfun_eq     ~> cfun_eq_iff
huffman@40869
  1006
  ext_cfun           ~> cfun_eqI
huffman@40869
  1007
  expand_cfun_below  ~> cfun_below_iff
huffman@40869
  1008
  below_cfun_ext     ~> cfun_belowI
huffman@40869
  1009
  cont2cont_Rep_CFun ~> cont2cont_APP
huffman@40869
  1010
huffman@40869
  1011
* The Abs and Rep functions for various types have changed names.
wenzelm@41196
  1012
Related theorem names have also changed to match. INCOMPATIBILITY.
wenzelm@41819
  1013
huffman@40869
  1014
  Rep_CFun  ~> Rep_cfun
huffman@40869
  1015
  Abs_CFun  ~> Abs_cfun
huffman@40869
  1016
  Rep_Sprod ~> Rep_sprod
huffman@40869
  1017
  Abs_Sprod ~> Abs_sprod
huffman@40869
  1018
  Rep_Ssum  ~> Rep_ssum
huffman@40869
  1019
  Abs_Ssum  ~> Abs_ssum
huffman@40869
  1020
huffman@40869
  1021
* Lemmas with names of the form *_defined_iff or *_strict_iff have
wenzelm@41819
  1022
been renamed to *_bottom_iff.  INCOMPATIBILITY.
huffman@40869
  1023
huffman@40869
  1024
* Various changes to bisimulation/coinduction with domain package:
wenzelm@41819
  1025
wenzelm@41819
  1026
  - Definitions of "bisim" constants no longer mention definedness.
wenzelm@41819
  1027
  - With mutual recursion, "bisim" predicate is now curried.
huffman@40869
  1028
  - With mutual recursion, each type gets a separate coind theorem.
huffman@40869
  1029
  - Variable names in bisim_def and coinduct rules have changed.
wenzelm@41819
  1030
huffman@40869
  1031
INCOMPATIBILITY.
huffman@40869
  1032
wenzelm@41819
  1033
* Case combinators generated by the domain package for type "foo" are
wenzelm@41819
  1034
now named "foo_case" instead of "foo_when".  INCOMPATIBILITY.
huffman@40869
  1035
huffman@41019
  1036
* Several theorems have been renamed to more accurately reflect the
wenzelm@41819
  1037
names of constants and types involved.  INCOMPATIBILITY.
wenzelm@41819
  1038
huffman@41019
  1039
  thelub_const    ~> lub_const
huffman@41019
  1040
  lub_const       ~> is_lub_const
huffman@41019
  1041
  thelubI         ~> lub_eqI
huffman@41019
  1042
  is_lub_lub      ~> is_lubD2
huffman@41019
  1043
  lubI            ~> is_lub_lub
huffman@41019
  1044
  unique_lub      ~> is_lub_unique
huffman@41019
  1045
  is_ub_lub       ~> is_lub_rangeD1
huffman@41019
  1046
  lub_bin_chain   ~> is_lub_bin_chain
huffman@41278
  1047
  lub_fun         ~> is_lub_fun
huffman@41278
  1048
  thelub_fun      ~> lub_fun
huffman@41279
  1049
  thelub_cfun     ~> lub_cfun
huffman@41019
  1050
  thelub_Pair     ~> lub_Pair
huffman@41019
  1051
  lub_cprod       ~> is_lub_prod
huffman@41019
  1052
  thelub_cprod    ~> lub_prod
huffman@41019
  1053
  minimal_cprod   ~> minimal_prod
huffman@41019
  1054
  inst_cprod_pcpo ~> inst_prod_pcpo
huffman@41678
  1055
  UU_I            ~> bottomI
huffman@41678
  1056
  compact_UU      ~> compact_bottom
huffman@41678
  1057
  deflation_UU    ~> deflation_bottom
huffman@41678
  1058
  finite_deflation_UU ~> finite_deflation_bottom
huffman@41019
  1059
wenzelm@41819
  1060
* Many legacy theorem names have been discontinued.  INCOMPATIBILITY.
wenzelm@41819
  1061
huffman@40869
  1062
  sq_ord_less_eq_trans ~> below_eq_trans
huffman@40869
  1063
  sq_ord_eq_less_trans ~> eq_below_trans
huffman@40869
  1064
  refl_less            ~> below_refl
huffman@40869
  1065
  trans_less           ~> below_trans
huffman@40869
  1066
  antisym_less         ~> below_antisym
huffman@40869
  1067
  antisym_less_inverse ~> po_eq_conv [THEN iffD1]
huffman@40869
  1068
  box_less             ~> box_below
huffman@40869
  1069
  rev_trans_less       ~> rev_below_trans
huffman@40869
  1070
  not_less2not_eq      ~> not_below2not_eq
huffman@40869
  1071
  less_UU_iff          ~> below_UU_iff
huffman@40869
  1072
  flat_less_iff        ~> flat_below_iff
huffman@40869
  1073
  adm_less             ~> adm_below
huffman@40869
  1074
  adm_not_less         ~> adm_not_below
huffman@40869
  1075
  adm_compact_not_less ~> adm_compact_not_below
huffman@40869
  1076
  less_fun_def         ~> below_fun_def
huffman@40869
  1077
  expand_fun_less      ~> fun_below_iff
huffman@40869
  1078
  less_fun_ext         ~> fun_belowI
huffman@40869
  1079
  less_discr_def       ~> below_discr_def
huffman@40869
  1080
  discr_less_eq        ~> discr_below_eq
huffman@40869
  1081
  less_unit_def        ~> below_unit_def
huffman@40869
  1082
  less_cprod_def       ~> below_prod_def
huffman@40869
  1083
  prod_lessI           ~> prod_belowI
huffman@40869
  1084
  Pair_less_iff        ~> Pair_below_iff
huffman@40869
  1085
  fst_less_iff         ~> fst_below_iff
huffman@40869
  1086
  snd_less_iff         ~> snd_below_iff
huffman@40869
  1087
  expand_cfun_less     ~> cfun_below_iff
huffman@40869
  1088
  less_cfun_ext        ~> cfun_belowI
huffman@40869
  1089
  injection_less       ~> injection_below
huffman@40869
  1090
  less_up_def          ~> below_up_def
huffman@40869
  1091
  not_Iup_less         ~> not_Iup_below
huffman@40869
  1092
  Iup_less             ~> Iup_below
huffman@40869
  1093
  up_less              ~> up_below
huffman@40869
  1094
  Def_inject_less_eq   ~> Def_below_Def
huffman@40869
  1095
  Def_less_is_eq       ~> Def_below_iff
huffman@40869
  1096
  spair_less_iff       ~> spair_below_iff
huffman@40869
  1097
  less_sprod           ~> below_sprod
huffman@40869
  1098
  spair_less           ~> spair_below
huffman@40869
  1099
  sfst_less_iff        ~> sfst_below_iff
huffman@40869
  1100
  ssnd_less_iff        ~> ssnd_below_iff
huffman@40869
  1101
  fix_least_less       ~> fix_least_below
huffman@40869
  1102
  dist_less_one        ~> dist_below_one
huffman@40869
  1103
  less_ONE             ~> below_ONE
huffman@40869
  1104
  ONE_less_iff         ~> ONE_below_iff
huffman@40869
  1105
  less_sinlD           ~> below_sinlD
huffman@40869
  1106
  less_sinrD           ~> below_sinrD
huffman@40869
  1107
huffman@40869
  1108
wenzelm@41196
  1109
*** FOL and ZF ***
haftmann@38747
  1110
wenzelm@41558
  1111
* All constant names are now qualified internally and use proper
wenzelm@41558
  1112
identifiers, e.g. "IFOL.eq" instead of "op =".  INCOMPATIBILITY.
wenzelm@41558
  1113
haftmann@38747
  1114
wenzelm@38136
  1115
*** ML ***
wenzelm@38136
  1116
wenzelm@41842
  1117
* Antiquotation @{assert} inlines a function bool -> unit that raises
wenzelm@41842
  1118
Fail if the argument is false.  Due to inlining the source position of
wenzelm@41842
  1119
failed assertions is included in the error output.
wenzelm@41842
  1120
wenzelm@41842
  1121
* Discontinued antiquotation @{theory_ref}, which is obsolete since ML
wenzelm@41842
  1122
text is in practice always evaluated with a stable theory checkpoint.
wenzelm@41842
  1123
Minor INCOMPATIBILITY, use (Theory.check_thy @{theory}) instead.
wenzelm@41842
  1124
wenzelm@41842
  1125
* Antiquotation @{theory A} refers to theory A from the ancestry of
wenzelm@41842
  1126
the current context, not any accidental theory loader state as before.
wenzelm@41842
  1127
Potential INCOMPATIBILITY, subtle change in semantics.
wenzelm@41842
  1128
wenzelm@41842
  1129
* Syntax.pretty_priority (default 0) configures the required priority
wenzelm@41842
  1130
of pretty-printed output and thus affects insertion of parentheses.
wenzelm@41842
  1131
wenzelm@41842
  1132
* Syntax.default_root (default "any") configures the inner syntax
wenzelm@41842
  1133
category (nonterminal symbol) for parsing of terms.
wenzelm@41842
  1134
wenzelm@41842
  1135
* Former exception Library.UnequalLengths now coincides with
wenzelm@41842
  1136
ListPair.UnequalLengths.
wenzelm@41842
  1137
wenzelm@41494
  1138
* Renamed structure MetaSimplifier to Raw_Simplifier.  Note that the
wenzelm@41494
  1139
main functionality is provided by structure Simplifier.
wenzelm@41494
  1140
wenzelm@40875
  1141
* Renamed raw "explode" function to "raw_explode" to emphasize its
wenzelm@40875
  1142
meaning.  Note that internally to Isabelle, Symbol.explode is used in
wenzelm@40875
  1143
almost all situations.
wenzelm@40875
  1144
wenzelm@40575
  1145
* Discontinued obsolete function sys_error and exception SYS_ERROR.
wenzelm@40575
  1146
See implementation manual for further details on exceptions in
wenzelm@40575
  1147
Isabelle/ML.
wenzelm@40575
  1148
wenzelm@39862
  1149
* Renamed setmp_noncritical to Unsynchronized.setmp to emphasize its
wenzelm@39862
  1150
meaning.
wenzelm@39862
  1151
wenzelm@39814
  1152
* Renamed structure PureThy to Pure_Thy and moved most of its
wenzelm@39814
  1153
operations to structure Global_Theory, to emphasize that this is
wenzelm@39814
  1154
rarely-used global-only stuff.
wenzelm@39814
  1155
wenzelm@39782
  1156
* Discontinued Output.debug.  Minor INCOMPATIBILITY, use plain writeln
wenzelm@39782
  1157
instead (or tracing for high-volume output).
wenzelm@39782
  1158
wenzelm@39285
  1159
* Configuration option show_question_marks only affects regular pretty
wenzelm@39285
  1160
printing of types and terms, not raw Term.string_of_vname.
wenzelm@39285
  1161
wenzelm@39410
  1162
* ML_Context.thm and ML_Context.thms are no longer pervasive.  Rare
wenzelm@39410
  1163
INCOMPATIBILITY, superseded by static antiquotations @{thm} and
wenzelm@39410
  1164
@{thms} for most purposes.
wenzelm@39410
  1165
wenzelm@41842
  1166
* ML structure Unsynchronized is never opened, not even in Isar
wenzelm@39285
  1167
interaction mode as before.  Old Unsynchronized.set etc. have been
wenzelm@39285
  1168
discontinued -- use plain := instead.  This should be *rare* anyway,
wenzelm@39285
  1169
since modern tools always work via official context data, notably
wenzelm@39285
  1170
configuration options.
wenzelm@39285
  1171
wenzelm@39516
  1172
* Parallel and asynchronous execution requires special care concerning
wenzelm@39516
  1173
interrupts.  Structure Exn provides some convenience functions that
wenzelm@39516
  1174
avoid working directly with raw Interrupt.  User code must not absorb
wenzelm@39516
  1175
interrupts -- intermediate handling (for cleanup etc.) needs to be
wenzelm@39516
  1176
followed by re-raising of the original exception.  Another common
wenzelm@39516
  1177
source of mistakes are "handle _" patterns, which make the meaning of
wenzelm@39516
  1178
the program subject to physical effects of the environment.
wenzelm@39516
  1179
wenzelm@38136
  1180
wenzelm@38136
  1181
wenzelm@37144
  1182
New in Isabelle2009-2 (June 2010)
wenzelm@37144
  1183
---------------------------------
haftmann@33990
  1184
wenzelm@35260
  1185
*** General ***
wenzelm@35260
  1186
wenzelm@35546
  1187
* Authentic syntax for *all* logical entities (type classes, type
wenzelm@35546
  1188
constructors, term constants): provides simple and robust
wenzelm@35546
  1189
correspondence between formal entities and concrete syntax.  Within
wenzelm@35546
  1190
the parse tree / AST representations, "constants" are decorated by
wenzelm@35546
  1191
their category (class, type, const) and spelled out explicitly with
wenzelm@35546
  1192
their full internal name.
wenzelm@35546
  1193
wenzelm@35546
  1194
Substantial INCOMPATIBILITY concerning low-level syntax declarations
wenzelm@35546
  1195
and translations (translation rules and translation functions in ML).
wenzelm@35546
  1196
Some hints on upgrading:
wenzelm@35260
  1197
wenzelm@35260
  1198
  - Many existing uses of 'syntax' and 'translations' can be replaced
wenzelm@35546
  1199
    by more modern 'type_notation', 'notation' and 'abbreviation',
wenzelm@35546
  1200
    which are independent of this issue.
wenzelm@35260
  1201
wenzelm@35260
  1202
  - 'translations' require markup within the AST; the term syntax
wenzelm@35260
  1203
    provides the following special forms:
wenzelm@35260
  1204
wenzelm@35260
  1205
      CONST c   -- produces syntax version of constant c from context
wenzelm@35261
  1206
      XCONST c  -- literally c, checked as constant from context
wenzelm@35261
  1207
      c         -- literally c, if declared by 'syntax'
wenzelm@35261
  1208
wenzelm@35261
  1209
    Plain identifiers are treated as AST variables -- occasionally the
wenzelm@35261
  1210
    system indicates accidental variables via the error "rhs contains
wenzelm@35261
  1211
    extra variables".
wenzelm@35260
  1212
wenzelm@35546
  1213
    Type classes and type constructors are marked according to their
wenzelm@35546
  1214
    concrete syntax.  Some old translations rules need to be written
wenzelm@35546
  1215
    for the "type" category, using type constructor application
wenzelm@35546
  1216
    instead of pseudo-term application of the default category
wenzelm@35546
  1217
    "logic".
wenzelm@35546
  1218
wenzelm@35260
  1219
  - 'parse_translation' etc. in ML may use the following
wenzelm@35260
  1220
    antiquotations:
wenzelm@35260
  1221
wenzelm@35546
  1222
      @{class_syntax c}   -- type class c within parse tree / AST
wenzelm@35546
  1223
      @{term_syntax c}    -- type constructor c within parse tree / AST
wenzelm@35260
  1224
      @{const_syntax c}   -- ML version of "CONST c" above
wenzelm@35260
  1225
      @{syntax_const c}   -- literally c (checked wrt. 'syntax' declarations)
wenzelm@35260
  1226
wenzelm@35546
  1227
  - Literal types within 'typed_print_translations', i.e. those *not*
wenzelm@35546
  1228
    represented as pseudo-terms are represented verbatim.  Use @{class
wenzelm@35546
  1229
    c} or @{type_name c} here instead of the above syntax
wenzelm@35546
  1230
    antiquotations.
wenzelm@35546
  1231
wenzelm@35260
  1232
Note that old non-authentic syntax was based on unqualified base
wenzelm@35546
  1233
names, so all of the above "constant" names would coincide.  Recall
wenzelm@35546
  1234
that 'print_syntax' and ML_command "set Syntax.trace_ast" help to
wenzelm@35546
  1235
diagnose syntax problems.
wenzelm@35260
  1236
wenzelm@35352
  1237
* Type constructors admit general mixfix syntax, not just infix.
wenzelm@35352
  1238
wenzelm@36524
  1239
* Concrete syntax may be attached to local entities without a proof
wenzelm@36524
  1240
body, too.  This works via regular mixfix annotations for 'fix',
wenzelm@36524
  1241
'def', 'obtain' etc. or via the explicit 'write' command, which is
wenzelm@36524
  1242
similar to the 'notation' command in theory specifications.
wenzelm@36524
  1243
wenzelm@35129
  1244
* Discontinued unnamed infix syntax (legacy feature for many years) --
wenzelm@35130
  1245
need to specify constant name and syntax separately.  Internal ML
wenzelm@35130
  1246
datatype constructors have been renamed from InfixName to Infix etc.
wenzelm@35130
  1247
Minor INCOMPATIBILITY.
wenzelm@35129
  1248
wenzelm@37351
  1249
* Schematic theorem statements need to be explicitly markup as such,
wenzelm@37351
  1250
via commands 'schematic_lemma', 'schematic_theorem',
wenzelm@37351
  1251
'schematic_corollary'.  Thus the relevance of the proof is made
wenzelm@37351
  1252
syntactically clear, which impacts performance in a parallel or
wenzelm@37351
  1253
asynchronous interactive environment.  Minor INCOMPATIBILITY.
wenzelm@37351
  1254
wenzelm@37351
  1255
* Use of cumulative prems via "!" in some proof methods has been
wenzelm@37351
  1256
discontinued (old legacy feature).
wenzelm@37351
  1257
wenzelm@37351
  1258
* References 'trace_simp' and 'debug_simp' have been replaced by
wenzelm@37351
  1259
configuration options stored in the context. Enabling tracing (the
wenzelm@37351
  1260
case of debugging is similar) in proofs works via
wenzelm@37351
  1261
wenzelm@37351
  1262
  using [[trace_simp = true]]
wenzelm@37351
  1263
wenzelm@37351
  1264
Tracing is then active for all invocations of the simplifier in
wenzelm@37351
  1265
subsequent goal refinement steps. Tracing may also still be enabled or
wenzelm@41028
  1266
disabled via the ProofGeneral settings menu.
wenzelm@37351
  1267
wenzelm@37351
  1268
* Separate commands 'hide_class', 'hide_type', 'hide_const',
wenzelm@37351
  1269
'hide_fact' replace the former 'hide' KIND command.  Minor
wenzelm@37351
  1270
INCOMPATIBILITY.
wenzelm@37351
  1271
wenzelm@37351
  1272
* Improved parallelism of proof term normalization: usedir -p2 -q0 is
wenzelm@37351
  1273
more efficient than combinations with -q1 or -q2.
wenzelm@37351
  1274
wenzelm@37351
  1275
wenzelm@37351
  1276
*** Pure ***
wenzelm@37351
  1277
wenzelm@37351
  1278
* Proofterms record type-class reasoning explicitly, using the
wenzelm@37351
  1279
"unconstrain" operation internally.  This eliminates all sort
wenzelm@37351
  1280
constraints from a theorem and proof, introducing explicit
wenzelm@37351
  1281
OFCLASS-premises.  On the proof term level, this operation is
wenzelm@37351
  1282
automatically applied at theorem boundaries, such that closed proofs
wenzelm@37351
  1283
are always free of sort constraints.  INCOMPATIBILITY for tools that
wenzelm@37351
  1284
inspect proof terms.
wenzelm@37351
  1285
wenzelm@37351
  1286
* Local theory specifications may depend on extra type variables that
wenzelm@37351
  1287
are not present in the result type -- arguments TYPE('a) :: 'a itself
wenzelm@37351
  1288
are added internally.  For example:
wenzelm@37351
  1289
wenzelm@37351
  1290
  definition unitary :: bool where "unitary = (ALL (x::'a) y. x = y)"
wenzelm@37351
  1291
wenzelm@37351
  1292
* Predicates of locales introduced by classes carry a mandatory
wenzelm@37351
  1293
"class" prefix.  INCOMPATIBILITY.
wenzelm@37351
  1294
wenzelm@37351
  1295
* Vacuous class specifications observe default sort.  INCOMPATIBILITY.
wenzelm@37351
  1296
wenzelm@37351
  1297
* Old 'axclass' command has been discontinued.  INCOMPATIBILITY, use
wenzelm@37351
  1298
'class' instead.
wenzelm@37351
  1299
wenzelm@37351
  1300
* Command 'code_reflect' allows to incorporate generated ML code into
wenzelm@37351
  1301
runtime environment; replaces immature code_datatype antiquotation.
wenzelm@37351
  1302
INCOMPATIBILITY.
wenzelm@37351
  1303
wenzelm@37351
  1304
* Code generator: simple concept for abstract datatypes obeying
wenzelm@37351
  1305
invariants.
wenzelm@37351
  1306
wenzelm@37351
  1307
* Code generator: details of internal data cache have no impact on the
wenzelm@37351
  1308
user space functionality any longer.
wenzelm@37351
  1309
wenzelm@37351
  1310
* Methods "unfold_locales" and "intro_locales" ignore non-locale
wenzelm@37351
  1311
subgoals.  This is more appropriate for interpretations with 'where'.
wenzelm@37351
  1312
INCOMPATIBILITY.
wenzelm@37351
  1313
wenzelm@36366
  1314
* Command 'example_proof' opens an empty proof body.  This allows to
wenzelm@36366
  1315
experiment with Isar, without producing any persistent result.
wenzelm@36366
  1316
wenzelm@35418
  1317
* Commands 'type_notation' and 'no_type_notation' declare type syntax
wenzelm@35418
  1318
within a local theory context, with explicit checking of the
wenzelm@35418
  1319
constructors involved (in contrast to the raw 'syntax' versions).
wenzelm@35418
  1320
wenzelm@36178
  1321
* Commands 'types' and 'typedecl' now work within a local theory
wenzelm@36178
  1322
context -- without introducing dependencies on parameters or
wenzelm@36178
  1323
assumptions, which is not possible in Isabelle/Pure.
wenzelm@35681
  1324
wenzelm@36857
  1325
* Command 'defaultsort' has been renamed to 'default_sort', it works
wenzelm@36857
  1326
within a local theory context.  Minor INCOMPATIBILITY.
wenzelm@36454
  1327
haftmann@34157
  1328
haftmann@33990
  1329
*** HOL ***
haftmann@33990
  1330
wenzelm@37351
  1331
* Command 'typedef' now works within a local theory context -- without
wenzelm@37351
  1332
introducing dependencies on parameters or assumptions, which is not
wenzelm@37351
  1333
possible in Isabelle/Pure/HOL.  Note that the logical environment may
wenzelm@37351
  1334
contain multiple interpretations of local typedefs (with different
wenzelm@37351
  1335
non-emptiness proofs), even in a global theory context.
wenzelm@37351
  1336
wenzelm@37351
  1337
* New package for quotient types.  Commands 'quotient_type' and
wenzelm@37351
  1338
'quotient_definition' may be used for defining types and constants by
wenzelm@37351
  1339
quotient constructions.  An example is the type of integers created by
wenzelm@37351
  1340
quotienting pairs of natural numbers:
wenzelm@37481
  1341
wenzelm@37351
  1342
  fun
wenzelm@37481
  1343
    intrel :: "(nat * nat) => (nat * nat) => bool"
wenzelm@37351
  1344
  where
wenzelm@37351
  1345
    "intrel (x, y) (u, v) = (x + v = u + y)"
wenzelm@37351
  1346
wenzelm@37481
  1347
  quotient_type int = "nat * nat" / intrel
wenzelm@37351
  1348
    by (auto simp add: equivp_def expand_fun_eq)
wenzelm@37481
  1349
wenzelm@37351
  1350
  quotient_definition
wenzelm@37351
  1351
    "0::int" is "(0::nat, 0::nat)"
wenzelm@37351
  1352
wenzelm@37351
  1353
The method "lifting" can be used to lift of theorems from the
wenzelm@37351
  1354
underlying "raw" type to the quotient type.  The example
wenzelm@37351
  1355
src/HOL/Quotient_Examples/FSet.thy includes such a quotient
wenzelm@37351
  1356
construction and provides a reasoning infrastructure for finite sets.
wenzelm@37351
  1357
wenzelm@37351
  1358
* Renamed Library/Quotient.thy to Library/Quotient_Type.thy to avoid
wenzelm@37351
  1359
clash with new theory Quotient in Main HOL.
wenzelm@37351
  1360
wenzelm@37351
  1361
* Moved the SMT binding into the main HOL session, eliminating
wenzelm@37351
  1362
separate HOL-SMT session.
wenzelm@37351
  1363
haftmann@37012
  1364
* List membership infix mem operation is only an input abbreviation.
haftmann@37012
  1365
INCOMPATIBILITY.
haftmann@37012
  1366
wenzelm@37144
  1367
* Theory Library/Word.thy has been removed.  Use library Word/Word.thy
wenzelm@37144
  1368
for future developements; former Library/Word.thy is still present in
wenzelm@37144
  1369
the AFP entry RSAPPS.
haftmann@36956
  1370
wenzelm@36857
  1371
* Theorem Int.int_induct renamed to Int.int_of_nat_induct and is no
wenzelm@36857
  1372
longer shadowed.  INCOMPATIBILITY.
haftmann@36802
  1373
huffman@36831
  1374
* Dropped theorem duplicate comp_arith; use semiring_norm instead.
huffman@36831
  1375
INCOMPATIBILITY.
huffman@36831
  1376
huffman@36831
  1377
* Dropped theorem RealPow.real_sq_order; use power2_le_imp_le instead.
huffman@36831
  1378
INCOMPATIBILITY.
haftmann@36699
  1379
wenzelm@36857
  1380
* Dropped normalizing_semiring etc; use the facts in semiring classes
wenzelm@36857
  1381
instead.  INCOMPATIBILITY.
wenzelm@36857
  1382
huffman@36979
  1383
* Dropped several real-specific versions of lemmas about floor and
wenzelm@37351
  1384
ceiling; use the generic lemmas from theory "Archimedean_Field"
wenzelm@37351
  1385
instead.  INCOMPATIBILITY.
huffman@36979
  1386
huffman@36979
  1387
  floor_number_of_eq         ~> floor_number_of
huffman@36979
  1388
  le_floor_eq_number_of      ~> number_of_le_floor
huffman@36979
  1389
  le_floor_eq_zero           ~> zero_le_floor
huffman@36979
  1390
  le_floor_eq_one            ~> one_le_floor
huffman@36979
  1391
  floor_less_eq_number_of    ~> floor_less_number_of
huffman@36979
  1392
  floor_less_eq_zero         ~> floor_less_zero
huffman@36979
  1393
  floor_less_eq_one          ~> floor_less_one
huffman@36979
  1394
  less_floor_eq_number_of    ~> number_of_less_floor
huffman@36979
  1395
  less_floor_eq_zero         ~> zero_less_floor
huffman@36979
  1396
  less_floor_eq_one          ~> one_less_floor
huffman@36979
  1397
  floor_le_eq_number_of      ~> floor_le_number_of
huffman@36979
  1398
  floor_le_eq_zero           ~> floor_le_zero
huffman@36979
  1399
  floor_le_eq_one            ~> floor_le_one
huffman@36979
  1400
  floor_subtract_number_of   ~> floor_diff_number_of
huffman@36979
  1401
  floor_subtract_one         ~> floor_diff_one
huffman@36979
  1402
  ceiling_number_of_eq       ~> ceiling_number_of
huffman@36979
  1403
  ceiling_le_eq_number_of    ~> ceiling_le_number_of
huffman@36979
  1404
  ceiling_le_zero_eq         ~> ceiling_le_zero
huffman@36979
  1405
  ceiling_le_eq_one          ~> ceiling_le_one
huffman@36979
  1406
  less_ceiling_eq_number_of  ~> number_of_less_ceiling
huffman@36979
  1407
  less_ceiling_eq_zero       ~> zero_less_ceiling
huffman@36979
  1408
  less_ceiling_eq_one        ~> one_less_ceiling
huffman@36979
  1409
  ceiling_less_eq_number_of  ~> ceiling_less_number_of
huffman@36979
  1410
  ceiling_less_eq_zero       ~> ceiling_less_zero
huffman@36979
  1411
  ceiling_less_eq_one        ~> ceiling_less_one
huffman@36979
  1412
  le_ceiling_eq_number_of    ~> number_of_le_ceiling
huffman@36979
  1413
  le_ceiling_eq_zero         ~> zero_le_ceiling
huffman@36979
  1414
  le_ceiling_eq_one          ~> one_le_ceiling
huffman@36979
  1415
  ceiling_subtract_number_of ~> ceiling_diff_number_of
huffman@36979
  1416
  ceiling_subtract_one       ~> ceiling_diff_one
huffman@36979
  1417
wenzelm@37144
  1418
* Theory "Finite_Set": various folding_XXX locales facilitate the
wenzelm@36857
  1419
application of the various fold combinators on finite sets.
wenzelm@36857
  1420
wenzelm@36857
  1421
* Library theory "RBT" renamed to "RBT_Impl"; new library theory "RBT"
wenzelm@36857
  1422
provides abstract red-black tree type which is backed by "RBT_Impl" as
wenzelm@36857
  1423
implementation.  INCOMPATIBILTY.
haftmann@36147
  1424
huffman@36825
  1425
* Theory Library/Coinductive_List has been removed -- superseded by
wenzelm@35763
  1426
AFP/thys/Coinductive.
wenzelm@35763
  1427
huffman@36824
  1428
* Theory PReal, including the type "preal" and related operations, has
huffman@36824
  1429
been removed.  INCOMPATIBILITY.
huffman@36824
  1430
wenzelm@37481
  1431
* Real: new development using Cauchy Sequences.
wenzelm@37481
  1432
wenzelm@37351
  1433
* Split off theory "Big_Operators" containing setsum, setprod,
wenzelm@37351
  1434
Inf_fin, Sup_fin, Min, Max from theory Finite_Set.  INCOMPATIBILITY.
wenzelm@36857
  1435
wenzelm@36857
  1436
* Theory "Rational" renamed to "Rat", for consistency with "Nat",
wenzelm@36857
  1437
"Int" etc.  INCOMPATIBILITY.
wenzelm@36857
  1438
wenzelm@37351
  1439
* Constant Rat.normalize needs to be qualified.  INCOMPATIBILITY.
wenzelm@37143
  1440
wenzelm@36857
  1441
* New set of rules "ac_simps" provides combined assoc / commute
wenzelm@36857
  1442
rewrites for all interpretations of the appropriate generic locales.
wenzelm@36857
  1443
wenzelm@36857
  1444
* Renamed theory "OrderedGroup" to "Groups" and split theory
wenzelm@36857
  1445
"Ring_and_Field" into theories "Rings" and "Fields"; for more
wenzelm@36857
  1446
appropriate and more consistent names suitable for name prefixes
wenzelm@36857
  1447
within the HOL theories.  INCOMPATIBILITY.
wenzelm@36857
  1448
wenzelm@36857
  1449
* Some generic constants have been put to appropriate theories:
wenzelm@36857
  1450
  - less_eq, less: Orderings
wenzelm@36857
  1451
  - zero, one, plus, minus, uminus, times, abs, sgn: Groups
wenzelm@36857
  1452
  - inverse, divide: Rings
haftmann@35372
  1453
INCOMPATIBILITY.
haftmann@35372
  1454
wenzelm@36857
  1455
* More consistent naming of type classes involving orderings (and
wenzelm@36857
  1456
lattices):
haftmann@35027
  1457
haftmann@35027
  1458
    lower_semilattice                   ~> semilattice_inf
haftmann@35027
  1459
    upper_semilattice                   ~> semilattice_sup
haftmann@35027
  1460
haftmann@35027
  1461
    dense_linear_order                  ~> dense_linorder
haftmann@35027
  1462
haftmann@35027
  1463
    pordered_ab_group_add               ~> ordered_ab_group_add
haftmann@35027
  1464
    pordered_ab_group_add_abs           ~> ordered_ab_group_add_abs
haftmann@35027
  1465
    pordered_ab_semigroup_add           ~> ordered_ab_semigroup_add
haftmann@35027
  1466
    pordered_ab_semigroup_add_imp_le    ~> ordered_ab_semigroup_add_imp_le
haftmann@35027
  1467
    pordered_cancel_ab_semigroup_add    ~> ordered_cancel_ab_semigroup_add
haftmann@35027
  1468
    pordered_cancel_comm_semiring       ~> ordered_cancel_comm_semiring
haftmann@35027
  1469
    pordered_cancel_semiring            ~> ordered_cancel_semiring
haftmann@35027
  1470
    pordered_comm_monoid_add            ~> ordered_comm_monoid_add
haftmann@35027
  1471
    pordered_comm_ring                  ~> ordered_comm_ring
haftmann@35027
  1472
    pordered_comm_semiring              ~> ordered_comm_semiring
haftmann@35027
  1473
    pordered_ring                       ~> ordered_ring
haftmann@35027
  1474
    pordered_ring_abs                   ~> ordered_ring_abs
haftmann@35027
  1475
    pordered_semiring                   ~> ordered_semiring
haftmann@35027
  1476
haftmann@35027
  1477
    ordered_ab_group_add                ~> linordered_ab_group_add
haftmann@35027
  1478
    ordered_ab_semigroup_add            ~> linordered_ab_semigroup_add
haftmann@35027
  1479
    ordered_cancel_ab_semigroup_add     ~> linordered_cancel_ab_semigroup_add
haftmann@35027
  1480
    ordered_comm_semiring_strict        ~> linordered_comm_semiring_strict
haftmann@35027
  1481
    ordered_field                       ~> linordered_field
haftmann@35027
  1482
    ordered_field_no_lb                 ~> linordered_field_no_lb
haftmann@35027
  1483
    ordered_field_no_ub                 ~> linordered_field_no_ub
haftmann@35027
  1484
    ordered_field_dense_linear_order    ~> dense_linordered_field
haftmann@35027
  1485
    ordered_idom                        ~> linordered_idom
haftmann@35027
  1486
    ordered_ring                        ~> linordered_ring
haftmann@35027
  1487
    ordered_ring_le_cancel_factor       ~> linordered_ring_le_cancel_factor
haftmann@35027
  1488
    ordered_ring_less_cancel_factor     ~> linordered_ring_less_cancel_factor
haftmann@35027
  1489
    ordered_ring_strict                 ~> linordered_ring_strict
haftmann@35027
  1490
    ordered_semidom                     ~> linordered_semidom
haftmann@35027
  1491
    ordered_semiring                    ~> linordered_semiring
haftmann@35027
  1492
    ordered_semiring_1                  ~> linordered_semiring_1
haftmann@35027
  1493
    ordered_semiring_1_strict           ~> linordered_semiring_1_strict
haftmann@35027
  1494
    ordered_semiring_strict             ~> linordered_semiring_strict
haftmann@35027
  1495
wenzelm@36857
  1496
  The following slightly odd type classes have been moved to a
wenzelm@37351
  1497
  separate theory Library/Lattice_Algebras:
haftmann@35032
  1498
haftmann@35032
  1499
    lordered_ab_group_add               ~> lattice_ab_group_add
haftmann@35032
  1500
    lordered_ab_group_add_abs           ~> lattice_ab_group_add_abs
haftmann@35032
  1501
    lordered_ab_group_add_meet          ~> semilattice_inf_ab_group_add
haftmann@35032
  1502
    lordered_ab_group_add_join          ~> semilattice_sup_ab_group_add
haftmann@35032
  1503
    lordered_ring                       ~> lattice_ring
haftmann@35032
  1504
haftmann@35027
  1505
INCOMPATIBILITY.
haftmann@35027
  1506
haftmann@36416
  1507
* Refined field classes:
wenzelm@36857
  1508
  - classes division_ring_inverse_zero, field_inverse_zero,
wenzelm@36857
  1509
    linordered_field_inverse_zero include rule inverse 0 = 0 --
wenzelm@36857
  1510
    subsumes former division_by_zero class;
wenzelm@36857
  1511
  - numerous lemmas have been ported from field to division_ring.
wenzelm@36857
  1512
INCOMPATIBILITY.
haftmann@36416
  1513
haftmann@36416
  1514
* Refined algebra theorem collections:
wenzelm@36857
  1515
  - dropped theorem group group_simps, use algebra_simps instead;
wenzelm@36857
  1516
  - dropped theorem group ring_simps, use field_simps instead;
wenzelm@36857
  1517
  - proper theorem collection field_simps subsumes former theorem
wenzelm@36857
  1518
    groups field_eq_simps and field_simps;
wenzelm@36857
  1519
  - dropped lemma eq_minus_self_iff which is a duplicate for
wenzelm@36857
  1520
    equal_neg_zero.
wenzelm@36857
  1521
INCOMPATIBILITY.
wenzelm@35009
  1522
wenzelm@35009
  1523
* Theory Finite_Set and List: some lemmas have been generalized from
wenzelm@34076
  1524
sets to lattices:
wenzelm@34076
  1525
haftmann@33998
  1526
  fun_left_comm_idem_inter      ~> fun_left_comm_idem_inf
haftmann@33998
  1527
  fun_left_comm_idem_union      ~> fun_left_comm_idem_sup
haftmann@33998
  1528
  inter_Inter_fold_inter        ~> inf_Inf_fold_inf
haftmann@33998
  1529
  union_Union_fold_union        ~> sup_Sup_fold_sup
haftmann@33998
  1530
  Inter_fold_inter              ~> Inf_fold_inf
haftmann@33998
  1531
  Union_fold_union              ~> Sup_fold_sup
haftmann@33998
  1532
  inter_INTER_fold_inter        ~> inf_INFI_fold_inf
haftmann@33998
  1533
  union_UNION_fold_union        ~> sup_SUPR_fold_sup
haftmann@33998
  1534
  INTER_fold_inter              ~> INFI_fold_inf
haftmann@33998
  1535
  UNION_fold_union              ~> SUPR_fold_sup
haftmann@33998
  1536
wenzelm@37351
  1537
* Theory "Complete_Lattice": lemmas top_def and bot_def have been
haftmann@36416
  1538
replaced by the more convenient lemmas Inf_empty and Sup_empty.
haftmann@36416
  1539
Dropped lemmas Inf_insert_simp and Sup_insert_simp, which are subsumed
haftmann@36416
  1540
by Inf_insert and Sup_insert.  Lemmas Inf_UNIV and Sup_UNIV replace
haftmann@36416
  1541
former Inf_Univ and Sup_Univ.  Lemmas inf_top_right and sup_bot_right
haftmann@36416
  1542
subsume inf_top and sup_bot respectively.  INCOMPATIBILITY.
haftmann@36416
  1543
wenzelm@36857
  1544
* Reorganized theory Multiset: swapped notation of pointwise and
wenzelm@36857
  1545
multiset order:
wenzelm@37351
  1546
wenzelm@36857
  1547
  - pointwise ordering is instance of class order with standard syntax
wenzelm@36857
  1548
    <= and <;
wenzelm@36857
  1549
  - multiset ordering has syntax <=# and <#; partial order properties
wenzelm@36857
  1550
    are provided by means of interpretation with prefix
wenzelm@36857
  1551
    multiset_order;
wenzelm@36857
  1552
  - less duplication, less historical organization of sections,
wenzelm@36857
  1553
    conversion from associations lists to multisets, rudimentary code
wenzelm@36857
  1554
    generation;
wenzelm@36857
  1555
  - use insert_DiffM2 [symmetric] instead of elem_imp_eq_diff_union,
wenzelm@36857
  1556
    if needed.
wenzelm@37351
  1557
nipkow@36895
  1558
Renamed:
wenzelm@37351
  1559
wenzelm@37351
  1560
  multiset_eq_conv_count_eq  ~>  multiset_ext_iff
wenzelm@37351
  1561
  multi_count_ext  ~>  multiset_ext
wenzelm@37351
  1562
  diff_union_inverse2  ~>  diff_union_cancelR
wenzelm@37351
  1563
wenzelm@36857
  1564
INCOMPATIBILITY.
haftmann@36416
  1565
nipkow@36895
  1566
* Theory Permutation: replaced local "remove" by List.remove1.
nipkow@36895
  1567
haftmann@36416
  1568
* Code generation: ML and OCaml code is decorated with signatures.
haftmann@36416
  1569
wenzelm@35009
  1570
* Theory List: added transpose.
wenzelm@35009
  1571
huffman@35810
  1572
* Library/Nat_Bijection.thy is a collection of bijective functions
huffman@35810
  1573
between nat and other types, which supersedes the older libraries
huffman@35810
  1574
Library/Nat_Int_Bij.thy and HOLCF/NatIso.thy.  INCOMPATIBILITY.
huffman@35810
  1575
huffman@35810
  1576
  Constants:
huffman@35810
  1577
  Nat_Int_Bij.nat2_to_nat         ~> prod_encode
huffman@35810
  1578
  Nat_Int_Bij.nat_to_nat2         ~> prod_decode
huffman@35810
  1579
  Nat_Int_Bij.int_to_nat_bij      ~> int_encode
huffman@35810
  1580
  Nat_Int_Bij.nat_to_int_bij      ~> int_decode
huffman@35810
  1581
  Countable.pair_encode           ~> prod_encode
huffman@35810
  1582
  NatIso.prod2nat                 ~> prod_encode
huffman@35810
  1583
  NatIso.nat2prod                 ~> prod_decode
huffman@35810
  1584
  NatIso.sum2nat                  ~> sum_encode
huffman@35810
  1585
  NatIso.nat2sum                  ~> sum_decode
huffman@35810
  1586
  NatIso.list2nat                 ~> list_encode
huffman@35810
  1587
  NatIso.nat2list                 ~> list_decode
huffman@35810
  1588
  NatIso.set2nat                  ~> set_encode
huffman@35810
  1589
  NatIso.nat2set                  ~> set_decode
huffman@35810
  1590
huffman@35810
  1591
  Lemmas:
huffman@35810
  1592
  Nat_Int_Bij.bij_nat_to_int_bij  ~> bij_int_decode
huffman@35810
  1593
  Nat_Int_Bij.nat2_to_nat_inj     ~> inj_prod_encode
huffman@35810
  1594
  Nat_Int_Bij.nat2_to_nat_surj    ~> surj_prod_encode
huffman@35810
  1595
  Nat_Int_Bij.nat_to_nat2_inj     ~> inj_prod_decode
huffman@35810
  1596
  Nat_Int_Bij.nat_to_nat2_surj    ~> surj_prod_decode
huffman@35810
  1597
  Nat_Int_Bij.i2n_n2i_id          ~> int_encode_inverse
huffman@35810
  1598
  Nat_Int_Bij.n2i_i2n_id          ~> int_decode_inverse
huffman@35810
  1599
  Nat_Int_Bij.surj_nat_to_int_bij ~> surj_int_encode
huffman@35810
  1600
  Nat_Int_Bij.surj_int_to_nat_bij ~> surj_int_decode
huffman@35810
  1601
  Nat_Int_Bij.inj_nat_to_int_bij  ~> inj_int_encode
huffman@35810
  1602
  Nat_Int_Bij.inj_int_to_nat_bij  ~> inj_int_decode
huffman@35810
  1603
  Nat_Int_Bij.bij_nat_to_int_bij  ~> bij_int_encode
huffman@35810
  1604
  Nat_Int_Bij.bij_int_to_nat_bij  ~> bij_int_decode
huffman@35810
  1605
blanchet@36921
  1606
* Sledgehammer:
blanchet@36921
  1607
  - Renamed ATP commands:
blanchet@36921
  1608
    atp_info     ~> sledgehammer running_atps
blanchet@36921
  1609
    atp_kill     ~> sledgehammer kill_atps
blanchet@36921
  1610
    atp_messages ~> sledgehammer messages
blanchet@36921
  1611
    atp_minimize ~> sledgehammer minimize
blanchet@36921
  1612
    print_atps   ~> sledgehammer available_atps
blanchet@36921
  1613
    INCOMPATIBILITY.
blanchet@36921
  1614
  - Added user's manual ("isabelle doc sledgehammer").
blanchet@36921
  1615
  - Added option syntax and "sledgehammer_params" to customize
blanchet@36921
  1616
    Sledgehammer's behavior.  See the manual for details.
blanchet@36921
  1617
  - Modified the Isar proof reconstruction code so that it produces
blanchet@36921
  1618
    direct proofs rather than proofs by contradiction.  (This feature
blanchet@36921
  1619
    is still experimental.)
blanchet@36921
  1620
  - Made Isar proof reconstruction work for SPASS, remote ATPs, and in
blanchet@36921
  1621
    full-typed mode.
blanchet@36921
  1622
  - Added support for TPTP syntax for SPASS via the "spass_tptp" ATP.
blanchet@36921
  1623
blanchet@36920
  1624
* Nitpick:
blanchet@36920
  1625
  - Added and implemented "binary_ints" and "bits" options.
blanchet@36920
  1626
  - Added "std" option and implemented support for nonstandard models.
blanchet@36920
  1627
  - Added and implemented "finitize" option to improve the precision
blanchet@36920
  1628
    of infinite datatypes based on a monotonicity analysis.
blanchet@36920
  1629
  - Added support for quotient types.
blanchet@36920
  1630
  - Added support for "specification" and "ax_specification"
blanchet@36920
  1631
    constructs.
blanchet@36920
  1632
  - Added support for local definitions (for "function" and
blanchet@36920
  1633
    "termination" proofs).
blanchet@36920
  1634
  - Added support for term postprocessors.
blanchet@36920
  1635
  - Optimized "Multiset.multiset" and "FinFun.finfun".
blanchet@36920
  1636
  - Improved efficiency of "destroy_constrs" optimization.
blanchet@36920
  1637
  - Fixed soundness bugs related to "destroy_constrs" optimization and
blanchet@36920
  1638
    record getters.
blanchet@37271
  1639
  - Fixed soundness bug related to higher-order constructors.
blanchet@37271
  1640
  - Fixed soundness bug when "full_descrs" is enabled.
blanchet@36920
  1641
  - Improved precision of set constructs.
blanchet@37259
  1642
  - Added "atoms" option.
blanchet@36920
  1643
  - Added cache to speed up repeated Kodkod invocations on the same
blanchet@36920
  1644
    problems.
blanchet@36920
  1645
  - Renamed "MiniSatJNI", "zChaffJNI", "BerkMinAlloy", and
blanchet@36920
  1646
    "SAT4JLight" to "MiniSat_JNI", "zChaff_JNI", "BerkMin_Alloy", and
blanchet@36920
  1647
    "SAT4J_Light".  INCOMPATIBILITY.
blanchet@36920
  1648
  - Removed "skolemize", "uncurry", "sym_break", "flatten_prop",
blanchet@36920
  1649
    "sharing_depth", and "show_skolems" options.  INCOMPATIBILITY.
blanchet@37263
  1650
  - Removed "nitpick_intro" attribute.  INCOMPATIBILITY.
blanchet@36920
  1651
berghofe@37462
  1652
* Method "induct" now takes instantiations of the form t, where t is not
berghofe@37462
  1653
  a variable, as a shorthand for "x == t", where x is a fresh variable.
berghofe@37462
  1654
  If this is not intended, t has to be enclosed in parentheses.
berghofe@37462
  1655
  By default, the equalities generated by definitional instantiations
berghofe@37462
  1656
  are pre-simplified, which may cause parameters of inductive cases
berghofe@37462
  1657
  to disappear, or may even delete some of the inductive cases.
berghofe@37462
  1658
  Use "induct (no_simp)" instead of "induct" to restore the old
berghofe@37462
  1659
  behaviour. The (no_simp) option is also understood by the "cases"
berghofe@37462
  1660
  and "nominal_induct" methods, which now perform pre-simplification, too.
berghofe@37462
  1661
  INCOMPATIBILITY.
berghofe@37462
  1662
haftmann@33990
  1663
huffman@36823
  1664
*** HOLCF ***
huffman@36823
  1665
huffman@36823
  1666
* Variable names in lemmas generated by the domain package have
huffman@36823
  1667
changed; the naming scheme is now consistent with the HOL datatype
huffman@36823
  1668
package.  Some proof scripts may be affected, INCOMPATIBILITY.
huffman@36823
  1669
huffman@36823
  1670
* The domain package no longer defines the function "foo_copy" for
huffman@36823
  1671
recursive domain "foo".  The reach lemma is now stated directly in
huffman@36823
  1672
terms of "foo_take".  Lemmas and proofs that mention "foo_copy" must
huffman@36823
  1673
be reformulated in terms of "foo_take", INCOMPATIBILITY.
huffman@36823
  1674
huffman@36823
  1675
* Most definedness lemmas generated by the domain package (previously
huffman@36823
  1676
of the form "x ~= UU ==> foo$x ~= UU") now have an if-and-only-if form
huffman@36823
  1677
like "foo$x = UU <-> x = UU", which works better as a simp rule.
wenzelm@37351
  1678
Proofs that used definedness lemmas as intro rules may break,
huffman@36823
  1679
potential INCOMPATIBILITY.
huffman@36823
  1680
huffman@36823
  1681
* Induction and casedist rules generated by the domain package now
huffman@36823
  1682
declare proper case_names (one called "bottom", and one named for each
huffman@36823
  1683
constructor).  INCOMPATIBILITY.
huffman@36823
  1684
huffman@36823
  1685
* For mutually-recursive domains, separate "reach" and "take_lemma"
huffman@36823
  1686
rules are generated for each domain, INCOMPATIBILITY.
huffman@36823
  1687
huffman@36823
  1688
  foo_bar.reach       ~> foo.reach  bar.reach
huffman@36823
  1689
  foo_bar.take_lemmas ~> foo.take_lemma  bar.take_lemma
huffman@36823
  1690
huffman@36823
  1691
* Some lemmas generated by the domain package have been renamed for
huffman@36823
  1692
consistency with the datatype package, INCOMPATIBILITY.
huffman@36823
  1693
huffman@36823
  1694
  foo.ind        ~> foo.induct
huffman@36823
  1695
  foo.finite_ind ~> foo.finite_induct
huffman@36823
  1696
  foo.coind      ~> foo.coinduct
huffman@36823
  1697
  foo.casedist   ~> foo.exhaust
huffman@36823
  1698
  foo.exhaust    ~> foo.nchotomy
huffman@36823
  1699
huffman@36823
  1700
* For consistency with other definition packages, the fixrec package
huffman@36823
  1701
now generates qualified theorem names, INCOMPATIBILITY.
huffman@36823
  1702
huffman@36823
  1703
  foo_simps  ~> foo.simps
huffman@36823
  1704
  foo_unfold ~> foo.unfold
huffman@36823
  1705
  foo_induct ~> foo.induct
huffman@36823
  1706
huffman@37071
  1707
* The "fixrec_simp" attribute has been removed.  The "fixrec_simp"
huffman@37071
  1708
method and internal fixrec proofs now use the default simpset instead.
huffman@37071
  1709
INCOMPATIBILITY.
huffman@37071
  1710
huffman@36823
  1711
* The "contlub" predicate has been removed.  Proof scripts should use
huffman@36823
  1712
lemma contI2 in place of monocontlub2cont, INCOMPATIBILITY.
huffman@36823
  1713
huffman@36823
  1714
* The "admw" predicate has been removed, INCOMPATIBILITY.
huffman@36823
  1715
huffman@36823
  1716
* The constants cpair, cfst, and csnd have been removed in favor of
huffman@36823
  1717
Pair, fst, and snd from Isabelle/HOL, INCOMPATIBILITY.
huffman@36823
  1718
huffman@36823
  1719
haftmann@33990
  1720
*** ML ***
haftmann@33990
  1721
wenzelm@37351
  1722
* Antiquotations for basic formal entities:
wenzelm@37351
  1723
wenzelm@37351
  1724
    @{class NAME}         -- type class
wenzelm@37351
  1725
    @{class_syntax NAME}  -- syntax representation of the above
wenzelm@37351
  1726
wenzelm@37351
  1727
    @{type_name NAME}     -- logical type
wenzelm@37351
  1728
    @{type_abbrev NAME}   -- type abbreviation
wenzelm@37351
  1729
    @{nonterminal NAME}   -- type of concrete syntactic category
wenzelm@37351
  1730
    @{type_syntax NAME}   -- syntax representation of any of the above
wenzelm@37351
  1731
wenzelm@37351
  1732
    @{const_name NAME}    -- logical constant (INCOMPATIBILITY)
wenzelm@37351
  1733
    @{const_abbrev NAME}  -- abbreviated constant
wenzelm@37351
  1734
    @{const_syntax NAME}  -- syntax representation of any of the above
wenzelm@37351
  1735
wenzelm@37351
  1736
* Antiquotation @{syntax_const NAME} ensures that NAME refers to a raw
wenzelm@37351
  1737
syntax constant (cf. 'syntax' command).
wenzelm@37351
  1738
wenzelm@37351
  1739
* Antiquotation @{make_string} inlines a function to print arbitrary
wenzelm@37351
  1740
values similar to the ML toplevel.  The result is compiler dependent
wenzelm@37351
  1741
and may fall back on "?" in certain situations.
wenzelm@37351
  1742
wenzelm@37351
  1743
* Diagnostic commands 'ML_val' and 'ML_command' may refer to
wenzelm@37351
  1744
antiquotations @{Isar.state} and @{Isar.goal}.  This replaces impure
wenzelm@37351
  1745
Isar.state() and Isar.goal(), which belong to the old TTY loop and do
wenzelm@37351
  1746
not work with the asynchronous Isar document model.
wenzelm@37351
  1747
wenzelm@37351
  1748
* Configuration options now admit dynamic default values, depending on
wenzelm@37351
  1749
the context or even global references.
wenzelm@37351
  1750
wenzelm@37351
  1751
* SHA1.digest digests strings according to SHA-1 (see RFC 3174).  It
wenzelm@37351
  1752
uses an efficient external library if available (for Poly/ML).
wenzelm@37351
  1753
wenzelm@37144
  1754
* Renamed some important ML structures, while keeping the old names
wenzelm@37144
  1755
for some time as aliases within the structure Legacy:
wenzelm@37144
  1756
wenzelm@37144
  1757
  OuterKeyword  ~>  Keyword
wenzelm@37144
  1758
  OuterLex      ~>  Token
wenzelm@37144
  1759
  OuterParse    ~>  Parse
wenzelm@37144
  1760
  OuterSyntax   ~>  Outer_Syntax
wenzelm@37216
  1761
  PrintMode     ~>  Print_Mode
wenzelm@37144
  1762
  SpecParse     ~>  Parse_Spec
wenzelm@37216
  1763
  ThyInfo       ~>  Thy_Info
wenzelm@37216
  1764
  ThyLoad       ~>  Thy_Load
wenzelm@37216
  1765
  ThyOutput     ~>  Thy_Output
wenzelm@37153
  1766
  TypeInfer     ~>  Type_Infer
wenzelm@37144
  1767
wenzelm@37144
  1768
Note that "open Legacy" simplifies porting of sources, but forgetting
wenzelm@37144
  1769
to remove it again will complicate porting again in the future.
wenzelm@37144
  1770
wenzelm@37144
  1771
* Most operations that refer to a global context are named
wenzelm@37144
  1772
accordingly, e.g. Simplifier.global_context or
wenzelm@37144
  1773
ProofContext.init_global.  There are some situations where a global
wenzelm@37144
  1774
context actually works, but under normal circumstances one needs to
wenzelm@37144
  1775
pass the proper local context through the code!
wenzelm@37144
  1776
wenzelm@37144
  1777
* Discontinued old TheoryDataFun with its copy/init operation -- data
wenzelm@37144
  1778
needs to be pure.  Functor Theory_Data_PP retains the traditional
wenzelm@37144
  1779
Pretty.pp argument to merge, which is absent in the standard
wenzelm@37144
  1780
Theory_Data version.
wenzelm@37144
  1781
wenzelm@36443
  1782
* Sorts.certify_sort and derived "cert" operations for types and terms
wenzelm@36443
  1783
no longer minimize sorts.  Thus certification at the boundary of the
wenzelm@36443
  1784
inference kernel becomes invariant under addition of class relations,
wenzelm@36443
  1785
which is an important monotonicity principle.  Sorts are now minimized
wenzelm@36443
  1786
in the syntax layer only, at the boundary between the end-user and the
wenzelm@36443
  1787
system.  Subtle INCOMPATIBILITY, may have to use Sign.minimize_sort
wenzelm@36443
  1788
explicitly in rare situations.
wenzelm@36443
  1789
wenzelm@35021
  1790
* Renamed old-style Drule.standard to Drule.export_without_context, to
wenzelm@35021
  1791
emphasize that this is in no way a standard operation.
wenzelm@35021
  1792
INCOMPATIBILITY.
wenzelm@35021
  1793
wenzelm@34076
  1794
* Subgoal.FOCUS (and variants): resulting goal state is normalized as
wenzelm@34076
  1795
usual for resolution.  Rare INCOMPATIBILITY.
wenzelm@34076
  1796
wenzelm@35845
  1797
* Renamed varify/unvarify operations to varify_global/unvarify_global
wenzelm@35845
  1798
to emphasize that these only work in a global situation (which is
wenzelm@35845
  1799
quite rare).
wenzelm@35845
  1800
wenzelm@37144
  1801
* Curried take and drop in library.ML; negative length is interpreted
wenzelm@37144
  1802
as infinity (as in chop).  Subtle INCOMPATIBILITY.
wenzelm@36971
  1803
wenzelm@37351
  1804
* Proof terms: type substitutions on proof constants now use canonical
wenzelm@37351
  1805
order of type variables.  INCOMPATIBILITY for tools working with proof
wenzelm@37351
  1806
terms.
wenzelm@37351
  1807
wenzelm@37351
  1808
* Raw axioms/defs may no longer carry sort constraints, and raw defs
wenzelm@37351
  1809
may no longer carry premises.  User-level specifications are
wenzelm@37351
  1810
transformed accordingly by Thm.add_axiom/add_def.
wenzelm@37351
  1811
haftmann@33990
  1812
wenzelm@34238
  1813
*** System ***
wenzelm@34238
  1814
wenzelm@34238
  1815
* Discontinued special HOL_USEDIR_OPTIONS for the main HOL image;
wenzelm@34238
  1816
ISABELLE_USEDIR_OPTIONS applies uniformly to all sessions.  Note that
wenzelm@34238
  1817
proof terms are enabled unconditionally in the new HOL-Proofs image.
wenzelm@34238
  1818
wenzelm@34255
  1819
* Discontinued old ISABELLE and ISATOOL environment settings (legacy
wenzelm@34255
  1820
feature since Isabelle2009).  Use ISABELLE_PROCESS and ISABELLE_TOOL,
wenzelm@34255
  1821
respectively.
wenzelm@34255
  1822
wenzelm@36201
  1823
* Old lib/scripts/polyml-platform is superseded by the
wenzelm@36201
  1824
ISABELLE_PLATFORM setting variable, which defaults to the 32 bit
wenzelm@36201
  1825
variant, even on a 64 bit machine.  The following example setting
wenzelm@36201
  1826
prefers 64 bit if available:
wenzelm@36201
  1827
wenzelm@36201
  1828
  ML_PLATFORM="${ISABELLE_PLATFORM64:-$ISABELLE_PLATFORM}"
wenzelm@36201
  1829
wenzelm@37218
  1830
* The preliminary Isabelle/jEdit application demonstrates the emerging
wenzelm@37218
  1831
Isabelle/Scala layer for advanced prover interaction and integration.
wenzelm@37218
  1832
See src/Tools/jEdit or "isabelle jedit" provided by the properly built
wenzelm@37218
  1833
component.
wenzelm@37218
  1834
wenzelm@37473
  1835
* "IsabelleText" is a Unicode font derived from Bitstream Vera Mono
wenzelm@37473
  1836
and Bluesky TeX fonts.  It provides the usual Isabelle symbols,
wenzelm@37473
  1837
similar to the default assignment of the document preparation system
wenzelm@37473
  1838
(cf. isabellesym.sty).  The Isabelle/Scala class Isabelle_System
wenzelm@37473
  1839
provides some operations for direct access to the font without asking
wenzelm@37473
  1840
the user for manual installation.
wenzelm@37473
  1841
wenzelm@34238
  1842
haftmann@33990
  1843
wenzelm@33842
  1844
New in Isabelle2009-1 (December 2009)
wenzelm@33842
  1845
-------------------------------------
wenzelm@30904
  1846
wenzelm@31550
  1847
*** General ***
wenzelm@31550
  1848
wenzelm@31550
  1849
* Discontinued old form of "escaped symbols" such as \\<forall>.  Only
wenzelm@31550
  1850
one backslash should be used, even in ML sources.
wenzelm@31550
  1851
wenzelm@31550
  1852
haftmann@30951
  1853
*** Pure ***
haftmann@30951
  1854
ballarin@32841
  1855
* Locale interpretation propagates mixins along the locale hierarchy.
ballarin@32841
  1856
The currently only available mixins are the equations used to map
ballarin@32841
  1857
local definitions to terms of the target domain of an interpretation.
ballarin@32841
  1858
wenzelm@33842
  1859
* Reactivated diagnostic command 'print_interps'.  Use "print_interps
wenzelm@33842
  1860
loc" to print all interpretations of locale "loc" in the theory.
wenzelm@33842
  1861
Interpretations in proofs are not shown.
ballarin@32841
  1862
ballarin@32983
  1863
* Thoroughly revised locales tutorial.  New section on conditional
ballarin@32983
  1864
interpretation.
ballarin@32983
  1865
wenzelm@33843
  1866
* On instantiation of classes, remaining undefined class parameters
wenzelm@33843
  1867
are formally declared.  INCOMPATIBILITY.
wenzelm@33843
  1868
haftmann@30951
  1869
wenzelm@33842
  1870
*** Document preparation ***
wenzelm@33842
  1871
wenzelm@33842
  1872
* New generalized style concept for printing terms: @{foo (style) ...}
wenzelm@33842
  1873
instead of @{foo_style style ...}  (old form is still retained for
wenzelm@33842
  1874
backward compatibility).  Styles can be also applied for
wenzelm@33842
  1875
antiquotations prop, term_type and typeof.
haftmann@32891
  1876
haftmann@32891
  1877
haftmann@30930
  1878
*** HOL ***
haftmann@30930
  1879
wenzelm@33842
  1880
* New proof method "smt" for a combination of first-order logic with
wenzelm@33842
  1881
equality, linear and nonlinear (natural/integer/real) arithmetic, and
wenzelm@33842
  1882
fixed-size bitvectors; there is also basic support for higher-order
wenzelm@33842
  1883
features (esp. lambda abstractions).  It is an incomplete decision
wenzelm@33842
  1884
procedure based on external SMT solvers using the oracle mechanism;
wenzelm@33842
  1885
for the SMT solver Z3, this method is proof-producing.  Certificates
wenzelm@33842
  1886
are provided to avoid calling the external solvers solely for
wenzelm@33842
  1887
re-checking proofs.  Due to a remote SMT service there is no need for
wenzelm@33842
  1888
installing SMT solvers locally.  See src/HOL/SMT.
wenzelm@33842
  1889
wenzelm@33842
  1890
* New commands to load and prove verification conditions generated by
wenzelm@33842
  1891
the Boogie program verifier or derived systems (e.g. the Verifying C
wenzelm@33842
  1892
Compiler (VCC) or Spec#).  See src/HOL/Boogie.
wenzelm@33842
  1893
wenzelm@33842
  1894
* New counterexample generator tool 'nitpick' based on the Kodkod
wenzelm@33842
  1895
relational model finder.  See src/HOL/Tools/Nitpick and
wenzelm@33842
  1896
src/HOL/Nitpick_Examples.
wenzelm@33842
  1897
haftmann@33860
  1898
* New commands 'code_pred' and 'values' to invoke the predicate
haftmann@33860
  1899
compiler and to enumerate values of inductive predicates.
haftmann@33860
  1900
haftmann@33860
  1901
* A tabled implementation of the reflexive transitive closure.
haftmann@33860
  1902
haftmann@33860
  1903
* New implementation of quickcheck uses generic code generator;
haftmann@33860
  1904
default generators are provided for all suitable HOL types, records
haftmann@33860
  1905
and datatypes.  Old quickcheck can be re-activated importing theory
haftmann@33860
  1906
Library/SML_Quickcheck.
haftmann@33860
  1907
wenzelm@33843
  1908
* New testing tool Mirabelle for automated proof tools.  Applies
wenzelm@32427
  1909
several tools and tactics like sledgehammer, metis, or quickcheck, to
wenzelm@33842
  1910
every proof step in a theory.  To be used in batch mode via the
wenzelm@32427
  1911
"mirabelle" utility.
wenzelm@32427
  1912
wenzelm@32427
  1913
* New proof method "sos" (sum of squares) for nonlinear real
wenzelm@33842
  1914
arithmetic (originally due to John Harison). It requires theory
wenzelm@32427
  1915
Library/Sum_Of_Squares.  It is not a complete decision procedure but
wenzelm@32427
  1916
works well in practice on quantifier-free real arithmetic with +, -,
wenzelm@32427
  1917
*, ^, =, <= and <, i.e. boolean combinations of equalities and
wenzelm@33842
  1918
inequalities between polynomials.  It makes use of external
wenzelm@33842
  1919
semidefinite programming solvers.  Method "sos" generates a
wenzelm@33842
  1920
certificate that can be pasted into the proof thus avoiding the need
wenzelm@33842
  1921
to call an external tool every time the proof is checked.  See
wenzelm@33842
  1922
src/HOL/Library/Sum_Of_Squares.
wenzelm@32427
  1923
wenzelm@33843
  1924
* New method "linarith" invokes existing linear arithmetic decision
wenzelm@33843
  1925
procedure only.
wenzelm@33843
  1926
wenzelm@33843
  1927
* New command 'atp_minimal' reduces result produced by Sledgehammer.
wenzelm@33843
  1928
wenzelm@33843
  1929
* New Sledgehammer option "Full Types" in Proof General settings menu.
wenzelm@33843
  1930
Causes full type information to be output to the ATPs.  This slows
wenzelm@33843
  1931
ATPs down considerably but eliminates a source of unsound "proofs"
wenzelm@33843
  1932
that fail later.
wenzelm@33843
  1933
wenzelm@33843
  1934
* New method "metisFT": A version of metis that uses full type
wenzelm@33843
  1935
information in order to avoid failures of proof reconstruction.
wenzelm@33843
  1936
wenzelm@33843
  1937
* New evaluator "approximate" approximates an real valued term using
wenzelm@33843
  1938
the same method as the approximation method.
wenzelm@33843
  1939
wenzelm@33843
  1940
* Method "approximate" now supports arithmetic expressions as
wenzelm@33843
  1941
boundaries of intervals and implements interval splitting and Taylor
wenzelm@33843
  1942
series expansion.
wenzelm@33843
  1943
wenzelm@33843
  1944
* ML antiquotation @{code_datatype} inserts definition of a datatype
wenzelm@33843
  1945
generated by the code generator; e.g. see src/HOL/Predicate.thy.
wenzelm@33843
  1946
haftmann@33860
  1947
* New theory SupInf of the supremum and infimum operators for sets of
haftmann@33860
  1948
reals.
haftmann@33860
  1949
haftmann@33860
  1950
* New theory Probability, which contains a development of measure
haftmann@33860
  1951
theory, eventually leading to Lebesgue integration and probability.
haftmann@33860
  1952
haftmann@33860
  1953
* Extended Multivariate Analysis to include derivation and Brouwer's
haftmann@33860
  1954
fixpoint theorem.
wenzelm@33843
  1955
wenzelm@33843
  1956
* Reorganization of number theory, INCOMPATIBILITY:
wenzelm@33873
  1957
  - new number theory development for nat and int, in theories Divides
wenzelm@33873
  1958
    and GCD as well as in new session Number_Theory
wenzelm@33873
  1959
  - some constants and facts now suffixed with _nat and _int
wenzelm@33873
  1960
    accordingly
wenzelm@33873
  1961
  - former session NumberTheory now named Old_Number_Theory, including
wenzelm@33873
  1962
    theories Legacy_GCD and Primes (prefer Number_Theory if possible)
wenzelm@33843
  1963
  - moved theory Pocklington from src/HOL/Library to
wenzelm@33843
  1964
    src/HOL/Old_Number_Theory
wenzelm@33843
  1965
wenzelm@33873
  1966
* Theory GCD includes functions Gcd/GCD and Lcm/LCM for the gcd and
wenzelm@33873
  1967
lcm of finite and infinite sets. It is shown that they form a complete
wenzelm@33843
  1968
lattice.
wenzelm@33843
  1969
wenzelm@33843
  1970
* Class semiring_div requires superclass no_zero_divisors and proof of
wenzelm@33843
  1971
div_mult_mult1; theorems div_mult_mult1, div_mult_mult2,
wenzelm@33843
  1972
div_mult_mult1_if, div_mult_mult1 and div_mult_mult2 have been
wenzelm@33843
  1973
generalized to class semiring_div, subsuming former theorems
wenzelm@33843
  1974
zdiv_zmult_zmult1, zdiv_zmult_zmult1_if, zdiv_zmult_zmult1 and
wenzelm@33843
  1975
zdiv_zmult_zmult2.  div_mult_mult1 is now [simp] by default.
wenzelm@33843
  1976
INCOMPATIBILITY.
wenzelm@33843
  1977
haftmann@32588
  1978
* Refinements to lattice classes and sets:
haftmann@32056
  1979
  - less default intro/elim rules in locale variant, more default
haftmann@32056
  1980
    intro/elim rules in class variant: more uniformity
wenzelm@33842
  1981
  - lemma ge_sup_conv renamed to le_sup_iff, in accordance with
wenzelm@33842
  1982
    le_inf_iff
wenzelm@33842
  1983
  - dropped lemma alias inf_ACI for inf_aci (same for sup_ACI and
wenzelm@33842
  1984
    sup_aci)
haftmann@32056
  1985
  - renamed ACI to inf_sup_aci
haftmann@32600
  1986
  - new class "boolean_algebra"
wenzelm@33842
  1987
  - class "complete_lattice" moved to separate theory
haftmann@33860
  1988
    "Complete_Lattice"; corresponding constants (and abbreviations)
wenzelm@33842
  1989
    renamed and with authentic syntax:
haftmann@33860
  1990
    Set.Inf ~>    Complete_Lattice.Inf
haftmann@33860
  1991
    Set.Sup ~>    Complete_Lattice.Sup
haftmann@33860
  1992
    Set.INFI ~>   Complete_Lattice.INFI
haftmann@33860
  1993
    Set.SUPR ~>   Complete_Lattice.SUPR
haftmann@33860
  1994
    Set.Inter ~>  Complete_Lattice.Inter
haftmann@33860
  1995
    Set.Union ~>  Complete_Lattice.Union
haftmann@33860
  1996
    Set.INTER ~>  Complete_Lattice.INTER
haftmann@33860
  1997
    Set.UNION ~>  Complete_Lattice.UNION
haftmann@32600
  1998
  - authentic syntax for
haftmann@32600
  1999
    Set.Pow
haftmann@32600
  2000
    Set.image
haftmann@32588
  2001
  - mere abbreviations:
haftmann@32588
  2002
    Set.empty               (for bot)
haftmann@32588
  2003
    Set.UNIV                (for top)
haftmann@33860
  2004
    Set.inter               (for inf, formerly Set.Int)
haftmann@33860
  2005
    Set.union               (for sup, formerly Set.Un)
haftmann@32588
  2006
    Complete_Lattice.Inter  (for Inf)
haftmann@32588
  2007
    Complete_Lattice.Union  (for Sup)
haftmann@32606
  2008
    Complete_Lattice.INTER  (for INFI)
haftmann@32606
  2009
    Complete_Lattice.UNION  (for SUPR)
haftmann@32600
  2010
  - object-logic definitions as far as appropriate
haftmann@32217
  2011
haftmann@32691
  2012
INCOMPATIBILITY.  Care is required when theorems Int_subset_iff or
wenzelm@33842
  2013
Un_subset_iff are explicitly deleted as default simp rules; then also
wenzelm@33842
  2014
their lattice counterparts le_inf_iff and le_sup_iff have to be
haftmann@32691
  2015
deleted to achieve the desired effect.
haftmann@32056
  2016
wenzelm@33842
  2017
* Rules inf_absorb1, inf_absorb2, sup_absorb1, sup_absorb2 are no simp
wenzelm@33842
  2018
rules by default any longer; the same applies to min_max.inf_absorb1
wenzelm@33842
  2019
etc.  INCOMPATIBILITY.
wenzelm@33842
  2020
wenzelm@33842
  2021
* Rules sup_Int_eq and sup_Un_eq are no longer declared as
wenzelm@33842
  2022
pred_set_conv by default.  INCOMPATIBILITY.
wenzelm@33842
  2023
wenzelm@33842
  2024
* Power operations on relations and functions are now one dedicated
haftmann@32706
  2025
constant "compow" with infix syntax "^^".  Power operation on
wenzelm@31550
  2026
multiplicative monoids retains syntax "^" and is now defined generic
wenzelm@31550
  2027
in class power.  INCOMPATIBILITY.
wenzelm@31550
  2028
wenzelm@33842
  2029
* Relation composition "R O S" now has a more standard argument order:
wenzelm@33842
  2030
"R O S = {(x, z). EX y. (x, y) : R & (y, z) : S}".  INCOMPATIBILITY,
wenzelm@33842
  2031
rewrite propositions with "S O R" --> "R O S". Proofs may occasionally
wenzelm@33842
  2032
break, since the O_assoc rule was not rewritten like this.  Fix using
wenzelm@33842
  2033
O_assoc[symmetric].  The same applies to the curried version "R OO S".
wenzelm@32427
  2034
nipkow@33057
  2035
* Function "Inv" is renamed to "inv_into" and function "inv" is now an
wenzelm@33842
  2036
abbreviation for "inv_into UNIV".  Lemmas are renamed accordingly.
nipkow@32988
  2037
INCOMPATIBILITY.
nipkow@32988
  2038
haftmann@33860
  2039
* Most rules produced by inductive and datatype package have mandatory
haftmann@33860
  2040
prefixes.  INCOMPATIBILITY.
nipkow@31790
  2041
wenzelm@33842
  2042
* Changed "DERIV_intros" to a dynamic fact, which can be augmented by
wenzelm@33842
  2043
the attribute of the same name.  Each of the theorems in the list
wenzelm@33842
  2044
DERIV_intros assumes composition with an additional function and
wenzelm@33842
  2045
matches a variable to the derivative, which has to be solved by the
wenzelm@33842
  2046
Simplifier.  Hence (auto intro!: DERIV_intros) computes the derivative
wenzelm@33873
  2047
of most elementary terms.  Former Maclauren.DERIV_tac and
wenzelm@33873
  2048
Maclauren.deriv_tac should be replaced by (auto intro!: DERIV_intros).
wenzelm@33873
  2049
INCOMPATIBILITY.
haftmann@33860
  2050
haftmann@33860
  2051
* Code generator attributes follow the usual underscore convention:
haftmann@33860
  2052
    code_unfold     replaces    code unfold
haftmann@33860
  2053
    code_post       replaces    code post
haftmann@33860
  2054
    etc.
haftmann@33860
  2055
  INCOMPATIBILITY.
wenzelm@31911
  2056
krauss@33471
  2057
* Renamed methods:
krauss@33471
  2058
    sizechange -> size_change
krauss@33471
  2059
    induct_scheme -> induction_schema
haftmann@33860
  2060
  INCOMPATIBILITY.
nipkow@33669
  2061
wenzelm@33843
  2062
* Discontinued abbreviation "arbitrary" of constant "undefined".
wenzelm@33843
  2063
INCOMPATIBILITY, use "undefined" directly.
wenzelm@33843
  2064
haftmann@33860
  2065
* Renamed theorems:
haftmann@33860
  2066
    Suc_eq_add_numeral_1 -> Suc_eq_plus1
haftmann@33860
  2067
    Suc_eq_add_numeral_1_left -> Suc_eq_plus1_left
haftmann@33860
  2068
    Suc_plus1 -> Suc_eq_plus1
haftmann@33860
  2069
    *anti_sym -> *antisym*
haftmann@33860
  2070
    vector_less_eq_def -> vector_le_def
haftmann@33860
  2071
  INCOMPATIBILITY.
haftmann@33860
  2072
haftmann@33860
  2073
* Added theorem List.map_map as [simp].  Removed List.map_compose.
haftmann@33860
  2074
INCOMPATIBILITY.
haftmann@33860
  2075
haftmann@33860
  2076
* Removed predicate "M hassize n" (<--> card M = n & finite M).
haftmann@33860
  2077
INCOMPATIBILITY.
haftmann@33860
  2078
hoelzl@31812
  2079
huffman@33825
  2080
*** HOLCF ***
huffman@33825
  2081
wenzelm@33842
  2082
* Theory Representable defines a class "rep" of domains that are
wenzelm@33842
  2083
representable (via an ep-pair) in the universal domain type "udom".
huffman@33825
  2084
Instances are provided for all type constructors defined in HOLCF.
huffman@33825
  2085
huffman@33825
  2086
* The 'new_domain' command is a purely definitional version of the
huffman@33825
  2087
domain package, for representable domains.  Syntax is identical to the
huffman@33825
  2088
old domain package.  The 'new_domain' package also supports indirect
huffman@33825
  2089
recursion using previously-defined type constructors.  See
wenzelm@33842
  2090
src/HOLCF/ex/New_Domain.thy for examples.
wenzelm@33842
  2091
wenzelm@33842
  2092
* Method "fixrec_simp" unfolds one step of a fixrec-defined constant
huffman@33825
  2093
on the left-hand side of an equation, and then performs
huffman@33825
  2094
simplification.  Rewriting is done using rules declared with the
wenzelm@33842
  2095
"fixrec_simp" attribute.  The "fixrec_simp" method is intended as a
wenzelm@33842
  2096
replacement for "fixpat"; see src/HOLCF/ex/Fixrec_ex.thy for examples.
huffman@33825
  2097
huffman@33825
  2098
* The pattern-match compiler in 'fixrec' can now handle constructors
huffman@33825
  2099
with HOL function types.  Pattern-match combinators for the Pair
huffman@33825
  2100
constructor are pre-configured.
huffman@33825
  2101
huffman@33825
  2102
* The 'fixrec' package now produces better fixed-point induction rules
huffman@33825
  2103
for mutually-recursive definitions:  Induction rules have conclusions
huffman@33825
  2104
of the form "P foo bar" instead of "P <foo, bar>".
huffman@33825
  2105
huffman@33825
  2106
* The constant "sq_le" (with infix syntax "<<" or "\<sqsubseteq>") has
huffman@33825
  2107
been renamed to "below".  The name "below" now replaces "less" in many
wenzelm@33842
  2108
theorem names.  (Legacy theorem names using "less" are still supported
wenzelm@33842
  2109
as well.)
huffman@33825
  2110
huffman@33825
  2111
* The 'fixrec' package now supports "bottom patterns".  Bottom
huffman@33825
  2112
patterns can be used to generate strictness rules, or to make
huffman@33825
  2113
functions more strict (much like the bang-patterns supported by the
wenzelm@33873
  2114
Glasgow Haskell Compiler).  See src/HOLCF/ex/Fixrec_ex.thy for
wenzelm@33873
  2115
examples.
huffman@33825
  2116
huffman@33825
  2117
wenzelm@31304
  2118
*** ML ***
wenzelm@31304
  2119
wenzelm@33843
  2120
* Support for Poly/ML 5.3.0, with improved reporting of compiler
wenzelm@33843
  2121
errors and run-time exceptions, including detailed source positions.
wenzelm@33843
  2122
wenzelm@33843
  2123
* Structure Name_Space (formerly NameSpace) now manages uniquely
wenzelm@33843
  2124
identified entries, with some additional information such as source
wenzelm@33843
  2125
position, logical grouping etc.
wenzelm@33843
  2126
wenzelm@33526
  2127
* Theory and context data is now introduced by the simplified and
wenzelm@33526
  2128
modernized functors Theory_Data, Proof_Data, Generic_Data.  Data needs
wenzelm@33526
  2129
to be pure, but the old TheoryDataFun for mutable data (with explicit
wenzelm@33526
  2130
copy operation) is still available for some time.
wenzelm@33526
  2131
wenzelm@32742
  2132
* Structure Synchronized (cf. src/Pure/Concurrent/synchronized.ML)
wenzelm@32742
  2133
provides a high-level programming interface to synchronized state
wenzelm@32742
  2134
variables with atomic update.  This works via pure function
wenzelm@32742
  2135
application within a critical section -- its runtime should be as
wenzelm@32742
  2136
short as possible; beware of deadlocks if critical code is nested,
wenzelm@32742
  2137
either directly or indirectly via other synchronized variables!
wenzelm@32742
  2138
wenzelm@32742
  2139
* Structure Unsynchronized (cf. src/Pure/ML-Systems/unsynchronized.ML)
wenzelm@32742
  2140
wraps raw ML references, explicitly indicating their non-thread-safe
wenzelm@32742
  2141
behaviour.  The Isar toplevel keeps this structure open, to
wenzelm@32742
  2142
accommodate Proof General as well as quick and dirty interactive
wenzelm@32742
  2143
experiments with references.
wenzelm@32742
  2144
wenzelm@32365
  2145
* PARALLEL_CHOICE and PARALLEL_GOALS provide basic support for
wenzelm@32365
  2146
parallel tactical reasoning.
wenzelm@32365
  2147
wenzelm@32427
  2148
* Tacticals Subgoal.FOCUS, Subgoal.FOCUS_PREMS, Subgoal.FOCUS_PARAMS
wenzelm@32427
  2149
are similar to SUBPROOF, but are slightly more flexible: only the
wenzelm@32427
  2150
specified parts of the subgoal are imported into the context, and the
wenzelm@32427
  2151
body tactic may introduce new subgoals and schematic variables.
wenzelm@32427
  2152
wenzelm@32427
  2153
* Old tactical METAHYPS, which does not observe the proof context, has
wenzelm@32427
  2154
been renamed to Old_Goals.METAHYPS and awaits deletion.  Use SUBPROOF
wenzelm@32427
  2155
or Subgoal.FOCUS etc.
wenzelm@32216
  2156
wenzelm@31972
  2157
* Renamed functor TableFun to Table, and GraphFun to Graph.  (Since
wenzelm@31972
  2158
functors have their own ML name space there is no point to mark them
wenzelm@31972
  2159
separately.)  Minor INCOMPATIBILITY.
wenzelm@31972
  2160
wenzelm@31912
  2161
* Renamed NamedThmsFun to Named_Thms.  INCOMPATIBILITY.
wenzelm@31912
  2162
wenzelm@33842
  2163
* Renamed several structures FooBar to Foo_Bar.  Occasional,
wenzelm@33842
  2164
INCOMPATIBILITY.
wenzelm@33842
  2165
wenzelm@33843
  2166
* Operations of structure Skip_Proof no longer require quick_and_dirty
wenzelm@33843
  2167
mode, which avoids critical setmp.
wenzelm@33843
  2168
wenzelm@31306
  2169
* Eliminated old Attrib.add_attributes, Method.add_methods and related
wenzelm@33842
  2170
combinators for "args".  INCOMPATIBILITY, need to use simplified
wenzelm@31306
  2171
Attrib/Method.setup introduced in Isabelle2009.
wenzelm@31304
  2172
wenzelm@32151
  2173
* Proper context for simpset_of, claset_of, clasimpset_of.  May fall
wenzelm@32151
  2174
back on global_simpset_of, global_claset_of, global_clasimpset_of as
wenzelm@32151
  2175
last resort.  INCOMPATIBILITY.
wenzelm@32151
  2176
wenzelm@32112
  2177
* Display.pretty_thm now requires a proper context (cf. former
wenzelm@32112
  2178
ProofContext.pretty_thm).  May fall back on Display.pretty_thm_global
wenzelm@32112
  2179
or even Display.pretty_thm_without_context as last resort.
wenzelm@32112
  2180
INCOMPATIBILITY.
wenzelm@32112
  2181
wenzelm@32446
  2182
* Discontinued Display.pretty_ctyp/cterm etc.  INCOMPATIBILITY, use
wenzelm@32446
  2183
Syntax.pretty_typ/term directly, preferably with proper context
wenzelm@32446
  2184
instead of global theory.
wenzelm@32446
  2185
wenzelm@31304
  2186
wenzelm@31308
  2187
*** System ***
wenzelm@31308
  2188
wenzelm@33842
  2189
* Further fine tuning of parallel proof checking, scales up to 8 cores
wenzelm@33842
  2190
(max. speedup factor 5.0).  See also Goal.parallel_proofs in ML and
wenzelm@33842
  2191
usedir option -q.
wenzelm@33842
  2192
wenzelm@32326
  2193
* Support for additional "Isabelle components" via etc/components, see
wenzelm@32326
  2194
also the system manual.
wenzelm@32326
  2195
wenzelm@32326
  2196
* The isabelle makeall tool now operates on all components with
wenzelm@32326
  2197
IsaMakefile, not just hardwired "logics".
wenzelm@32326
  2198
wenzelm@31317
  2199
* Removed "compress" option from isabelle-process and isabelle usedir;
wenzelm@31317
  2200
this is always enabled.
wenzelm@31317
  2201
wenzelm@33842
  2202
* Discontinued support for Poly/ML 4.x versions.
wenzelm@33842
  2203
wenzelm@33842
  2204
* Isabelle tool "wwwfind" provides web interface for 'find_theorems'
wenzelm@33842
  2205
on a given logic image.  This requires the lighttpd webserver and is
wenzelm@33842
  2206
currently supported on Linux only.
wenzelm@32077
  2207
wenzelm@31308
  2208
wenzelm@31304
  2209
wenzelm@30845
  2210
New in Isabelle2009 (April 2009)
wenzelm@30845
  2211
--------------------------------
haftmann@27104
  2212
wenzelm@27599
  2213
*** General ***
wenzelm@27599
  2214
wenzelm@28504
  2215
* Simplified main Isabelle executables, with less surprises on
wenzelm@28504
  2216
case-insensitive file-systems (such as Mac OS).
wenzelm@28504
  2217
wenzelm@28504
  2218
  - The main Isabelle tool wrapper is now called "isabelle" instead of
wenzelm@28504
  2219
    "isatool."
wenzelm@28504
  2220
wenzelm@28504
  2221
  - The former "isabelle" alias for "isabelle-process" has been
wenzelm@28504
  2222
    removed (should rarely occur to regular users).
wenzelm@28504
  2223
wenzelm@28915
  2224
  - The former "isabelle-interface" and its alias "Isabelle" have been
wenzelm@28915
  2225
    removed (interfaces are now regular Isabelle tools).
wenzelm@28504
  2226
wenzelm@28504
  2227
Within scripts and make files, the Isabelle environment variables
wenzelm@28504
  2228
ISABELLE_TOOL and ISABELLE_PROCESS replace old ISATOOL and ISABELLE,
wenzelm@28504
  2229
respectively.  (The latter are still available as legacy feature.)
wenzelm@28504
  2230
wenzelm@28915
  2231
The old isabelle-interface wrapper could react in confusing ways if
wenzelm@28915
  2232
the interface was uninstalled or changed otherwise.  Individual
wenzelm@28915
  2233
interface tool configuration is now more explicit, see also the
wenzelm@28915
  2234
Isabelle system manual.  In particular, Proof General is now available
wenzelm@28915
  2235
via "isabelle emacs".
wenzelm@28504
  2236
wenzelm@28504
  2237
INCOMPATIBILITY, need to adapt derivative scripts.  Users may need to
wenzelm@28504
  2238
purge installed copies of Isabelle executables and re-run "isabelle
wenzelm@28504
  2239
install -p ...", or use symlinks.
wenzelm@28504
  2240
wenzelm@28914
  2241
* The default for ISABELLE_HOME_USER is now ~/.isabelle instead of the
wenzelm@30845
  2242
old ~/isabelle, which was slightly non-standard and apt to cause
wenzelm@30845
  2243
surprises on case-insensitive file-systems (such as Mac OS).
wenzelm@28914
  2244
wenzelm@28914
  2245
INCOMPATIBILITY, need to move existing ~/isabelle/etc,
wenzelm@28914
  2246
~/isabelle/heaps, ~/isabelle/browser_info to the new place.  Special
wenzelm@28914
  2247
care is required when using older releases of Isabelle.  Note that
wenzelm@28914
  2248
ISABELLE_HOME_USER can be changed in Isabelle/etc/settings of any
wenzelm@30845
  2249
Isabelle distribution, in order to use the new ~/.isabelle uniformly.
wenzelm@28914
  2250
wenzelm@29161
  2251
* Proofs of fully specified statements are run in parallel on
wenzelm@30845
  2252
multi-core systems.  A speedup factor of 2.5 to 3.2 can be expected on
wenzelm@30845
  2253
a regular 4-core machine, if the initial heap space is made reasonably
wenzelm@30845
  2254
large (cf. Poly/ML option -H).  (Requires Poly/ML 5.2.1 or later.)
wenzelm@30845
  2255
wenzelm@30845
  2256
* The main reference manuals ("isar-ref", "implementation", and
wenzelm@30845
  2257
"system") have been updated and extended.  Formally checked references
wenzelm@30845
  2258
as hyperlinks are now available uniformly.
wenzelm@30845
  2259
wenzelm@30163
  2260
wenzelm@27599
  2261
*** Pure ***
wenzelm@27599
  2262
wenzelm@30845
  2263
* Complete re-implementation of locales.  INCOMPATIBILITY in several
wenzelm@30845
  2264
respects.  The most important changes are listed below.  See the
wenzelm@30845
  2265
Tutorial on Locales ("locales" manual) for details.
wenzelm@30845
  2266
wenzelm@30845
  2267
- In locale expressions, instantiation replaces renaming.  Parameters
wenzelm@30845
  2268
must be declared in a for clause.  To aid compatibility with previous
wenzelm@30845
  2269
parameter inheritance, in locale declarations, parameters that are not
wenzelm@30845
  2270
'touched' (instantiation position "_" or omitted) are implicitly added
wenzelm@30845
  2271
with their syntax at the beginning of the for clause.
wenzelm@30845
  2272
wenzelm@30845
  2273
- Syntax from abbreviations and definitions in locales is available in
wenzelm@30845
  2274
locale expressions and context elements.  The latter is particularly
wenzelm@30845
  2275
useful in locale declarations.
wenzelm@30845
  2276
wenzelm@30845
  2277
- More flexible mechanisms to qualify names generated by locale
wenzelm@30845
  2278
expressions.  Qualifiers (prefixes) may be specified in locale
wenzelm@30845
  2279
expressions, and can be marked as mandatory (syntax: "name!:") or
wenzelm@30845
  2280
optional (syntax "name?:").  The default depends for plain "name:"
wenzelm@30845
  2281
depends on the situation where a locale expression is used: in
wenzelm@30845
  2282
commands 'locale' and 'sublocale' prefixes are optional, in
wenzelm@30845
  2283
'interpretation' and 'interpret' prefixes are mandatory.  The old
wenzelm@30845
  2284
implicit qualifiers derived from the parameter names of a locale are
wenzelm@30845
  2285
no longer generated.
wenzelm@30845
  2286
wenzelm@30845
  2287
- Command "sublocale l < e" replaces "interpretation l < e".  The
wenzelm@30845
  2288
instantiation clause in "interpretation" and "interpret" (square
wenzelm@30845
  2289
brackets) is no longer available.  Use locale expressions.
wenzelm@30845
  2290
wenzelm@30845
  2291
- When converting proof scripts, mandatory qualifiers in
wenzelm@30845
  2292
'interpretation' and 'interpret' should be retained by default, even
wenzelm@30845
  2293
if this is an INCOMPATIBILITY compared to former behavior.  In the
wenzelm@30845
  2294
worst case, use the "name?:" form for non-mandatory ones.  Qualifiers
wenzelm@30845
  2295
in locale expressions range over a single locale instance only.
wenzelm@30845
  2296
wenzelm@30845
  2297
- Dropped locale element "includes".  This is a major INCOMPATIBILITY.
ballarin@28710
  2298
In existing theorem specifications replace the includes element by the
wenzelm@30106
  2299
respective context elements of the included locale, omitting those
wenzelm@30106
  2300
that are already present in the theorem specification.  Multiple
wenzelm@30106
  2301
assume elements of a locale should be replaced by a single one
wenzelm@30106
  2302
involving the locale predicate.  In the proof body, declarations (most
wenzelm@30106
  2303
notably theorems) may be regained by interpreting the respective
wenzelm@30106
  2304
locales in the proof context as required (command "interpret").
wenzelm@30106
  2305
ballarin@28710
  2306
If using "includes" in replacement of a target solely because the
ballarin@28710
  2307
parameter types in the theorem are not as general as in the target,
wenzelm@30106
  2308
consider declaring a new locale with additional type constraints on
wenzelm@30106
  2309
the parameters (context element "constrains").
ballarin@28710
  2310
wenzelm@30845
  2311
- Discontinued "locale (open)".  INCOMPATIBILITY.
wenzelm@30845
  2312
wenzelm@30845
  2313
- Locale interpretation commands no longer attempt to simplify goal.
ballarin@27761
  2314
INCOMPATIBILITY: in rare situations the generated goal differs.  Use
ballarin@27761
  2315
methods intro_locales and unfold_locales to clarify.
haftmann@27681
  2316
wenzelm@30845
  2317
- Locale interpretation commands no longer accept interpretation
wenzelm@30845
  2318
attributes.  INCOMPATIBILITY.
wenzelm@30845
  2319
wenzelm@30845
  2320
* Class declaration: so-called "base sort" must not be given in import
wenzelm@30845
  2321
list any longer, but is inferred from the specification.  Particularly
wenzelm@30845
  2322
in HOL, write
wenzelm@30845
  2323
wenzelm@30845
  2324
    class foo = ...
wenzelm@30845
  2325
wenzelm@30845
  2326
instead of
wenzelm@30845
  2327
wenzelm@30845
  2328
    class foo = type + ...
wenzelm@30845
  2329
wenzelm@30845
  2330
* Class target: global versions of theorems stemming do not carry a
wenzelm@30845
  2331
parameter prefix any longer.  INCOMPATIBILITY.
wenzelm@30845
  2332
wenzelm@30845
  2333
* Class 'instance' command no longer accepts attached definitions.
wenzelm@30845
  2334
INCOMPATIBILITY, use proper 'instantiation' target instead.
wenzelm@30845
  2335
wenzelm@30845
  2336
* Recovered hiding of consts, which was accidentally broken in
wenzelm@30845
  2337
Isabelle2007.  Potential INCOMPATIBILITY, ``hide const c'' really
wenzelm@30845
  2338
makes c inaccessible; consider using ``hide (open) const c'' instead.
wenzelm@30845
  2339
wenzelm@30845
  2340
* Slightly more coherent Pure syntax, with updated documentation in
wenzelm@30845
  2341
isar-ref manual.  Removed locales meta_term_syntax and
wenzelm@30845
  2342
meta_conjunction_syntax: TERM and &&& (formerly &&) are now permanent,
wenzelm@30845
  2343
INCOMPATIBILITY in rare situations.  Note that &&& should not be used
wenzelm@30845
  2344
directly in regular applications.
wenzelm@30845
  2345
wenzelm@30845
  2346
* There is a new syntactic category "float_const" for signed decimal
wenzelm@30845
  2347
fractions (e.g. 123.45 or -123.45).
wenzelm@30845
  2348
wenzelm@30845
  2349
* Removed exotic 'token_translation' command.  INCOMPATIBILITY, use ML
wenzelm@30845
  2350
interface with 'setup' command instead.
wenzelm@30845
  2351
wenzelm@30845
  2352
* Command 'local_setup' is similar to 'setup', but operates on a local
wenzelm@30845
  2353
theory context.
haftmann@27104
  2354
wenzelm@28114
  2355
* The 'axiomatization' command now only works within a global theory
wenzelm@28114
  2356
context.  INCOMPATIBILITY.
wenzelm@28114
  2357
wenzelm@30845
  2358
* Goal-directed proof now enforces strict proof irrelevance wrt. sort
wenzelm@30845
  2359
hypotheses.  Sorts required in the course of reasoning need to be
wenzelm@30845
  2360
covered by the constraints in the initial statement, completed by the
wenzelm@30845
  2361
type instance information of the background theory.  Non-trivial sort
wenzelm@30845
  2362
hypotheses, which rarely occur in practice, may be specified via
wenzelm@30845
  2363
vacuous propositions of the form SORT_CONSTRAINT('a::c).  For example:
wenzelm@30845
  2364
wenzelm@30845
  2365
  lemma assumes "SORT_CONSTRAINT('a::empty)" shows False ...
wenzelm@30845
  2366
wenzelm@30845
  2367
The result contains an implicit sort hypotheses as before --
wenzelm@30845
  2368
SORT_CONSTRAINT premises are eliminated as part of the canonical rule
wenzelm@30845
  2369
normalization.
wenzelm@30845
  2370
wenzelm@30845
  2371
* Generalized Isar history, with support for linear undo, direct state
wenzelm@30845
  2372
addressing etc.
wenzelm@30845
  2373
wenzelm@30845
  2374
* Changed defaults for unify configuration options:
wenzelm@30845
  2375
wenzelm@30845
  2376
  unify_trace_bound = 50 (formerly 25)
wenzelm@30845
  2377
  unify_search_bound = 60 (formerly 30)
wenzelm@30845
  2378
wenzelm@30845
  2379
* Different bookkeeping for code equations (INCOMPATIBILITY):
wenzelm@30845
  2380
wenzelm@30845
  2381
  a) On theory merge, the last set of code equations for a particular
wenzelm@30845
  2382
     constant is taken (in accordance with the policy applied by other
wenzelm@30845
  2383
     parts of the code generator framework).
wenzelm@30845
  2384
wenzelm@30845
  2385
  b) Code equations stemming from explicit declarations (e.g. code
wenzelm@30845
  2386
     attribute) gain priority over default code equations stemming
wenzelm@30845
  2387
     from definition, primrec, fun etc.
wenzelm@30845
  2388
wenzelm@30845
  2389
* Keyword 'code_exception' now named 'code_abort'.  INCOMPATIBILITY.
wenzelm@30845
  2390
haftmann@30965
  2391
* Unified theorem tables for both code generators.  Thus [code
wenzelm@30845
  2392
func] has disappeared and only [code] remains.  INCOMPATIBILITY.
wenzelm@30580
  2393
wenzelm@30580
  2394
* Command 'find_consts' searches for constants based on type and name
wenzelm@30580
  2395
patterns, e.g.
kleing@29820
  2396
kleing@29820
  2397
    find_consts "_ => bool"
kleing@29820
  2398
wenzelm@30106
  2399
By default, matching is against subtypes, but it may be restricted to
wenzelm@30731
  2400
the whole type.  Searching by name is possible.  Multiple queries are
wenzelm@30106
  2401
conjunctive and queries may be negated by prefixing them with a
wenzelm@30106
  2402
hyphen:
kleing@29820
  2403
kleing@29820
  2404
    find_consts strict: "_ => bool" name: "Int" -"int => int"
kleing@29798
  2405
wenzelm@30845
  2406
* New 'find_theorems' criterion "solves" matches theorems that
wenzelm@30845
  2407
directly solve the current goal (modulo higher-order unification).
wenzelm@30845
  2408
wenzelm@30845
  2409
* Auto solve feature for main theorem statements: whenever a new goal
wenzelm@30845
  2410
is stated, "find_theorems solves" is called; any theorems that could
wenzelm@30845
  2411
solve the lemma directly are listed as part of the goal state.
wenzelm@30845
  2412
Cf. associated options in Proof General Isabelle settings menu,
wenzelm@30845
  2413
enabled by default, with reasonable timeout for pathological cases of
wenzelm@30845
  2414
higher-order unification.
webertj@30409
  2415
haftmann@27651
  2416
haftmann@27651
  2417
*** Document preparation ***
haftmann@27651
  2418
haftmann@27651
  2419
* Antiquotation @{lemma} now imitates a regular terminal proof,
haftmann@27651
  2420
demanding keyword 'by' and supporting the full method expression
haftmann@27651
  2421
syntax just like the Isar command 'by'.
haftmann@27651
  2422
haftmann@27651
  2423
haftmann@27651
  2424
*** HOL ***
haftmann@27651
  2425
wenzelm@30845
  2426
* Integrated main parts of former image HOL-Complex with HOL.  Entry
wenzelm@30845
  2427
points Main and Complex_Main remain as before.
wenzelm@30845
  2428
wenzelm@30845
  2429
* Logic image HOL-Plain provides a minimal HOL with the most important
wenzelm@30845
  2430
tools available (inductive, datatype, primrec, ...).  This facilitates
wenzelm@30845
  2431
experimentation and tool development.  Note that user applications
wenzelm@30845
  2432
(and library theories) should never refer to anything below theory
wenzelm@30845
  2433
Main, as before.
wenzelm@30845
  2434
wenzelm@30845
  2435
* Logic image HOL-Main stops at theory Main, and thus facilitates
wenzelm@30845
  2436
experimentation due to shorter build times.
wenzelm@30845
  2437
wenzelm@30845
  2438
* Logic image HOL-NSA contains theories of nonstandard analysis which
wenzelm@30845
  2439
were previously part of former HOL-Complex.  Entry point Hyperreal
wenzelm@30845
  2440
remains valid, but theories formerly using Complex_Main should now use
wenzelm@30845
  2441
new entry point Hypercomplex.
wenzelm@30845
  2442
wenzelm@30845
  2443
* Generic ATP manager for Sledgehammer, based on ML threads instead of
wenzelm@30845
  2444
Posix processes.  Avoids potentially expensive forking of the ML
wenzelm@30845
  2445
process.  New thread-based implementation also works on non-Unix
wenzelm@30845
  2446
platforms (Cygwin).  Provers are no longer hardwired, but defined
wenzelm@30845
  2447
within the theory via plain ML wrapper functions.  Basic Sledgehammer
wenzelm@30845
  2448
commands are covered in the isar-ref manual.
wenzelm@30845
  2449
wenzelm@30845
  2450
* Wrapper scripts for remote SystemOnTPTP service allows to use
wenzelm@30845
  2451
sledgehammer without local ATP installation (Vampire etc.). Other
wenzelm@30845
  2452
provers may be included via suitable ML wrappers, see also
wenzelm@30845
  2453
src/HOL/ATP_Linkup.thy.
wenzelm@30845
  2454
wenzelm@30845
  2455
* ATP selection (E/Vampire/Spass) is now via Proof General's settings
wenzelm@30845
  2456
menu.
wenzelm@30845
  2457
wenzelm@30845
  2458
* The metis method no longer fails because the theorem is too trivial
wenzelm@30845
  2459
(contains the empty clause).
wenzelm@30845
  2460
wenzelm@30845
  2461
* The metis method now fails in the usual manner, rather than raising
wenzelm@30845
  2462
an exception, if it determines that it cannot prove the theorem.
wenzelm@30845
  2463
wenzelm@30845
  2464
* Method "coherent" implements a prover for coherent logic (see also
wenzelm@30845
  2465
src/Tools/coherent.ML).
wenzelm@30845
  2466
wenzelm@30845
  2467
* Constants "undefined" and "default" replace "arbitrary".  Usually
wenzelm@30845
  2468
"undefined" is the right choice to replace "arbitrary", though
wenzelm@30845
  2469
logically there is no difference.  INCOMPATIBILITY.
wenzelm@30845
  2470
wenzelm@30845
  2471
* Command "value" now integrates different evaluation mechanisms.  The
wenzelm@30845
  2472
result of the first successful evaluation mechanism is printed.  In
wenzelm@30845
  2473
square brackets a particular named evaluation mechanisms may be
wenzelm@30845
  2474
specified (currently, [SML], [code] or [nbe]).  See further
wenzelm@30845
  2475
src/HOL/ex/Eval_Examples.thy.
wenzelm@30845
  2476
wenzelm@30845
  2477
* Normalization by evaluation now allows non-leftlinear equations.
wenzelm@30845
  2478
Declare with attribute [code nbe].
wenzelm@30845
  2479
wenzelm@30845
  2480
* Methods "case_tac" and "induct_tac" now refer to the very same rules
wenzelm@30845
  2481
as the structured Isar versions "cases" and "induct", cf. the
wenzelm@30845
  2482
corresponding "cases" and "induct" attributes.  Mutual induction rules
wenzelm@30845
  2483
are now presented as a list of individual projections
wenzelm@30845
  2484
(e.g. foo_bar.inducts for types foo and bar); the old format with
wenzelm@30845
  2485
explicit HOL conjunction is no longer supported.  INCOMPATIBILITY, in
wenzelm@30845
  2486
rare situations a different rule is selected --- notably nested tuple
wenzelm@30845
  2487
elimination instead of former prod.exhaust: use explicit (case_tac t
wenzelm@30845
  2488
rule: prod.exhaust) here.
wenzelm@30845
  2489
wenzelm@30845
  2490
* Attributes "cases", "induct", "coinduct" support "del" option.
wenzelm@30845
  2491
wenzelm@30845
  2492
* Removed fact "case_split_thm", which duplicates "case_split".
wenzelm@30845
  2493
wenzelm@30845
  2494
* The option datatype has been moved to a new theory Option.  Renamed
wenzelm@30845
  2495
option_map to Option.map, and o2s to Option.set, INCOMPATIBILITY.
wenzelm@30845
  2496
wenzelm@30845
  2497
* New predicate "strict_mono" classifies strict functions on partial
wenzelm@30845
  2498
orders.  With strict functions on linear orders, reasoning about
wenzelm@30845
  2499
(in)equalities is facilitated by theorems "strict_mono_eq",
wenzelm@30845
  2500
"strict_mono_less_eq" and "strict_mono_less".
wenzelm@30845
  2501
wenzelm@30845
  2502
* Some set operations are now proper qualified constants with
wenzelm@30845
  2503
authentic syntax.  INCOMPATIBILITY:
haftmann@30304
  2504
haftmann@30304
  2505
    op Int ~>   Set.Int
haftmann@30304
  2506
    op Un ~>    Set.Un
haftmann@30304
  2507
    INTER ~>    Set.INTER
haftmann@30304
  2508
    UNION ~>    Set.UNION
haftmann@30304
  2509
    Inter ~>    Set.Inter
haftmann@30304
  2510
    Union ~>    Set.Union
haftmann@30304
  2511
    {} ~>       Set.empty
haftmann@30304
  2512
    UNIV ~>     Set.UNIV
haftmann@30304
  2513
wenzelm@30845
  2514
* Class complete_lattice with operations Inf, Sup, INFI, SUPR now in
wenzelm@30845
  2515
theory Set.
wenzelm@30845
  2516
wenzelm@30845
  2517
* Auxiliary class "itself" has disappeared -- classes without any
wenzelm@30845
  2518
parameter are treated as expected by the 'class' command.
haftmann@29734
  2519
haftmann@29760
  2520
* Leibnitz's Series for Pi and the arcus tangens and logarithm series.
haftmann@29760
  2521
wenzelm@30845
  2522
* Common decision procedures (Cooper, MIR, Ferrack, Approximation,
wenzelm@30845
  2523
Dense_Linear_Order) are now in directory HOL/Decision_Procs.
wenzelm@30845
  2524
wenzelm@30845
  2525
* Theory src/HOL/Decision_Procs/Approximation provides the new proof
wenzelm@30845
  2526
method "approximation".  It proves formulas on real values by using
wenzelm@30845
  2527
interval arithmetic.  In the formulas are also the transcendental
wenzelm@30845
  2528
functions sin, cos, tan, atan, ln, exp and the constant pi are
wenzelm@30845
  2529
allowed. For examples see
wenzelm@30845
  2530
src/HOL/Descision_Procs/ex/Approximation_Ex.thy.
haftmann@29760
  2531
haftmann@29760
  2532
* Theory "Reflection" now resides in HOL/Library.
haftmann@29650
  2533
wenzelm@30845
  2534
* Entry point to Word library now simply named "Word".
wenzelm@30845
  2535
INCOMPATIBILITY.
haftmann@29628
  2536
haftmann@29197
  2537
* Made source layout more coherent with logical distribution
haftmann@29197
  2538
structure:
haftmann@28952
  2539
haftmann@28952
  2540
    src/HOL/Library/RType.thy ~> src/HOL/Typerep.thy
haftmann@28952
  2541
    src/HOL/Library/Code_Message.thy ~> src/HOL/
haftmann@28952
  2542
    src/HOL/Library/GCD.thy ~> src/HOL/
haftmann@28952
  2543
    src/HOL/Library/Order_Relation.thy ~> src/HOL/
haftmann@28952
  2544
    src/HOL/Library/Parity.thy ~> src/HOL/
haftmann@28952
  2545
    src/HOL/Library/Univ_Poly.thy ~> src/HOL/
huffman@30173
  2546
    src/HOL/Real/ContNotDenum.thy ~> src/HOL/Library/
haftmann@28952
  2547
    src/HOL/Real/Lubs.thy ~> src/HOL/
haftmann@28952
  2548
    src/HOL/Real/PReal.thy ~> src/HOL/
haftmann@28952
  2549
    src/HOL/Real/Rational.thy ~> src/HOL/
haftmann@28952
  2550
    src/HOL/Real/RComplete.thy ~> src/HOL/
haftmann@28952
  2551
    src/HOL/Real/RealDef.thy ~> src/HOL/
haftmann@28952
  2552
    src/HOL/Real/RealPow.thy ~> src/HOL/
haftmann@28952
  2553
    src/HOL/Real/Real.thy ~> src/HOL/
haftmann@28952
  2554
    src/HOL/Complex/Complex_Main.thy ~> src/HOL/
haftmann@28952
  2555
    src/HOL/Complex/Complex.thy ~> src/HOL/
huffman@30173
  2556
    src/HOL/Complex/FrechetDeriv.thy ~> src/HOL/Library/
huffman@30173
  2557
    src/HOL/Complex/Fundamental_Theorem_Algebra.thy ~> src/HOL/Library/
haftmann@28952
  2558
    src/HOL/Hyperreal/Deriv.thy ~> src/HOL/
haftmann@28952
  2559
    src/HOL/Hyperreal/Fact.thy ~> src/HOL/
haftmann@28952
  2560
    src/HOL/Hyperreal/Integration.thy ~> src/HOL/
haftmann@28952
  2561
    src/HOL/Hyperreal/Lim.thy ~> src/HOL/
haftmann@28952
  2562
    src/HOL/Hyperreal/Ln.thy ~> src/HOL/
haftmann@28952
  2563
    src/HOL/Hyperreal/Log.thy ~> src/HOL/
haftmann@28952
  2564
    src/HOL/Hyperreal/MacLaurin.thy ~> src/HOL/
haftmann@28952
  2565
    src/HOL/Hyperreal/NthRoot.thy ~> src/HOL/
haftmann@28952
  2566
    src/HOL/Hyperreal/Series.thy ~> src/HOL/
haftmann@29197
  2567
    src/HOL/Hyperreal/SEQ.thy ~> src/HOL/
haftmann@28952
  2568
    src/HOL/Hyperreal/Taylor.thy ~> src/HOL/
haftmann@28952
  2569
    src/HOL/Hyperreal/Transcendental.thy ~> src/HOL/
haftmann@28952
  2570
    src/HOL/Real/Float ~> src/HOL/Library/
haftmann@29197
  2571
    src/HOL/Real/HahnBanach ~> src/HOL/HahnBanach
haftmann@29197
  2572
    src/HOL/Real/RealVector.thy ~> src/HOL/
haftmann@28952
  2573
haftmann@28952
  2574
    src/HOL/arith_data.ML ~> src/HOL/Tools
haftmann@28952
  2575
    src/HOL/hologic.ML ~> src/HOL/Tools
haftmann@28952
  2576
    src/HOL/simpdata.ML ~> src/HOL/Tools
haftmann@28952
  2577
    src/HOL/int_arith1.ML ~> src/HOL/Tools/int_arith.ML
haftmann@28952
  2578
    src/HOL/int_factor_simprocs.ML ~> src/HOL/Tools
haftmann@28952
  2579
    src/HOL/nat_simprocs.ML ~> src/HOL/Tools
haftmann@28952
  2580
    src/HOL/Real/float_arith.ML ~> src/HOL/Tools
haftmann@28952
  2581
    src/HOL/Real/float_syntax.ML ~> src/HOL/Tools
haftmann@28952
  2582
    src/HOL/Real/rat_arith.ML ~> src/HOL/Tools
haftmann@28952
  2583
    src/HOL/Real/real_arith.ML ~> src/HOL/Tools
haftmann@28952
  2584
haftmann@29395
  2585
    src/HOL/Library/Array.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2586
    src/HOL/Library/Heap_Monad.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2587
    src/HOL/Library/Heap.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2588
    src/HOL/Library/Imperative_HOL.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2589
    src/HOL/Library/Ref.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2590
    src/HOL/Library/Relational.thy ~> src/HOL/Imperative_HOL
haftmann@29395
  2591
wenzelm@30845
  2592
* If methods "eval" and "evaluation" encounter a structured proof
wenzelm@30845
  2593
state with !!/==>, only the conclusion is evaluated to True (if
wenzelm@30845
  2594
possible), avoiding strange error messages.
wenzelm@30845
  2595
wenzelm@30845
  2596
* Method "sizechange" automates termination proofs using (a
wenzelm@30845
  2597
modification of) the size-change principle.  Requires SAT solver.  See
wenzelm@30845
  2598
src/HOL/ex/Termination.thy for examples.
wenzelm@30845
  2599
wenzelm@30845
  2600
* Simplifier: simproc for let expressions now unfolds if bound
wenzelm@30845
  2601
variable occurs at most once in let expression body.  INCOMPATIBILITY.
wenzelm@30845
  2602
wenzelm@30845
  2603
* Method "arith": Linear arithmetic now ignores all inequalities when
wenzelm@30845
  2604
fast_arith_neq_limit is exceeded, instead of giving up entirely.
wenzelm@30845
  2605
wenzelm@30845
  2606
* New attribute "arith" for facts that should always be used
wenzelm@30845
  2607
automatically by arithmetic. It is intended to be used locally in
wenzelm@30845
  2608
proofs, e.g.
wenzelm@30845
  2609
wenzelm@30845
  2610
  assumes [arith]: "x > 0"
wenzelm@30845
  2611
nipkow@30702
  2612
Global usage is discouraged because of possible performance impact.
nipkow@30702
  2613
wenzelm@30845
  2614
* New classes "top" and "bot" with corresponding operations "top" and
wenzelm@30845
  2615
"bot" in theory Orderings; instantiation of class "complete_lattice"
wenzelm@30845
  2616
requires instantiation of classes "top" and "bot".  INCOMPATIBILITY.
wenzelm@30845
  2617
wenzelm@30845
  2618
* Changed definition lemma "less_fun_def" in order to provide an
wenzelm@30845
  2619
instance for preorders on functions; use lemma "less_le" instead.
wenzelm@30845
  2620
INCOMPATIBILITY.
wenzelm@30845
  2621
wenzelm@30845
  2622
* Theory Orderings: class "wellorder" moved here, with explicit
wenzelm@30845
  2623
induction rule "less_induct" as assumption.  For instantiation of
wenzelm@30845
  2624
"wellorder" by means of predicate "wf", use rule wf_wellorderI.
wenzelm@30845
  2625
INCOMPATIBILITY.
wenzelm@30845
  2626
wenzelm@30845
  2627
* Theory Orderings: added class "preorder" as superclass of "order".
wenzelm@27793
  2628
INCOMPATIBILITY: Instantiation proofs for order, linorder
wenzelm@27793
  2629
etc. slightly changed.  Some theorems named order_class.* now named
wenzelm@27793
  2630
preorder_class.*.
wenzelm@27793
  2631
wenzelm@30845
  2632
* Theory Relation: renamed "refl" to "refl_on", "reflexive" to "refl,
wenzelm@30845
  2633
"diag" to "Id_on".
wenzelm@30845
  2634
wenzelm@30845
  2635
* Theory Finite_Set: added a new fold combinator of type
wenzelm@30845
  2636
nipkow@28855
  2637
  ('a => 'b => 'b) => 'b => 'a set => 'b
wenzelm@30845
  2638
wenzelm@30845
  2639
Occasionally this is more convenient than the old fold combinator
wenzelm@30845
  2640
which is now defined in terms of the new one and renamed to
wenzelm@30845
  2641
fold_image.
wenzelm@30845
  2642
wenzelm@30845
  2643
* Theories Ring_and_Field and OrderedGroup: The lemmas "group_simps"
wenzelm@30845
  2644
and "ring_simps" have been replaced by "algebra_simps" (which can be
wenzelm@30845
  2645
extended with further lemmas!).  At the moment both still exist but
wenzelm@30845
  2646
the former will disappear at some point.
wenzelm@30845
  2647
wenzelm@30845
  2648
* Theory Power: Lemma power_Suc is now declared as a simp rule in
wenzelm@30845
  2649
class recpower.  Type-specific simp rules for various recpower types
wenzelm@30845
  2650
have been removed.  INCOMPATIBILITY, rename old lemmas as follows:
huffman@30269
  2651
huffman@30269
  2652
rat_power_0    -> power_0
huffman@30269
  2653
rat_power_Suc  -> power_Suc
huffman@30269
  2654
realpow_0      -> power_0
huffman@30269
  2655
realpow_Suc    -> power_Suc
huffman@30269
  2656
complexpow_0   -> power_0
huffman@30269
  2657
complexpow_Suc -> power_Suc
huffman@30269
  2658
power_poly_0   -> power_0
huffman@30269
  2659
power_poly_Suc -> power_Suc
huffman@30269
  2660
wenzelm@30845
  2661
* Theories Ring_and_Field and Divides: Definition of "op dvd" has been
wenzelm@27793
  2662
moved to separate class dvd in Ring_and_Field; a couple of lemmas on
wenzelm@27793
  2663
dvd has been generalized to class comm_semiring_1.  Likewise a bunch
wenzelm@27793
  2664
of lemmas from Divides has been generalized from nat to class
wenzelm@27793
  2665
semiring_div.  INCOMPATIBILITY.  This involves the following theorem
wenzelm@27793
  2666
renames resulting from duplicate elimination:
haftmann@27651
  2667
haftmann@27651
  2668
    dvd_def_mod ~>          dvd_eq_mod_eq_0
haftmann@27651
  2669
    zero_dvd_iff ~>         dvd_0_left_iff
haftmann@28559
  2670
    dvd_0 ~>                dvd_0_right
haftmann@27651
  2671
    DIVISION_BY_ZERO_DIV ~> div_by_0
haftmann@27651
  2672
    DIVISION_BY_ZERO_MOD ~> mod_by_0
haftmann@27651
  2673
    mult_div ~>             div_mult_self2_is_id
haftmann@27651
  2674
    mult_mod ~>             mod_mult_self2_is_0
haftmann@27651
  2675
wenzelm@30845
  2676
* Theory IntDiv: removed many lemmas that are instances of class-based
wenzelm@30845
  2677
generalizations (from Divides and Ring_and_Field).  INCOMPATIBILITY,
wenzelm@30845
  2678
rename old lemmas as follows:
nipkow@29981
  2679
nipkow@29981
  2680
dvd_diff               -> nat_dvd_diff
nipkow@29981
  2681
dvd_zminus_iff         -> dvd_minus_iff
nipkow@30208
  2682
mod_add1_eq            -> mod_add_eq
nipkow@30208
  2683
mod_mult1_eq           -> mod_mult_right_eq
nipkow@30208
  2684
mod_mult1_eq'          -> mod_mult_left_eq
nipkow@30208
  2685
mod_mult_distrib_mod   -> mod_mult_eq
nipkow@29981
  2686
nat_mod_add_left_eq    -> mod_add_left_eq
nipkow@29981
  2687
nat_mod_add_right_eq   -> mod_add_right_eq
nipkow@29981
  2688
nat_mod_div_trivial    -> mod_div_trivial
nipkow@29981
  2689
nat_mod_mod_trivial    -> mod_mod_trivial
nipkow@29981
  2690
zdiv_zadd_self1        -> div_add_self1
nipkow@29981
  2691
zdiv_zadd_self2        -> div_add_self2
nipkow@30181
  2692
zdiv_zmult_self1       -> div_mult_self2_is_id
nipkow@29981
  2693
zdiv_zmult_self2       -> div_mult_self1_is_id
nipkow@29981
  2694
zdvd_triv_left         -> dvd_triv_left
nipkow@29981
  2695
zdvd_triv_right        -> dvd_triv_right
nipkow@29981
  2696
zdvd_zmult_cancel_disj -> dvd_mult_cancel_left
nipkow@30022
  2697
zmod_eq0_zdvd_iff      -> dvd_eq_mod_eq_0[symmetric]
nipkow@29981
  2698
zmod_zadd_left_eq      -> mod_add_left_eq
nipkow@29981
  2699
zmod_zadd_right_eq     -> mod_add_right_eq
nipkow@29981
  2700
zmod_zadd_self1        -> mod_add_self1
nipkow@29981
  2701
zmod_zadd_self2        -> mod_add_self2
nipkow@30208
  2702
zmod_zadd1_eq          -> mod_add_eq
nipkow@29981
  2703
zmod_zdiff1_eq         -> mod_diff_eq
nipkow@29981
  2704
zmod_zdvd_zmod         -> mod_mod_cancel
nipkow@29981
  2705
zmod_zmod_cancel       -> mod_mod_cancel
nipkow@29981
  2706
zmod_zmult_self1       -> mod_mult_self2_is_0
nipkow@29981
  2707
zmod_zmult_self2       -> mod_mult_self1_is_0
nipkow@29981
  2708
zmod_1                 -> mod_by_1
nipkow@29981
  2709
zdiv_1                 -> div_by_1
nipkow@29981
  2710
zdvd_abs1              -> abs_dvd_iff
nipkow@29981
  2711
zdvd_abs2              -> dvd_abs_iff
nipkow@29981
  2712
zdvd_refl              -> dvd_refl
nipkow@29981
  2713
zdvd_trans             -> dvd_trans
nipkow@29981
  2714
zdvd_zadd              -> dvd_add
nipkow@29981
  2715
zdvd_zdiff             -> dvd_diff
nipkow@29981
  2716
zdvd_zminus_iff        -> dvd_minus_iff
nipkow@29981
  2717
zdvd_zminus2_iff       -> minus_dvd_iff
nipkow@29981
  2718
zdvd_zmultD            -> dvd_mult_right
nipkow@29981
  2719
zdvd_zmultD2           -> dvd_mult_left
nipkow@29981
  2720
zdvd_zmult_mono        -> mult_dvd_mono
nipkow@29981
  2721
zdvd_0_right           -> dvd_0_right
nipkow@29981
  2722
zdvd_0_left            -> dvd_0_left_iff
nipkow@29981
  2723
zdvd_1_left            -> one_dvd
nipkow@29981
  2724
zminus_dvd_iff         -> minus_dvd_iff
nipkow@29981
  2725
wenzelm@30845
  2726
* Theory Rational: 'Fract k 0' now equals '0'.  INCOMPATIBILITY.
wenzelm@30845
  2727
wenzelm@30845
  2728
* The real numbers offer decimal input syntax: 12.34 is translated
wenzelm@30845
  2729
into 1234/10^2. This translation is not reversed upon output.
wenzelm@30845
  2730
wenzelm@30845
  2731
* Theory Library/Polynomial defines an abstract type 'a poly of
wenzelm@30845
  2732
univariate polynomials with coefficients of type 'a.  In addition to
wenzelm@30845
  2733
the standard ring operations, it also supports div and mod.  Code
wenzelm@30845
  2734
generation is also supported, using list-style constructors.
wenzelm@30845
  2735
wenzelm@30845
  2736
* Theory Library/Inner_Product defines a class of real_inner for real
wenzelm@30845
  2737
inner product spaces, with an overloaded operation inner :: 'a => 'a
wenzelm@30845
  2738
=> real.  Class real_inner is a subclass of real_normed_vector from
wenzelm@30845
  2739
theory RealVector.
wenzelm@30845
  2740
wenzelm@30845
  2741
* Theory Library/Product_Vector provides instances for the product
wenzelm@30845
  2742
type 'a * 'b of several classes from RealVector and Inner_Product.
wenzelm@30845
  2743
Definitions of addition, subtraction, scalar multiplication, norms,
wenzelm@30845
  2744
and inner products are included.
wenzelm@30845
  2745
wenzelm@30845
  2746
* Theory Library/Bit defines the field "bit" of integers modulo 2.  In
wenzelm@30845
  2747
addition to the field operations, numerals and case syntax are also
wenzelm@30845
  2748
supported.
wenzelm@30845
  2749
wenzelm@30845
  2750
* Theory Library/Diagonalize provides constructive version of Cantor's
wenzelm@30845
  2751
first diagonalization argument.
wenzelm@30845
  2752
wenzelm@30845
  2753
* Theory Library/GCD: Curried operations gcd, lcm (for nat) and zgcd,
haftmann@27651
  2754
zlcm (for int); carried together from various gcd/lcm developements in
wenzelm@30845
  2755
the HOL Distribution.  Constants zgcd and zlcm replace former igcd and
wenzelm@30845
  2756
ilcm; corresponding theorems renamed accordingly.  INCOMPATIBILITY,
wenzelm@30845
  2757
may recover tupled syntax as follows:
haftmann@27651
  2758
haftmann@27651
  2759
    hide (open) const gcd
haftmann@27651
  2760
    abbreviation gcd where
haftmann@27651
  2761
      "gcd == (%(a, b). GCD.gcd a b)"
haftmann@27651
  2762
    notation (output)
haftmann@27651
  2763
      GCD.gcd ("gcd '(_, _')")
haftmann@27651
  2764
wenzelm@30845
  2765
The same works for lcm, zgcd, zlcm.
wenzelm@30845
  2766
wenzelm@30845
  2767
* Theory Library/Nat_Infinity: added addition, numeral syntax and more
wenzelm@30845
  2768
instantiations for algebraic structures.  Removed some duplicate
wenzelm@30845
  2769
theorems.  Changes in simp rules.  INCOMPATIBILITY.
wenzelm@30845
  2770
wenzelm@30845
  2771
* ML antiquotation @{code} takes a constant as argument and generates
wenzelm@27519
  2772
corresponding code in background and inserts name of the corresponding
wenzelm@27519
  2773
resulting ML value/function/datatype constructor binding in place.
wenzelm@27519
  2774
All occurrences of @{code} with a single ML block are generated
wenzelm@27519
  2775
simultaneously.  Provides a generic and safe interface for
wenzelm@30845
  2776
instrumentalizing code generation.  See
wenzelm@30845
  2777
src/HOL/Decision_Procs/Ferrack.thy for a more ambitious application.
wenzelm@30845
  2778
In future you ought to refrain from ad-hoc compiling generated SML
wenzelm@30845
  2779
code on the ML toplevel.  Note that (for technical reasons) @{code}
wenzelm@30845
  2780
cannot refer to constants for which user-defined serializations are
wenzelm@30845
  2781
set.  Refer to the corresponding ML counterpart directly in that
wenzelm@30845
  2782
cases.
wenzelm@27122
  2783
wenzelm@27122
  2784
* Command 'rep_datatype': instead of theorem names the command now
wenzelm@27122
  2785
takes a list of terms denoting the constructors of the type to be
wenzelm@27122
  2786
represented as datatype.  The characteristic theorems have to be
wenzelm@27122
  2787
proven.  INCOMPATIBILITY.  Also observe that the following theorems
wenzelm@27122
  2788
have disappeared in favour of existing ones:
wenzelm@27122
  2789
haftmann@27104
  2790
    unit_induct                 ~> unit.induct
haftmann@27104
  2791
    prod_induct                 ~> prod.induct
haftmann@27104
  2792
    sum_induct                  ~> sum.induct
haftmann@27104
  2793
    Suc_Suc_eq                  ~> nat.inject
haftmann@27104
  2794
    Suc_not_Zero Zero_not_Suc   ~> nat.distinct
haftmann@27104
  2795
haftmann@27104
  2796
ballarin@27696
  2797
*** HOL-Algebra ***
ballarin@27696
  2798
ballarin@27713
  2799
* New locales for orders and lattices where the equivalence relation
wenzelm@30106
  2800
is not restricted to equality.  INCOMPATIBILITY: all order and lattice
wenzelm@30106
  2801
locales use a record structure with field eq for the equivalence.
ballarin@27713
  2802
ballarin@27713
  2803
* New theory of factorial domains.
ballarin@27713
  2804
wenzelm@30845
  2805
* Units_l_inv and Units_r_inv are now simp rules by default.
ballarin@27696
  2806
INCOMPATIBILITY.  Simplifier proof that require deletion of l_inv
ballarin@27696
  2807
and/or r_inv will now also require deletion of these lemmas.
ballarin@27696
  2808
wenzelm@30845
  2809
* Renamed the following theorems, INCOMPATIBILITY:
wenzelm@30845
  2810
ballarin@27696
  2811
UpperD ~> Upper_memD
ballarin@27696
  2812
LowerD ~> Lower_memD
ballarin@27696
  2813
least_carrier ~> least_closed
ballarin@27696
  2814
greatest_carrier ~> greatest_closed
ballarin@27696
  2815
greatest_Lower_above ~> greatest_Lower_below
ballarin@27717
  2816
one_zero ~> carrier_one_zero
ballarin@27717
  2817
one_not_zero ~> carrier_one_not_zero  (collision with assumption)
ballarin@27696
  2818
wenzelm@27793
  2819
wenzelm@30849
  2820
*** HOL-Nominal ***
wenzelm@30849
  2821
wenzelm@30855
  2822
* Nominal datatypes can now contain type-variables.
wenzelm@30855
  2823
wenzelm@30855
  2824
* Commands 'nominal_inductive' and 'equivariance' work with local
wenzelm@30855
  2825
theory targets.
wenzelm@30855
  2826
wenzelm@30855
  2827
* Nominal primrec can now works with local theory targets and its
wenzelm@30855
  2828
specification syntax now conforms to the general format as seen in
wenzelm@30855
  2829
'inductive' etc.
wenzelm@30855
  2830
wenzelm@30855
  2831
* Method "perm_simp" honours the standard simplifier attributes
wenzelm@30855
  2832
(no_asm), (no_asm_use) etc.
wenzelm@30855
  2833
wenzelm@30855
  2834
* The new predicate #* is defined like freshness, except that on the
wenzelm@30855
  2835
left hand side can be a set or list of atoms.
wenzelm@30855
  2836
wenzelm@30855
  2837
* Experimental command 'nominal_inductive2' derives strong induction
wenzelm@30855
  2838
principles for inductive definitions.  In contrast to
wenzelm@30855
  2839
'nominal_inductive', which can only deal with a fixed number of
wenzelm@30855
  2840
binders, it can deal with arbitrary expressions standing for sets of
wenzelm@30855
  2841
atoms to be avoided.  The only inductive definition we have at the
wenzelm@30855
  2842
moment that needs this generalisation is the typing rule for Lets in
wenzelm@30855
  2843
the algorithm W:
wenzelm@30855
  2844
wenzelm@30855
  2845
 Gamma |- t1 : T1   (x,close Gamma T1)::Gamma |- t2 : T2   x#Gamma
wenzelm@30855
  2846
 -----------------------------------------------------------------
wenzelm@30855
  2847
         Gamma |- Let x be t1 in t2 : T2
wenzelm@30855
  2848
wenzelm@30855
  2849
In this rule one wants to avoid all the binders that are introduced by
wenzelm@30855
  2850
"close Gamma T1".  We are looking for other examples where this
wenzelm@30855
  2851
feature might be useful.  Please let us know.
wenzelm@30849
  2852
wenzelm@30849
  2853
huffman@30173
  2854
*** HOLCF ***
huffman@30173
  2855
huffman@30173
  2856
* Reimplemented the simplification procedure for proving continuity
huffman@30173
  2857
subgoals.  The new simproc is extensible; users can declare additional
huffman@30173
  2858
continuity introduction rules with the attribute [cont2cont].
huffman@30173
  2859
huffman@30173
  2860
* The continuity simproc now uses a different introduction rule for
huffman@30173
  2861
solving continuity subgoals on terms with lambda abstractions.  In
huffman@30173
  2862
some rare cases the new simproc may fail to solve subgoals that the
huffman@30173
  2863
old one could solve, and "simp add: cont2cont_LAM" may be necessary.
huffman@30173
  2864
Potential INCOMPATIBILITY.
huffman@30173
  2865
wenzelm@30847
  2866
* Command 'fixrec': specification syntax now conforms to the general
wenzelm@30855
  2867
format as seen in 'inductive' etc.  See src/HOLCF/ex/Fixrec_ex.thy for
wenzelm@30855
  2868
examples.  INCOMPATIBILITY.
wenzelm@30845
  2869
wenzelm@30845
  2870
wenzelm@30845
  2871
*** ZF ***
wenzelm@30845
  2872
wenzelm@30845
  2873
* Proof of Zorn's Lemma for partial orders.
huffman@30173
  2874
huffman@30173
  2875
wenzelm@27246
  2876
*** ML ***
wenzelm@28088
  2877
wenzelm@30845
  2878
* Multithreading for Poly/ML 5.1/5.2 is no longer supported, only for
wenzelm@30845
  2879
Poly/ML 5.2.1 or later.  Important note: the TimeLimit facility
wenzelm@30845
  2880
depends on multithreading, so timouts will not work before Poly/ML
wenzelm@30845
  2881
5.2.1!
wenzelm@30845
  2882
wenzelm@29161
  2883
* High-level support for concurrent ML programming, see
wenzelm@29161
  2884
src/Pure/Cuncurrent.  The data-oriented model of "future values" is
wenzelm@29161
  2885
particularly convenient to organize independent functional
wenzelm@29161
  2886
computations.  The concept of "synchronized variables" provides a
wenzelm@29161
  2887
higher-order interface for components with shared state, avoiding the
wenzelm@30845
  2888
delicate details of mutexes and condition variables.  (Requires
wenzelm@30845
  2889
Poly/ML 5.2.1 or later.)
wenzelm@30845
  2890
wenzelm@30845
  2891
* ML bindings produced via Isar commands are stored within the Isar
wenzelm@30845
  2892
context (theory or proof).  Consequently, commands like 'use' and 'ML'
wenzelm@30845
  2893
become thread-safe and work with undo as expected (concerning
wenzelm@30845
  2894
top-level bindings, not side-effects on global references).
wenzelm@30845
  2895
INCOMPATIBILITY, need to provide proper Isar context when invoking the
wenzelm@30845
  2896
compiler at runtime; really global bindings need to be given outside a
wenzelm@30845
  2897
theory.  (Requires Poly/ML 5.2 or later.)
wenzelm@30845
  2898
wenzelm@30845
  2899
* Command 'ML_prf' is analogous to 'ML' but works within a proof
wenzelm@30845
  2900
context.  Top-level ML bindings are stored within the proof context in
wenzelm@30845
  2901
a purely sequential fashion, disregarding the nested proof structure.
wenzelm@30845
  2902
ML bindings introduced by 'ML_prf' are discarded at the end of the
wenzelm@30845
  2903
proof.  (Requires Poly/ML 5.2 or later.)
wenzelm@29161
  2904
wenzelm@30532
  2905
* Simplified ML attribute and method setup, cf. functions Attrib.setup
wenzelm@30845
  2906
and Method.setup, as well as Isar commands 'attribute_setup' and
wenzelm@30547
  2907
'method_setup'.  INCOMPATIBILITY for 'method_setup', need to simplify
wenzelm@30547
  2908
existing code accordingly, or use plain 'setup' together with old
wenzelm@30547
  2909
Method.add_method.
wenzelm@30532
  2910
wenzelm@28294
  2911
* Simplified ML oracle interface Thm.add_oracle promotes 'a -> cterm
wenzelm@28294
  2912
to 'a -> thm, while results are always tagged with an authentic oracle
wenzelm@28294
  2913
name.  The Isar command 'oracle' is now polymorphic, no argument type
wenzelm@28294
  2914
is specified.  INCOMPATIBILITY, need to simplify existing oracle code
wenzelm@28294
  2915
accordingly.  Note that extra performance may be gained by producing
wenzelm@28294
  2916
the cterm carefully, avoiding slow Thm.cterm_of.
wenzelm@28294
  2917
wenzelm@30845
  2918
* Simplified interface for defining document antiquotations via
wenzelm@30845
  2919
ThyOutput.antiquotation, ThyOutput.output, and optionally
wenzelm@30845
  2920
ThyOutput.maybe_pretty_source.  INCOMPATIBILITY, need to simplify user
wenzelm@30845
  2921
antiquotations accordingly, see src/Pure/Thy/thy_output.ML for common
wenzelm@30845
  2922
examples.
wenzelm@28099
  2923
wenzelm@30395
  2924
* More systematic treatment of long names, abstract name bindings, and
wenzelm@30395
  2925
name space operations.  Basic operations on qualified names have been
wenzelm@30399
  2926
move from structure NameSpace to Long_Name, e.g. Long_Name.base_name,
wenzelm@30395
  2927
Long_Name.append.  Old type bstring has been mostly replaced by
wenzelm@30395
  2928
abstract type binding (see structure Binding), which supports precise
wenzelm@30845
  2929
qualification by packages and local theory targets, as well as proper
wenzelm@30845
  2930
tracking of source positions.  INCOMPATIBILITY, need to wrap old
wenzelm@30845
  2931
bstring values into Binding.name, or better pass through abstract
wenzelm@30399
  2932
bindings everywhere.  See further src/Pure/General/long_name.ML,
wenzelm@30395
  2933
src/Pure/General/binding.ML and src/Pure/General/name_space.ML
wenzelm@30395
  2934
wenzelm@28089
  2935
* Result facts (from PureThy.note_thms, ProofContext.note_thms,
wenzelm@28089
  2936
LocalTheory.note etc.) now refer to the *full* internal name, not the
wenzelm@28089
  2937
bstring as before.  INCOMPATIBILITY, not detected by ML type-checking!
wenzelm@28089
  2938
wenzelm@27287
  2939
* Disposed old type and term read functions (Sign.read_def_typ,
wenzelm@27287
  2940
Sign.read_typ, Sign.read_def_terms, Sign.read_term,
wenzelm@27287
  2941
Thm.read_def_cterms, Thm.read_cterm etc.).  INCOMPATIBILITY, should
wenzelm@27287
  2942
use regular Syntax.read_typ, Syntax.read_term, Syntax.read_typ_global,
wenzelm@27269
  2943
Syntax.read_term_global etc.; see also OldGoals.read_term as last
wenzelm@27269
  2944
resort for legacy applications.
wenzelm@27269
  2945
wenzelm@30609
  2946
* Disposed old declarations, tactics, tactic combinators that refer to
wenzelm@30609
  2947
the simpset or claset of an implicit theory (such as Addsimps,
wenzelm@30609
  2948
Simp_tac, SIMPSET).  INCOMPATIBILITY, should use @{simpset} etc. in
wenzelm@30609
  2949
embedded ML text, or local_simpset_of with a proper context passed as
wenzelm@30609
  2950
explicit runtime argument.
wenzelm@30609
  2951
wenzelm@30845
  2952
* Rules and tactics that read instantiations (read_instantiate,
wenzelm@30845
  2953
res_inst_tac, thin_tac, subgoal_tac etc.) now demand a proper proof
wenzelm@30845
  2954
context, which is required for parsing and type-checking.  Moreover,
wenzelm@30845
  2955
the variables are specified as plain indexnames, not string encodings
wenzelm@30845
  2956
thereof.  INCOMPATIBILITY.
wenzelm@30845
  2957
wenzelm@30845
  2958
* Generic Toplevel.add_hook interface allows to analyze the result of
wenzelm@30845
  2959
transactions.  E.g. see src/Pure/ProofGeneral/proof_general_pgip.ML
wenzelm@30845
  2960
for theorem dependency output of transactions resulting in a new
wenzelm@30845
  2961
theory state.
wenzelm@30845
  2962
wenzelm@30845
  2963
* ML antiquotations: block-structured compilation context indicated by
wenzelm@27391
  2964
\<lbrace> ... \<rbrace>; additional antiquotation forms:
wenzelm@27391
  2965
wenzelm@30845
  2966
  @{binding name}                         - basic name binding
wenzelm@27519
  2967
  @{let ?pat = term}                      - term abbreviation (HO matching)
wenzelm@27519
  2968
  @{note name = fact}                     - fact abbreviation
wenzelm@27519
  2969
  @{thm fact}                             - singleton fact (with attributes)
wenzelm@27519
  2970
  @{thms fact}                            - general fact (with attributes)
wenzelm@27519
  2971
  @{lemma prop by method}                 - singleton goal
wenzelm@27519
  2972
  @{lemma prop by meth1 meth2}            - singleton goal
wenzelm@27519
  2973
  @{lemma prop1 ... propN by method}      - general goal
wenzelm@27519
  2974
  @{lemma prop1 ... propN by meth1 meth2} - general goal
wenzelm@27519
  2975
  @{lemma (open) ...}                     - open derivation
wenzelm@27380
  2976
wenzelm@27246
  2977
wenzelm@27979
  2978
*** System ***
wenzelm@27979
  2979
wenzelm@28248
  2980
* The Isabelle "emacs" tool provides a specific interface to invoke
wenzelm@28248
  2981
Proof General / Emacs, with more explicit failure if that is not
wenzelm@28248
  2982
installed (the old isabelle-interface script silently falls back on
wenzelm@28248
  2983
isabelle-process).  The PROOFGENERAL_HOME setting determines the
wenzelm@28248
  2984
installation location of the Proof General distribution.
wenzelm@28248
  2985
wenzelm@27979
  2986
* Isabelle/lib/classes/Pure.jar provides basic support to integrate
wenzelm@27979
  2987
the Isabelle process into a JVM/Scala application.  See
wenzelm@27979
  2988
Isabelle/lib/jedit/plugin for a minimal example.  (The obsolete Java
wenzelm@27979
  2989
process wrapper has been discontinued.)
wenzelm@27979
  2990
wenzelm@30845
  2991
* Added homegrown Isabelle font with unicode layout, see lib/fonts.
wenzelm@30845
  2992
wenzelm@30845
  2993
* Various status messages (with exact source position information) are
wenzelm@27979
  2994
emitted, if proper markup print mode is enabled.  This allows
wenzelm@27979
  2995
user-interface components to provide detailed feedback on internal
wenzelm@27979
  2996
prover operations.
wenzelm@27979
  2997
wenzelm@27979
  2998
wenzelm@27143
  2999
wenzelm@27008
  3000
New in Isabelle2008 (June 2008)
wenzelm@27008
  3001
-------------------------------
wenzelm@25464
  3002
wenzelm@25522
  3003
*** General ***
wenzelm@25522
  3004
wenzelm@27061
  3005
* The Isabelle/Isar Reference Manual (isar-ref) has been reorganized
wenzelm@27061
  3006
and updated, with formally checked references as hyperlinks.
wenzelm@27061
  3007
wenzelm@25994
  3008
* Theory loader: use_thy (and similar operations) no longer set the
wenzelm@25994
  3009
implicit ML context, which was occasionally hard to predict and in
wenzelm@25994
  3010
conflict with concurrency.  INCOMPATIBILITY, use ML within Isar which
wenzelm@25994
  3011
provides a proper context already.
wenzelm@25994
  3012
wenzelm@26323
  3013
* Theory loader: old-style ML proof scripts being *attached* to a thy
wenzelm@26323
  3014
file are no longer supported.  INCOMPATIBILITY, regular 'uses' and
wenzelm@26323
  3015
'use' within a theory file will do the job.
wenzelm@26323
  3016
wenzelm@26650
  3017
* Name space merge now observes canonical order, i.e. the second space
wenzelm@26650
  3018
is inserted into the first one, while existing entries in the first
wenzelm@26659
  3019
space take precedence.  INCOMPATIBILITY in rare situations, may try to
wenzelm@26650
  3020
swap theory imports.
wenzelm@26650
  3021
wenzelm@27067
  3022
* Syntax: symbol \<chi> is now considered a letter.  Potential
wenzelm@27067
  3023
INCOMPATIBILITY in identifier syntax etc.
wenzelm@27067
  3024
wenzelm@27067
  3025
* Outer syntax: string tokens no longer admit escaped white space,
wenzelm@27067
  3026
which was an accidental (undocumented) feature.  INCOMPATIBILITY, use
wenzelm@27067
  3027
white space without escapes.
wenzelm@27067
  3028
wenzelm@27067
  3029
* Outer syntax: string tokens may contain arbitrary character codes
wenzelm@27067
  3030
specified via 3 decimal digits (as in SML).  E.g. "foo\095bar" for
wenzelm@27067
  3031
"foo_bar".
wenzelm@27067
  3032
wenzelm@25522
  3033
haftmann@25502
  3034
*** Pure ***
haftmann@25502
  3035
wenzelm@26718
  3036
* Context-dependent token translations.  Default setup reverts locally
wenzelm@26718
  3037
fixed variables, and adds hilite markup for undeclared frees.
wenzelm@26718
  3038
berghofe@26681
  3039
* Unused theorems can be found using the new command 'unused_thms'.
berghofe@26681
  3040
There are three ways of invoking it:
berghofe@26681
  3041
berghofe@26681
  3042
(1) unused_thms
berghofe@26681
  3043
     Only finds unused theorems in the current theory.
berghofe@26681
  3044
berghofe@26681
  3045
(2) unused_thms thy_1 ... thy_n -
berghofe@26681
  3046
     Finds unused theorems in the current theory and all of its ancestors,
berghofe@26681
  3047
     excluding the theories thy_1 ... thy_n and all of their ancestors.
berghofe@26681
  3048
berghofe@26681
  3049
(3) unused_thms thy_1 ... thy_n - thy'_1 ... thy'_m
berghofe@26681
  3050
     Finds unused theorems in the theories thy'_1 ... thy'_m and all of
berghofe@26681
  3051
     their ancestors, excluding the theories thy_1 ... thy_n and all of
berghofe@26681
  3052
     their ancestors.
berghofe@26681
  3053
wenzelm@26718
  3054
In order to increase the readability of the list produced by
wenzelm@26718
  3055
unused_thms, theorems that have been created by a particular instance
wenzelm@26874
  3056
of a theory command such as 'inductive' or 'function' are considered
wenzelm@26874
  3057
to belong to the same "group", meaning that if at least one theorem in
wenzelm@26718
  3058
this group is used, the other theorems in the same group are no longer
wenzelm@26718
  3059
reported as unused.  Moreover, if all theorems in the group are
wenzelm@26718
  3060
unused, only one theorem in the group is displayed.
wenzelm@26718
  3061
wenzelm@26718
  3062
Note that proof objects have to be switched on in order for
wenzelm@26718
  3063
unused_thms to work properly (i.e. !proofs must be >= 1, which is
wenzelm@26874
  3064
usually the case when using Proof General with the default settings).
berghofe@26681
  3065
wenzelm@26650
  3066
* Authentic naming of facts disallows ad-hoc overwriting of previous
wenzelm@26650
  3067
theorems within the same name space.  INCOMPATIBILITY, need to remove
wenzelm@26650
  3068
duplicate fact bindings, or even accidental fact duplications.  Note
wenzelm@26650
  3069
that tools may maintain dynamically scoped facts systematically, using
wenzelm@26650
  3070
PureThy.add_thms_dynamic.
wenzelm@26650
  3071
wenzelm@26660
  3072
* Command 'hide' now allows to hide from "fact" name space as well.
wenzelm@26660
  3073
wenzelm@26496
  3074
* Eliminated destructive theorem database, simpset, claset, and
wenzelm@26496
  3075
clasimpset.  Potential INCOMPATIBILITY, really need to observe linear
wenzelm@26496
  3076
update of theories within ML code.
wenzelm@26479
  3077
wenzelm@26955
  3078
* Eliminated theory ProtoPure and CPure, leaving just one Pure theory.
wenzelm@26955
  3079
INCOMPATIBILITY, object-logics depending on former Pure require
wenzelm@26955
  3080
additional setup PureThy.old_appl_syntax_setup; object-logics
wenzelm@26955
  3081
depending on former CPure need to refer to Pure.
wenzelm@26650
  3082
wenzelm@26495
  3083
* Commands 'use' and 'ML' are now purely functional, operating on
wenzelm@26479
  3084
theory/local_theory.  Removed former 'ML_setup' (on theory), use 'ML'
wenzelm@26479
  3085
instead.  Added 'ML_val' as mere diagnostic replacement for 'ML'.
wenzelm@26479
  3086
INCOMPATIBILITY.
wenzelm@26479
  3087
wenzelm@26874
  3088
* Command 'setup': discontinued implicit version with ML reference.
wenzelm@26434
  3089
wenzelm@25970
  3090
* Instantiation target allows for simultaneous specification of class
wenzelm@25970
  3091
instance operations together with an instantiation proof.
wenzelm@25970
  3092
Type-checking phase allows to refer to class operations uniformly.
wenzelm@27067
  3093
See src/HOL/Complex/Complex.thy for an Isar example and
wenzelm@27067
  3094
src/HOL/Library/Eval.thy for an ML example.
haftmann@25502
  3095
wenzelm@26201
  3096
* Indexing of literal facts: be more serious about including only
wenzelm@26201
  3097
facts from the visible specification/proof context, but not the
wenzelm@26201
  3098
background context (locale etc.).  Affects `prop` notation and method
wenzelm@26201
  3099
"fact".  INCOMPATIBILITY: need to name facts explicitly in rare
wenzelm@26201
  3100
situations.
wenzelm@26201
  3101
wenzelm@26925
  3102
* Method "cases", "induct", "coinduct": removed obsolete/undocumented
wenzelm@26925
  3103
"(open)" option, which used to expose internal bound variables to the
wenzelm@26925
  3104
proof text.
wenzelm@26925
  3105
wenzelm@26925
  3106
* Isar statements: removed obsolete case "rule_context".
wenzelm@26925
  3107
INCOMPATIBILITY, better use explicit fixes/assumes.
wenzelm@26925
  3108
wenzelm@26874
  3109
* Locale proofs: default proof step now includes 'unfold_locales';
wenzelm@26874
  3110
hence 'proof' without argument may be used to unfold locale
wenzelm@26874
  3111
predicates.
ballarin@26765
  3112
ballarin@26765
  3113
haftmann@26762
  3114
*** Document preparation ***
haftmann@26762
  3115
wenzelm@26914
  3116
* Simplified pdfsetup.sty: color/hyperref is used unconditionally for
wenzelm@26914
  3117
both pdf and dvi (hyperlinks usually work in xdvi as well); removed
wenzelm@26914
  3118
obsolete thumbpdf setup (contemporary PDF viewers do this on the
wenzelm@26914
  3119
spot); renamed link color from "darkblue" to "linkcolor" (default
wenzelm@26920
  3120
value unchanged, can be redefined via \definecolor); no longer sets
wenzelm@26920
  3121
"a4paper" option (unnecessary or even intrusive).
wenzelm@26914
  3122
wenzelm@27008
  3123
* Antiquotation @{lemma A method} proves proposition A by the given
wenzelm@27008
  3124
method (either a method name or a method name plus (optional) method
wenzelm@27008
  3125
arguments in parentheses) and prints A just like @{prop A}.
haftmann@26762
  3126
haftmann@26762
  3127
wenzelm@25464
  3128
*** HOL ***
wenzelm@25464
  3129
wenzelm@27067
  3130
* New primrec package.  Specification syntax conforms in style to
wenzelm@27067
  3131
definition/function/....  No separate induction rule is provided.  The
wenzelm@27067
  3132
"primrec" command distinguishes old-style and new-style specifications
wenzelm@27067
  3133
by syntax.  The former primrec package is now named OldPrimrecPackage.
wenzelm@27067
  3134
When adjusting theories, beware: constants stemming from new-style
wenzelm@27067
  3135
primrec specifications have authentic syntax.
wenzelm@27067
  3136
wenzelm@27067
  3137
* Metis prover is now an order of magnitude faster, and also works
wenzelm@27067
  3138
with multithreading.
wenzelm@27067
  3139
wenzelm@27067
  3140
* Metis: the maximum number of clauses that can be produced from a
wenzelm@27067
  3141
theorem is now given by the attribute max_clauses.  Theorems that
wenzelm@27067
  3142
exceed this number are ignored, with a warning printed.
wenzelm@27067
  3143
wenzelm@27067
  3144
* Sledgehammer no longer produces structured proofs by default. To
wenzelm@27067
  3145
enable, declare [[sledgehammer_full = true]].  Attributes
wenzelm@27067
  3146
reconstruction_modulus, reconstruction_sorts renamed
wenzelm@27067
  3147
sledgehammer_modulus, sledgehammer_sorts.  INCOMPATIBILITY.
wenzelm@27067
  3148
haftmann@27104
  3149
* Method "induct_scheme" derives user-specified induction rules
wenzelm@27067
  3150
from well-founded induction and completeness of patterns. This factors
wenzelm@27067
  3151
out some operations that are done internally by the function package
wenzelm@27067
  3152
and makes them available separately.  See
wenzelm@27067
  3153
src/HOL/ex/Induction_Scheme.thy for examples.
wenzelm@27067
  3154
wenzelm@27067
  3155
* More flexible generation of measure functions for termination
wenzelm@27067
  3156
proofs: Measure functions can be declared by proving a rule of the
wenzelm@27067
  3157
form "is_measure f" and giving it the [measure_function] attribute.
wenzelm@27067
  3158
The "is_measure" predicate is logically meaningless (always true), and
wenzelm@27067
  3159
just guides the heuristic.  To find suitable measure functions, the
wenzelm@27067
  3160
termination prover sets up the goal "is_measure ?f" of the appropriate
wenzelm@27067
  3161
type and generates all solutions by prolog-style backwards proof using
wenzelm@27067
  3162
the declared rules.
wenzelm@27067
  3163
wenzelm@27067
  3164
This setup also deals with rules like 
wenzelm@27067
  3165
wenzelm@27067
  3166
  "is_measure f ==> is_measure (list_size f)"
wenzelm@27067
  3167
wenzelm@27067
  3168
which accommodates nested datatypes that recurse through lists.
wenzelm@27067
  3169
Similar rules are predeclared for products and option types.
wenzelm@27067
  3170
berghofe@26964
  3171
* Turned the type of sets "'a set" into an abbreviation for "'a => bool"
berghofe@26964
  3172
berghofe@26964
  3173
  INCOMPATIBILITIES:
berghofe@26964
  3174
wenzelm@27008
  3175
  - Definitions of overloaded constants on sets have to be replaced by
wenzelm@27008
  3176
    definitions on => and bool.
berghofe@26964
  3177
berghofe@26964
  3178
  - Some definitions of overloaded operators on sets can now be proved
wenzelm@27008
  3179
    using the definitions of the operators on => and bool.  Therefore,
wenzelm@27008
  3180
    the following theorems have been renamed:
berghofe@26964
  3181
berghofe@26964
  3182
      subset_def   -> subset_eq
berghofe@26964
  3183
      psubset_def  -> psubset_eq
berghofe@26964
  3184
      set_diff_def -> set_diff_eq
berghofe@26964
  3185
      Compl_def    -> Compl_eq
berghofe@26964
  3186
      Sup_set_def  -> Sup_set_eq
berghofe@26964
  3187
      Inf_set_def  -> Inf_set_eq
berghofe@26964
  3188
      sup_set_def  -> sup_set_eq
berghofe@26964
  3189
      inf_set_def  -> inf_set_eq
berghofe@26964
  3190
berghofe@26964
  3191
  - Due to the incompleteness of the HO unification algorithm, some
berghofe@26964
  3192
    rules such as subst may require manual instantiation, if some of
berghofe@26964
  3193
    the unknowns in the rule is a set.
berghofe@26964
  3194
berghofe@26964
  3195
  - Higher order unification and forward proofs:
berghofe@26964
  3196
    The proof pattern
berghofe@26964
  3197
berghofe@26964
  3198
      have "P (S::'a set)" <...>
berghofe@26964
  3199
      then have "EX S. P S" ..
berghofe@26964
  3200
wenzelm@27008
  3201
    no longer works (due to the incompleteness of the HO unification
wenzelm@27008
  3202
    algorithm) and must be replaced by the pattern
berghofe@26964
  3203
berghofe@26964
  3204
      have "EX S. P S"
berghofe@26964
  3205
      proof
berghofe@26964
  3206
        show "P S" <...>
berghofe@26964
  3207
      qed
berghofe@26964
  3208
berghofe@26964
  3209
  - Calculational reasoning with subst (or similar rules):
berghofe@26964
  3210
    The proof pattern
berghofe@26964
  3211
berghofe@26964
  3212
      have "P (S::'a set)" <...>
berghofe@26964
  3213
      also have "S = T" <...>
berghofe@26964
  3214
      finally have "P T" .
berghofe@26964
  3215
wenzelm@27008
  3216
    no longer works (for similar reasons as the previous example) and
wenzelm@27008
  3217
    must be replaced by something like
berghofe@26964
  3218
berghofe@26964
  3219
      have "P (S::'a set)" <...>
berghofe@26964
  3220
      moreover have "S = T" <...>
berghofe@26964
  3221
      ultimately have "P T" by simp
berghofe@26964
  3222
berghofe@26964
  3223
  - Tactics or packages written in ML code:
berghofe@26964
  3224
    Code performing pattern matching on types via
berghofe@26964
  3225
berghofe@26964
  3226
      Type ("set", [T]) => ...
berghofe@26964
  3227
wenzelm@27008
  3228
    must be rewritten. Moreover, functions like strip_type or
wenzelm@27008
  3229
    binder_types no longer return the right value when applied to a
wenzelm@27008
  3230
    type of the form
berghofe@26964
  3231
berghofe@26964
  3232
      T1 => ... => Tn => U => bool
berghofe@26964
  3233
berghofe@26964
  3234
    rather than
berghofe@26964
  3235
berghofe@26964
  3236
      T1 => ... => Tn => U set
berghofe@26964
  3237
wenzelm@26874
  3238
* Merged theories Wellfounded_Recursion, Accessible_Part and
wenzelm@27067
  3239
Wellfounded_Relations to theory Wellfounded.
krauss@26748
  3240
haftmann@26513
  3241
* Explicit class "eq" for executable equality.  INCOMPATIBILITY.
haftmann@26513
  3242
wenzelm@26874
  3243
* Class finite no longer treats UNIV as class parameter.  Use class
wenzelm@26874
  3244
enum from theory Library/Enum instead to achieve a similar effect.
haftmann@26445
  3245
INCOMPATIBILITY.
haftmann@26445
  3246
wenzelm@26874
  3247
* Theory List: rule list_induct2 now has explicitly named cases "Nil"
wenzelm@26874
  3248
and "Cons".  INCOMPATIBILITY.
wenzelm@26874
  3249
wenzelm@26422
  3250
* HOL (and FOL): renamed variables in rules imp_elim and swap.
wenzelm@26422
  3251
Potential INCOMPATIBILITY.
wenzelm@26422
  3252
wenzelm@26874
  3253
* Theory Product_Type: duplicated lemmas split_Pair_apply and
wenzelm@26874
  3254
injective_fst_snd removed, use split_eta and prod_eqI instead.
wenzelm@26874
  3255
Renamed upd_fst to apfst and upd_snd to apsnd.  INCOMPATIBILITY.
haftmann@26355
  3256
wenzelm@26335
  3257
* Theory Nat: removed redundant lemmas that merely duplicate lemmas of
wenzelm@26335
  3258
the same name in theory Orderings:
wenzelm@26335
  3259
wenzelm@26335
  3260
  less_trans
wenzelm@26335
  3261
  less_linear
wenzelm@26335
  3262
  le_imp_less_or_eq
wenzelm@26335
  3263
  le_less_trans
wenzelm@26335
  3264
  less_le_trans
wenzelm@26335
  3265
  less_not_sym
wenzelm@26335
  3266
  less_asym
wenzelm@26335
  3267
wenzelm@26335
  3268
Renamed less_imp_le to less_imp_le_nat, and less_irrefl to
wenzelm@26335
  3269
less_irrefl_nat.  Potential INCOMPATIBILITY due to more general types
wenzelm@26335
  3270
and different variable names.
wenzelm@26315
  3271
haftmann@26231
  3272
* Library/Option_ord.thy: Canonical order on option type.
haftmann@26231
  3273
wenzelm@27008
  3274
* Library/RBT.thy: Red-black trees, an efficient implementation of
wenzelm@27008
  3275
finite maps.
krauss@26197
  3276
haftmann@26231
  3277
* Library/Countable.thy: Type class for countable types.
haftmann@26231
  3278
wenzelm@26180
  3279
* Theory Int: The representation of numerals has changed.  The infix
wenzelm@26180
  3280
operator BIT and the bit datatype with constructors B0 and B1 have
wenzelm@26180
  3281
disappeared.  INCOMPATIBILITY, use "Int.Bit0 x" and "Int.Bit1 y" in
wenzelm@26180
  3282
place of "x BIT bit.B0" and "y BIT bit.B1", respectively.  Theorems
wenzelm@26180
  3283
involving BIT, B0, or B1 have been renamed with "Bit0" or "Bit1"
wenzelm@26180
  3284
accordingly.
wenzelm@26180
  3285
wenzelm@26180
  3286
* Theory Nat: definition of <= and < on natural numbers no longer
wenzelm@26180
  3287
depend on well-founded relations.  INCOMPATIBILITY.  Definitions
wenzelm@26180
  3288
le_def and less_def have disappeared.  Consider lemmas not_less
wenzelm@26180
  3289
[symmetric, where ?'a = nat] and less_eq [symmetric] instead.
wenzelm@26180
  3290
wenzelm@26180
  3291
* Theory Finite_Set: locales ACf, ACe, ACIf, ACIfSL and ACIfSLlin
wenzelm@26180
  3292
(whose purpose mainly is for various fold_set functionals) have been
wenzelm@26874
  3293
abandoned in favor of the existing algebraic classes
wenzelm@26180
  3294
ab_semigroup_mult, comm_monoid_mult, ab_semigroup_idem_mult,
wenzelm@26180
  3295
lower_semilattice (resp. upper_semilattice) and linorder.
haftmann@26139
  3296
INCOMPATIBILITY.
haftmann@26041
  3297
wenzelm@26180
  3298
* Theory Transitive_Closure: induct and cases rules now declare proper
wenzelm@26180
  3299
case_names ("base" and "step").  INCOMPATIBILITY.
wenzelm@26180
  3300
wenzelm@26180
  3301
* Theorem Inductive.lfp_ordinal_induct generalized to complete
wenzelm@26180
  3302
lattices.  The form set-specific version is available as
wenzelm@26180
  3303
Inductive.lfp_ordinal_induct_set.
haftmann@26013
  3304
wenzelm@26874
  3305
* Renamed theorems "power.simps" to "power_int.simps".
wenzelm@27067
  3306
INCOMPATIBILITY.
haftmann@25961
  3307
wenzelm@26180
  3308
* Class semiring_div provides basic abstract properties of semirings
haftmann@25942
  3309
with division and modulo operations.  Subsumes former class dvd_mod.
haftmann@25942
  3310
wenzelm@26180
  3311
* Merged theories IntDef, Numeral and IntArith into unified theory
wenzelm@26180
  3312
Int.  INCOMPATIBILITY.
wenzelm@26180
  3313
wenzelm@26180
  3314
* Theory Library/Code_Index: type "index" now represents natural
wenzelm@26180
  3315
numbers rather than integers.  INCOMPATIBILITY.
wenzelm@26180
  3316
wenzelm@26180
  3317
* New class "uminus" with operation "uminus" (split of from class
wenzelm@26180
  3318
"minus" which now only has operation "minus", binary).
haftmann@25919
  3319
INCOMPATIBILITY.
haftmann@25919
  3320
wenzelm@25522
  3321
* Constants "card", "internal_split", "option_map" now with authentic
haftmann@25919
  3322
syntax.  INCOMPATIBILITY.
wenzelm@25522
  3323
wenzelm@25522
  3324
* Definitions subset_def, psubset_def, set_diff_def, Compl_def,
wenzelm@25522
  3325
le_bool_def, less_bool_def, le_fun_def, less_fun_def, inf_bool_def,
wenzelm@25522
  3326
sup_bool_def, Inf_bool_def, Sup_bool_def, inf_fun_def, sup_fun_def,
wenzelm@25522
  3327
Inf_fun_def, Sup_fun_def, inf_set_def, sup_set_def, Inf_set_def,
wenzelm@25522
  3328
Sup_set_def, le_def, less_def, option_map_def now with object
haftmann@25919
  3329
equality.  INCOMPATIBILITY.
wenzelm@25464
  3330
schirmer@25705
  3331
* Records. Removed K_record, and replaced it by pure lambda term
wenzelm@25726
  3332
%x. c. The simplifier setup is now more robust against eta expansion.
schirmer@25705
  3333
INCOMPATIBILITY: in cases explicitly referring to K_record.
wenzelm@25464
  3334
wenzelm@27067
  3335
* Library/Multiset: {#a, b, c#} abbreviates {#a#} + {#b#} + {#c#}.
wenzelm@27067
  3336
wenzelm@27067
  3337
* Library/ListVector: new theory of arithmetic vector operations.
wenzelm@27067
  3338
wenzelm@27067
  3339
* Library/Order_Relation: new theory of various orderings as sets of
wenzelm@27067
  3340
pairs.  Defines preorders, partial orders, linear orders and
wenzelm@27067
  3341
well-orders on sets and on types.
krauss@26877
  3342
wenzelm@25726
  3343
krauss@26197
  3344
*** ZF ***
krauss@26197
  3345
wenzelm@26874
  3346
* Renamed some theories to allow to loading both ZF and HOL in the
wenzelm@26874
  3347
same session:
wenzelm@26874
  3348
wenzelm@26874
  3349
  Datatype  -> Datatype_ZF
wenzelm@26874
  3350
  Inductive -> Inductive_ZF
wenzelm@26874
  3351
  Int       -> Int_ZF
wenzelm@26874
  3352
  IntDiv    -> IntDiv_ZF
wenzelm@26874
  3353
  Nat       -> Nat_ZF
wenzelm@26874
  3354
  List      -> List_ZF
wenzelm@26874
  3355
  Main      -> Main_ZF
wenzelm@26874
  3356
wenzelm@26874
  3357
INCOMPATIBILITY: ZF theories that import individual theories below
wenzelm@26874
  3358
Main might need to be adapted.  Regular theory Main is still
wenzelm@26874
  3359
available, as trivial extension of Main_ZF.
krauss@26197
  3360
krauss@26197
  3361
wenzelm@25737
  3362
*** ML ***
wenzelm@25737
  3363
wenzelm@27067
  3364
* ML within Isar: antiquotation @{const name} or @{const
wenzelm@27067
  3365
name(typargs)} produces statically-checked Const term.
wenzelm@27067
  3366
wenzelm@26401
  3367
* Functor NamedThmsFun: data is available to the user as dynamic fact
wenzelm@26724
  3368
(of the same name).  Removed obsolete print command.
wenzelm@26401
  3369
wenzelm@27067
  3370
* Removed obsolete "use_legacy_bindings" function.
wenzelm@26188
  3371
wenzelm@25737
  3372
* The ``print mode'' is now a thread-local value derived from a global
wenzelm@25737
  3373
template (the former print_mode reference), thus access becomes
wenzelm@25737
  3374
non-critical.  The global print_mode reference is for session
wenzelm@25737
  3375
management only; user-code should use print_mode_value,
wenzelm@25737
  3376
print_mode_active, PrintMode.setmp etc.  INCOMPATIBILITY.
wenzelm@25737
  3377
wenzelm@26874
  3378
* Functions system/system_out provide a robust way to invoke external
wenzelm@29161
  3379
shell commands, with propagation of interrupts (requires Poly/ML
wenzelm@29161
  3380
5.2.1).  Do not use OS.Process.system etc. from the basis library!
wenzelm@26222
  3381
wenzelm@25737
  3382
wenzelm@25626
  3383
*** System ***
wenzelm@25626
  3384
wenzelm@27067
  3385
* Default settings: PROOFGENERAL_OPTIONS no longer impose xemacs ---
wenzelm@27067
  3386
in accordance with Proof General 3.7, which prefers GNU emacs.
wenzelm@27067
  3387
wenzelm@27067
  3388
* isatool tty runs Isabelle process with plain tty interaction;
wenzelm@27067
  3389
optional line editor may be specified via ISABELLE_LINE_EDITOR
wenzelm@27067
  3390
setting, the default settings attempt to locate "ledit" and "rlwrap".
wenzelm@27067
  3391
wenzelm@27067
  3392
* isatool browser now works with Cygwin as well, using general
wenzelm@27067
  3393
"javapath" function defined in Isabelle process environment.
wenzelm@27067
  3394
wenzelm@26575
  3395
* YXML notation provides a simple and efficient alternative to
wenzelm@26575
  3396
standard XML transfer syntax.  See src/Pure/General/yxml.ML and
wenzelm@26575
  3397
isatool yxml as described in the Isabelle system manual.
wenzelm@26575
  3398
wenzelm@27067
  3399
* JVM class isabelle.IsabelleProcess (located in Isabelle/lib/classes)
wenzelm@27067
  3400
provides general wrapper for managing an Isabelle process in a robust
wenzelm@27067
  3401
fashion, with ``cooked'' output from stdin/stderr.
wenzelm@27067
  3402
wenzelm@27067
  3403
* Rudimentary Isabelle plugin for jEdit (see Isabelle/lib/jedit),
wenzelm@27067
  3404
based on Isabelle/JVM process wrapper (see Isabelle/lib/classes).
wenzelm@27067
  3405
wenzelm@26575
  3406
* Removed obsolete THIS_IS_ISABELLE_BUILD feature.  NB: the documented
wenzelm@26575
  3407
way of changing the user's settings is via
wenzelm@26218
  3408
ISABELLE_HOME_USER/etc/settings, which is a fully featured bash
wenzelm@26218
  3409
script.
wenzelm@26218
  3410
wenzelm@25776
  3411
* Multithreading.max_threads := 0 refers to the number of actual CPU
wenzelm@25776
  3412
cores of the underlying machine, which is a good starting point for
wenzelm@25776
  3413
optimal performance tuning.  The corresponding usedir option -M allows
wenzelm@25778
  3414
"max" as an alias for "0".  WARNING: does not work on certain versions
wenzelm@25778
  3415
of Mac OS (with Poly/ML 5.1).
wenzelm@25776
  3416
wenzelm@27067
  3417
* isabelle-process: non-ML sessions are run with "nice", to reduce the
wenzelm@27067
  3418
adverse effect of Isabelle flooding interactive front-ends (notably
wenzelm@27067
  3419
ProofGeneral / XEmacs).
wenzelm@25855
  3420
wenzelm@25626
  3421
wenzelm@25464
  3422
wenzelm@25429
  3423
New in Isabelle2007 (November 2007)
wenzelm@25429
  3424
-----------------------------------
wenzelm@17754
  3425
wenzelm@17754
  3426
*** General ***
wenzelm@17754
  3427
wenzelm@22826
  3428
* More uniform information about legacy features, notably a
wenzelm@22826
  3429
warning/error of "Legacy feature: ...", depending on the state of the
wenzelm@23367
  3430
tolerate_legacy_features flag (default true). FUTURE INCOMPATIBILITY:
wenzelm@23367
  3431
legacy features will disappear eventually.
wenzelm@22826
  3432
wenzelm@17918
  3433
* Theory syntax: the header format ``theory A = B + C:'' has been
wenzelm@17918
  3434
discontinued in favour of ``theory A imports B C begin''.  Use isatool
wenzelm@17918
  3435
fixheaders to convert existing theory files.  INCOMPATIBILITY.
wenzelm@17918
  3436
wenzelm@17918
  3437
* Theory syntax: the old non-Isar theory file format has been
wenzelm@17918
  3438
discontinued altogether.  Note that ML proof scripts may still be used
wenzelm@17918
  3439
with Isar theories; migration is usually quite simple with the ML
wenzelm@17918
  3440
function use_legacy_bindings.  INCOMPATIBILITY.
wenzelm@17918
  3441
wenzelm@22871
  3442
* Theory syntax: some popular names (e.g. 'class', 'declaration',
wenzelm@22871
  3443
'fun', 'help', 'if') are now keywords.  INCOMPATIBILITY, use double
wenzelm@22871
  3444
quotes.
wenzelm@19814
  3445
wenzelm@23888
  3446
* Theory loader: be more serious about observing the static theory
wenzelm@23888
  3447
header specifications (including optional directories), but not the
wenzelm@24172
  3448
accidental file locations of previously successful loads.  The strict
wenzelm@24172
  3449
update policy of former update_thy is now already performed by
wenzelm@24172
  3450
use_thy, so the former has been removed; use_thys updates several
wenzelm@24172
  3451
theories simultaneously, just as 'imports' within a theory header
wenzelm@24172
  3452
specification, but without merging the results.  Potential
wenzelm@24172
  3453
INCOMPATIBILITY: may need to refine theory headers and commands
wenzelm@24172
  3454
ROOT.ML which depend on load order.
wenzelm@23888
  3455
wenzelm@23888
  3456
* Theory loader: optional support for content-based file
wenzelm@23888
  3457
identification, instead of the traditional scheme of full physical
wenzelm@23889
  3458
path plus date stamp; configured by the ISABELLE_FILE_IDENT setting
wenzelm@23888
  3459
(cf. the system manual).  The new scheme allows to work with
wenzelm@23888
  3460
non-finished theories in persistent session images, such that source
wenzelm@23888
  3461
files may be moved later on without requiring reloads.
wenzelm@23888
  3462
wenzelm@24187
  3463
* Theory loader: old-style ML proof scripts being *attached* to a thy
wenzelm@24187
  3464
file (with the same base name as the theory) are considered a legacy
wenzelm@24800
  3465
feature, which will disappear eventually. Even now, the theory loader
wenzelm@24800
  3466
no longer maintains dependencies on such files.
wenzelm@24800
  3467
wenzelm@24800
  3468
* Syntax: the scope for resolving ambiguities via type-inference is
wenzelm@24800
  3469
now limited to individual terms, instead of whole simultaneous
wenzelm@24234
  3470
specifications as before. This greatly reduces the complexity of the
wenzelm@24234
  3471
syntax module and improves flexibility by separating parsing and
wenzelm@24234
  3472
type-checking. INCOMPATIBILITY: additional type-constraints (explicit
wenzelm@24234
  3473
'fixes' etc.) are required in rare situations.
wenzelm@24234
  3474
wenzelm@25034
  3475
* Syntax: constants introduced by new-style packages ('definition',
wenzelm@25034
  3476
'abbreviation' etc.) are passed through the syntax module in
wenzelm@25034
  3477
``authentic mode''. This means that associated mixfix annotations
wenzelm@25034
  3478
really stick to such constants, independently of potential name space
wenzelm@25034
  3479
ambiguities introduced later on. INCOMPATIBILITY: constants in parse
wenzelm@25034
  3480
trees are represented slightly differently, may need to adapt syntax
wenzelm@25034
  3481
translations accordingly. Use CONST marker in 'translations' and
wenzelm@25034
  3482
@{const_syntax} antiquotation in 'parse_translation' etc.
wenzelm@25034
  3483
wenzelm@17981
  3484
* Legacy goal package: reduced interface to the bare minimum required
wenzelm@17981
  3485
to keep existing proof scripts running.  Most other user-level
wenzelm@17981
  3486
functions are now part of the OldGoals structure, which is *not* open
wenzelm@17981
  3487
by default (consider isatool expandshort before open OldGoals).
wenzelm@17981
  3488
Removed top_sg, prin, printyp, pprint_term/typ altogether, because
wenzelm@17981
  3489
these tend to cause confusion about the actual goal (!) context being
wenzelm@17981
  3490
used here, which is not necessarily the same as the_context().
wenzelm@17918
  3491
wenzelm@23379
  3492
* Command 'find_theorems': supports "*" wild-card in "name:"
wenzelm@23379
  3493
criterion; "with_dups" option.  Certain ProofGeneral versions might
wenzelm@23379
  3494
support a specific search form (see ProofGeneral/CHANGES).
webertj@22965
  3495
wenzelm@20370
  3496
* The ``prems limit'' option (cf. ProofContext.prems_limit) is now -1
wenzelm@20370
  3497
by default, which means that "prems" (and also "fixed variables") are
wenzelm@20370
  3498
suppressed from proof state output.  Note that the ProofGeneral
wenzelm@20370
  3499
settings mechanism allows to change and save options persistently, but
wenzelm@20370
  3500
older versions of Isabelle will fail to start up if a negative prems
wenzelm@20370
  3501
limit is imposed.
wenzelm@20370
  3502
wenzelm@21308
  3503
* Local theory targets may be specified by non-nested blocks of
wenzelm@21308
  3504
``context/locale/class ... begin'' followed by ``end''.  The body may
wenzelm@21308
  3505
contain definitions, theorems etc., including any derived mechanism
wenzelm@21308
  3506
that has been implemented on top of these primitives.  This concept
wenzelm@21308
  3507
generalizes the existing ``theorem (in ...)'' towards more versatility
wenzelm@21308
  3508
and scalability.
wenzelm@21308
  3509
wenzelm@21960
  3510
* Proof General interface: proper undo of final 'end' command;
wenzelm@21960
  3511
discontinued Isabelle/classic mode (ML proof scripts).
wenzelm@21960
  3512
wenzelm@17754
  3513
wenzelm@17865
  3514
*** Document preparation ***
wenzelm@17865
  3515
wenzelm@21717
  3516
* Added antiquotation @{theory name} which prints the given name,
wenzelm@21717
  3517
after checking that it refers to a valid ancestor theory in the
wenzelm@21717
  3518
current context.
haftmann@21339
  3519
wenzelm@17869
  3520
* Added antiquotations @{ML_type text} and @{ML_struct text} which
wenzelm@17869
  3521
check the given source text as ML type/structure, printing verbatim.
wenzelm@17865
  3522
wenzelm@21717
  3523
* Added antiquotation @{abbrev "c args"} which prints the abbreviation
wenzelm@21717
  3524
"c args == rhs" given in the current context.  (Any number of
wenzelm@21735
  3525
arguments may be given on the LHS.)
wenzelm@21717
  3526
wenzelm@21717
  3527
wenzelm@17779
  3528
*** Pure ***
wenzelm@17779
  3529
wenzelm@24800
  3530
* The 'class' package offers a combination of axclass and locale to
wenzelm@25129
  3531
achieve Haskell-like type classes in Isabelle.  Definitions and
wenzelm@25129
  3532
theorems within a class context produce both relative results (with
wenzelm@25129
  3533
implicit parameters according to the locale context), and polymorphic
wenzelm@25129
  3534
constants with qualified polymorphism (according to the class
wenzelm@25129
  3535
context).  Within the body context of a 'class' target, a separate
wenzelm@25129
  3536
syntax layer ("user space type system") takes care of converting
wenzelm@25129
  3537
between global polymorphic consts and internal locale representation.
wenzelm@25177
  3538
See src/HOL/ex/Classpackage.thy for examples (as well as main HOL).
haftmann@25184
  3539
"isatool doc classes" provides a tutorial.
wenzelm@20807
  3540
haftmann@25199
  3541
* Generic code generator framework allows to generate executable
wenzelm@24800
  3542
code for ML and Haskell (including Isabelle classes).  A short usage
wenzelm@24800
  3543
sketch:
haftmann@20188
  3544
haftmann@20188
  3545
    internal compilation:
haftmann@25199
  3546
        export_code <list of constants (term syntax)> in SML
haftmann@20453
  3547
    writing SML code to a file:
haftmann@25199
  3548
        export_code <list of constants (term syntax)> in SML <filename>
haftmann@22735
  3549
    writing OCaml code to a file:
haftmann@25199
  3550
        export_code <list of constants (term syntax)> in OCaml <filename>
haftmann@20188
  3551
    writing Haskell code to a bunch of files:
haftmann@25199
  3552
        export_code <list of constants (term syntax)> in Haskell <filename>
haftmann@25199
  3553
haftmann@25199
  3554
    evaluating closed propositions to True/False using code generation:
haftmann@25184
  3555
        method ``eval''
haftmann@25184
  3556
haftmann@25184
  3557
Reasonable default setup of framework in HOL.
haftmann@20453
  3558
haftmann@20453
  3559
Theorem attributs for selecting and transforming function equations theorems:
haftmann@20453
  3560
haftmann@22845
  3561
    [code fun]:        select a theorem as function equation for a specific constant
haftmann@22845
  3562
    [code fun del]:    deselect a theorem as function equation for a specific constant
haftmann@22845
  3563
    [code inline]:     select an equation theorem for unfolding (inlining) in place
haftmann@22845
  3564
    [code inline del]: deselect an equation theorem for unfolding (inlining) in place
haftmann@20453
  3565
haftmann@22735
  3566
User-defined serializations (target in {SML, OCaml, Haskell}):
haftmann@20453
  3567
haftmann@20453
  3568
    code_const <and-list of constants (term syntax)>
haftmann@20453
  3569
      {(target) <and-list of const target syntax>}+
haftmann@20453
  3570
haftmann@20453
  3571
    code_type <and-list of type constructors>
haftmann@20453
  3572
      {(target) <and-list of type target syntax>}+
haftmann@20453
  3573
haftmann@20453
  3574
    code_instance <and-list of instances>
haftmann@20453
  3575
      {(target)}+
haftmann@20453
  3576
        where instance ::= <type constructor> :: <class>
haftmann@20453
  3577
haftmann@20453
  3578
    code_class <and_list of classes>
haftmann@20453
  3579
      {(target) <and-list of class target syntax>}+
haftmann@20453
  3580
        where class target syntax ::= <class name> {where {<classop> == <target syntax>}+}?
haftmann@20453
  3581
haftmann@25199
  3582
code_instance and code_class only are effective to target Haskell.
haftmann@22735
  3583
wenzelm@25177
  3584
For example usage see src/HOL/ex/Codegenerator.thy and
wenzelm@25177
  3585
src/HOL/ex/Codegenerator_Pretty.thy.  A separate tutorial on code
wenzelm@24800
  3586
generation from Isabelle/HOL theories is available via "isatool doc
wenzelm@24800
  3587
codegen".
haftmann@20188
  3588
wenzelm@25129
  3589
* Code generator: consts in 'consts_code' Isar commands are now
wenzelm@25129
  3590
referred to by usual term syntax (including optional type
wenzelm@25129
  3591
annotations).
wenzelm@25129
  3592
wenzelm@19254
  3593
* Command 'no_translations' removes translation rules from theory
wenzelm@19254
  3594
syntax.
wenzelm@19254
  3595
wenzelm@19625
  3596
* Overloaded definitions are now actually checked for acyclic
wenzelm@19714
  3597
dependencies.  The overloading scheme is slightly more general than
wenzelm@19714
  3598
that of Haskell98, although Isabelle does not demand an exact
wenzelm@19714
  3599
correspondence to type class and instance declarations.
wenzelm@19714
  3600
INCOMPATIBILITY, use ``defs (unchecked overloaded)'' to admit more
wenzelm@19714
  3601
exotic versions of overloading -- at the discretion of the user!
wenzelm@19711
  3602
wenzelm@19711
  3603
Polymorphic constants are represented via type arguments, i.e. the
wenzelm@19711
  3604
instantiation that matches an instance against the most general
wenzelm@19711
  3605
declaration given in the signature.  For example, with the declaration
wenzelm@19711
  3606
c :: 'a => 'a => 'a, an instance c :: nat => nat => nat is represented
wenzelm@19711
  3607
as c(nat).  Overloading is essentially simultaneous structural
wenzelm@19711
  3608
recursion over such type arguments.  Incomplete specification patterns
wenzelm@19714
  3609
impose global constraints on all occurrences, e.g. c('a * 'a) on the
wenzelm@19715
  3610
LHS means that more general c('a * 'b) will be disallowed on any RHS.
wenzelm@19714
  3611
Command 'print_theory' outputs the normalized system of recursive
wenzelm@19714
  3612
equations, see section "definitions".
wenzelm@19625
  3613
wenzelm@24086
  3614
* Configuration options are maintained within the theory or proof
wenzelm@24086
  3615
context (with name and type bool/int/string), providing a very simple
wenzelm@24086
  3616
interface to a poor-man's version of general context data.  Tools may
wenzelm@24110
  3617
declare options in ML (e.g. using Attrib.config_int) and then refer to
wenzelm@24110
  3618
these values using Config.get etc.  Users may change options via an
wenzelm@24110
  3619
associated attribute of the same name.  This form of context
wenzelm@24110
  3620
declaration works particularly well with commands 'declare' or
wenzelm@24110
  3621
'using', for example ``declare [[foo = 42]]''.  Thus it has become
wenzelm@24110
  3622
very easy to avoid global references, which would not observe Isar
wenzelm@24110
  3623
toplevel undo/redo and fail to work with multithreading.
wenzelm@24086
  3624
wenzelm@24172
  3625
Various global ML references of Pure and HOL have been turned into
wenzelm@24172
  3626
configuration options:
wenzelm@24172
  3627
wenzelm@24172
  3628
  Unify.search_bound		unify_search_bound
wenzelm@24172
  3629
  Unify.trace_bound		unify_trace_bound
wenzelm@24172
  3630
  Unify.trace_simp		unify_trace_simp
wenzelm@24172
  3631
  Unify.trace_types		unify_trace_types
wenzelm@24172
  3632
  Simplifier.simp_depth_limit	simp_depth_limit
wenzelm@24172
  3633
  Blast.depth_limit		blast_depth_limit
wenzelm@24172
  3634
  DatatypeProp.dtK		datatype_distinctness_limit
wenzelm@24172
  3635
  fast_arith_neq_limit  	fast_arith_neq_limit
wenzelm@24172
  3636
  fast_arith_split_limit	fast_arith_split_limit
wenzelm@24172
  3637
wenzelm@24086
  3638
* Named collections of theorems may be easily installed as context
wenzelm@24800
  3639
data using the functor NamedThmsFun (see also
wenzelm@24086
  3640
src/Pure/Tools/named_thms.ML).  The user may add or delete facts via
wenzelm@24110
  3641
attributes; there is also a toplevel print command.  This facility is
wenzelm@24110
  3642
just a common case of general context data, which is the preferred way
wenzelm@24110
  3643
for anything more complex than just a list of facts in canonical
wenzelm@24110
  3644
order.
wenzelm@24086
  3645
wenzelm@24032
  3646
* Isar: command 'declaration' augments a local theory by generic
wenzelm@24032
  3647
declaration functions written in ML.  This enables arbitrary content
wenzelm@24032
  3648
being added to the context, depending on a morphism that tells the
wenzelm@24032
  3649
difference of the original declaration context wrt. the application
wenzelm@24032
  3650
context encountered later on.
wenzelm@24032
  3651
wenzelm@24032
  3652
* Isar: proper interfaces for simplification procedures.  Command
wenzelm@24032
  3653
'simproc_setup' declares named simprocs (with match patterns, and body
wenzelm@24032
  3654
text in ML).  Attribute "simproc" adds/deletes simprocs in the current
wenzelm@24032
  3655
context.  ML antiquotation @{simproc name} retrieves named simprocs.
wenzelm@24032
  3656
wenzelm@24032
  3657
* Isar: an extra pair of brackets around attribute declarations
wenzelm@24032
  3658
abbreviates a theorem reference involving an internal dummy fact,
wenzelm@24032
  3659
which will be ignored later --- only the effect of the attribute on
wenzelm@24032
  3660
the background context will persist.  This form of in-place
wenzelm@24032
  3661
declarations is particularly useful with commands like 'declare' and
wenzelm@24032
  3662
'using', for example ``have A using [[simproc a]] by simp''.
wenzelm@24032
  3663
wenzelm@23369
  3664
* Isar: method "assumption" (and implicit closing of subproofs) now
wenzelm@23369
  3665
takes simple non-atomic goal assumptions into account: after applying
wenzelm@23369
  3666
an assumption as a rule the resulting subgoals are solved by atomic
wenzelm@23369
  3667
assumption steps.  This is particularly useful to finish 'obtain'
wenzelm@23369
  3668
goals, such as "!!x. (!!x. P x ==> thesis) ==> P x ==> thesis",
wenzelm@23369
  3669
without referring to the original premise "!!x. P x ==> thesis" in the
wenzelm@23369
  3670
Isar proof context.  POTENTIAL INCOMPATIBILITY: method "assumption" is
wenzelm@23369
  3671
more permissive.
wenzelm@23369
  3672
wenzelm@23369
  3673
* Isar: implicit use of prems from the Isar proof context is
wenzelm@23369
  3674
considered a legacy feature.  Common applications like ``have A .''
wenzelm@23369
  3675
may be replaced by ``have A by fact'' or ``note `A`''.  In general,
wenzelm@23369
  3676
referencing facts explicitly here improves readability and
wenzelm@23369
  3677
maintainability of proof texts.
wenzelm@23369
  3678
wenzelm@17865
  3679
* Isar: improper proof element 'guess' is like 'obtain', but derives
wenzelm@17865
  3680
the obtained context from the course of reasoning!  For example:
wenzelm@17865
  3681
wenzelm@17865
  3682
  assume "EX x y. A x & B y"   -- "any previous fact"
wenzelm@17865
  3683
  then guess x and y by clarify
wenzelm@17865
  3684
wenzelm@17865
  3685
This technique is potentially adventurous, depending on the facts and
wenzelm@17865
  3686
proof tools being involved here.
wenzelm@17865
  3687
wenzelm@18020
  3688
* Isar: known facts from the proof context may be specified as literal
wenzelm@18020
  3689
propositions, using ASCII back-quote syntax.  This works wherever
wenzelm@18020
  3690
named facts used to be allowed so far, in proof commands, proof
wenzelm@18020
  3691
methods, attributes etc.  Literal facts are retrieved from the context
wenzelm@18020
  3692
according to unification of type and term parameters.  For example,
wenzelm@18020
  3693
provided that "A" and "A ==> B" and "!!x. P x ==> Q x" are known
wenzelm@18020
  3694
theorems in the current context, then these are valid literal facts:
wenzelm@18020
  3695
`A` and `A ==> B` and `!!x. P x ==> Q x" as well as `P a ==> Q a` etc.
wenzelm@18020
  3696
wenzelm@18020
  3697
There is also a proof method "fact" which does the same composition
wenzelm@18044
  3698
for explicit goal states, e.g. the following proof texts coincide with
wenzelm@18044
  3699
certain special cases of literal facts:
wenzelm@18020
  3700
wenzelm@18020
  3701
  have "A" by fact                 ==  note `A`
wenzelm@18020
  3702
  have "A ==> B" by fact           ==  note `A ==> B`
wenzelm@18020
  3703
  have "!!x. P x ==> Q x" by fact  ==  note `!!x. P x ==> Q x`
wenzelm@18020
  3704
  have "P a ==> Q a" by fact       ==  note `P a ==> Q a`
wenzelm@18020
  3705
wenzelm@20118
  3706
* Isar: ":" (colon) is no longer a symbolic identifier character in
wenzelm@20118
  3707
outer syntax.  Thus symbolic identifiers may be used without
wenzelm@20118
  3708
additional white space in declarations like this: ``assume *: A''.
wenzelm@20118
  3709
wenzelm@20013
  3710
* Isar: 'print_facts' prints all local facts of the current context,
wenzelm@20013
  3711
both named and unnamed ones.
wenzelm@20013
  3712
wenzelm@18308
  3713
* Isar: 'def' now admits simultaneous definitions, e.g.:
wenzelm@18308
  3714
wenzelm@18308
  3715
  def x == "t" and y == "u"
wenzelm@18308
  3716
wenzelm@18540
  3717
* Isar: added command 'unfolding', which is structurally similar to
wenzelm@18540
  3718
'using', but affects both the goal state and facts by unfolding given
wenzelm@18815
  3719
rewrite rules.  Thus many occurrences of the 'unfold' method or
wenzelm@18540
  3720
'unfolded' attribute may be replaced by first-class proof text.
wenzelm@18540
  3721
wenzelm@18815
  3722
* Isar: methods 'unfold' / 'fold', attributes 'unfolded' / 'folded',
wenzelm@18815
  3723
and command 'unfolding' now all support object-level equalities
wenzelm@18815
  3724
(potentially conditional).  The underlying notion of rewrite rule is
wenzelm@18815
  3725
analogous to the 'rule_format' attribute, but *not* that of the
wenzelm@18815
  3726
Simplifier (which is usually more generous).
wenzelm@18815
  3727
kleing@24238
  3728
* Isar: the new attribute [rotated n] (default n = 1) rotates the
kleing@24238
  3729
premises of a theorem by n. Useful in conjunction with drule.
kleing@24238
  3730
wenzelm@19220
  3731
* Isar: the goal restriction operator [N] (default N = 1) evaluates a
wenzelm@19220
  3732
method expression within a sandbox consisting of the first N
wenzelm@19240
  3733
sub-goals, which need to exist.  For example, ``simp_all [3]''
wenzelm@19240
  3734
simplifies the first three sub-goals, while (rule foo, simp_all)[]
wenzelm@19240
  3735
simplifies all new goals that emerge from applying rule foo to the
wenzelm@19240
  3736
originally first one.
wenzelm@19220
  3737
wenzelm@19814
  3738
* Isar: schematic goals are no longer restricted to higher-order
wenzelm@19814
  3739
patterns; e.g. ``lemma "?P(?x)" by (rule TrueI)'' now works as
wenzelm@19814
  3740
expected.
wenzelm@19814
  3741
wenzelm@18901
  3742
* Isar: the conclusion of a long theorem statement is now either
wenzelm@18901
  3743
'shows' (a simultaneous conjunction, as before), or 'obtains'
wenzelm@18901
  3744
(essentially a disjunction of cases with local parameters and
wenzelm@18901
  3745
assumptions).  The latter allows to express general elimination rules
wenzelm@18910
  3746
adequately; in this notation common elimination rules look like this:
wenzelm@18901
  3747
wenzelm@18901
  3748
  lemma exE:    -- "EX x. P x ==> (!!x. P x ==> thesis) ==> thesis"
wenzelm@18901
  3749
    assumes "EX x. P x"
wenzelm@18901
  3750
    obtains x where "P x"
wenzelm@18901
  3751
wenzelm@18901
  3752
  lemma conjE:  -- "A & B ==> (A ==> B ==> thesis) ==> thesis"
wenzelm@18901
  3753
    assumes "A & B"
wenzelm@18901
  3754
    obtains A and B
wenzelm@18901
  3755
wenzelm@18901
  3756
  lemma disjE:  -- "A | B ==> (A ==> thesis) ==> (B ==> thesis) ==> thesis"
wenzelm@18901
  3757
    assumes "A | B"
wenzelm@18901
  3758
    obtains
wenzelm@18901
  3759
      A
wenzelm@18901
  3760
    | B
wenzelm@18901
  3761
wenzelm@18910
  3762
The subsequent classical rules even refer to the formal "thesis"
wenzelm@18901
  3763
explicitly:
wenzelm@18901
  3764
wenzelm@18901
  3765
  lemma classical:     -- "(~ thesis ==> thesis) ==> thesis"
wenzelm@18901
  3766
    obtains "~ thesis"
wenzelm@18901
  3767
wenzelm@18910
  3768
  lemma Peirce's_Law:  -- "((thesis ==> something) ==> thesis) ==> thesis"
wenzelm@18910
  3769
    obtains "thesis ==> something"
wenzelm@18901
  3770
wenzelm@18901
  3771
The actual proof of an 'obtains' statement is analogous to that of the
wenzelm@18910
  3772
Isar proof element 'obtain', only that there may be several cases.
wenzelm@18910
  3773
Optional case names may be specified in parentheses; these will be
wenzelm@18910
  3774
available both in the present proof and as annotations in the
wenzelm@18910
  3775
resulting rule, for later use with the 'cases' method (cf. attribute
wenzelm@18910
  3776
case_names).
wenzelm@18901
  3777
wenzelm@21447
  3778
* Isar: the assumptions of a long theorem statement are available as
wenzelm@21447
  3779
"assms" fact in the proof context.  This is more appropriate than the
wenzelm@21447
  3780
(historical) "prems", which refers to all assumptions of the current
wenzelm@21447
  3781
context, including those from the target locale, proof body etc.
wenzelm@21447
  3782
wenzelm@19263
  3783
* Isar: 'print_statement' prints theorems from the current theory or
wenzelm@19263
  3784
proof context in long statement form, according to the syntax of a
wenzelm@19263
  3785
top-level lemma.
wenzelm@19263
  3786
wenzelm@18901
  3787
* Isar: 'obtain' takes an optional case name for the local context
wenzelm@18901
  3788
introduction rule (default "that").
wenzelm@18901
  3789
wenzelm@19587
  3790
* Isar: removed obsolete 'concl is' patterns.  INCOMPATIBILITY, use
wenzelm@19587
  3791
explicit (is "_ ==> ?foo") in the rare cases where this still happens
wenzelm@19587
  3792
to occur.
wenzelm@19587
  3793
wenzelm@19682
  3794
* Pure: syntax "CONST name" produces a fully internalized constant
wenzelm@19682
  3795
according to the current context.  This is particularly useful for
wenzelm@19682
  3796
syntax translations that should refer to internal constant
wenzelm@19682
  3797
representations independently of name spaces.
wenzelm@19682
  3798
wenzelm@21537
  3799
* Pure: syntax constant for foo (binder "FOO ") is called "foo_binder"
wenzelm@21537
  3800
instead of "FOO ". This allows multiple binder declarations to coexist
wenzelm@21537
  3801
in the same context.  INCOMPATIBILITY.
wenzelm@21537
  3802
wenzelm@21209
  3803
* Isar/locales: 'notation' provides a robust interface to the 'syntax'
wenzelm@21209
  3804
primitive that also works in a locale context (both for constants and
wenzelm@24950
  3805
fixed variables). Type declaration and internal syntactic representation
wenzelm@24950
  3806
of given constants retrieved from the context. Likewise, the
wenzelm@24950
  3807
'no_notation' command allows to remove given syntax annotations from the
wenzelm@24950
  3808
current context.
wenzelm@19682
  3809
wenzelm@19665
  3810
* Isar/locales: new derived specification elements 'axiomatization',
wenzelm@19665
  3811
'definition', 'abbreviation', which support type-inference, admit
wenzelm@19083
  3812
object-level specifications (equality, equivalence).  See also the
wenzelm@19083
  3813
isar-ref manual.  Examples:
wenzelm@19081
  3814
wenzelm@19665
  3815
  axiomatization
wenzelm@21595
  3816
    eq  (infix "===" 50) where
wenzelm@21595
  3817
    eq_refl: "x === x" and eq_subst: "x === y ==> P x ==> P y"
wenzelm@21595
  3818
wenzelm@21595
  3819
  definition "f x y = x + y + 1"
wenzelm@21595
  3820
  definition g where "g x = f x x"
wenzelm@19081
  3821
wenzelm@19363
  3822
  abbreviation
wenzelm@21595
  3823
    neq  (infix "=!=" 50) where
wenzelm@19363
  3824
    "x =!= y == ~ (x === y)"
wenzelm@19081
  3825
wenzelm@19083
  3826
These specifications may be also used in a locale context.  Then the
wenzelm@19083
  3827
constants being introduced depend on certain fixed parameters, and the
wenzelm@19083
  3828
constant name is qualified by the locale base name.  An internal
wenzelm@19083
  3829
abbreviation takes care for convenient input and output, making the
wenzelm@19088
  3830
parameters implicit and using the original short name.  See also
wenzelm@25177
  3831
src/HOL/ex/Abstract_NAT.thy for an example of deriving polymorphic
wenzelm@19083
  3832
entities from a monomorphic theory.
wenzelm@19083
  3833
wenzelm@19083
  3834
Presently, abbreviations are only available 'in' a target locale, but
wenzelm@19363
  3835
not inherited by general import expressions.  Also note that
wenzelm@19363
  3836
'abbreviation' may be used as a type-safe replacement for 'syntax' +
wenzelm@24735
  3837
'translations' in common applications.  The "no_abbrevs" print mode
wenzelm@24735
  3838
prevents folding of abbreviations in term output.
wenzelm@19084
  3839
wenzelm@19682
  3840
Concrete syntax is attached to specified constants in internal form,
wenzelm@19682
  3841
independently of name spaces.  The parse tree representation is
wenzelm@21209
  3842
slightly different -- use 'notation' instead of raw 'syntax', and
wenzelm@19682
  3843
'translations' with explicit "CONST" markup to accommodate this.
wenzelm@19665
  3844
wenzelm@24800
  3845
* Pure/Isar: unified syntax for new-style specification mechanisms
wenzelm@24800
  3846
(e.g.  'definition', 'abbreviation', or 'inductive' in HOL) admits
wenzelm@24800
  3847
full type inference and dummy patterns ("_").  For example:
wenzelm@24735
  3848
wenzelm@24735
  3849
  definition "K x _ = x"
wenzelm@24735
  3850
wenzelm@24738
  3851
  inductive conj for A B
wenzelm@24738
  3852
  where "A ==> B ==> conj A B"
wenzelm@24738
  3853
wenzelm@21735
  3854
* Pure: command 'print_abbrevs' prints all constant abbreviations of
wenzelm@21735
  3855
the current context.  Print mode "no_abbrevs" prevents inversion of
wenzelm@21735
  3856
abbreviations on output.
wenzelm@21735
  3857
wenzelm@24800
  3858
* Isar/locales: improved parameter handling: use of locales "var" and
wenzelm@24800
  3859
"struct" no longer necessary; - parameter renamings are no longer
wenzelm@24800
  3860
required to be injective.  For example, this allows to define
wenzelm@24800
  3861
endomorphisms as locale endom = homom mult mult h.
ballarin@19783
  3862
ballarin@19931
  3863
* Isar/locales: changed the way locales with predicates are defined.
ballarin@19931
  3864
Instead of accumulating the specification, the imported expression is
wenzelm@22126
  3865
now an interpretation.  INCOMPATIBILITY: different normal form of
wenzelm@22126
  3866
locale expressions.  In particular, in interpretations of locales with
wenzelm@22126
  3867
predicates, goals repesenting already interpreted fragments are not
wenzelm@22126
  3868
removed automatically.  Use methods `intro_locales' and
wenzelm@22126
  3869
`unfold_locales'; see below.
wenzelm@22126
  3870
wenzelm@22126
  3871
* Isar/locales: new methods `intro_locales' and `unfold_locales'
wenzelm@22126
  3872
provide backward reasoning on locales predicates.  The methods are
wenzelm@22126
  3873
aware of interpretations and discharge corresponding goals.
wenzelm@22126
  3874
`intro_locales' is less aggressive then `unfold_locales' and does not
wenzelm@22126
  3875
unfold predicates to assumptions.
ballarin@19931
  3876
ballarin@19931
  3877
* Isar/locales: the order in which locale fragments are accumulated
wenzelm@22126
  3878
has changed.  This enables to override declarations from fragments due
wenzelm@22126
  3879
to interpretations -- for example, unwanted simp rules.
ballarin@19931
  3880
ballarin@23920
  3881
* Isar/locales: interpretation in theories and proof contexts has been
ballarin@23920
  3882
extended.  One may now specify (and prove) equations, which are
ballarin@23920
  3883
unfolded in interpreted theorems.  This is useful for replacing
ballarin@23920
  3884
defined concepts (constants depending on locale parameters) by
ballarin@23920
  3885
concepts already existing in the target context.  Example:
ballarin@23920
  3886
ballarin@23920
  3887
  interpretation partial_order ["op <= :: [int, int] => bool"]
ballarin@23920
  3888
    where "partial_order.less (op <=) (x::int) y = (x < y)"
ballarin@23920
  3889
wenzelm@24800
  3890
Typically, the constant `partial_order.less' is created by a
wenzelm@24800
  3891
definition specification element in the context of locale
wenzelm@24800
  3892
partial_order.
wenzelm@24800
  3893
wenzelm@24859
  3894
* Method "induct": improved internal context management to support
wenzelm@24800
  3895
local fixes and defines on-the-fly. Thus explicit meta-level
wenzelm@24800
  3896
connectives !!  and ==> are rarely required anymore in inductive goals
wenzelm@24800
  3897
(using object-logic connectives for this purpose has been long
wenzelm@24800
  3898
obsolete anyway). Common proof patterns are explained in
wenzelm@25177
  3899
src/HOL/Induct/Common_Patterns.thy, see also
wenzelm@25177
  3900
src/HOL/Isar_examples/Puzzle.thy and src/HOL/Lambda for realistic
wenzelm@25177
  3901
examples.
wenzelm@24606
  3902
wenzelm@24859
  3903
* Method "induct": improved handling of simultaneous goals. Instead of
wenzelm@24606
  3904
introducing object-level conjunction, the statement is now split into
wenzelm@24606
  3905
several conclusions, while the corresponding symbolic cases are nested
wenzelm@24606
  3906
accordingly. INCOMPATIBILITY, proofs need to be structured explicitly,
wenzelm@25177
  3907
see src/HOL/Induct/Common_Patterns.thy, for example.
wenzelm@24606
  3908
wenzelm@24859
  3909
* Method "induct": mutual induction rules are now specified as a list
wenzelm@24800
  3910
of rule sharing the same induction cases. HOL packages usually provide
wenzelm@24606
  3911
foo_bar.inducts for mutually defined items foo and bar (e.g. inductive
wenzelm@24859
  3912
predicates/sets or datatypes). INCOMPATIBILITY, users need to specify
wenzelm@24859
  3913
mutual induction rules differently, i.e. like this:
wenzelm@18506
  3914
wenzelm@18506
  3915
  (induct rule: foo_bar.inducts)
wenzelm@18506
  3916
  (induct set: foo bar)
wenzelm@24859
  3917
  (induct pred: foo bar)
wenzelm@18506
  3918
  (induct type: foo bar)
wenzelm@18506
  3919
wenzelm@18506
  3920
The ML function ProjectRule.projections turns old-style rules into the
wenzelm@18506
  3921
new format.
wenzelm@18506
  3922
wenzelm@24859
  3923
* Method "coinduct": dual of induction, see
wenzelm@18399
  3924
src/HOL/Library/Coinductive_List.thy for various examples.
wenzelm@18399
  3925
wenzelm@24859
  3926
* Method "cases", "induct", "coinduct": the ``(open)'' option is
wenzelm@24859
  3927
considered a legacy feature.
wenzelm@24859
  3928
wenzelm@20919
  3929
* Attribute "symmetric" produces result with standardized schematic
wenzelm@20919
  3930
variables (index 0).  Potential INCOMPATIBILITY.
wenzelm@20919
  3931
wenzelm@22126
  3932
* Simplifier: by default the simplifier trace only shows top level
wenzelm@22126
  3933
rewrites now. That is, trace_simp_depth_limit is set to 1 by
wenzelm@22126
  3934
default. Thus there is less danger of being flooded by the trace. The
wenzelm@22126
  3935
trace indicates where parts have been suppressed.
nipkow@18674
  3936
  
wenzelm@18536
  3937
* Provers/classical: removed obsolete classical version of elim_format
wenzelm@18536
  3938
attribute; classical elim/dest rules are now treated uniformly when
wenzelm@18536
  3939
manipulating the claset.
wenzelm@18536
  3940
wenzelm@18694
  3941
* Provers/classical: stricter checks to ensure that supplied intro,
wenzelm@18694
  3942
dest and elim rules are well-formed; dest and elim rules must have at
wenzelm@18694
  3943
least one premise.
wenzelm@18694
  3944
wenzelm@18694
  3945
* Provers/classical: attributes dest/elim/intro take an optional
wenzelm@18695
  3946
weight argument for the rule (just as the Pure versions).  Weights are
wenzelm@18696
  3947
ignored by automated tools, but determine the search order of single
wenzelm@18694
  3948
rule steps.
paulson@18557
  3949
wenzelm@18536
  3950
* Syntax: input syntax now supports dummy variable binding "%_. b",
wenzelm@18536
  3951
where the body does not mention the bound variable.  Note that dummy
wenzelm@18536
  3952
patterns implicitly depend on their context of bounds, which makes
wenzelm@18536
  3953
"{_. _}" match any set comprehension as expected.  Potential
wenzelm@18536
  3954
INCOMPATIBILITY -- parse translations need to cope with syntactic
wenzelm@18536
  3955
constant "_idtdummy" in the binding position.
wenzelm@18536
  3956
wenzelm@18536
  3957
* Syntax: removed obsolete syntactic constant "_K" and its associated
wenzelm@18536
  3958
parse translation.  INCOMPATIBILITY -- use dummy abstraction instead,
wenzelm@18536
  3959
for example "A -> B" => "Pi A (%_. B)".
wenzelm@17779
  3960
wenzelm@20582
  3961
* Pure: 'class_deps' command visualizes the subclass relation, using
wenzelm@20582
  3962
the graph browser tool.
wenzelm@20582
  3963
wenzelm@24800
  3964
* Pure: 'print_theory' now suppresses certain internal declarations by
wenzelm@24800
  3965
default; use '!' option for full details.
wenzelm@20620
  3966
wenzelm@17865
  3967
nipkow@17806
  3968
*** HOL ***
nipkow@17806
  3969
wenzelm@25129
  3970
* Method "metis" proves goals by applying the Metis general-purpose
wenzelm@25129
  3971
resolution prover (see also http://gilith.com/software/metis/).
wenzelm@25129
  3972
Examples are in the directory MetisExamples.  WARNING: the
wenzelm@25129
  3973
Isabelle/HOL-Metis integration does not yet work properly with
wenzelm@25129
  3974
multi-threading.
wenzelm@25129
  3975
  
wenzelm@25129
  3976
* Command 'sledgehammer' invokes external automatic theorem provers as
wenzelm@25129
  3977
background processes.  It generates calls to the "metis" method if
wenzelm@25129
  3978
successful. These can be pasted into the proof.  Users do not have to
wenzelm@25129
  3979
wait for the automatic provers to return.  WARNING: does not really
wenzelm@25129
  3980
work with multi-threading.
wenzelm@25129
  3981
wenzelm@24804
  3982
* New "auto_quickcheck" feature tests outermost goal statements for
wenzelm@24804
  3983
potential counter-examples.  Controlled by ML references
wenzelm@24804
  3984
auto_quickcheck (default true) and auto_quickcheck_time_limit (default
wenzelm@25129
  3985
5000 milliseconds).  Fails silently if statements is outside of
wenzelm@25129
  3986
executable fragment, or any other codgenerator problem occurs.
wenzelm@24804
  3987
haftmann@25184
  3988
* New constant "undefined" with axiom "undefined x = undefined".
haftmann@25184
  3989
haftmann@25184
  3990
* Added class "HOL.eq", allowing for code generation with polymorphic
haftmann@25184
  3991
equality.
wenzelm@24800
  3992
wenzelm@24800
  3993
* Some renaming of class constants due to canonical name prefixing in
wenzelm@24800
  3994
the new 'class' package:
haftmann@22997
  3995
haftmann@25184
  3996
    HOL.abs ~> HOL.abs_class.abs
haftmann@22997
  3997
    HOL.divide ~> HOL.divide_class.divide
haftmann@25184
  3998
    0 ~> HOL.zero_class.zero
haftmann@25184
  3999
    1 ~> HOL.one_class.one
haftmann@25184
  4000
    op + ~> HOL.plus_class.plus
haftmann@25184
  4001
    op - ~> HOL.minus_class.minus
haftmann@25184
  4002
    uminus ~> HOL.minus_class.uminus
haftmann@25184
  4003
    op * ~> HOL.times_class.times
haftmann@25184
  4004
    op < ~> HOL.ord_class.less
haftmann@25184
  4005
    op <= > HOL.ord_class.less_eq
haftmann@24996
  4006
    Nat.power ~> Power.power_class.power
haftmann@22997
  4007
    Nat.size ~> Nat.size_class.size
haftmann@22997
  4008
    Numeral.number_of ~> Numeral.number_class.number_of
haftmann@24996
  4009
    FixedPoint.Inf ~> Lattices.complete_lattice_class.Inf
haftmann@24996
  4010
    FixedPoint.Sup ~> Lattices.complete_lattice_class.Sup
haftmann@23129
  4011
    Orderings.min ~> Orderings.ord_class.min
haftmann@23129
  4012
    Orderings.max ~> Orderings.ord_class.max
haftmann@25184
  4013
    Divides.op div ~> Divides.div_class.div
haftmann@25184
  4014
    Divides.op mod ~> Divides.div_class.mod
haftmann@25184
  4015
    Divides.op dvd ~> Divides.div_class.dvd
haftmann@25184
  4016
haftmann@25184
  4017
INCOMPATIBILITY.  Adaptions may be required in the following cases:
haftmann@25184
  4018
haftmann@25184
  4019
a) User-defined constants using any of the names "plus", "minus",
haftmann@25184
  4020
"times", "less" or "less_eq". The standard syntax translations for
haftmann@25184
  4021
"+", "-" and "*" may go wrong.  INCOMPATIBILITY: use more specific
haftmann@25184
  4022
names.
haftmann@25184
  4023
haftmann@25184
  4024
b) Variables named "plus", "minus", "times", "less", "less_eq"
haftmann@25184
  4025
INCOMPATIBILITY: use more specific names.
haftmann@25184
  4026
haftmann@25184
  4027
c) Permutative equations (e.g. "a + b = b + a")
haftmann@25184
  4028
Since the change of names also changes the order of terms, permutative
haftmann@25184
  4029
rewrite rules may get applied in a different order. Experience shows
haftmann@25184
  4030
that this is rarely the case (only two adaptions in the whole Isabelle
haftmann@25184
  4031
distribution).  INCOMPATIBILITY: rewrite proofs
haftmann@25184
  4032
haftmann@25184
  4033
d) ML code directly refering to constant names
haftmann@25184
  4034
This in general only affects hand-written proof tactics, simprocs and
haftmann@25184
  4035
so on.  INCOMPATIBILITY: grep your sourcecode and replace names.
haftmann@25184
  4036
Consider using @{const_name} antiquotation.
haftmann@24996
  4037
wenzelm@24800
  4038
* New class "default" with associated constant "default".
wenzelm@24800
  4039
wenzelm@24800
  4040
* Function "sgn" is now overloaded and available on int, real, complex
wenzelm@24800
  4041
(and other numeric types), using class "sgn".  Two possible defs of
wenzelm@24800
  4042
sgn are given as equational assumptions in the classes sgn_if and
wenzelm@24800
  4043
sgn_div_norm; ordered_idom now also inherits from sgn_if.
wenzelm@24800
  4044
INCOMPATIBILITY.
wenzelm@24800
  4045
haftmann@25184
  4046
* Locale "partial_order" now unified with class "order" (cf. theory
haftmann@25184
  4047
Orderings), added parameter "less".  INCOMPATIBILITY.
haftmann@25184
  4048
haftmann@25184
  4049
* Renamings in classes "order" and "linorder": facts "refl", "trans" and
haftmann@25184
  4050
"cases" to "order_refl", "order_trans" and "linorder_cases", to avoid
haftmann@25184
  4051
clashes with HOL "refl" and "trans".  INCOMPATIBILITY.
haftmann@25184
  4052
haftmann@25184
  4053
* Classes "order" and "linorder": potential INCOMPATIBILITY due to
haftmann@25184
  4054
changed order of proof goals in instance proofs.
haftmann@25184
  4055
haftmann@25184
  4056
* The transitivity reasoner for partial and linear orders is set up
haftmann@25184
  4057
for classes "order" and "linorder".  Instances of the reasoner are available
haftmann@25184
  4058
in all contexts importing or interpreting the corresponding locales.
haftmann@25184
  4059
Method "order" invokes the reasoner separately; the reasoner
haftmann@25184
  4060
is also integrated with the Simplifier as a solver.  Diagnostic
haftmann@25184
  4061
command 'print_orders' shows the available instances of the reasoner
haftmann@25184
  4062
in the current context.
haftmann@25184
  4063
haftmann@25184
  4064
* Localized monotonicity predicate in theory "Orderings"; integrated
haftmann@25184
  4065
lemmas max_of_mono and min_of_mono with this predicate.
haftmann@25184
  4066
INCOMPATIBILITY.
haftmann@25184
  4067
haftmann@25184
  4068
* Formulation of theorem "dense" changed slightly due to integration
haftmann@25184
  4069
with new class dense_linear_order.
haftmann@25184
  4070
haftmann@25184
  4071
* Uniform lattice theory development in HOL.
haftmann@22422
  4072
haftmann@22422
  4073
    constants "meet" and "join" now named "inf" and "sup"
haftmann@22422
  4074
    constant "Meet" now named "Inf"
haftmann@22422
  4075
haftmann@22450
  4076
    classes "meet_semilorder" and "join_semilorder" now named
haftmann@22450
  4077
      "lower_semilattice" and "upper_semilattice"
haftmann@22450
  4078
    class "lorder" now named "lattice"
haftmann@22450
  4079
    class "comp_lat" now named "complete_lattice"
haftmann@22450
  4080
haftmann@22450
  4081
    Instantiation of lattice classes allows explicit definitions
haftmann@24342
  4082
    for "inf" and "sup" operations (or "Inf" and "Sup" for complete lattices).
haftmann@22450
  4083
haftmann@23129
  4084
  INCOMPATIBILITY.  Theorem renames:
haftmann@22450
  4085
haftmann@22422
  4086
    meet_left_le            ~> inf_le1
haftmann@22422
  4087
    meet_right_le           ~> inf_le2
haftmann@22422
  4088
    join_left_le            ~> sup_ge1
haftmann@22422
  4089
    join_right_le           ~> sup_ge2
haftmann@22422
  4090
    meet_join_le            ~> inf_sup_ord
haftmann@22422
  4091
    le_meetI                ~> le_infI
haftmann@22422
  4092
    join_leI                ~> le_supI
haftmann@22422
  4093
    le_meet                 ~> le_inf_iff
haftmann@22422
  4094
    le_join                 ~> ge_sup_conv
haftmann@22422
  4095
    meet_idempotent         ~> inf_idem
haftmann@22422
  4096
    join_idempotent         ~> sup_idem
haftmann@22422
  4097
    meet_comm               ~> inf_commute
haftmann@22422
  4098
    join_comm               ~> sup_commute
haftmann@22422
  4099
    meet_leI1               ~> le_infI1
haftmann@22422
  4100
    meet_leI2               ~> le_infI2
haftmann@22422
  4101
    le_joinI1               ~> le_supI1
haftmann@22422
  4102
    le_joinI2               ~> le_supI2
haftmann@22422
  4103
    meet_assoc              ~> inf_assoc
haftmann@22422
  4104
    join_assoc              ~> sup_assoc
haftmann@22422
  4105
    meet_left_comm          ~> inf_left_commute
haftmann@22422
  4106
    meet_left_idempotent    ~> inf_left_idem
haftmann@22422
  4107
    join_left_comm          ~> sup_left_commute
haftmann@22422
  4108
    join_left_idempotent    ~> sup_left_idem
haftmann@22422
  4109
    meet_aci                ~> inf_aci
haftmann@22422
  4110
    join_aci                ~> sup_aci
haftmann@22422
  4111
    le_def_meet             ~> le_iff_inf
haftmann@22422
  4112
    le_def_join             ~> le_iff_sup
haftmann@22422
  4113
    join_absorp2            ~> sup_absorb2
haftmann@22422
  4114
    join_absorp1            ~> sup_absorb1
haftmann@22422
  4115
    meet_absorp1            ~> inf_absorb1
haftmann@22422
  4116
    meet_absorp2            ~> inf_absorb2
haftmann@22422
  4117
    meet_join_absorp        ~> inf_sup_absorb
haftmann@22422
  4118
    join_meet_absorp        ~> sup_inf_absorb
haftmann@22422
  4119
    distrib_join_le         ~> distrib_sup_le
haftmann@22422
  4120
    distrib_meet_le         ~> distrib_inf_le
haftmann@22422
  4121
haftmann@22422
  4122
    add_meet_distrib_left   ~> add_inf_distrib_left
haftmann@22422
  4123
    add_join_distrib_left   ~> add_sup_distrib_left
haftmann@22422
  4124
    is_join_neg_meet        ~> is_join_neg_inf
haftmann@22422
  4125
    is_meet_neg_join        ~> is_meet_neg_sup
haftmann@22422
  4126
    add_meet_distrib_right  ~> add_inf_distrib_right
haftmann@22422
  4127
    add_join_distrib_right  ~> add_sup_distrib_right
haftmann@22422
  4128
    add_meet_join_distribs  ~> add_sup_inf_distribs
haftmann@22422
  4129
    join_eq_neg_meet        ~> sup_eq_neg_inf
haftmann@22422
  4130
    meet_eq_neg_join        ~> inf_eq_neg_sup
haftmann@22422
  4131
    add_eq_meet_join        ~> add_eq_inf_sup
haftmann@22422
  4132
    meet_0_imp_0            ~> inf_0_imp_0
haftmann@22422
  4133
    join_0_imp_0            ~> sup_0_imp_0
haftmann@22422
  4134
    meet_0_eq_0             ~> inf_0_eq_0
haftmann@22422
  4135
    join_0_eq_0             ~> sup_0_eq_0
haftmann@22422
  4136
    neg_meet_eq_join        ~> neg_inf_eq_sup
haftmann@22422
  4137
    neg_join_eq_meet        ~> neg_sup_eq_inf
haftmann@22422
  4138
    join_eq_if              ~> sup_eq_if
haftmann@22422
  4139
haftmann@22422
  4140
    mono_meet               ~> mono_inf
haftmann@22422
  4141
    mono_join               ~> mono_sup
haftmann@22422
  4142
    meet_bool_eq            ~> inf_bool_eq
haftmann@22422
  4143
    join_bool_eq            ~> sup_bool_eq
haftmann@22422
  4144
    meet_fun_eq             ~> inf_fun_eq
haftmann@22422
  4145
    join_fun_eq             ~> sup_fun_eq
haftmann@22422
  4146
    meet_set_eq             ~> inf_set_eq
haftmann@22422
  4147
    join_set_eq             ~> sup_set_eq
haftmann@22422
  4148
    meet1_iff               ~> inf1_iff
haftmann@22422
  4149
    meet2_iff               ~> inf2_iff
haftmann@22422
  4150
    meet1I                  ~> inf1I
haftmann@22422
  4151
    meet2I                  ~> inf2I
haftmann@22422
  4152
    meet1D1                 ~> inf1D1
haftmann@22422
  4153
    meet2D1                 ~> inf2D1
haftmann@22422
  4154
    meet1D2                 ~> inf1D2
haftmann@22422
  4155
    meet2D2                 ~> inf2D2
haftmann@22422
  4156
    meet1E                  ~> inf1E
haftmann@22422
  4157
    meet2E                  ~> inf2E
haftmann@22422
  4158
    join1_iff               ~> sup1_iff
haftmann@22422
  4159
    join2_iff               ~> sup2_iff
haftmann@22422
  4160
    join1I1                 ~> sup1I1
haftmann@22422
  4161
    join2I1                 ~> sup2I1
haftmann@22422
  4162
    join1I1                 ~> sup1I1
haftmann@22422
  4163
    join2I2                 ~> sup1I2
haftmann@22422
  4164
    join1CI                 ~> sup1CI
haftmann@22422
  4165
    join2CI                 ~> sup2CI
haftmann@22422
  4166
    join1E                  ~> sup1E
haftmann@22422
  4167
    join2E                  ~> sup2E
haftmann@22422
  4168
haftmann@22422
  4169
    is_meet_Meet            ~> is_meet_Inf
haftmann@22422
  4170
    Meet_bool_def           ~> Inf_bool_def
haftmann@22422
  4171
    Meet_fun_def            ~> Inf_fun_def
haftmann@22422
  4172
    Meet_greatest           ~> Inf_greatest
haftmann@22422
  4173
    Meet_lower              ~> Inf_lower
haftmann@22422
  4174
    Meet_set_def            ~> Inf_set_def
haftmann@22422
  4175
haftmann@24342
  4176
    Sup_def                 ~> Sup_Inf
haftmann@24342
  4177
    Sup_bool_eq             ~> Sup_bool_def
haftmann@24342
  4178
    Sup_fun_eq              ~> Sup_fun_def
haftmann@24342
  4179
    Sup_set_eq              ~> Sup_set_def
haftmann@24342
  4180
haftmann@22422
  4181
    listsp_meetI            ~> listsp_infI
haftmann@22422
  4182
    listsp_meet_eq          ~> listsp_inf_eq
haftmann@22422
  4183
haftmann@22450
  4184
    meet_min                ~> inf_min
haftmann@22450
  4185
    join_max                ~> sup_max
haftmann@22450
  4186
haftmann@25184
  4187
* Added syntactic class "size"; overloaded constant "size" now has
haftmann@25184
  4188
type "'a::size ==> bool"
haftmann@25184
  4189
haftmann@25184
  4190
* Internal reorganisation of `size' of datatypes: size theorems
haftmann@25184
  4191
"foo.size" are no longer subsumed by "foo.simps" (but are still
haftmann@25184
  4192
simplification rules by default!); theorems "prod.size" now named
haftmann@25184
  4193
"*.size".
haftmann@25184
  4194
haftmann@25184
  4195
* Class "div" now inherits from class "times" rather than "type".
haftmann@25184
  4196
INCOMPATIBILITY.
haftmann@25184
  4197
haftmann@25184
  4198
* HOL/Finite_Set: "name-space" locales Lattice, Distrib_lattice,
haftmann@25184
  4199
Linorder etc.  have disappeared; operations defined in terms of
haftmann@25184
  4200
fold_set now are named Inf_fin, Sup_fin.  INCOMPATIBILITY.
haftmann@25184
  4201
haftmann@25184
  4202
* HOL/Nat: neq0_conv no longer declared as iff.  INCOMPATIBILITY.
haftmann@25184
  4203
haftmann@25184
  4204
* HOL-Word: New extensive library and type for generic, fixed size
haftmann@25184
  4205
machine words, with arithemtic, bit-wise, shifting and rotating
haftmann@25184
  4206
operations, reflection into int, nat, and bool lists, automation for
haftmann@25184
  4207
linear arithmetic (by automatic reflection into nat or int), including
haftmann@25184
  4208
lemmas on overflow and monotonicity.  Instantiated to all appropriate
haftmann@25184
  4209
arithmetic type classes, supporting automatic simplification of
haftmann@25184
  4210
numerals on all operations.
haftmann@25184
  4211
haftmann@25184
  4212
* Library/Boolean_Algebra: locales for abstract boolean algebras.
haftmann@25184
  4213
haftmann@25184
  4214
* Library/Numeral_Type: numbers as types, e.g. TYPE(32).
haftmann@25184
  4215
haftmann@25184
  4216
* Code generator library theories:
haftmann@25184
  4217
  - Code_Integer represents HOL integers by big integer literals in target
haftmann@25184
  4218
    languages.
haftmann@25184
  4219
  - Code_Char represents HOL characters by character literals in target
haftmann@25184
  4220
    languages.
haftmann@25184
  4221
  - Code_Char_chr like Code_Char, but also offers treatment of character
haftmann@25184
  4222
    codes; includes Code_Integer.
haftmann@25184
  4223
  - Executable_Set allows to generate code for finite sets using lists.
haftmann@25184
  4224
  - Executable_Rat implements rational numbers as triples (sign, enumerator,
haftmann@25184
  4225
    denominator).
haftmann@25184
  4226
  - Executable_Real implements a subset of real numbers, namly those
haftmann@25184
  4227
    representable by rational numbers.
haftmann@25184
  4228
  - Efficient_Nat implements natural numbers by integers, which in general will
haftmann@25184
  4229
    result in higher efficency; pattern matching with 0/Suc is eliminated;
haftmann@25184
  4230
    includes Code_Integer.
haftmann@25184
  4231
  - Code_Index provides an additional datatype index which is mapped to
haftmann@25184
  4232
    target-language built-in integers.
haftmann@26355
  4233
  - Code_Message provides an additional datatype message_string which is isomorphic to
haftmann@25184
  4234
    strings; messages are mapped to target-language strings.
haftmann@25184
  4235
haftmann@25184
  4236
* New package for inductive predicates
haftmann@25184
  4237
haftmann@25184
  4238
  An n-ary predicate p with m parameters z_1, ..., z_m can now be defined via
haftmann@25184
  4239
haftmann@25184
  4240
    inductive
haftmann@25184
  4241
      p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  4242
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  4243
    where
haftmann@25184
  4244
      rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
haftmann@25184
  4245
    | ...
haftmann@25184
  4246
haftmann@25184
  4247
  with full support for type-inference, rather than
haftmann@25184
  4248
haftmann@25184
  4249
    consts s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  4250
haftmann@25184
  4251
    abbreviation p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  4252
    where "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
haftmann@25184
  4253
haftmann@25184
  4254
    inductive "s z_1 ... z_m"
haftmann@25184
  4255
    intros
haftmann@25184
  4256
      rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
haftmann@25184
  4257
      ...
haftmann@25184
  4258
haftmann@25184
  4259
  For backward compatibility, there is a wrapper allowing inductive
haftmann@25184
  4260
  sets to be defined with the new package via
haftmann@25184
  4261
haftmann@25184
  4262
    inductive_set
haftmann@25184
  4263
      s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  4264
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  4265
    where
haftmann@25184
  4266
      rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
haftmann@25184
  4267
    | ...
haftmann@25184
  4268
haftmann@25184
  4269
  or
haftmann@25184
  4270
haftmann@25184
  4271
    inductive_set
haftmann@25184
  4272
      s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
haftmann@25184
  4273
      and p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
haftmann@25184
  4274
      for z_1 :: U_1 and ... and z_n :: U_m
haftmann@25184
  4275
    where
haftmann@25184
  4276
      "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
haftmann@25184
  4277
    | rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
haftmann@25184
  4278
    | ...
haftmann@25184
  4279
haftmann@25184
  4280
  if the additional syntax "p ..." is required.
haftmann@25184
  4281
haftmann@25184
  4282
  Numerous examples can be found in the subdirectories src/HOL/Auth,
haftmann@25184
  4283
  src/HOL/Bali, src/HOL/Induct, and src/HOL/MicroJava.
haftmann@25184
  4284
haftmann@25184
  4285
  INCOMPATIBILITIES:
haftmann@25184
  4286
haftmann@25184
  4287
  - Since declaration and definition of inductive sets or predicates
haftmann@25184
  4288
    is no longer separated, abbreviations involving the newly
haftmann@25184
  4289
    introduced sets or predicates must be specified together with the
haftmann@25184
  4290
    introduction rules after the 'where' keyword (see above), rather
haftmann@25184
  4291
    than before the actual inductive definition.
haftmann@25184
  4292
haftmann@25184
  4293
  - The variables in induction and elimination rules are now
haftmann@25184
  4294
    quantified in the order of their occurrence in the introduction
haftmann@25184
  4295
    rules, rather than in alphabetical order. Since this may break
haftmann@25184
  4296
    some proofs, these proofs either have to be repaired, e.g. by
haftmann@25184
  4297
    reordering the variables a_i_1 ... a_i_{k_i} in Isar 'case'
haftmann@25184
  4298
    statements of the form
haftmann@25184
  4299
haftmann@25184
  4300
      case (rule_i a_i_1 ... a_i_{k_i})
haftmann@25184
  4301
haftmann@25184
  4302
    or the old order of quantification has to be restored by explicitly adding
haftmann@25184
  4303
    meta-level quantifiers in the introduction rules, i.e.
haftmann@25184
  4304
haftmann@25184
  4305
      | rule_i: "!!a_i_1 ... a_i_{k_i}. ... ==> p z_1 ... z_m t_i_1 ... t_i_n"
haftmann@25184
  4306
haftmann@25184
  4307
  - The format of the elimination rules is now
haftmann@25184
  4308
haftmann@25184
  4309
      p z_1 ... z_m x_1 ... x_n ==>
haftmann@25184
  4310
        (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
haftmann@25184
  4311
        ==> ... ==> P
haftmann@25184
  4312
haftmann@25184
  4313
    for predicates and
haftmann@25184
  4314
haftmann@25184
  4315
      (x_1, ..., x_n) : s z_1 ... z_m ==>
haftmann@25184
  4316
        (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
haftmann@25184
  4317
        ==> ... ==> P
haftmann@25184
  4318
haftmann@25184
  4319
    for sets rather than
haftmann@25184
  4320
haftmann@25184
  4321
      x : s z_1 ... z_m ==>
haftmann@25184
  4322
        (!!a_1_1 ... a_1_{k_1}. x = (t_1_1, ..., t_1_n) ==> ... ==> P)
haftmann@25184
  4323
        ==> ... ==> P
haftmann@25184
  4324
haftmann@25184
  4325
    This may require terms in goals to be expanded to n-tuples
haftmann@25184
  4326
    (e.g. using case_tac or simplification with the split_paired_all
haftmann@25184
  4327
    rule) before the above elimination rule is applicable.
haftmann@25184
  4328
haftmann@25184
  4329
  - The elimination or case analysis rules for (mutually) inductive
haftmann@25184
  4330
    sets or predicates are now called "p_1.cases" ... "p_k.cases". The
haftmann@25184
  4331
    list of rules "p_1_..._p_k.elims" is no longer available.
haftmann@25184
  4332
krauss@25198
  4333
* New package "function"/"fun" for general recursive functions,
krauss@25198
  4334
supporting mutual and nested recursion, definitions in local contexts,
krauss@25198
  4335
more general pattern matching and partiality. See HOL/ex/Fundefs.thy
krauss@25198
  4336
for small examples, and the separate tutorial on the function
krauss@25198
  4337
package. The old recdef "package" is still available as before, but
krauss@25198
  4338
users are encouraged to use the new package.
krauss@25198
  4339
krauss@25198
  4340
* Method "lexicographic_order" automatically synthesizes termination
krauss@25198
  4341
relations as lexicographic combinations of size measures. 
krauss@25198
  4342
haftmann@25184
  4343
* Case-expressions allow arbitrary constructor-patterns (including
haftmann@25184
  4344
"_") and take their order into account, like in functional
haftmann@25184
  4345
programming.  Internally, this is translated into nested
haftmann@25184
  4346
case-expressions; missing cases are added and mapped to the predefined
haftmann@25184
  4347
constant "undefined". In complicated cases printing may no longer show
haftmann@25184
  4348
the original input but the internal form. Lambda-abstractions allow
haftmann@25184
  4349
the same form of pattern matching: "% pat1 => e1 | ..." is an
haftmann@25184
  4350
abbreviation for "%x. case x of pat1 => e1 | ..." where x is a new
haftmann@25184
  4351
variable.
haftmann@25184
  4352
haftmann@25184
  4353
* IntDef: The constant "int :: nat => int" has been removed; now "int"
haftmann@25184
  4354
is an abbreviation for "of_nat :: nat => int". The simplification
haftmann@25184
  4355
rules for "of_nat" have been changed to work like "int" did
haftmann@25184
  4356
previously.  Potential INCOMPATIBILITY:
haftmann@25184
  4357
  - "of_nat (Suc m)" simplifies to "1 + of_nat m" instead of "of_nat m + 1"
haftmann@25184
  4358
  - of_nat_diff and of_nat_mult are no longer default simp rules
haftmann@25184
  4359
haftmann@25184
  4360
* Method "algebra" solves polynomial equations over (semi)rings using
haftmann@25184
  4361
Groebner bases. The (semi)ring structure is defined by locales and the
haftmann@25184
  4362
tool setup depends on that generic context. Installing the method for
haftmann@25184
  4363
a specific type involves instantiating the locale and possibly adding
haftmann@25184
  4364
declarations for computation on the coefficients.  The method is
haftmann@25184
  4365
already instantiated for natural numbers and for the axiomatic class
haftmann@25184
  4366
of idoms with numerals.  See also the paper by Chaieb and Wenzel at
haftmann@25184
  4367
CALCULEMUS 2007 for the general principles underlying this
haftmann@25184
  4368
architecture of context-aware proof-tools.
haftmann@25184
  4369
haftmann@25184
  4370
* Method "ferrack" implements quantifier elimination over
haftmann@25184
  4371
special-purpose dense linear orders using locales (analogous to
haftmann@25184
  4372
"algebra"). The method is already installed for class
haftmann@25184
  4373
{ordered_field,recpower,number_ring} which subsumes real, hyperreal,
haftmann@25184
  4374
rat, etc.
haftmann@25184
  4375
haftmann@25184
  4376
* Former constant "List.op @" now named "List.append".  Use ML
haftmann@25184
  4377
antiquotations @{const_name List.append} or @{term " ... @ ... "} to
haftmann@25184
  4378
circumvent possible incompatibilities when working on ML level.
haftmann@25184
  4379
haftmann@25184
  4380
* primrec: missing cases mapped to "undefined" instead of "arbitrary".
haftmann@25184
  4381
haftmann@25184
  4382
* New function listsum :: 'a list => 'a for arbitrary monoids.
haftmann@25184
  4383
Special syntax: "SUM x <- xs. f x" (and latex variants)
haftmann@25184
  4384
haftmann@25184
  4385
* New syntax for Haskell-like list comprehension (input only), eg.
haftmann@25184
  4386
[(x,y). x <- xs, y <- ys, x ~= y], see also src/HOL/List.thy.
haftmann@25184
  4387
haftmann@25184
  4388
* The special syntax for function "filter" has changed from [x :
haftmann@25184
  4389
xs. P] to [x <- xs. P] to avoid an ambiguity caused by list
haftmann@25184
  4390
comprehension syntax, and for uniformity.  INCOMPATIBILITY.
haftmann@25184
  4391
haftmann@25184
  4392
* [a..b] is now defined for arbitrary linear orders.  It used to be
haftmann@25184
  4393
defined on nat only, as an abbreviation for [a..<Suc b]
haftmann@25184
  4394
INCOMPATIBILITY.
haftmann@25184
  4395
haftmann@25184
  4396
* Renamed lemma "set_take_whileD"  to "set_takeWhileD".
haftmann@25184
  4397
haftmann@25184
  4398
* New functions "sorted" and "sort" in src/HOL/List.thy.
haftmann@25184
  4399
haftmann@25184
  4400
* New lemma collection field_simps (an extension of ring_simps) for
haftmann@25184
  4401
manipulating (in)equations involving division. Multiplies with all
haftmann@25184
  4402
denominators that can be proved to be non-zero (in equations) or
haftmann@25184
  4403
positive/negative (in inequations).
haftmann@25184
  4404
haftmann@25184
  4405
* Lemma collections ring_eq_simps, group_eq_simps and ring_distrib
haftmann@25184
  4406
have been improved and renamed to ring_simps, group_simps and
haftmann@25184
  4407
ring_distribs.  Removed lemmas field_xyz in theory Ring_and_Field
haftmann@25184
  4408
because they were subsumed by lemmas xyz.  INCOMPATIBILITY.
haftmann@25184
  4409
haftmann@25184
  4410
* Theory Library/Commutative_Ring: switched from recdef to function
haftmann@25184
  4411
package; constants add, mul, pow now curried.  Infix syntax for
haftmann@25184
  4412
algebraic operations.
haftmann@25163
  4413
wenzelm@24800
  4414
* Dropped redundant lemma def_imp_eq in favor of meta_eq_to_obj_eq.
haftmann@22218
  4415
INCOMPATIBILITY.
haftmann@22218
  4416
wenzelm@24800
  4417
* Dropped redundant lemma if_def2 in favor of if_bool_eq_conj.
haftmann@22218
  4418
INCOMPATIBILITY.
haftmann@22218
  4419
wenzelm@22126
  4420
* HOL/records: generalised field-update to take a function on the
wenzelm@22126
  4421
field rather than the new value: r(|A := x|) is translated to A_update
wenzelm@22126
  4422
(K x) r The K-combinator that is internally used is called K_record.
schirmer@21226
  4423
INCOMPATIBILITY: Usage of the plain update functions has to be
schirmer@21226
  4424
adapted.
schirmer@21226
  4425
 
wenzelm@24800
  4426
* Class "semiring_0" now contains annihilation axioms x * 0 = 0 and 0
wenzelm@24800
  4427
* x = 0, which are required for a semiring.  Richer structures do not
wenzelm@24800
  4428
inherit from semiring_0 anymore, because this property is a theorem
wenzelm@24800
  4429
there, not an axiom.  INCOMPATIBILITY: In instances of semiring_0,
wenzelm@24800
  4430
there is more to prove, but this is mostly trivial.
wenzelm@24800
  4431
wenzelm@24800
  4432
* Class "recpower" is generalized to arbitrary monoids, not just
wenzelm@24800
  4433
commutative semirings.  INCOMPATIBILITY: may need to incorporate
haftmann@25163
  4434
commutativity or semiring properties additionally.
wenzelm@22126
  4435
wenzelm@22126
  4436
* Constant "List.list_all2" in List.thy now uses authentic syntax.
wenzelm@24800
  4437
INCOMPATIBILITY: translations containing list_all2 may go wrong,
wenzelm@24800
  4438
better use 'abbreviation'.
wenzelm@24800
  4439
wenzelm@24800
  4440
* Renamed constant "List.op mem" to "List.member".  INCOMPATIBILITY.
wenzelm@24800
  4441
wenzelm@22126
  4442
* Numeral syntax: type 'bin' which was a mere type copy of 'int' has
wenzelm@24800
  4443
been abandoned in favour of plain 'int'.  INCOMPATIBILITY --
wenzelm@22126
  4444
significant changes for setting up numeral syntax for types:
wenzelm@24800
  4445
  - New constants Numeral.pred and Numeral.succ instead
haftmann@20485
  4446
      of former Numeral.bin_pred and Numeral.bin_succ.
haftmann@20485
  4447
  - Use integer operations instead of bin_add, bin_mult and so on.
haftmann@20485
  4448
  - Numeral simplification theorems named Numeral.numeral_simps instead of Bin_simps.
haftmann@20485
  4449
  - ML structure Bin_Simprocs now named Int_Numeral_Base_Simprocs.
haftmann@20485
  4450
wenzelm@25177
  4451
See src/HOL/Integ/IntArith.thy for an example setup.
wenzelm@25177
  4452
wenzelm@25177
  4453
* Command 'normal_form' computes the normal form of a term that may
wenzelm@25177
  4454
contain free variables.  For example ``normal_form "rev [a, b, c]"''
wenzelm@25177
  4455
produces ``[b, c, a]'' (without proof).  This command is suitable for
wenzelm@25177
  4456
heavy-duty computations because the functions are compiled to ML
wenzelm@25177
  4457
first.  Correspondingly, a method "normalization" is provided.  See
wenzelm@25177
  4458
further src/HOL/ex/NormalForm.thy and src/Tools/nbe.ML.
nipkow@19895
  4459
wenzelm@17996
  4460
* Alternative iff syntax "A <-> B" for equality on bool (with priority
wenzelm@17996
  4461
25 like -->); output depends on the "iff" print_mode, the default is
wenzelm@17996
  4462
"A = B" (with priority 50).
wenzelm@17996
  4463
wenzelm@21265
  4464
* Relations less (<) and less_eq (<=) are also available on type bool.
wenzelm@21265
  4465
Modified syntax to disallow nesting without explicit parentheses,
wenzelm@24800
  4466
e.g. "(x < y) < z" or "x < (y < z)", but NOT "x < y < z".  Potential
wenzelm@24800
  4467
INCOMPATIBILITY.
wenzelm@21265
  4468
nipkow@18674
  4469
* "LEAST x:A. P" expands to "LEAST x. x:A & P" (input only).
nipkow@18674
  4470
krauss@20716
  4471
* Relation composition operator "op O" now has precedence 75 and binds
krauss@20716
  4472
stronger than union and intersection. INCOMPATIBILITY.
krauss@20716
  4473
wenzelm@22126
  4474
* The old set interval syntax "{m..n(}" (and relatives) has been
wenzelm@22126
  4475
removed.  Use "{m..<n}" (and relatives) instead.
nipkow@19377
  4476
wenzelm@17865
  4477
* In the context of the assumption "~(s = t)" the Simplifier rewrites
wenzelm@24800
  4478
"t = s" to False (by simproc "neq").  INCOMPATIBILITY, consider using
wenzelm@24800
  4479
``declare [[simproc del: neq]]''.
wenzelm@24800
  4480
wenzelm@24800
  4481
* Simplifier: "m dvd n" where m and n are numbers is evaluated to
wenzelm@24800
  4482
True/False.
wenzelm@24800
  4483
wenzelm@24800
  4484
* Theorem Cons_eq_map_conv no longer declared as "simp".
nipkow@19211
  4485
ballarin@19279
  4486
* Theorem setsum_mult renamed to setsum_right_distrib.
ballarin@19279
  4487
nipkow@19211
  4488
* Prefer ex1I over ex_ex1I in single-step reasoning, e.g. by the
wenzelm@22126
  4489
``rule'' method.
wenzelm@22126
  4490
wenzelm@24800
  4491
* Reimplemented methods "sat" and "satx", with several improvements:
wenzelm@24800
  4492
goals no longer need to be stated as "<prems> ==> False", equivalences
wenzelm@24800
  4493
(i.e. "=" on type bool) are handled, variable names of the form
wenzelm@24800
  4494
"lit_<n>" are no longer reserved, significant speedup.
wenzelm@24800
  4495
wenzelm@24800
  4496
* Methods "sat" and "satx" can now replay MiniSat proof traces.
wenzelm@22126
  4497
zChaff is still supported as well.
wenzelm@22126
  4498
wenzelm@22126
  4499
* 'inductive' and 'datatype': provide projections of mutual rules,
wenzelm@22126
  4500
bundled as foo_bar.inducts;
wenzelm@22126
  4501
wenzelm@22126
  4502
* Library: moved theories Parity, GCD, Binomial, Infinite_Set to
wenzelm@22126
  4503
Library.
wenzelm@21256
  4504
wenzelm@21256
  4505
* Library: moved theory Accessible_Part to main HOL.
wenzelm@19572
  4506
wenzelm@18446
  4507
* Library: added theory Coinductive_List of potentially infinite lists
wenzelm@18446
  4508
as greatest fixed-point.
wenzelm@18399
  4509
wenzelm@19254
  4510
* Library: added theory AssocList which implements (finite) maps as
schirmer@19252
  4511
association lists.
webertj@17809
  4512
wenzelm@24800
  4513
* Method "evaluation" solves goals (i.e. a boolean expression)
wenzelm@24800
  4514
efficiently by compiling it to ML.  The goal is "proved" (via an
wenzelm@24800
  4515
oracle) if it evaluates to True.
wenzelm@20807
  4516
wenzelm@20807
  4517
* Linear arithmetic now splits certain operators (e.g. min, max, abs)
wenzelm@24800
  4518
also when invoked by the simplifier.  This results in the Simplifier
wenzelm@24800
  4519
being more powerful on arithmetic goals.  INCOMPATIBILITY.
wenzelm@24800
  4520
Configuration option fast_arith_split_limit=0 recovers the old
wenzelm@24800
  4521
behavior.
webertj@20217
  4522
wenzelm@22126
  4523
* Support for hex (0x20) and binary (0b1001) numerals.
wenzelm@19254
  4524
wenzelm@20807
  4525
* New method: reify eqs (t), where eqs are equations for an
wenzelm@20807
  4526
interpretation I :: 'a list => 'b => 'c and t::'c is an optional
wenzelm@20807
  4527
parameter, computes a term s::'b and a list xs::'a list and proves the
wenzelm@20807
  4528
theorem I xs s = t. This is also known as reification or quoting. The
wenzelm@20807
  4529
resulting theorem is applied to the subgoal to substitute t with I xs
wenzelm@20807
  4530
s.  If t is omitted, the subgoal itself is reified.
wenzelm@20807
  4531
wenzelm@20807
  4532
* New method: reflection corr_thm eqs (t). The parameters eqs and (t)
wenzelm@20807
  4533
are as explained above. corr_thm is a theorem for I vs (f t) = I vs t,
wenzelm@20807
  4534
where f is supposed to be a computable function (in the sense of code
wenzelm@20807
  4535
generattion). The method uses reify to compute s and xs as above then
wenzelm@20807
  4536
applies corr_thm and uses normalization by evaluation to "prove" f s =
wenzelm@20807
  4537
r and finally gets the theorem t = r, which is again applied to the
wenzelm@25177
  4538
subgoal. An Example is available in src/HOL/ex/ReflectionEx.thy.
wenzelm@25177
  4539
wenzelm@25177
  4540
* Reflection: Automatic reification now handels binding, an example is
wenzelm@25177
  4541
available in src/HOL/ex/ReflectionEx.thy
wenzelm@20807
  4542
wenzelm@25397
  4543
* HOL-Statespace: ``State Spaces: The Locale Way'' introduces a
schirmer@25409
  4544
command 'statespace' that is similar to 'record', but introduces an
wenzelm@25397
  4545
abstract specification based on the locale infrastructure instead of
wenzelm@25397
  4546
HOL types.  This leads to extra flexibility in composing state spaces,
wenzelm@25397
  4547
in particular multiple inheritance and renaming of components.
wenzelm@25397
  4548
wenzelm@25397
  4549
wenzelm@19653
  4550
*** HOL-Complex ***
wenzelm@19653
  4551
huffman@22971
  4552
* Hyperreal: Functions root and sqrt are now defined on negative real
huffman@22971
  4553
inputs so that root n (- x) = - root n x and sqrt (- x) = - sqrt x.
huffman@22971
  4554
Nonnegativity side conditions have been removed from many lemmas, so
huffman@22971
  4555
that more subgoals may now be solved by simplification; potential
huffman@22971
  4556
INCOMPATIBILITY.
huffman@22971
  4557
wenzelm@24800
  4558
* Real: new type classes formalize real normed vector spaces and
huffman@21791
  4559
algebras, using new overloaded constants scaleR :: real => 'a => 'a
huffman@21791
  4560
and norm :: 'a => real.
huffman@21791
  4561
wenzelm@24800
  4562
* Real: constant of_real :: real => 'a::real_algebra_1 injects from
wenzelm@24800
  4563
reals into other types. The overloaded constant Reals :: 'a set is now
wenzelm@24800
  4564
defined as range of_real; potential INCOMPATIBILITY.
wenzelm@24800
  4565
wenzelm@24800
  4566
* Real: proper support for ML code generation, including 'quickcheck'.
nipkow@23013
  4567
Reals are implemented as arbitrary precision rationals.
nipkow@23013
  4568
wenzelm@22126
  4569
* Hyperreal: Several constants that previously worked only for the
wenzelm@22126
  4570
reals have been generalized, so they now work over arbitrary vector
wenzelm@22126
  4571
spaces. Type annotations may need to be added in some cases; potential
wenzelm@22126
  4572
INCOMPATIBILITY.
huffman@21791
  4573
huffman@22972
  4574
  Infinitesimal  :: ('a::real_normed_vector) star set
huffman@22972
  4575
  HFinite        :: ('a::real_normed_vector) star set
huffman@22972
  4576
  HInfinite      :: ('a::real_normed_vector) star set
huffman@21791
  4577
  approx         :: ('a::real_normed_vector) star => 'a star => bool
huffman@21791
  4578
  monad          :: ('a::real_normed_vector) star => 'a star set
huffman@21791
  4579
  galaxy         :: ('a::real_normed_vector) star => 'a star set
huffman@22972
  4580
  (NS)LIMSEQ     :: [nat => 'a::real_normed_vector, 'a] => bool
huffman@21791
  4581
  (NS)convergent :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  4582
  (NS)Bseq       :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  4583
  (NS)Cauchy     :: (nat => 'a::real_normed_vector) => bool
huffman@21791
  4584
  (NS)LIM        :: ['a::real_normed_vector => 'b::real_normed_vector, 'a, 'b] => bool
huffman@21791
  4585
  is(NS)Cont     :: ['a::real_normed_vector => 'b::real_normed_vector, 'a] => bool
huffman@21791
  4586
  deriv          :: ['a::real_normed_field => 'a, 'a, 'a] => bool
huffman@22972
  4587
  sgn            :: 'a::real_normed_vector => 'a
huffman@23116
  4588
  exp            :: 'a::{recpower,real_normed_field,banach} => 'a
huffman@21791
  4589
huffman@21791
  4590
* Complex: Some complex-specific constants are now abbreviations for
wenzelm@22126
  4591
overloaded ones: complex_of_real = of_real, cmod = norm, hcmod =
wenzelm@22126
  4592
hnorm.  Other constants have been entirely removed in favor of the
wenzelm@22126
  4593
polymorphic versions (INCOMPATIBILITY):
huffman@21791
  4594
huffman@21791
  4595
  approx        <-- capprox
huffman@21791
  4596
  HFinite       <-- CFinite
huffman@21791
  4597
  HInfinite     <-- CInfinite
huffman@21791
  4598
  Infinitesimal <-- CInfinitesimal
huffman@21791
  4599
  monad         <-- cmonad
huffman@21791
  4600
  galaxy        <-- cgalaxy
huffman@21791
  4601
  (NS)LIM       <-- (NS)CLIM, (NS)CRLIM
huffman@21791
  4602
  is(NS)Cont    <-- is(NS)Contc, is(NS)contCR
huffman@21791
  4603
  (ns)deriv     <-- (ns)cderiv
huffman@21791
  4604
wenzelm@19653
  4605
wenzelm@24801
  4606
*** HOL-Algebra ***
wenzelm@24801
  4607
wenzelm@24801
  4608
* Formalisation of ideals and the quotient construction over rings.
wenzelm@24801
  4609
wenzelm@24801
  4610
* Order and lattice theory no longer based on records.
wenzelm@24801
  4611
INCOMPATIBILITY.
wenzelm@24801
  4612
wenzelm@24801
  4613
* Renamed lemmas least_carrier -> least_closed and greatest_carrier ->
wenzelm@24801
  4614
greatest_closed.  INCOMPATIBILITY.
wenzelm@24801
  4615
wenzelm@24801
  4616
* Method algebra is now set up via an attribute.  For examples see
wenzelm@24801
  4617
Ring.thy.  INCOMPATIBILITY: the method is now weaker on combinations
wenzelm@24801
  4618
of algebraic structures.
wenzelm@24801
  4619
wenzelm@24801
  4620
* Renamed theory CRing to Ring.
wenzelm@24801
  4621
wenzelm@24801
  4622
wenzelm@24801
  4623
*** HOL-Nominal ***
wenzelm@24801
  4624
wenzelm@25148
  4625
* Substantial, yet incomplete support for nominal datatypes (binding
wenzelm@25177
  4626
structures) based on HOL-Nominal logic.  See src/HOL/Nominal and
wenzelm@25177
  4627
src/HOL/Nominal/Examples.  Prospective users should consult
wenzelm@25148
  4628
http://isabelle.in.tum.de/nominal/
wenzelm@25148
  4629
wenzelm@24801
  4630
wenzelm@17878
  4631
*** ML ***
wenzelm@17878
  4632
wenzelm@24643
  4633
* ML basics: just one true type int, which coincides with IntInf.int
wenzelm@24643
  4634
(even on SML/NJ).
wenzelm@24643
  4635
wenzelm@22138
  4636
* ML within Isar: antiquotations allow to embed statically-checked
wenzelm@22138
  4637
formal entities in the source, referring to the context available at
wenzelm@22138
  4638
compile-time.  For example:
wenzelm@22138
  4639
wenzelm@25142
  4640
ML {* @{sort "{zero,one}"} *}
wenzelm@22138
  4641
ML {* @{typ "'a => 'b"} *}
wenzelm@22138
  4642
ML {* @{term "%x. x"} *}
wenzelm@22138
  4643
ML {* @{prop "x == y"} *}
wenzelm@22138
  4644
ML {* @{ctyp "'a => 'b"} *}
wenzelm@22138
  4645
ML {* @{cterm "%x. x"} *}
wenzelm@22138
  4646
ML {* @{cprop "x == y"} *}
wenzelm@22138
  4647
ML {* @{thm asm_rl} *}
wenzelm@22138
  4648
ML {* @{thms asm_rl} *}
wenzelm@24692
  4649
ML {* @{type_name c} *}
wenzelm@25142
  4650
ML {* @{type_syntax c} *}
wenzelm@22376
  4651
ML {* @{const_name c} *}
wenzelm@22376
  4652
ML {* @{const_syntax c} *}
wenzelm@22138
  4653
ML {* @{context} *}
wenzelm@22138
  4654
ML {* @{theory} *}
wenzelm@22138
  4655
ML {* @{theory Pure} *}
wenzelm@24692
  4656
ML {* @{theory_ref} *}
wenzelm@24692
  4657
ML {* @{theory_ref Pure} *}
wenzelm@22138
  4658
ML {* @{simpset} *}
wenzelm@22138
  4659
ML {* @{claset} *}
wenzelm@22138
  4660
ML {* @{clasimpset} *}
wenzelm@22138
  4661
wenzelm@22151
  4662
The same works for sources being ``used'' within an Isar context.
wenzelm@22151
  4663
wenzelm@22152
  4664
* ML in Isar: improved error reporting; extra verbosity with
wenzelm@24706
  4665
ML_Context.trace enabled.
wenzelm@22152
  4666
wenzelm@19032
  4667
* Pure/General/table.ML: the join operations now works via exceptions
wenzelm@24706
  4668
DUP/SAME instead of type option. This is simpler in simple cases, and
wenzelm@19081
  4669
admits slightly more efficient complex applications.
wenzelm@18446
  4670
wenzelm@24800
  4671
* Pure: 'advanced' translation functions (parse_translation etc.) now
wenzelm@24800
  4672
use Context.generic instead of just theory.
wenzelm@24800
  4673
wenzelm@18642
  4674
* Pure: datatype Context.generic joins theory/Proof.context and
wenzelm@18644
  4675
provides some facilities for code that works in either kind of
wenzelm@18642
  4676
context, notably GenericDataFun for uniform theory and proof data.
wenzelm@18642
  4677
wenzelm@18737
  4678
* Pure: simplified internal attribute type, which is now always
wenzelm@24706
  4679
Context.generic * thm -> Context.generic * thm. Global (theory) vs.
wenzelm@24706
  4680
local (Proof.context) attributes have been discontinued, while
wenzelm@24706
  4681
minimizing code duplication. Thm.rule_attribute and
wenzelm@24706
  4682
Thm.declaration_attribute build canonical attributes; see also structure
wenzelm@24706
  4683
Context for further operations on Context.generic, notably
wenzelm@24706
  4684
GenericDataFun. INCOMPATIBILITY, need to adapt attribute type
wenzelm@19006
  4685
declarations and definitions.
wenzelm@19006
  4686
wenzelm@24800
  4687
* Context data interfaces (Theory/Proof/GenericDataFun): removed
wenzelm@24800
  4688
name/print, uninitialized data defaults to ad-hoc copy of empty value,
wenzelm@24800
  4689
init only required for impure data. INCOMPATIBILITY: empty really need
wenzelm@24800
  4690
to be empty (no dependencies on theory content!)
wenzelm@24800
  4691
wenzelm@19508
  4692
* Pure/kernel: consts certification ignores sort constraints given in
wenzelm@24800
  4693
signature declarations. (This information is not relevant to the
wenzelm@24800
  4694
logic, but only for type inference.) SIGNIFICANT INTERNAL CHANGE,
wenzelm@24800
  4695
potential INCOMPATIBILITY.
wenzelm@19508
  4696
wenzelm@19508
  4697
* Pure: axiomatic type classes are now purely definitional, with
wenzelm@19508
  4698
explicit proofs of class axioms and super class relations performed
wenzelm@24706
  4699
internally. See Pure/axclass.ML for the main internal interfaces --
wenzelm@36856
  4700
notably AxClass.define_class supercedes AxClass.add_axclass, and
wenzelm@24706
  4701
AxClass.axiomatize_class/classrel/arity supersede
wenzelm@19508
  4702
Sign.add_classes/classrel/arities.
wenzelm@19508
  4703
wenzelm@19006
  4704
* Pure/Isar: Args/Attrib parsers operate on Context.generic --
wenzelm@19006
  4705
global/local versions on theory vs. Proof.context have been
wenzelm@19006
  4706
discontinued; Attrib.syntax and Method.syntax have been adapted
wenzelm@19006
  4707
accordingly.  INCOMPATIBILITY, need to adapt parser expressions for
wenzelm@19006
  4708
attributes, methods, etc.
wenzelm@18642
  4709
wenzelm@18446
  4710
* Pure: several functions of signature "... -> theory -> theory * ..."
wenzelm@18446
  4711
have been reoriented to "... -> theory -> ... * theory" in order to
wenzelm@18446
  4712
allow natural usage in combination with the ||>, ||>>, |-> and
wenzelm@18446
  4713
fold_map combinators.
haftmann@18051
  4714
wenzelm@21647
  4715
* Pure: official theorem names (closed derivations) and additional
wenzelm@21647
  4716
comments (tags) are now strictly separate.  Name hints -- which are
wenzelm@21647
  4717
maintained as tags -- may be attached any time without affecting the
wenzelm@21647
  4718
derivation.
wenzelm@21647
  4719
wenzelm@18020
  4720
* Pure: primitive rule lift_rule now takes goal cterm instead of an
wenzelm@18145
  4721
actual goal state (thm).  Use Thm.lift_rule (Thm.cprem_of st i) to
wenzelm@18020
  4722
achieve the old behaviour.
wenzelm@18020
  4723
wenzelm@18020
  4724
* Pure: the "Goal" constant is now called "prop", supporting a
wenzelm@18020
  4725
slightly more general idea of ``protecting'' meta-level rule
wenzelm@18020
  4726
statements.
wenzelm@18020
  4727
wenzelm@20040
  4728
* Pure: Logic.(un)varify only works in a global context, which is now
wenzelm@20040
  4729
enforced instead of silently assumed.  INCOMPATIBILITY, may use
wenzelm@20040
  4730
Logic.legacy_(un)varify as temporary workaround.
wenzelm@20040
  4731
wenzelm@20090
  4732
* Pure: structure Name provides scalable operations for generating
wenzelm@20090
  4733
internal variable names, notably Name.variants etc.  This replaces
wenzelm@20090
  4734
some popular functions from term.ML:
wenzelm@20090
  4735
wenzelm@20090
  4736
  Term.variant		->  Name.variant
wenzelm@24800
  4737
  Term.variantlist	->  Name.variant_list
wenzelm@20090
  4738
  Term.invent_names	->  Name.invent_list
wenzelm@20090
  4739
wenzelm@20090
  4740
Note that low-level renaming rarely occurs in new code -- operations
wenzelm@20090
  4741
from structure Variable are used instead (see below).
wenzelm@20090
  4742
wenzelm@20040
  4743
* Pure: structure Variable provides fundamental operations for proper
wenzelm@20040
  4744
treatment of fixed/schematic variables in a context.  For example,
wenzelm@20040
  4745
Variable.import introduces fixes for schematics of given facts and
wenzelm@20040
  4746
Variable.export reverses the effect (up to renaming) -- this replaces
wenzelm@20040
  4747
various freeze_thaw operations.
wenzelm@20040
  4748
wenzelm@18567
  4749
* Pure: structure Goal provides simple interfaces for
wenzelm@17981
  4750
init/conclude/finish and tactical prove operations (replacing former
wenzelm@20040
  4751
Tactic.prove).  Goal.prove is the canonical way to prove results
wenzelm@20040
  4752
within a given context; Goal.prove_global is a degraded version for
wenzelm@20040
  4753
theory level goals, including a global Drule.standard.  Note that
wenzelm@20040
  4754
OldGoals.prove_goalw_cterm has long been obsolete, since it is
wenzelm@20040
  4755
ill-behaved in a local proof context (e.g. with local fixes/assumes or
wenzelm@20040
  4756
in a locale context).
wenzelm@17981
  4757
wenzelm@24706
  4758
* Pure/Syntax: generic interfaces for parsing (Syntax.parse_term etc.)
wenzelm@24706
  4759
and type checking (Syntax.check_term etc.), with common combinations
wenzelm@24706
  4760
(Syntax.read_term etc.). These supersede former Sign.read_term etc.
wenzelm@24706
  4761
which are considered legacy and await removal.
wenzelm@24706
  4762
wenzelm@24920
  4763
* Pure/Syntax: generic interfaces for type unchecking
wenzelm@24920
  4764
(Syntax.uncheck_terms etc.) and unparsing (Syntax.unparse_term etc.),
wenzelm@24920
  4765
with common combinations (Syntax.pretty_term, Syntax.string_of_term
wenzelm@24920
  4766
etc.).  Former Sign.pretty_term, Sign.string_of_term etc. are still
wenzelm@24924
  4767
available for convenience, but refer to the very same operations using
wenzelm@24924
  4768
a mere theory instead of a full context.
wenzelm@24920
  4769
wenzelm@18815
  4770
* Isar: simplified treatment of user-level errors, using exception
wenzelm@18687
  4771
ERROR of string uniformly.  Function error now merely raises ERROR,
wenzelm@18686
  4772
without any side effect on output channels.  The Isar toplevel takes
wenzelm@18686
  4773
care of proper display of ERROR exceptions.  ML code may use plain
wenzelm@18686
  4774
handle/can/try; cat_error may be used to concatenate errors like this:
wenzelm@18686
  4775
wenzelm@18686
  4776
  ... handle ERROR msg => cat_error msg "..."
wenzelm@18686
  4777
wenzelm@18686
  4778
Toplevel ML code (run directly or through the Isar toplevel) may be
wenzelm@18687
  4779
embedded into the Isar toplevel with exception display/debug like
wenzelm@18687
  4780
this:
wenzelm@18686
  4781
wenzelm@18686
  4782
  Isar.toplevel (fn () => ...)
wenzelm@18686
  4783
wenzelm@18686
  4784
INCOMPATIBILITY, removed special transform_error facilities, removed
wenzelm@18686
  4785
obsolete variants of user-level exceptions (ERROR_MESSAGE,
wenzelm@18686
  4786
Context.PROOF, ProofContext.CONTEXT, Proof.STATE, ProofHistory.FAIL)
wenzelm@18686
  4787
-- use plain ERROR instead.
wenzelm@18686
  4788
wenzelm@18815
  4789
* Isar: theory setup now has type (theory -> theory), instead of a
wenzelm@18722
  4790
list.  INCOMPATIBILITY, may use #> to compose setup functions.
wenzelm@18722
  4791
wenzelm@24706
  4792
* Isar: ML toplevel pretty printer for type Proof.context, subject to
wenzelm@24706
  4793
ProofContext.debug/verbose flags.
wenzelm@18815
  4794
wenzelm@18815
  4795
* Isar: Toplevel.theory_to_proof admits transactions that modify the
wenzelm@18815
  4796
theory before entering a proof state.  Transactions now always see a
wenzelm@18815
  4797
quasi-functional intermediate checkpoint, both in interactive and
wenzelm@18590
  4798
batch mode.
wenzelm@18567
  4799
wenzelm@24867
  4800
* Isar: simplified interfaces for outer syntax.  Renamed
wenzelm@24867
  4801
OuterSyntax.add_keywords to OuterSyntax.keywords.  Removed
wenzelm@24867
  4802
OuterSyntax.add_parsers -- this functionality is now included in
wenzelm@24867
  4803
OuterSyntax.command etc.  INCOMPATIBILITY.
wenzelm@24867
  4804
wenzelm@17878
  4805
* Simplifier: the simpset of a running simplification process now
wenzelm@17878
  4806
contains a proof context (cf. Simplifier.the_context), which is the
wenzelm@17878
  4807
very context that the initial simpset has been retrieved from (by
wenzelm@17890
  4808
simpset_of/local_simpset_of).  Consequently, all plug-in components
wenzelm@17878
  4809
(solver, looper etc.) may depend on arbitrary proof data.
wenzelm@17878
  4810
wenzelm@17878
  4811
* Simplifier.inherit_context inherits the proof context (plus the
wenzelm@17878
  4812
local bounds) of the current simplification process; any simproc
wenzelm@17878
  4813
etc. that calls the Simplifier recursively should do this!  Removed
wenzelm@17878
  4814
former Simplifier.inherit_bounds, which is already included here --
wenzelm@17890
  4815
INCOMPATIBILITY.  Tools based on low-level rewriting may even have to
wenzelm@17890
  4816
specify an explicit context using Simplifier.context/theory_context.
wenzelm@17878
  4817
wenzelm@17878
  4818
* Simplifier/Classical Reasoner: more abstract interfaces
wenzelm@17878
  4819
change_simpset/claset for modifying the simpset/claset reference of a
wenzelm@17878
  4820
theory; raw versions simpset/claset_ref etc. have been discontinued --
wenzelm@17878
  4821
INCOMPATIBILITY.
wenzelm@17878
  4822
wenzelm@18540
  4823
* Provers: more generic wrt. syntax of object-logics, avoid hardwired
wenzelm@18540
  4824
"Trueprop" etc.
wenzelm@18540
  4825
wenzelm@17878
  4826
wenzelm@20988
  4827
*** System ***
wenzelm@20988
  4828
wenzelm@25433
  4829
* settings: the default heap location within ISABELLE_HOME_USER now
wenzelm@25433
  4830
includes ISABELLE_IDENTIFIER.  This simplifies use of multiple
wenzelm@25433
  4831
Isabelle installations.
wenzelm@21471
  4832
wenzelm@20988
  4833
* isabelle-process: option -S (secure mode) disables some critical
wenzelm@20988
  4834
operations, notably runtime compilation and evaluation of ML source
wenzelm@20988
  4835
code.
wenzelm@20988
  4836
wenzelm@24891
  4837
* Basic Isabelle mode for jEdit, see Isabelle/lib/jedit/.
wenzelm@24891
  4838
wenzelm@24801
  4839
* Support for parallel execution, using native multicore support of
wenzelm@24800
  4840
Poly/ML 5.1.  The theory loader exploits parallelism when processing
wenzelm@24800
  4841
independent theories, according to the given theory header
wenzelm@24800
  4842
specifications. The maximum number of worker threads is specified via
wenzelm@24800
  4843
usedir option -M or the "max-threads" setting in Proof General. A
wenzelm@24800
  4844
speedup factor of 1.5--3.5 can be expected on a 4-core machine, and up
wenzelm@24800
  4845
to 6 on a 8-core machine.  User-code needs to observe certain
wenzelm@24800
  4846
guidelines for thread-safe programming, see appendix A in the Isar
wenzelm@24800
  4847
Implementation manual.
wenzelm@24210
  4848
wenzelm@17754
  4849
wenzelm@25448
  4850
wenzelm@17720
  4851
New in Isabelle2005 (October 2005)
wenzelm@17720
  4852
----------------------------------
wenzelm@14655
  4853
wenzelm@14655
  4854
*** General ***
wenzelm@14655
  4855
nipkow@15130
  4856
* Theory headers: the new header syntax for Isar theories is
nipkow@15130
  4857
nipkow@15130
  4858
  theory <name>
wenzelm@16234
  4859
  imports <theory1> ... <theoryN>
wenzelm@16234
  4860
  uses <file1> ... <fileM>
nipkow@15130
  4861
  begin
nipkow@15130
  4862
wenzelm@16234
  4863
where the 'uses' part is optional.  The previous syntax
wenzelm@16234
  4864
wenzelm@16234
  4865
  theory <name> = <theory1> + ... + <theoryN>:
wenzelm@16234
  4866
wenzelm@16717
  4867
will disappear in the next release.  Use isatool fixheaders to convert
wenzelm@16717
  4868
existing theory files.  Note that there is no change in ancient
wenzelm@17371
  4869
non-Isar theories now, but these will disappear soon.
nipkow@15130
  4870
berghofe@15475
  4871
* Theory loader: parent theories can now also be referred to via
wenzelm@16234
  4872
relative and absolute paths.
wenzelm@16234
  4873
wenzelm@17408
  4874
* Command 'find_theorems' searches for a list of criteria instead of a
wenzelm@17408
  4875
list of constants. Known criteria are: intro, elim, dest, name:string,
wenzelm@17408
  4876
simp:term, and any term. Criteria can be preceded by '-' to select
wenzelm@17408
  4877
theorems that do not match. Intro, elim, dest select theorems that
wenzelm@17408
  4878
match the current goal, name:s selects theorems whose fully qualified
wenzelm@17408
  4879
name contain s, and simp:term selects all simplification rules whose
wenzelm@17408
  4880
lhs match term.  Any other term is interpreted as pattern and selects
wenzelm@17408
  4881
all theorems matching the pattern. Available in ProofGeneral under
wenzelm@17408
  4882
'ProofGeneral -> Find Theorems' or C-c C-f.  Example:
wenzelm@16234
  4883
wenzelm@17275
  4884
  C-c C-f (100) "(_::nat) + _ + _" intro -name: "HOL."
wenzelm@16234
  4885
wenzelm@16234
  4886
prints the last 100 theorems matching the pattern "(_::nat) + _ + _",
wenzelm@16234
  4887
matching the current goal as introduction rule and not having "HOL."
wenzelm@16234
  4888
in their name (i.e. not being defined in theory HOL).
wenzelm@16234
  4889
wenzelm@17408
  4890
* Command 'thms_containing' has been discontinued in favour of
wenzelm@17408
  4891
'find_theorems'; INCOMPATIBILITY.
wenzelm@17408
  4892
wenzelm@17385
  4893
* Communication with Proof General is now 8bit clean, which means that
wenzelm@17385
  4894
Unicode text in UTF-8 encoding may be used within theory texts (both
wenzelm@17408
  4895
formal and informal parts).  Cf. option -U of the Isabelle Proof
wenzelm@17538
  4896
General interface.  Here are some simple examples (cf. src/HOL/ex):
wenzelm@17538
  4897
wenzelm@17538
  4898
  http://isabelle.in.tum.de/library/HOL/ex/Hebrew.html
wenzelm@17538
  4899
  http://isabelle.in.tum.de/library/HOL/ex/Chinese.html
wenzelm@17385
  4900
wenzelm@17425
  4901
* Improved efficiency of the Simplifier and, to a lesser degree, the
wenzelm@17425
  4902
Classical Reasoner.  Typical big applications run around 2 times
wenzelm@17425
  4903
faster.
wenzelm@17425
  4904
wenzelm@16234
  4905
wenzelm@16234
  4906
*** Document preparation ***
wenzelm@16234
  4907
wenzelm@16234
  4908
* Commands 'display_drafts' and 'print_drafts' perform simple output
wenzelm@16234
  4909
of raw sources.  Only those symbols that do not require additional
wenzelm@16234
  4910
LaTeX packages (depending on comments in isabellesym.sty) are
wenzelm@16234
  4911
displayed properly, everything else is left verbatim.  isatool display
wenzelm@16234
  4912
and isatool print are used as front ends (these are subject to the
wenzelm@16234
  4913
DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively).
wenzelm@16234
  4914
wenzelm@17047
  4915
* Command tags control specific markup of certain regions of text,
wenzelm@17047
  4916
notably folding and hiding.  Predefined tags include "theory" (for
wenzelm@17047
  4917
theory begin and end), "proof" for proof commands, and "ML" for
wenzelm@17047
  4918
commands involving ML code; the additional tags "visible" and
wenzelm@17047
  4919
"invisible" are unused by default.  Users may give explicit tag
wenzelm@17047
  4920
specifications in the text, e.g. ''by %invisible (auto)''.  The
wenzelm@17047
  4921
interpretation of tags is determined by the LaTeX job during document
wenzelm@17047
  4922
preparation: see option -V of isatool usedir, or options -n and -t of
wenzelm@17047
  4923
isatool document, or even the LaTeX macros \isakeeptag, \isafoldtag,
wenzelm@17047
  4924
\isadroptag.
wenzelm@17047
  4925
wenzelm@17047
  4926
Several document versions may be produced at the same time via isatool
wenzelm@17047
  4927
usedir (the generated index.html will link all of them).  Typical
wenzelm@17047
  4928
specifications include ''-V document=theory,proof,ML'' to present
wenzelm@17047
  4929
theory/proof/ML parts faithfully, ''-V outline=/proof,/ML'' to fold
wenzelm@17047
  4930
proof and ML commands, and ''-V mutilated=-theory,-proof,-ML'' to omit
wenzelm@17047
  4931
these parts without any formal replacement text.  The Isabelle site
wenzelm@17047
  4932
default settings produce ''document'' and ''outline'' versions as
wenzelm@17047
  4933
specified above.
wenzelm@16234
  4934
haftmann@17402
  4935
* Several new antiquotations:
wenzelm@16234
  4936
wenzelm@16234
  4937
  @{term_type term} prints a term with its type annotated;
wenzelm@16234
  4938
wenzelm@16234
  4939
  @{typeof term} prints the type of a term;
wenzelm@16234
  4940
wenzelm@16234
  4941
  @{const const} is the same as @{term const}, but checks that the
wenzelm@16234
  4942
  argument is a known logical constant;
wenzelm@16234
  4943
wenzelm@16234
  4944
  @{term_style style term} and @{thm_style style thm} print a term or
wenzelm@16234
  4945
  theorem applying a "style" to it
wenzelm@16234
  4946
wenzelm@17117
  4947
  @{ML text}
wenzelm@17117
  4948
wenzelm@16234
  4949
Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of
wenzelm@16234
  4950
definitions, equations, inequations etc., 'concl' printing only the
schirmer@17393
  4951
conclusion of a meta-logical statement theorem, and 'prem1' .. 'prem19'
wenzelm@16234
  4952
to print the specified premise.  TermStyle.add_style provides an ML
wenzelm@16234
  4953
interface for introducing further styles.  See also the "LaTeX Sugar"
wenzelm@17117
  4954
document practical applications.  The ML antiquotation prints
wenzelm@17117
  4955
type-checked ML expressions verbatim.
wenzelm@16234
  4956
wenzelm@17259
  4957
* Markup commands 'chapter', 'section', 'subsection', 'subsubsection',
wenzelm@17259
  4958
and 'text' support optional locale specification '(in loc)', which
wenzelm@17269
  4959
specifies the default context for interpreting antiquotations.  For
wenzelm@17269
  4960
example: 'text (in lattice) {* @{thm inf_assoc}*}'.
wenzelm@17259
  4961
wenzelm@17259
  4962
* Option 'locale=NAME' of antiquotations specifies an alternative
wenzelm@17259
  4963
context interpreting the subsequent argument.  For example: @{thm
wenzelm@17269
  4964
[locale=lattice] inf_assoc}.
wenzelm@17259
  4965
wenzelm@17097
  4966
* Proper output of proof terms (@{prf ...} and @{full_prf ...}) within
wenzelm@17097
  4967
a proof context.
wenzelm@17097
  4968
wenzelm@17097
  4969
* Proper output of antiquotations for theory commands involving a
wenzelm@17097
  4970
proof context (such as 'locale' or 'theorem (in loc) ...').
wenzelm@17097
  4971
wenzelm@17193
  4972
* Delimiters of outer tokens (string etc.) now produce separate LaTeX
wenzelm@17193
  4973
macros (\isachardoublequoteopen, isachardoublequoteclose etc.).
wenzelm@17193
  4974
wenzelm@17193
  4975
* isatool usedir: new option -C (default true) controls whether option
wenzelm@17193
  4976
-D should include a copy of the original document directory; -C false
wenzelm@17193
  4977
prevents unwanted effects such as copying of administrative CVS data.
wenzelm@17193
  4978
wenzelm@16234
  4979
wenzelm@16234
  4980
*** Pure ***
wenzelm@16234
  4981
wenzelm@16234
  4982
* Considerably improved version of 'constdefs' command.  Now performs
wenzelm@16234
  4983
automatic type-inference of declared constants; additional support for
wenzelm@16234
  4984
local structure declarations (cf. locales and HOL records), see also
wenzelm@16234
  4985
isar-ref manual.  Potential INCOMPATIBILITY: need to observe strictly
wenzelm@16234
  4986
sequential dependencies of definitions within a single 'constdefs'
wenzelm@16234
  4987
section; moreover, the declared name needs to be an identifier.  If
wenzelm@16234
  4988
all fails, consider to fall back on 'consts' and 'defs' separately.
wenzelm@16234
  4989
wenzelm@16234
  4990
* Improved indexed syntax and implicit structures.  First of all,
wenzelm@16234
  4991
indexed syntax provides a notational device for subscripted
wenzelm@16234
  4992
application, using the new syntax \<^bsub>term\<^esub> for arbitrary
wenzelm@16234
  4993
expressions.  Secondly, in a local context with structure
wenzelm@16234
  4994
declarations, number indexes \<^sub>n or the empty index (default
wenzelm@16234
  4995
number 1) refer to a certain fixed variable implicitly; option
wenzelm@16234
  4996
show_structs controls printing of implicit structures.  Typical
wenzelm@16234
  4997
applications of these concepts involve record types and locales.
wenzelm@16234
  4998
wenzelm@16234
  4999
* New command 'no_syntax' removes grammar declarations (and
wenzelm@16234
  5000
translations) resulting from the given syntax specification, which is
wenzelm@16234
  5001
interpreted in the same manner as for the 'syntax' command.
wenzelm@16234
  5002
wenzelm@16234
  5003
* 'Advanced' translation functions (parse_translation etc.) may depend
wenzelm@16234
  5004
on the signature of the theory context being presently used for
wenzelm@16234
  5005
parsing/printing, see also isar-ref manual.
wenzelm@16234
  5006
wenzelm@16856
  5007
* Improved 'oracle' command provides a type-safe interface to turn an
wenzelm@16856
  5008
ML expression of type theory -> T -> term into a primitive rule of
wenzelm@16856
  5009
type theory -> T -> thm (i.e. the functionality of Thm.invoke_oracle
wenzelm@16856
  5010
is already included here); see also FOL/ex/IffExample.thy;
wenzelm@16856
  5011
INCOMPATIBILITY.
wenzelm@16856
  5012
wenzelm@17275
  5013
* axclass: name space prefix for class "c" is now "c_class" (was "c"
wenzelm@17275
  5014
before); "cI" is no longer bound, use "c.intro" instead.
wenzelm@17275
  5015
INCOMPATIBILITY.  This change avoids clashes of fact bindings for
wenzelm@17275
  5016
axclasses vs. locales.
wenzelm@17275
  5017
wenzelm@16234
  5018
* Improved internal renaming of symbolic identifiers -- attach primes
wenzelm@16234
  5019
instead of base 26 numbers.
wenzelm@16234
  5020
wenzelm@16234
  5021
* New flag show_question_marks controls printing of leading question
wenzelm@16234
  5022
marks in schematic variable names.
wenzelm@16234
  5023
wenzelm@16234
  5024
* In schematic variable names, *any* symbol following \<^isub> or
wenzelm@16234
  5025
\<^isup> is now treated as part of the base name.  For example, the
wenzelm@16234
  5026
following works without printing of awkward ".0" indexes:
wenzelm@16234
  5027
wenzelm@16234
  5028
  lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1"
wenzelm@16234
  5029
    by simp
wenzelm@16234
  5030
wenzelm@16234
  5031
* Inner syntax includes (*(*nested*) comments*).
wenzelm@16234
  5032
wenzelm@17548
  5033
* Pretty printer now supports unbreakable blocks, specified in mixfix
wenzelm@16234
  5034
annotations as "(00...)".
wenzelm@16234
  5035
wenzelm@16234
  5036
* Clear separation of logical types and nonterminals, where the latter
wenzelm@16234
  5037
may only occur in 'syntax' specifications or type abbreviations.
wenzelm@16234
  5038
Before that distinction was only partially implemented via type class
wenzelm@16234
  5039
"logic" vs. "{}".  Potential INCOMPATIBILITY in rare cases of improper
wenzelm@16234
  5040
use of 'types'/'consts' instead of 'nonterminals'/'syntax'.  Some very
wenzelm@16234
  5041
exotic syntax specifications may require further adaption
wenzelm@17691
  5042
(e.g. Cube/Cube.thy).
wenzelm@16234
  5043
wenzelm@16234
  5044
* Removed obsolete type class "logic", use the top sort {} instead.
wenzelm@16234
  5045
Note that non-logical types should be declared as 'nonterminals'
wenzelm@16234
  5046
rather than 'types'.  INCOMPATIBILITY for new object-logic
wenzelm@16234
  5047
specifications.
wenzelm@16234
  5048
ballarin@17095
  5049
* Attributes 'induct' and 'cases': type or set names may now be
ballarin@17095
  5050
locally fixed variables as well.
ballarin@17095
  5051
wenzelm@16234
  5052
* Simplifier: can now control the depth to which conditional rewriting
wenzelm@16234
  5053
is traced via the PG menu Isabelle -> Settings -> Trace Simp Depth
wenzelm@16234
  5054
Limit.
wenzelm@16234
  5055
wenzelm@16234
  5056
* Simplifier: simplification procedures may now take the current
wenzelm@16234
  5057
simpset into account (cf. Simplifier.simproc(_i) / mk_simproc
wenzelm@16234
  5058
interface), which is very useful for calling the Simplifier
wenzelm@16234
  5059
recursively.  Minor INCOMPATIBILITY: the 'prems' argument of simprocs
wenzelm@16234
  5060
is gone -- use prems_of_ss on the simpset instead.  Moreover, the
wenzelm@16234
  5061
low-level mk_simproc no longer applies Logic.varify internally, to
wenzelm@16234
  5062
allow for use in a context of fixed variables.
wenzelm@16234
  5063
wenzelm@16234
  5064
* thin_tac now works even if the assumption being deleted contains !!
wenzelm@16234
  5065
or ==>.  More generally, erule now works even if the major premise of
wenzelm@16234
  5066
the elimination rule contains !! or ==>.
wenzelm@16234
  5067
wenzelm@17597
  5068
* Method 'rules' has been renamed to 'iprover'. INCOMPATIBILITY.
nipkow@17590
  5069
wenzelm@16234
  5070
* Reorganized bootstrapping of the Pure theories; CPure is now derived
wenzelm@16234
  5071
from Pure, which contains all common declarations already.  Both
wenzelm@16234
  5072
theories are defined via plain Isabelle/Isar .thy files.
wenzelm@16234
  5073
INCOMPATIBILITY: elements of CPure (such as the CPure.intro /
wenzelm@16234
  5074
CPure.elim / CPure.dest attributes) now appear in the Pure name space;
wenzelm@16234
  5075
use isatool fixcpure to adapt your theory and ML sources.
wenzelm@16234
  5076
wenzelm@16234
  5077
* New syntax 'name(i-j, i-, i, ...)' for referring to specific
wenzelm@16234
  5078
selections of theorems in named facts via index ranges.
wenzelm@16234
  5079
wenzelm@17097
  5080
* 'print_theorems': in theory mode, really print the difference
wenzelm@17097
  5081
wrt. the last state (works for interactive theory development only),
wenzelm@17097
  5082
in proof mode print all local facts (cf. 'print_facts');
wenzelm@17097
  5083
wenzelm@17397
  5084
* 'hide': option '(open)' hides only base names.
wenzelm@17397
  5085
wenzelm@17275
  5086
* More efficient treatment of intermediate checkpoints in interactive
wenzelm@17275
  5087
theory development.
wenzelm@17275
  5088
berghofe@17663
  5089
* Code generator is now invoked via code_module (incremental code
wenzelm@17664
  5090
generation) and code_library (modular code generation, ML structures
wenzelm@17664
  5091
for each theory).  INCOMPATIBILITY: new keywords 'file' and 'contains'
wenzelm@17664
  5092
must be quoted when used as identifiers.
wenzelm@17664
  5093
wenzelm@17664
  5094
* New 'value' command for reading, evaluating and printing terms using
wenzelm@17664
  5095
the code generator.  INCOMPATIBILITY: command keyword 'value' must be
wenzelm@17664
  5096
quoted when used as identifier.
berghofe@17663
  5097
wenzelm@16234
  5098
wenzelm@16234
  5099
*** Locales ***
ballarin@17095
  5100
wenzelm@17385
  5101
* New commands for the interpretation of locale expressions in
wenzelm@17385
  5102
theories (1), locales (2) and proof contexts (3).  These generate
wenzelm@17385
  5103
proof obligations from the expression specification.  After the
wenzelm@17385
  5104
obligations have been discharged, theorems of the expression are added
wenzelm@17385
  5105
to the theory, target locale or proof context.  The synopsis of the
wenzelm@17385
  5106
commands is a follows:
wenzelm@17385
  5107
ballarin@17095
  5108
  (1) interpretation expr inst
ballarin@17095
  5109
  (2) interpretation target < expr
ballarin@17095
  5110
  (3) interpret expr inst
wenzelm@17385
  5111
ballarin@17095
  5112
Interpretation in theories and proof contexts require a parameter
ballarin@17095
  5113
instantiation of terms from the current context.  This is applied to
wenzelm@17385
  5114
specifications and theorems of the interpreted expression.
wenzelm@17385
  5115
Interpretation in locales only permits parameter renaming through the
wenzelm@17385
  5116
locale expression.  Interpretation is smart in that interpretations
wenzelm@17385
  5117
that are active already do not occur in proof obligations, neither are
wenzelm@17385
  5118
instantiated theorems stored in duplicate.  Use 'print_interps' to
wenzelm@17385
  5119
inspect active interpretations of a particular locale.  For details,
ballarin@17436
  5120
see the Isar Reference manual.  Examples can be found in
ballarin@17436
  5121
HOL/Finite_Set.thy and HOL/Algebra/UnivPoly.thy.
wenzelm@16234
  5122
wenzelm@16234
  5123
INCOMPATIBILITY: former 'instantiate' has been withdrawn, use
wenzelm@16234
  5124
'interpret' instead.
wenzelm@16234
  5125
wenzelm@17385
  5126
* New context element 'constrains' for adding type constraints to
wenzelm@17385
  5127
parameters.
wenzelm@17385
  5128
wenzelm@17385
  5129
* Context expressions: renaming of parameters with syntax
wenzelm@17385
  5130
redeclaration.
ballarin@17095
  5131
ballarin@17095
  5132
* Locale declaration: 'includes' disallowed.
ballarin@17095
  5133
wenzelm@16234
  5134
* Proper static binding of attribute syntax -- i.e. types / terms /
wenzelm@16234
  5135
facts mentioned as arguments are always those of the locale definition
wenzelm@16234
  5136
context, independently of the context of later invocations.  Moreover,
wenzelm@16234
  5137
locale operations (renaming and type / term instantiation) are applied
wenzelm@16234
  5138
to attribute arguments as expected.
wenzelm@16234
  5139
wenzelm@16234
  5140
INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of
wenzelm@16234
  5141
actual attributes; rare situations may require Attrib.attribute to
wenzelm@16234
  5142
embed those attributes into Attrib.src that lack concrete syntax.
wenzelm@16234
  5143
Attribute implementations need to cooperate properly with the static
wenzelm@16234
  5144
binding mechanism.  Basic parsers Args.XXX_typ/term/prop and
wenzelm@16234
  5145
Attrib.XXX_thm etc. already do the right thing without further
wenzelm@16234
  5146
intervention.  Only unusual applications -- such as "where" or "of"
wenzelm@16234
  5147
(cf. src/Pure/Isar/attrib.ML), which process arguments depending both
wenzelm@16234
  5148
on the context and the facts involved -- may have to assign parsed
wenzelm@16234
  5149
values to argument tokens explicitly.
wenzelm@16234
  5150
wenzelm@16234
  5151
* Changed parameter management in theorem generation for long goal
wenzelm@16234
  5152
statements with 'includes'.  INCOMPATIBILITY: produces a different
wenzelm@16234
  5153
theorem statement in rare situations.
wenzelm@16234
  5154
ballarin@17228
  5155
* Locale inspection command 'print_locale' omits notes elements.  Use
ballarin@17228
  5156
'print_locale!' to have them included in the output.
ballarin@17228
  5157
wenzelm@16234
  5158
wenzelm@16234
  5159
*** Provers ***
wenzelm@16234
  5160
wenzelm@16234
  5161
* Provers/hypsubst.ML: improved version of the subst method, for
wenzelm@16234
  5162
single-step rewriting: it now works in bound variable contexts. New is
wenzelm@16234
  5163
'subst (asm)', for rewriting an assumption.  INCOMPATIBILITY: may
wenzelm@16234
  5164
rewrite a different subterm than the original subst method, which is
wenzelm@16234
  5165
still available as 'simplesubst'.
berghofe@15475
  5166
wenzelm@16013
  5167
* Provers/quasi.ML: new transitivity reasoners for transitivity only
wenzelm@16234
  5168
and quasi orders.
ballarin@15103
  5169
wenzelm@16013
  5170
* Provers/trancl.ML: new transitivity reasoner for transitive and
wenzelm@16234
  5171
reflexive-transitive closure of relations.
ballarin@15076
  5172
wenzelm@16013
  5173
* Provers/blast.ML: new reference depth_limit to make blast's depth
wenzelm@16234
  5174
limit (previously hard-coded with a value of 20) user-definable.
wenzelm@15801
  5175
wenzelm@16013
  5176
* Provers/simplifier.ML has been moved to Pure, where Simplifier.setup
wenzelm@16234
  5177
is peformed already.  Object-logics merely need to finish their
wenzelm@16234
  5178
initial simpset configuration as before.  INCOMPATIBILITY.
berghofe@15436
  5179
wenzelm@15703
  5180
wenzelm@15703
  5181
*** HOL ***
wenzelm@15703
  5182
wenzelm@16234
  5183
* Symbolic syntax of Hilbert Choice Operator is now as follows:
wenzelm@15703
  5184
wenzelm@15703
  5185
  syntax (epsilon)
wenzelm@15703
  5186
    "_Eps" :: "[pttrn, bool] => 'a"    ("(3\<some>_./ _)" [0, 10] 10)
wenzelm@15703
  5187
wenzelm@16234
  5188
The symbol \<some> is displayed as the alternative epsilon of LaTeX
wenzelm@16234
  5189
and x-symbol; use option '-m epsilon' to get it actually printed.
wenzelm@16234
  5190
Moreover, the mathematically important symbolic identifier \<epsilon>
wenzelm@16234
  5191
becomes available as variable, constant etc.  INCOMPATIBILITY,
wenzelm@16234
  5192
wenzelm@16234
  5193
* "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x".
wenzelm@16234
  5194
Similarly for all quantifiers: "ALL x > y" etc.  The x-symbol for >=
wenzelm@17371
  5195
is \<ge>. New transitivity rules have been added to HOL/Orderings.thy to
avigad@17016
  5196
support corresponding Isar calculations.
wenzelm@16234
  5197
wenzelm@16234
  5198
* "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>"
wenzelm@16234
  5199
instead of ":".
wenzelm@16234
  5200
wenzelm@16234
  5201
* theory SetInterval: changed the syntax for open intervals:
wenzelm@16234
  5202
wenzelm@16234
  5203
  Old       New
wenzelm@16234
  5204
  {..n(}    {..<n}
wenzelm@16234
  5205
  {)n..}    {n<..}
wenzelm@16234
  5206
  {m..n(}   {m..<n}
wenzelm@16234
  5207
  {)m..n}   {m<..n}
wenzelm@16234
  5208
  {)m..n(}  {m<..<n}
wenzelm@16234
  5209
wenzelm@16234
  5210
The old syntax is still supported but will disappear in the next
wenzelm@16234
  5211
release.  For conversion use the following Emacs search and replace
wenzelm@16234
  5212
patterns (these are not perfect but work quite well):
wenzelm@15703
  5213
wenzelm@15703
  5214
  {)\([^\.]*\)\.\.  ->  {\1<\.\.}
wenzelm@15703
  5215
  \.\.\([^(}]*\)(}  ->  \.\.<\1}
wenzelm@15703
  5216
wenzelm@17533
  5217
* Theory Commutative_Ring (in Library): method comm_ring for proving
wenzelm@17533
  5218
equalities in commutative rings; method 'algebra' provides a generic
wenzelm@17533
  5219
interface.
wenzelm@17389
  5220
wenzelm@17389
  5221
* Theory Finite_Set: changed the syntax for 'setsum', summation over
wenzelm@16234
  5222
finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is
wenzelm@17371
  5223
now either "SUM x:A. e" or "\<Sum>x \<in> A. e". The bound variable can
paulson@17189
  5224
be a tuple pattern.
wenzelm@16234
  5225
wenzelm@16234
  5226
Some new syntax forms are available:
wenzelm@16234
  5227
wenzelm@16234
  5228
  "\<Sum>x | P. e"      for     "setsum (%x. e) {x. P}"
wenzelm@16234
  5229
  "\<Sum>x = a..b. e"   for     "setsum (%x. e) {a..b}"
wenzelm@16234
  5230
  "\<Sum>x = a..<b. e"  for     "setsum (%x. e) {a..<b}"
wenzelm@16234
  5231
  "\<Sum>x < k. e"      for     "setsum (%x. e) {..<k}"
wenzelm@16234
  5232
wenzelm@16234
  5233
The latter form "\<Sum>x < k. e" used to be based on a separate
wenzelm@16234
  5234
function "Summation", which has been discontinued.
wenzelm@16234
  5235
wenzelm@16234
  5236
* theory Finite_Set: in structured induction proofs, the insert case
wenzelm@16234
  5237
is now 'case (insert x F)' instead of the old counterintuitive 'case
wenzelm@16234
  5238
(insert F x)'.
wenzelm@16234
  5239
wenzelm@16234
  5240
* The 'refute' command has been extended to support a much larger
wenzelm@16234
  5241
fragment of HOL, including axiomatic type classes, constdefs and
wenzelm@16234
  5242
typedefs, inductive datatypes and recursion.
wenzelm@16234
  5243
webertj@17700
  5244
* New tactics 'sat' and 'satx' to prove propositional tautologies.
webertj@17700
  5245
Requires zChaff with proof generation to be installed.  See
webertj@17700
  5246
HOL/ex/SAT_Examples.thy for examples.
webertj@17619
  5247
wenzelm@16234
  5248
* Datatype induction via method 'induct' now preserves the name of the
wenzelm@16234
  5249
induction variable. For example, when proving P(xs::'a list) by
wenzelm@16234
  5250
induction on xs, the induction step is now P(xs) ==> P(a#xs) rather
wenzelm@16234
  5251
than P(list) ==> P(a#list) as previously.  Potential INCOMPATIBILITY
wenzelm@16234
  5252
in unstructured proof scripts.
wenzelm@16234
  5253
wenzelm@16234
  5254
* Reworked implementation of records.  Improved scalability for
wenzelm@16234
  5255
records with many fields, avoiding performance problems for type
wenzelm@16234
  5256
inference. Records are no longer composed of nested field types, but
wenzelm@16234
  5257
of nested extension types. Therefore the record type only grows linear
wenzelm@16234
  5258
in the number of extensions and not in the number of fields.  The
wenzelm@16234
  5259
top-level (users) view on records is preserved.  Potential
wenzelm@16234
  5260
INCOMPATIBILITY only in strange cases, where the theory depends on the
wenzelm@16234
  5261
old record representation. The type generated for a record is called
wenzelm@16234
  5262
<record_name>_ext_type.
wenzelm@16234
  5263
wenzelm@16234
  5264
Flag record_quick_and_dirty_sensitive can be enabled to skip the
wenzelm@16234
  5265
proofs triggered by a record definition or a simproc (if
wenzelm@16234
  5266
quick_and_dirty is enabled).  Definitions of large records can take
wenzelm@16234
  5267
quite long.
wenzelm@16234
  5268
wenzelm@16234
  5269
New simproc record_upd_simproc for simplification of multiple record
wenzelm@16234
  5270
updates enabled by default.  Moreover, trivial updates are also
wenzelm@16234
  5271
removed: r(|x := x r|) = r.  INCOMPATIBILITY: old proofs break
wenzelm@16234
  5272
occasionally, since simplification is more powerful by default.
wenzelm@16234
  5273
wenzelm@17275
  5274
* typedef: proper support for polymorphic sets, which contain extra
wenzelm@17275
  5275
type-variables in the term.
wenzelm@17275
  5276
wenzelm@16234
  5277
* Simplifier: automatically reasons about transitivity chains
wenzelm@16234
  5278
involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics
wenzelm@16234
  5279
provided by Provers/trancl.ML as additional solvers.  INCOMPATIBILITY:
wenzelm@16234
  5280
old proofs break occasionally as simplification may now solve more
wenzelm@16234
  5281
goals than previously.
wenzelm@16234
  5282
wenzelm@16234
  5283
* Simplifier: converts x <= y into x = y if assumption y <= x is
wenzelm@16234
  5284
present.  Works for all partial orders (class "order"), in particular
wenzelm@16234
  5285
numbers and sets.  For linear orders (e.g. numbers) it treats ~ x < y
wenzelm@16234
  5286
just like y <= x.
wenzelm@16234
  5287
wenzelm@16234
  5288
* Simplifier: new simproc for "let x = a in f x".  If a is a free or
wenzelm@16234
  5289
bound variable or a constant then the let is unfolded.  Otherwise
wenzelm@16234
  5290
first a is simplified to b, and then f b is simplified to g. If
wenzelm@16234
  5291
possible we abstract b from g arriving at "let x = b in h x",
wenzelm@16234
  5292
otherwise we unfold the let and arrive at g.  The simproc can be
wenzelm@16234
  5293
enabled/disabled by the reference use_let_simproc.  Potential
wenzelm@16234
  5294
INCOMPATIBILITY since simplification is more powerful by default.
webertj@15776
  5295
paulson@16563
  5296
* Classical reasoning: the meson method now accepts theorems as arguments.
paulson@16563
  5297
paulson@17595
  5298
* Prover support: pre-release of the Isabelle-ATP linkup, which runs background
paulson@17595
  5299
jobs to provide advice on the provability of subgoals.
paulson@17595
  5300
wenzelm@16891
  5301
* Theory OrderedGroup and Ring_and_Field: various additions and
wenzelm@16891
  5302
improvements to faciliate calculations involving equalities and
wenzelm@16891
  5303
inequalities.
wenzelm@16891
  5304
wenzelm@16891
  5305
The following theorems have been eliminated or modified
wenzelm@16891
  5306
(INCOMPATIBILITY):
avigad@16888
  5307
avigad@16888
  5308
  abs_eq             now named abs_of_nonneg
wenzelm@17371
  5309
  abs_of_ge_0        now named abs_of_nonneg
wenzelm@17371
  5310
  abs_minus_eq       now named abs_of_nonpos
avigad@16888
  5311
  imp_abs_id         now named abs_of_nonneg
avigad@16888
  5312
  imp_abs_neg_id     now named abs_of_nonpos
avigad@16888
  5313
  mult_pos           now named mult_pos_pos
avigad@16888
  5314
  mult_pos_le        now named mult_nonneg_nonneg
avigad@16888
  5315
  mult_pos_neg_le    now named mult_nonneg_nonpos
avigad@16888
  5316
  mult_pos_neg2_le   now named mult_nonneg_nonpos2
avigad@16888
  5317
  mult_neg           now named mult_neg_neg
avigad@16888
  5318
  mult_neg_le        now named mult_nonpos_nonpos
avigad@16888
  5319
obua@23495
  5320
* The following lemmas in Ring_and_Field have been added to the simplifier:
obua@23495
  5321
     
obua@23495
  5322
     zero_le_square
obua@23495
  5323
     not_square_less_zero 
obua@23495
  5324
obua@23495
  5325
  The following lemmas have been deleted from Real/RealPow:
obua@23495
  5326
  
obua@23495
  5327
     realpow_zero_zero
obua@23495
  5328
     realpow_two
obua@23495
  5329
     realpow_less
obua@23495
  5330
     zero_le_power
obua@23495
  5331
     realpow_two_le
obua@23495
  5332
     abs_realpow_two
obua@23495
  5333
     realpow_two_abs     
obua@23495
  5334
wenzelm@16891
  5335
* Theory Parity: added rules for simplifying exponents.
wenzelm@16891
  5336
nipkow@17092
  5337
* Theory List:
nipkow@17092
  5338
nipkow@17092
  5339
The following theorems have been eliminated or modified
nipkow@17092
  5340
(INCOMPATIBILITY):
nipkow@17092
  5341
nipkow@17092
  5342
  list_all_Nil       now named list_all.simps(1)
nipkow@17092
  5343
  list_all_Cons      now named list_all.simps(2)
nipkow@17092
  5344
  list_all_conv      now named list_all_iff
nipkow@17092
  5345
  set_mem_eq         now named mem_iff
nipkow@17092
  5346
wenzelm@16929
  5347
* Theories SetsAndFunctions and BigO (see HOL/Library) support
wenzelm@16929
  5348
asymptotic "big O" calculations.  See the notes in BigO.thy.
wenzelm@16929
  5349
avigad@16888
  5350
avigad@16888
  5351
*** HOL-Complex ***
avigad@16888
  5352
wenzelm@16891
  5353
* Theory RealDef: better support for embedding natural numbers and
wenzelm@16891
  5354
integers in the reals.
wenzelm@16891
  5355
wenzelm@16891
  5356
The following theorems have been eliminated or modified
wenzelm@16891
  5357
(INCOMPATIBILITY):
wenzelm@16891
  5358
avigad@17016
  5359
  exp_ge_add_one_self  now requires no hypotheses
avigad@17016
  5360
  real_of_int_add      reversed direction of equality (use [symmetric])
avigad@17016
  5361
  real_of_int_minus    reversed direction of equality (use [symmetric])
avigad@17016
  5362
  real_of_int_diff     reversed direction of equality (use [symmetric])
avigad@17016
  5363
  real_of_int_mult     reversed direction of equality (use [symmetric])
wenzelm@16891
  5364
wenzelm@16891
  5365
* Theory RComplete: expanded support for floor and ceiling functions.
avigad@16888
  5366
avigad@16962
  5367
* Theory Ln is new, with properties of the natural logarithm
avigad@16962
  5368
wenzelm@17423
  5369
* Hyperreal: There is a new type constructor "star" for making
wenzelm@17423
  5370
nonstandard types.  The old type names are now type synonyms:
wenzelm@17423
  5371
wenzelm@17423
  5372
  hypreal = real star
wenzelm@17423
  5373
  hypnat = nat star
wenzelm@17423
  5374
  hcomplex = complex star
wenzelm@17423
  5375
wenzelm@17423
  5376
* Hyperreal: Many groups of similarly-defined constants have been
huffman@17442
  5377
replaced by polymorphic versions (INCOMPATIBILITY):
wenzelm@17423
  5378
wenzelm@17423
  5379
  star_of <-- hypreal_of_real, hypnat_of_nat, hcomplex_of_complex
wenzelm@17423
  5380
wenzelm@17423
  5381
  starset      <-- starsetNat, starsetC
wenzelm@17423
  5382
  *s*          <-- *sNat*, *sc*
wenzelm@17423
  5383
  starset_n    <-- starsetNat_n, starsetC_n
wenzelm@17423
  5384
  *sn*         <-- *sNatn*, *scn*
wenzelm@17423
  5385
  InternalSets <-- InternalNatSets, InternalCSets
wenzelm@17423
  5386
huffman@17442
  5387
  starfun      <-- starfun{Nat,Nat2,C,RC,CR}
wenzelm@17423
  5388
  *f*          <-- *fNat*, *fNat2*, *fc*, *fRc*, *fcR*
huffman@17442
  5389
  starfun_n    <-- starfun{Nat,Nat2,C,RC,CR}_n
wenzelm@17423
  5390
  *fn*         <-- *fNatn*, *fNat2n*, *fcn*, *fRcn*, *fcRn*
huffman@17442
  5391
  InternalFuns <-- InternalNatFuns, InternalNatFuns2, Internal{C,RC,CR}Funs
wenzelm@17423
  5392
wenzelm@17423
  5393
* Hyperreal: Many type-specific theorems have been removed in favor of
huffman@17442
  5394
theorems specific to various axiomatic type classes (INCOMPATIBILITY):
huffman@17442
  5395
huffman@17442
  5396
  add_commute <-- {hypreal,hypnat,hcomplex}_add_commute
huffman@17442
  5397
  add_assoc   <-- {hypreal,hypnat,hcomplex}_add_assocs
huffman@17442
  5398
  OrderedGroup.add_0 <-- {hypreal,hypnat,hcomplex}_add_zero_left
huffman@17442
  5399
  OrderedGroup.add_0_right <-- {hypreal,hcomplex}_add_zero_right
wenzelm@17423
  5400
  right_minus <-- hypreal_add_minus
huffman@17442
  5401
  left_minus <-- {hypreal,hcomplex}_add_minus_left
huffman@17442
  5402
  mult_commute <-- {hypreal,hypnat,hcomplex}_mult_commute
huffman@17442
  5403
  mult_assoc <-- {hypreal,hypnat,hcomplex}_mult_assoc
huffman@17442
  5404
  mult_1_left <-- {hypreal,hypnat}_mult_1, hcomplex_mult_one_left
wenzelm@17423
  5405
  mult_1_right <-- hcomplex_mult_one_right
wenzelm@17423
  5406
  mult_zero_left <-- hcomplex_mult_zero_left
huffman@17442
  5407
  left_distrib <-- {hypreal,hypnat,hcomplex}_add_mult_distrib
wenzelm@17423
  5408
  right_distrib <-- hypnat_add_mult_distrib2
huffman@17442
  5409
  zero_neq_one <-- {hypreal,hypnat,hcomplex}_zero_not_eq_one
wenzelm@17423
  5410
  right_inverse <-- hypreal_mult_inverse
wenzelm@17423
  5411
  left_inverse <-- hypreal_mult_inverse_left, hcomplex_mult_inv_left
huffman@17442
  5412
  order_refl <-- {hypreal,hypnat}_le_refl
huffman@17442
  5413
  order_trans <-- {hypreal,hypnat}_le_trans
huffman@17442
  5414
  order_antisym <-- {hypreal,hypnat}_le_anti_sym
huffman@17442
  5415
  order_less_le <-- {hypreal,hypnat}_less_le
huffman@17442
  5416
  linorder_linear <-- {hypreal,hypnat}_le_linear
huffman@17442
  5417
  add_left_mono <-- {hypreal,hypnat}_add_left_mono
huffman@17442
  5418
  mult_strict_left_mono <-- {hypreal,hypnat}_mult_less_mono2
wenzelm@17423
  5419
  add_nonneg_nonneg <-- hypreal_le_add_order
wenzelm@17423
  5420
wenzelm@17423
  5421
* Hyperreal: Separate theorems having to do with type-specific
wenzelm@17423
  5422
versions of constants have been merged into theorems that apply to the
huffman@17442
  5423
new polymorphic constants (INCOMPATIBILITY):
huffman@17442
  5424
huffman@17442
  5425
  STAR_UNIV_set <-- {STAR_real,NatStar_real,STARC_complex}_set
huffman@17442
  5426
  STAR_empty_set <-- {STAR,NatStar,STARC}_empty_set
huffman@17442
  5427
  STAR_Un <-- {STAR,NatStar,STARC}_Un
huffman@17442
  5428
  STAR_Int <-- {STAR,NatStar,STARC}_Int
huffman@17442
  5429
  STAR_Compl <-- {STAR,NatStar,STARC}_Compl
huffman@17442
  5430
  STAR_subset <-- {STAR,NatStar,STARC}_subset
huffman@17442
  5431
  STAR_mem <-- {STAR,NatStar,STARC}_mem
huffman@17442
  5432
  STAR_mem_Compl <-- {STAR,STARC}_mem_Compl
huffman@17442
  5433
  STAR_diff <-- {STAR,STARC}_diff
huffman@17442
  5434
  STAR_star_of_image_subset <-- {STAR_hypreal_of_real, NatStar_hypreal_of_real,
huffman@17442
  5435
    STARC_hcomplex_of_complex}_image_subset
huffman@17442
  5436
  starset_n_Un <-- starset{Nat,C}_n_Un
huffman@17442
  5437
  starset_n_Int <-- starset{Nat,C}_n_Int
huffman@17442
  5438
  starset_n_Compl <-- starset{Nat,C}_n_Compl
huffman@17442
  5439
  starset_n_diff <-- starset{Nat,C}_n_diff
huffman@17442
  5440
  InternalSets_Un <-- Internal{Nat,C}Sets_Un
huffman@17442
  5441
  InternalSets_Int <-- Internal{Nat,C}Sets_Int
huffman@17442
  5442
  InternalSets_Compl <-- Internal{Nat,C}Sets_Compl
huffman@17442
  5443
  InternalSets_diff <-- Internal{Nat,C}Sets_diff
huffman@17442
  5444
  InternalSets_UNIV_diff <-- Internal{Nat,C}Sets_UNIV_diff
huffman@17442
  5445
  InternalSets_starset_n <-- Internal{Nat,C}Sets_starset{Nat,C}_n
huffman@17442
  5446
  starset_starset_n_eq <-- starset{Nat,C}_starset{Nat,C}_n_eq
huffman@17442
  5447
  starset_n_starset <-- starset{Nat,C}_n_starset{Nat,C}
huffman@17442
  5448
  starfun_n_starfun <-- starfun{Nat,Nat2,C,RC,CR}_n_starfun{Nat,Nat2,C,RC,CR}
huffman@17442
  5449
  starfun <-- starfun{Nat,Nat2,C,RC,CR}
huffman@17442
  5450
  starfun_mult <-- starfun{Nat,Nat2,C,RC,CR}_mult
huffman@17442
  5451
  starfun_add <-- starfun{Nat,Nat2,C,RC,CR}_add
huffman@17442
  5452
  starfun_minus <-- starfun{Nat,Nat2,C,RC,CR}_minus
huffman@17442
  5453
  starfun_diff <-- starfun{C,RC,CR}_diff
huffman@17442
  5454
  starfun_o <-- starfun{NatNat2,Nat2,_stafunNat,C,C_starfunRC,_starfunCR}_o
huffman@17442
  5455
  starfun_o2 <-- starfun{NatNat2,_stafunNat,C,C_starfunRC,_starfunCR}_o2
huffman@17442
  5456
  starfun_const_fun <-- starfun{Nat,Nat2,C,RC,CR}_const_fun
huffman@17442
  5457
  starfun_inverse <-- starfun{Nat,C,RC,CR}_inverse
huffman@17442
  5458
  starfun_eq <-- starfun{Nat,Nat2,C,RC,CR}_eq
huffman@17442
  5459
  starfun_eq_iff <-- starfun{C,RC,CR}_eq_iff
wenzelm@17423
  5460
  starfun_Id <-- starfunC_Id
huffman@17442
  5461
  starfun_approx <-- starfun{Nat,CR}_approx
huffman@17442
  5462
  starfun_capprox <-- starfun{C,RC}_capprox
wenzelm@17423
  5463
  starfun_abs <-- starfunNat_rabs
huffman@17442
  5464
  starfun_lambda_cancel <-- starfun{C,CR,RC}_lambda_cancel
huffman@17442
  5465
  starfun_lambda_cancel2 <-- starfun{C,CR,RC}_lambda_cancel2
wenzelm@17423
  5466
  starfun_mult_HFinite_approx <-- starfunCR_mult_HFinite_capprox
huffman@17442
  5467
  starfun_mult_CFinite_capprox <-- starfun{C,RC}_mult_CFinite_capprox
huffman@17442
  5468
  starfun_add_capprox <-- starfun{C,RC}_add_capprox
wenzelm@17423
  5469
  starfun_add_approx <-- starfunCR_add_approx
wenzelm@17423
  5470
  starfun_inverse_inverse <-- starfunC_inverse_inverse
huffman@17442
  5471
  starfun_divide <-- starfun{C,CR,RC}_divide
huffman@17442
  5472
  starfun_n <-- starfun{Nat,C}_n
huffman@17442
  5473
  starfun_n_mult <-- starfun{Nat,C}_n_mult
huffman@17442
  5474
  starfun_n_add <-- starfun{Nat,C}_n_add
wenzelm@17423
  5475
  starfun_n_add_minus <-- starfunNat_n_add_minus
huffman@17442
  5476
  starfun_n_const_fun <-- starfun{Nat,C}_n_const_fun
huffman@17442
  5477
  starfun_n_minus <-- starfun{Nat,C}_n_minus
huffman@17442
  5478
  starfun_n_eq <-- starfun{Nat,C}_n_eq
huffman@17442
  5479
huffman@17442
  5480
  star_n_add <-- {hypreal,hypnat,hcomplex}_add
huffman@17442
  5481
  star_n_minus <-- {hypreal,hcomplex}_minus
huffman@17442
  5482
  star_n_diff <-- {hypreal,hcomplex}_diff
huffman@17442
  5483
  star_n_mult <-- {hypreal,hcomplex}_mult
huffman@17442
  5484
  star_n_inverse <-- {hypreal,hcomplex}_inverse
huffman@17442
  5485
  star_n_le <-- {hypreal,hypnat}_le
huffman@17442
  5486
  star_n_less <-- {hypreal,hypnat}_less
huffman@17442
  5487
  star_n_zero_num <-- {hypreal,hypnat,hcomplex}_zero_num
huffman@17442
  5488
  star_n_one_num <-- {hypreal,hypnat,hcomplex}_one_num
wenzelm@17423
  5489
  star_n_abs <-- hypreal_hrabs
wenzelm@17423
  5490
  star_n_divide <-- hcomplex_divide
wenzelm@17423
  5491
huffman@17442
  5492
  star_of_add <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_add
huffman@17442
  5493
  star_of_minus <-- {hypreal_of_real,hcomplex_of_complex}_minus
wenzelm@17423
  5494
  star_of_diff <-- hypreal_of_real_diff
huffman@17442
  5495
  star_of_mult <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_mult
huffman@17442
  5496
  star_of_one <-- {hypreal_of_real,hcomplex_of_complex}_one
huffman@17442
  5497
  star_of_zero <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_zero
huffman@17442
  5498
  star_of_le <-- {hypreal_of_real,hypnat_of_nat}_le_iff
huffman@17442
  5499
  star_of_less <-- {hypreal_of_real,hypnat_of_nat}_less_iff
huffman@17442
  5500
  star_of_eq <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_eq_iff
huffman@17442
  5501
  star_of_inverse <-- {hypreal_of_real,hcomplex_of_complex}_inverse
huffman@17442
  5502
  star_of_divide <-- {hypreal_of_real,hcomplex_of_complex}_divide
huffman@17442
  5503
  star_of_of_nat <-- {hypreal_of_real,hcomplex_of_complex}_of_nat
huffman@17442
  5504
  star_of_of_int <-- {hypreal_of_real,hcomplex_of_complex}_of_int
huffman@17442
  5505
  star_of_number_of <-- {hypreal,hcomplex}_number_of
wenzelm@17423
  5506
  star_of_number_less <-- number_of_less_hypreal_of_real_iff
wenzelm@17423
  5507
  star_of_number_le <-- number_of_le_hypreal_of_real_iff
wenzelm@17423
  5508
  star_of_eq_number <-- hypreal_of_real_eq_number_of_iff
wenzelm@17423
  5509
  star_of_less_number <-- hypreal_of_real_less_number_of_iff
wenzelm@17423
  5510
  star_of_le_number <-- hypreal_of_real_le_number_of_iff
wenzelm@17423
  5511
  star_of_power <-- hypreal_of_real_power
wenzelm@17423
  5512
  star_of_eq_0 <-- hcomplex_of_complex_zero_iff
wenzelm@17423
  5513
huffman@17442
  5514
* Hyperreal: new method "transfer" that implements the transfer
huffman@17442
  5515
principle of nonstandard analysis. With a subgoal that mentions
huffman@17442
  5516
nonstandard types like "'a star", the command "apply transfer"
huffman@17442
  5517
replaces it with an equivalent one that mentions only standard types.
huffman@17442
  5518
To be successful, all free variables must have standard types; non-
huffman@17442
  5519
standard variables must have explicit universal quantifiers.
huffman@17442
  5520
wenzelm@17641
  5521
* Hyperreal: A theory of Taylor series.
wenzelm@17641
  5522
wenzelm@15703
  5523
wenzelm@15703
  5524
*** HOLCF ***
wenzelm@15703
  5525
wenzelm@17533
  5526
* Discontinued special version of 'constdefs' (which used to support
wenzelm@17533
  5527
continuous functions) in favor of the general Pure one with full
wenzelm@17533
  5528
type-inference.
wenzelm@17533
  5529
wenzelm@17533
  5530
* New simplification procedure for solving continuity conditions; it
wenzelm@17533
  5531
is much faster on terms with many nested lambda abstractions (cubic
huffman@17442
  5532
instead of exponential time).
huffman@17442
  5533
wenzelm@17533
  5534
* New syntax for domain package: selector names are now optional.
huffman@17442
  5535
Parentheses should be omitted unless argument is lazy, for example:
huffman@17442
  5536
huffman@17442
  5537
  domain 'a stream = cons "'a" (lazy "'a stream")
huffman@17442
  5538
wenzelm@17533
  5539
* New command 'fixrec' for defining recursive functions with pattern
wenzelm@17533
  5540
matching; defining multiple functions with mutual recursion is also
wenzelm@17533
  5541
supported.  Patterns may include the constants cpair, spair, up, sinl,
wenzelm@17533
  5542
sinr, or any data constructor defined by the domain package. The given
wenzelm@17533
  5543
equations are proven as rewrite rules. See HOLCF/ex/Fixrec_ex.thy for
wenzelm@17533
  5544
syntax and examples.
wenzelm@17533
  5545
wenzelm@17533
  5546
* New commands 'cpodef' and 'pcpodef' for defining predicate subtypes
wenzelm@17533
  5547
of cpo and pcpo types. Syntax is exactly like the 'typedef' command,
wenzelm@17533
  5548
but the proof obligation additionally includes an admissibility
wenzelm@17533
  5549
requirement. The packages generate instances of class cpo or pcpo,
wenzelm@17533
  5550
with continuity and strictness theorems for Rep and Abs.
huffman@17442
  5551
huffman@17584
  5552
* HOLCF: Many theorems have been renamed according to a more standard naming
huffman@17584
  5553
scheme (INCOMPATIBILITY):
huffman@17584
  5554
huffman@17584
  5555
  foo_inject:  "foo$x = foo$y ==> x = y"
huffman@17584
  5556
  foo_eq:      "(foo$x = foo$y) = (x = y)"
huffman@17584
  5557
  foo_less:    "(foo$x << foo$y) = (x << y)"
huffman@17584
  5558
  foo_strict:  "foo$UU = UU"
huffman@17584
  5559
  foo_defined: "... ==> foo$x ~= UU"
huffman@17584
  5560
  foo_defined_iff: "(foo$x = UU) = (x = UU)"
huffman@17584
  5561
wenzelm@15703
  5562
wenzelm@15703
  5563
*** ZF ***
wenzelm@15703
  5564
wenzelm@16234
  5565
* ZF/ex: theories Group and Ring provide examples in abstract algebra,
wenzelm@16234
  5566
including the First Isomorphism Theorem (on quotienting by the kernel
wenzelm@16234
  5567
of a homomorphism).
wenzelm@15703
  5568
wenzelm@15703
  5569
* ZF/Simplifier: install second copy of type solver that actually
wenzelm@16234
  5570
makes use of TC rules declared to Isar proof contexts (or locales);
wenzelm@16234
  5571
the old version is still required for ML proof scripts.
wenzelm@15703
  5572
wenzelm@15703
  5573
wenzelm@17445
  5574
*** Cube ***
wenzelm@17445
  5575
wenzelm@17445
  5576
* Converted to Isar theory format; use locales instead of axiomatic
wenzelm@17445
  5577
theories.
wenzelm@17445
  5578
wenzelm@17445
  5579
wenzelm@15703
  5580
*** ML ***
wenzelm@15703
  5581
haftmann@21339
  5582
* Pure/library.ML: added ##>, ##>>, #>> -- higher-order counterparts
haftmann@21339
  5583
for ||>, ||>>, |>>,
haftmann@21339
  5584
wenzelm@15973
  5585
* Pure/library.ML no longer defines its own option datatype, but uses
wenzelm@16234
  5586
that of the SML basis, which has constructors NONE and SOME instead of
wenzelm@16234
  5587
None and Some, as well as exception Option.Option instead of OPTION.
wenzelm@16234
  5588
The functions the, if_none, is_some, is_none have been adapted
wenzelm@16234
  5589
accordingly, while Option.map replaces apsome.
wenzelm@15973
  5590
wenzelm@16860
  5591
* Pure/library.ML: the exception LIST has been given up in favour of
wenzelm@16860
  5592
the standard exceptions Empty and Subscript, as well as
wenzelm@16860
  5593
Library.UnequalLengths.  Function like Library.hd and Library.tl are
wenzelm@36856
  5594
superceded by the standard hd and tl functions etc.
wenzelm@16860
  5595
wenzelm@16860
  5596
A number of basic list functions are no longer exported to the ML
wenzelm@16860
  5597
toplevel, as they are variants of predefined functions.  The following
wenzelm@16234
  5598
suggests how one can translate existing code:
wenzelm@15973
  5599
wenzelm@15973
  5600
    rev_append xs ys = List.revAppend (xs, ys)
wenzelm@15973
  5601
    nth_elem (i, xs) = List.nth (xs, i)
wenzelm@15973
  5602
    last_elem xs = List.last xs
wenzelm@15973
  5603
    flat xss = List.concat xss
wenzelm@16234
  5604
    seq fs = List.app fs
wenzelm@15973
  5605
    partition P xs = List.partition P xs
wenzelm@15973
  5606
    mapfilter f xs = List.mapPartial f xs
wenzelm@15973
  5607
wenzelm@16860
  5608
* Pure/library.ML: several combinators for linear functional
wenzelm@16860
  5609
transformations, notably reverse application and composition:
wenzelm@16860
  5610
wenzelm@17371
  5611
  x |> f                f #> g
wenzelm@17371
  5612
  (x, y) |-> f          f #-> g
wenzelm@16860
  5613
haftmann@17495
  5614
* Pure/library.ML: introduced/changed precedence of infix operators:
haftmann@17495
  5615
haftmann@17495
  5616
  infix 1 |> |-> ||> ||>> |>> |>>> #> #->;
haftmann@17495
  5617
  infix 2 ?;
haftmann@17495
  5618
  infix 3 o oo ooo oooo;
haftmann@17495
  5619
  infix 4 ~~ upto downto;
haftmann@17495
  5620
haftmann@17495
  5621
Maybe INCOMPATIBILITY when any of those is used in conjunction with other
haftmann@17495
  5622
infix operators.
haftmann@17495
  5623
wenzelm@17408
  5624
* Pure/library.ML: natural list combinators fold, fold_rev, and
haftmann@16869
  5625
fold_map support linear functional transformations and nesting.  For
wenzelm@16860
  5626
example:
wenzelm@16860
  5627
wenzelm@16860
  5628
  fold f [x1, ..., xN] y =
wenzelm@16860
  5629
    y |> f x1 |> ... |> f xN
wenzelm@16860
  5630
wenzelm@16860
  5631
  (fold o fold) f [xs1, ..., xsN] y =
wenzelm@16860
  5632
    y |> fold f xs1 |> ... |> fold f xsN
wenzelm@16860
  5633
wenzelm@16860
  5634
  fold f [x1, ..., xN] =
wenzelm@16860
  5635
    f x1 #> ... #> f xN
wenzelm@16860
  5636
wenzelm@16860
  5637
  (fold o fold) f [xs1, ..., xsN] =
wenzelm@16860
  5638
    fold f xs1 #> ... #> fold f xsN
wenzelm@16860
  5639
wenzelm@17408
  5640
* Pure/library.ML: the following selectors on type 'a option are
wenzelm@17408
  5641
available:
wenzelm@17408
  5642
wenzelm@17408
  5643
  the:               'a option -> 'a  (*partial*)
wenzelm@17408
  5644
  these:             'a option -> 'a  where 'a = 'b list
haftmann@17402
  5645
  the_default: 'a -> 'a option -> 'a
haftmann@17402
  5646
  the_list:          'a option -> 'a list
haftmann@17402
  5647
wenzelm@17408
  5648
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
wenzelm@17408
  5649
basic operations for association lists, following natural argument
haftmann@17564
  5650
order; moreover the explicit equality predicate passed here avoids
haftmann@17495
  5651
potentially expensive polymorphic runtime equality checks.
haftmann@17495
  5652
The old functions may be expressed as follows:
wenzelm@17408
  5653
wenzelm@17408
  5654
  assoc = uncurry (AList.lookup (op =))
wenzelm@17408
  5655
  assocs = these oo AList.lookup (op =)
wenzelm@17408
  5656
  overwrite = uncurry (AList.update (op =)) o swap
wenzelm@17408
  5657
haftmann@17564
  5658
* Pure/General: structure AList (cf. Pure/General/alist.ML) provides
haftmann@17564
  5659
haftmann@17564
  5660
  val make: ('a -> 'b) -> 'a list -> ('a * 'b) list
haftmann@17564
  5661
  val find: ('a * 'b -> bool) -> ('c * 'b) list -> 'a -> 'c list
haftmann@17564
  5662
haftmann@17564
  5663
replacing make_keylist and keyfilter (occassionally used)
haftmann@17564
  5664
Naive rewrites:
haftmann@17564
  5665
haftmann@17564
  5666
  make_keylist = AList.make
haftmann@17564
  5667
  keyfilter = AList.find (op =)
haftmann@17564
  5668
haftmann@17564
  5669
* eq_fst and eq_snd now take explicit equality parameter, thus
haftmann@17564
  5670
  avoiding eqtypes. Naive rewrites:
haftmann@17564
  5671
haftmann@17564
  5672
    eq_fst = eq_fst (op =)
haftmann@17564
  5673
    eq_snd = eq_snd (op =)
haftmann@17564
  5674
haftmann@17564
  5675
* Removed deprecated apl and apr (rarely used).
haftmann@17564
  5676
  Naive rewrites:
haftmann@17564
  5677
haftmann@17564
  5678
    apl (n, op) =>>= curry op n
haftmann@17564
  5679
    apr (op, m) =>>= fn n => op (n, m)
haftmann@17564
  5680
wenzelm@17408
  5681
* Pure/General: structure OrdList (cf. Pure/General/ord_list.ML)
wenzelm@17408
  5682
provides a reasonably efficient light-weight implementation of sets as
wenzelm@17408
  5683
lists.
wenzelm@17408
  5684
wenzelm@17408
  5685
* Pure/General: generic tables (cf. Pure/General/table.ML) provide a
wenzelm@17408
  5686
few new operations; existing lookup and update are now curried to
wenzelm@17408
  5687
follow natural argument order (for use with fold etc.);
wenzelm@17408
  5688
INCOMPATIBILITY, use (uncurry Symtab.lookup) etc. as last resort.
wenzelm@17408
  5689
wenzelm@17408
  5690
* Pure/General: output via the Isabelle channels of
wenzelm@17408
  5691
writeln/warning/error etc. is now passed through Output.output, with a
wenzelm@17408
  5692
hook for arbitrary transformations depending on the print_mode
wenzelm@17408
  5693
(cf. Output.add_mode -- the first active mode that provides a output
wenzelm@17408
  5694
function wins).  Already formatted output may be embedded into further
wenzelm@17408
  5695
text via Output.raw; the result of Pretty.string_of/str_of and derived
wenzelm@17408
  5696
functions (string_of_term/cterm/thm etc.) is already marked raw to
wenzelm@17408
  5697
accommodate easy composition of diagnostic messages etc.  Programmers
wenzelm@17408
  5698
rarely need to care about Output.output or Output.raw at all, with
wenzelm@17408
  5699
some notable exceptions: Output.output is required when bypassing the
wenzelm@17408
  5700
standard channels (writeln etc.), or in token translations to produce
wenzelm@17408
  5701
properly formatted results; Output.raw is required when capturing
wenzelm@17408
  5702
already output material that will eventually be presented to the user
wenzelm@17408
  5703
a second time.  For the default print mode, both Output.output and
wenzelm@17408
  5704
Output.raw have no effect.
wenzelm@17408
  5705
wenzelm@17408
  5706
* Pure/General: Output.time_accumulator NAME creates an operator ('a
wenzelm@17408
  5707
-> 'b) -> 'a -> 'b to measure runtime and count invocations; the
wenzelm@17408
  5708
cumulative results are displayed at the end of a batch session.
wenzelm@17408
  5709
wenzelm@17408
  5710
* Pure/General: File.sysify_path and File.quote_sysify path have been
wenzelm@17408
  5711
replaced by File.platform_path and File.shell_path (with appropriate
wenzelm@17408
  5712
hooks).  This provides a clean interface for unusual systems where the
wenzelm@17408
  5713
internal and external process view of file names are different.
wenzelm@17408
  5714
wenzelm@16689
  5715
* Pure: more efficient orders for basic syntactic entities: added
wenzelm@16689
  5716
fast_string_ord, fast_indexname_ord, fast_term_ord; changed sort_ord
wenzelm@16689
  5717
and typ_ord to use fast_string_ord and fast_indexname_ord (term_ord is
wenzelm@16689
  5718
NOT affected); structures Symtab, Vartab, Typtab, Termtab use the fast
wenzelm@16689
  5719
orders now -- potential INCOMPATIBILITY for code that depends on a
wenzelm@16689
  5720
particular order for Symtab.keys, Symtab.dest, etc. (consider using
wenzelm@16689
  5721
Library.sort_strings on result).
wenzelm@16689
  5722
wenzelm@17408
  5723
* Pure/term.ML: combinators fold_atyps, fold_aterms, fold_term_types,
wenzelm@17408
  5724
fold_types traverse types/terms from left to right, observing natural
wenzelm@36856
  5725
argument order.  Supercedes previous foldl_XXX versions, add_frees,
wenzelm@17408
  5726
add_vars etc. have been adapted as well: INCOMPATIBILITY.
wenzelm@17408
  5727
wenzelm@16151
  5728
* Pure: name spaces have been refined, with significant changes of the
wenzelm@16234
  5729
internal interfaces -- INCOMPATIBILITY.  Renamed cond_extern(_table)
wenzelm@36856
  5730
to extern(_table).  The plain name entry path is superceded by a
wenzelm@16234
  5731
general 'naming' context, which also includes the 'policy' to produce
wenzelm@16234
  5732
a fully qualified name and external accesses of a fully qualified
wenzelm@36856
  5733
name; NameSpace.extend is superceded by context dependent
wenzelm@16234
  5734
Sign.declare_name.  Several theory and proof context operations modify
wenzelm@16234
  5735
the naming context.  Especially note Theory.restore_naming and
wenzelm@16234
  5736
ProofContext.restore_naming to get back to a sane state; note that
wenzelm@16234
  5737
Theory.add_path is no longer sufficient to recover from
wenzelm@16234
  5738
Theory.absolute_path in particular.
wenzelm@16234
  5739
wenzelm@16234
  5740
* Pure: new flags short_names (default false) and unique_names
wenzelm@16234
  5741
(default true) for controlling output of qualified names.  If
wenzelm@16234
  5742
short_names is set, names are printed unqualified.  If unique_names is
wenzelm@16234
  5743
reset, the name prefix is reduced to the minimum required to achieve
wenzelm@16234
  5744
the original result when interning again, even if there is an overlap
wenzelm@16234
  5745
with earlier declarations.
wenzelm@16151
  5746
wenzelm@16456
  5747
* Pure/TheoryDataFun: change of the argument structure; 'prep_ext' is
wenzelm@16456
  5748
now 'extend', and 'merge' gets an additional Pretty.pp argument
wenzelm@16456
  5749
(useful for printing error messages).  INCOMPATIBILITY.
wenzelm@16456
  5750
wenzelm@16456
  5751
* Pure: major reorganization of the theory context.  Type Sign.sg and
wenzelm@16456
  5752
Theory.theory are now identified, referring to the universal
wenzelm@16456
  5753
Context.theory (see Pure/context.ML).  Actual signature and theory
wenzelm@16456
  5754
content is managed as theory data.  The old code and interfaces were
wenzelm@16456
  5755
spread over many files and structures; the new arrangement introduces
wenzelm@16456
  5756
considerable INCOMPATIBILITY to gain more clarity:
wenzelm@16456
  5757
wenzelm@16456
  5758
  Context -- theory management operations (name, identity, inclusion,
wenzelm@16456
  5759
    parents, ancestors, merge, etc.), plus generic theory data;
wenzelm@16456
  5760
wenzelm@16456
  5761
  Sign -- logical signature and syntax operations (declaring consts,
wenzelm@16456
  5762
    types, etc.), plus certify/read for common entities;
wenzelm@16456
  5763
wenzelm@16456
  5764
  Theory -- logical theory operations (stating axioms, definitions,
wenzelm@16456
  5765
    oracles), plus a copy of logical signature operations (consts,
wenzelm@16456
  5766
    types, etc.); also a few basic management operations (Theory.copy,
wenzelm@16456
  5767
    Theory.merge, etc.)
wenzelm@16456
  5768
wenzelm@16456
  5769
The most basic sign_of operations (Theory.sign_of, Thm.sign_of_thm
wenzelm@16456
  5770
etc.) as well as the sign field in Thm.rep_thm etc. have been retained
wenzelm@16456
  5771
for convenience -- they merely return the theory.
wenzelm@16456
  5772
wenzelm@36856
  5773
* Pure: type Type.tsig is superceded by theory in most interfaces.
wenzelm@17193
  5774
wenzelm@16547
  5775
* Pure: the Isar proof context type is already defined early in Pure
wenzelm@16547
  5776
as Context.proof (note that ProofContext.context and Proof.context are
wenzelm@16547
  5777
aliases, where the latter is the preferred name).  This enables other
wenzelm@16547
  5778
Isabelle components to refer to that type even before Isar is present.
wenzelm@16547
  5779
wenzelm@16373
  5780
* Pure/sign/theory: discontinued named name spaces (i.e. classK,
wenzelm@16373
  5781
typeK, constK, axiomK, oracleK), but provide explicit operations for
wenzelm@16373
  5782
any of these kinds.  For example, Sign.intern typeK is now
wenzelm@16373
  5783
Sign.intern_type, Theory.hide_space Sign.typeK is now
wenzelm@16373
  5784
Theory.hide_types.  Also note that former
wenzelm@16373
  5785
Theory.hide_classes/types/consts are now
wenzelm@16373
  5786
Theory.hide_classes_i/types_i/consts_i, while the non '_i' versions
wenzelm@16373
  5787
internalize their arguments!  INCOMPATIBILITY.
wenzelm@16373
  5788
wenzelm@16506
  5789
* Pure: get_thm interface (of PureThy and ProofContext) expects
wenzelm@16506
  5790
datatype thmref (with constructors Name and NameSelection) instead of
wenzelm@16506
  5791
plain string -- INCOMPATIBILITY;
wenzelm@16506
  5792
wenzelm@16151
  5793
* Pure: cases produced by proof methods specify options, where NONE
wenzelm@16234
  5794
means to remove case bindings -- INCOMPATIBILITY in
wenzelm@16234
  5795
(RAW_)METHOD_CASES.
wenzelm@16151
  5796
wenzelm@16373
  5797
* Pure: the following operations retrieve axioms or theorems from a
wenzelm@16373
  5798
theory node or theory hierarchy, respectively:
wenzelm@16373
  5799
wenzelm@16373
  5800
  Theory.axioms_of: theory -> (string * term) list
wenzelm@16373
  5801
  Theory.all_axioms_of: theory -> (string * term) list
wenzelm@16373
  5802
  PureThy.thms_of: theory -> (string * thm) list
wenzelm@16373
  5803
  PureThy.all_thms_of: theory -> (string * thm) list
wenzelm@16373
  5804
wenzelm@16718
  5805
* Pure: print_tac now outputs the goal through the trace channel.
wenzelm@16718
  5806
wenzelm@17408
  5807
* Isar toplevel: improved diagnostics, mostly for Poly/ML only.
wenzelm@17408
  5808
Reference Toplevel.debug (default false) controls detailed printing
wenzelm@17408
  5809
and tracing of low-level exceptions; Toplevel.profiling (default 0)
wenzelm@17408
  5810
controls execution profiling -- set to 1 for time and 2 for space
wenzelm@17408
  5811
(both increase the runtime).
wenzelm@17408
  5812
wenzelm@17408
  5813
* Isar session: The initial use of ROOT.ML is now always timed,
wenzelm@17408
  5814
i.e. the log will show the actual process times, in contrast to the
wenzelm@17408
  5815
elapsed wall-clock time that the outer shell wrapper produces.
wenzelm@17408
  5816
wenzelm@17408
  5817
* Simplifier: improved handling of bound variables (nameless
wenzelm@16997
  5818
representation, avoid allocating new strings).  Simprocs that invoke
wenzelm@16997
  5819
the Simplifier recursively should use Simplifier.inherit_bounds to
wenzelm@17720
  5820
avoid local name clashes.  Failure to do so produces warnings
wenzelm@17720
  5821
"Simplifier: renamed bound variable ..."; set Simplifier.debug_bounds
wenzelm@17720
  5822
for further details.
wenzelm@16234
  5823
wenzelm@17166
  5824
* ML functions legacy_bindings and use_legacy_bindings produce ML fact
wenzelm@17166
  5825
bindings for all theorems stored within a given theory; this may help
wenzelm@17166
  5826
in porting non-Isar theories to Isar ones, while keeping ML proof
wenzelm@17166
  5827
scripts for the time being.
wenzelm@17166
  5828
wenzelm@17457
  5829
* ML operator HTML.with_charset specifies the charset begin used for
wenzelm@17457
  5830
generated HTML files.  For example:
wenzelm@17457
  5831
wenzelm@17457
  5832
  HTML.with_charset "utf-8" use_thy "Hebrew";
wenzelm@17538
  5833
  HTML.with_charset "utf-8" use_thy "Chinese";
wenzelm@17457
  5834
wenzelm@16234
  5835
wenzelm@16234
  5836
*** System ***
wenzelm@16234
  5837
wenzelm@16234
  5838
* Allow symlinks to all proper Isabelle executables (Isabelle,
wenzelm@16234
  5839
isabelle, isatool etc.).
wenzelm@16234
  5840
wenzelm@16234
  5841
* ISABELLE_DOC_FORMAT setting specifies preferred document format (for
wenzelm@16234
  5842
isatool doc, isatool mkdir, display_drafts etc.).
wenzelm@16234
  5843
wenzelm@16234
  5844
* isatool usedir: option -f allows specification of the ML file to be
wenzelm@16234
  5845
used by Isabelle; default is ROOT.ML.
wenzelm@16234
  5846
wenzelm@16251
  5847
* New isatool version outputs the version identifier of the Isabelle
wenzelm@16251
  5848
distribution being used.
wenzelm@16251
  5849
wenzelm@16251
  5850
* HOL: new isatool dimacs2hol converts files in DIMACS CNF format
wenzelm@16234
  5851
(containing Boolean satisfiability problems) into Isabelle/HOL
wenzelm@16234
  5852
theories.
paulson@14885
  5853
paulson@14885
  5854
wenzelm@14655
  5855
wenzelm@14606
  5856
New in Isabelle2004 (April 2004)
wenzelm@14606
  5857
--------------------------------
wenzelm@13280
  5858
skalberg@14171
  5859
*** General ***
skalberg@14171
  5860
ballarin@14398
  5861
* Provers/order.ML:  new efficient reasoner for partial and linear orders.
ballarin@14398
  5862
  Replaces linorder.ML.
ballarin@14398
  5863
wenzelm@14606
  5864
* Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic
wenzelm@14606
  5865
  (\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler
skalberg@14173
  5866
  (\<a>...\<z>), are now considered normal letters, and can therefore
skalberg@14173
  5867
  be used anywhere where an ASCII letter (a...zA...Z) has until
skalberg@14173
  5868
  now. COMPATIBILITY: This obviously changes the parsing of some
skalberg@14173
  5869
  terms, especially where a symbol has been used as a binder, say
skalberg@14173
  5870
  '\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed
skalberg@14173
  5871
  as an identifier.  Fix it by inserting a space around former
skalberg@14173
  5872
  symbols.  Call 'isatool fixgreek' to try to fix parsing errors in
skalberg@14173
  5873
  existing theory and ML files.
skalberg@14171
  5874
paulson@14237
  5875
* Pure: Macintosh and Windows line-breaks are now allowed in theory files.
paulson@14237
  5876
wenzelm@14731
  5877
* Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now
wenzelm@14731
  5878
  allowed in identifiers. Similar to Greek letters \<^isub> is now considered
wenzelm@14731
  5879
  a normal (but invisible) letter. For multiple letter subscripts repeat
wenzelm@14731
  5880
  \<^isub> like this: x\<^isub>1\<^isub>2.
kleing@14233
  5881
kleing@14333
  5882
* Pure: There are now sub-/superscripts that can span more than one
kleing@14333
  5883
  character. Text between \<^bsub> and \<^esub> is set in subscript in
wenzelm@14606
  5884
  ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in
wenzelm@14606
  5885
  superscript. The new control characters are not identifier parts.
kleing@14333
  5886
schirmer@14561
  5887
* Pure: Control-symbols of the form \<^raw:...> will literally print the
wenzelm@14606
  5888
  content of "..." to the latex file instead of \isacntrl... . The "..."
wenzelm@14606
  5889
  may consist of any printable characters excluding the end bracket >.
schirmer@14361
  5890
paulson@14237
  5891
* Pure: Using new Isar command "finalconsts" (or the ML functions
paulson@14237
  5892
  Theory.add_finals or Theory.add_finals_i) it is now possible to
paulson@14237
  5893
  declare constants "final", which prevents their being given a definition
paulson@14237
  5894
  later.  It is useful for constants whose behaviour is fixed axiomatically
skalberg@14224
  5895
  rather than definitionally, such as the meta-logic connectives.
skalberg@14224
  5896
wenzelm@14606
  5897
* Pure: 'instance' now handles general arities with general sorts
wenzelm@14606
  5898
  (i.e. intersections of classes),
skalberg@14503
  5899
kleing@14547
  5900
* Presentation: generated HTML now uses a CSS style sheet to make layout
wenzelm@14731
  5901
  (somewhat) independent of content. It is copied from lib/html/isabelle.css.
kleing@14547
  5902
  It can be changed to alter the colors/layout of generated pages.
kleing@14547
  5903
wenzelm@14556
  5904
ballarin@14175
  5905
*** Isar ***
ballarin@14175
  5906
ballarin@14508
  5907
* Tactic emulation methods rule_tac, erule_tac, drule_tac, frule_tac,
ballarin@14508
  5908
  cut_tac, subgoal_tac and thin_tac:
ballarin@14175
  5909
  - Now understand static (Isar) contexts.  As a consequence, users of Isar
ballarin@14175
  5910
    locales are no longer forced to write Isar proof scripts.
ballarin@14175
  5911
    For details see Isar Reference Manual, paragraph 4.3.2: Further tactic
ballarin@14175
  5912
    emulations.
ballarin@14175
  5913
  - INCOMPATIBILITY: names of variables to be instantiated may no
ballarin@14211
  5914
    longer be enclosed in quotes.  Instead, precede variable name with `?'.
ballarin@14211
  5915
    This is consistent with the instantiation attribute "where".
ballarin@14211
  5916
ballarin@14257
  5917
* Attributes "where" and "of":
ballarin@14285
  5918
  - Now take type variables of instantiated theorem into account when reading
ballarin@14285
  5919
    the instantiation string.  This fixes a bug that caused instantiated
ballarin@14285
  5920
    theorems to have too special types in some circumstances.
ballarin@14285
  5921
  - "where" permits explicit instantiations of type variables.
ballarin@14257
  5922
wenzelm@14556
  5923
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm@14556
  5924
  current facts ("this"), admitting arbitrary combinations with "then"
wenzelm@14556
  5925
  and derived forms.
kleing@14283
  5926
ballarin@14211
  5927
* Locales:
ballarin@14211
  5928
  - Goal statements involving the context element "includes" no longer
ballarin@14211
  5929
    generate theorems with internal delta predicates (those ending on
ballarin@14211
  5930
    "_axioms") in the premise.
ballarin@14211
  5931
    Resolve particular premise with <locale>.intro to obtain old form.
ballarin@14211
  5932
  - Fixed bug in type inference ("unify_frozen") that prevented mix of target
ballarin@14211
  5933
    specification and "includes" elements in goal statement.
ballarin@14254
  5934
  - Rule sets <locale>.intro and <locale>.axioms no longer declared as
ballarin@14254
  5935
    [intro?] and [elim?] (respectively) by default.
ballarin@14508
  5936
  - Experimental command for instantiation of locales in proof contexts:
ballarin@14551
  5937
        instantiate <label>[<attrs>]: <loc>
ballarin@14508
  5938
    Instantiates locale <loc> and adds all its theorems to the current context
ballarin@14551
  5939
    taking into account their attributes.  Label and attrs are optional
ballarin@14551
  5940
    modifiers, like in theorem declarations.  If present, names of
ballarin@14551
  5941
    instantiated theorems are qualified with <label>, and the attributes
ballarin@14551
  5942
    <attrs> are applied after any attributes these theorems might have already.
ballarin@14551
  5943
      If the locale has assumptions, a chained fact of the form
ballarin@14508
  5944
    "<loc> t1 ... tn" is expected from which instantiations of the parameters
ballarin@14551
  5945
    are derived.  The command does not support old-style locales declared
ballarin@14551
  5946
    with "locale (open)".
ballarin@14551
  5947
      A few (very simple) examples can be found in FOL/ex/LocaleInst.thy.
ballarin@14175
  5948
ballarin@14175
  5949
* HOL: Tactic emulation methods induct_tac and case_tac understand static
ballarin@14175
  5950
  (Isar) contexts.
ballarin@14175
  5951
wenzelm@14556
  5952
kleing@14136
  5953
*** HOL ***
kleing@14136
  5954
kleing@14624
  5955
* Proof import: new image HOL4 contains the imported library from
kleing@14624
  5956
  the HOL4 system with about 2500 theorems. It is imported by
kleing@14624
  5957
  replaying proof terms produced by HOL4 in Isabelle. The HOL4 image
kleing@14624
  5958
  can be used like any other Isabelle image.  See
kleing@14624
  5959
  HOL/Import/HOL/README for more information.
kleing@14624
  5960
ballarin@14398
  5961
* Simplifier:
ballarin@14398
  5962
  - Much improved handling of linear and partial orders.
ballarin@14398
  5963
    Reasoners for linear and partial orders are set up for type classes
ballarin@14398
  5964
    "linorder" and "order" respectively, and are added to the default simpset
ballarin@14398
  5965
    as solvers.  This means that the simplifier can build transitivity chains
ballarin@14398
  5966
    to solve goals from the assumptions.
ballarin@14398
  5967
  - INCOMPATIBILITY: old proofs break occasionally.  Typically, applications
ballarin@14398
  5968
    of blast or auto after simplification become unnecessary because the goal
ballarin@14398
  5969
    is solved by simplification already.
ballarin@14398
  5970
wenzelm@14731
  5971
* Numerics: new theory Ring_and_Field contains over 250 basic numerical laws,
paulson@14389
  5972
    all proved in axiomatic type classes for semirings, rings and fields.
paulson@14389
  5973
paulson@14389
  5974
* Numerics:
paulson@14389
  5975
  - Numeric types (nat, int, and in HOL-Complex rat, real, complex, etc.) are
wenzelm@14731
  5976
    now formalized using the Ring_and_Field theory mentioned above.
paulson@14389
  5977
  - INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently
paulson@14389
  5978
    than before, because now they are set up once in a generic manner.
wenzelm@14731
  5979
  - INCOMPATIBILITY: many type-specific arithmetic laws have gone.
paulson@14480
  5980
    Look for the general versions in Ring_and_Field (and Power if they concern
paulson@14480
  5981
    exponentiation).
paulson@14389
  5982
paulson@14401
  5983
* Type "rat" of the rational numbers is now available in HOL-Complex.
paulson@14389
  5984
schirmer@14255
  5985
* Records:
schirmer@14255
  5986
  - Record types are now by default printed with their type abbreviation
schirmer@14255
  5987
    instead of the list of all field types. This can be configured via
schirmer@14255
  5988
    the reference "print_record_type_abbr".
wenzelm@14731
  5989
  - Simproc "record_upd_simproc" for simplification of multiple updates added
schirmer@14255
  5990
    (not enabled by default).
schirmer@14427
  5991
  - Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp.
schirmer@14427
  5992
    EX x. x = sel r to True (not enabled by default).
schirmer@14255
  5993
  - Tactic "record_split_simp_tac" to split and simplify records added.
wenzelm@14731
  5994
kleing@14136
  5995
* 'specification' command added, allowing for definition by
skalberg@14224
  5996
  specification.  There is also an 'ax_specification' command that
skalberg@14224
  5997
  introduces the new constants axiomatically.
kleing@14136
  5998
nipkow@14375
  5999
* arith(_tac) is now able to generate counterexamples for reals as well.
nipkow@14375
  6000
ballarin@14399
  6001
* HOL-Algebra: new locale "ring" for non-commutative rings.
ballarin@14399
  6002
paulson@14243
  6003
* HOL-ex: InductiveInvariant_examples illustrates advanced recursive function
kleing@14610
  6004
  definitions, thanks to Sava Krsti\'{c} and John Matthews.
kleing@14610
  6005
wenzelm@14731
  6006
* HOL-Matrix: a first theory for matrices in HOL with an application of
kleing@14610
  6007
  matrix theory to linear programming.
kleing@14136
  6008
nipkow@14380
  6009
* Unions and Intersections:
nipkow@15119
  6010
  The latex output syntax of UN and INT has been changed
nipkow@15119
  6011
  from "\Union x \in A. B" to "\Union_{x \in A} B"
nipkow@15119
  6012
  i.e. the index formulae has become a subscript.
nipkow@15119
  6013
  Similarly for "\Union x. B", and for \Inter instead of \Union.
nipkow@14380
  6014
kleing@14418
  6015
* Unions and Intersections over Intervals:
wenzelm@14731
  6016
  There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is
wenzelm@14731
  6017
  also an x-symbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A"
kleing@14418
  6018
  like in normal math, and corresponding versions for < and for intersection.
kleing@14418
  6019
nipkow@15677
  6020
* HOL/List: Ordering "lexico" is renamed "lenlex" and the standard
nipkow@15677
  6021
  lexicographic dictonary ordering has been added as "lexord".
nipkow@15677
  6022
paulson@14401
  6023
* ML: the legacy theory structures Int and List have been removed. They had
paulson@14401
  6024
  conflicted with ML Basis Library structures having the same names.
nipkow@14380
  6025
webertj@14464
  6026
* 'refute' command added to search for (finite) countermodels.  Only works
webertj@14464
  6027
  for a fragment of HOL.  The installation of an external SAT solver is
webertj@14464
  6028
  highly recommended.  See "HOL/Refute.thy" for details.
webertj@14464
  6029
berghofe@14602
  6030
* 'quickcheck' command: Allows to find counterexamples by evaluating
berghofe@14602
  6031
  formulae under an assignment of free variables to random values.
berghofe@14602
  6032
  In contrast to 'refute', it can deal with inductive datatypes,
berghofe@14602
  6033
  but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy"
berghofe@14602
  6034
  for examples.
webertj@14464
  6035
wenzelm@14606
  6036
oheimb@14536
  6037
*** HOLCF ***
oheimb@14536
  6038
oheimb@14536
  6039
* Streams now come with concatenation and are part of the HOLCF image
oheimb@14536
  6040
wenzelm@14572
  6041
wenzelm@14572
  6042
kleing@14136
  6043
New in Isabelle2003 (May 2003)
wenzelm@14606
  6044
------------------------------
kleing@14136
  6045
wenzelm@13280
  6046
*** General ***
wenzelm@13280
  6047
berghofe@13618
  6048
* Provers/simplifier:
berghofe@13618
  6049
nipkow@13781
  6050
  - Completely reimplemented method simp (ML: Asm_full_simp_tac):
berghofe@13618
  6051
    Assumptions are now subject to complete mutual simplification,
berghofe@13618
  6052
    not just from left to right. The simplifier now preserves
berghofe@13618
  6053
    the order of assumptions.
berghofe@13618
  6054
berghofe@13618
  6055
    Potential INCOMPATIBILITY:
berghofe@13618
  6056
nipkow@13781
  6057
    -- simp sometimes diverges where the old version did
nipkow@13781
  6058
       not, e.g. invoking simp on the goal
berghofe@13618
  6059
berghofe@13618
  6060
        [| P (f x); y = x; f x = f y |] ==> Q
berghofe@13618
  6061
nipkow@13781
  6062
       now gives rise to the infinite reduction sequence
nipkow@13781
  6063
nipkow@13781
  6064
        P(f x) --(f x = f y)--> P(f y) --(y = x)--> P(f x) --(f x = f y)--> ...
nipkow@13781
  6065
nipkow@13781
  6066
       Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this
nipkow@13781
  6067
       kind of problem.
nipkow@13781
  6068
nipkow@13781
  6069
    -- Tactics combining classical reasoner and simplification (such as auto)
nipkow@13781
  6070
       are also affected by this change, because many of them rely on
nipkow@13781
  6071
       simp. They may sometimes diverge as well or yield a different numbers
nipkow@13781
  6072
       of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto
nipkow@13781
  6073
       in case of problems. Sometimes subsequent calls to the classical
nipkow@13781
  6074
       reasoner will fail because a preceeding call to the simplifier too
nipkow@13781
  6075
       eagerly simplified the goal, e.g. deleted redundant premises.
berghofe@13618
  6076
berghofe@13618
  6077
  - The simplifier trace now shows the names of the applied rewrite rules
berghofe@13618
  6078
nipkow@13829
  6079
  - You can limit the number of recursive invocations of the simplifier
nipkow@13829
  6080
    during conditional rewriting (where the simplifie tries to solve the
nipkow@13829
  6081
    conditions before applying the rewrite rule):
nipkow@13829
  6082
    ML "simp_depth_limit := n"
nipkow@13829
  6083
    where n is an integer. Thus you can force termination where previously
nipkow@13829
  6084
    the simplifier would diverge.
nipkow@13829
  6085
ballarin@13835
  6086
  - Accepts free variables as head terms in congruence rules.  Useful in Isar.
nipkow@13829
  6087
ballarin@13938
  6088
  - No longer aborts on failed congruence proof.  Instead, the
ballarin@13938
  6089
    congruence is ignored.
ballarin@13938
  6090
berghofe@14008
  6091
* Pure: New generic framework for extracting programs from constructive
berghofe@14008
  6092
  proofs. See HOL/Extraction.thy for an example instantiation, as well
berghofe@14008
  6093
  as HOL/Extraction for some case studies.
berghofe@14008
  6094
nipkow@13868
  6095
* Pure: The main goal of the proof state is no longer shown by default, only
nipkow@13868
  6096
the subgoals. This behaviour is controlled by a new flag.
ballarin@13835
  6097
   PG menu: Isabelle/Isar -> Settings -> Show Main Goal
nipkow@13815
  6098
(ML: Proof.show_main_goal).
nipkow@13815
  6099
nipkow@13815
  6100
* Pure: You can find all matching introduction rules for subgoal 1, i.e. all
nipkow@13815
  6101
rules whose conclusion matches subgoal 1:
nipkow@13815
  6102
      PG menu: Isabelle/Isar -> Show me -> matching rules
nipkow@13815
  6103
The rules are ordered by how closely they match the subgoal.
nipkow@13815
  6104
In particular, rules that solve a subgoal outright are displayed first
nipkow@13815
  6105
(or rather last, the way they are printed).
nipkow@13815
  6106
(ML: ProofGeneral.print_intros())
nipkow@13815
  6107
nipkow@13815
  6108
* Pure: New flag trace_unify_fail causes unification to print
nipkow@13781
  6109
diagnostic information (PG: in trace buffer) when it fails. This is
nipkow@13781
  6110
useful for figuring out why single step proofs like rule, erule or
nipkow@13781
  6111
assumption failed.
nipkow@13781
  6112
nipkow@13815
  6113
* Pure: Locale specifications now produce predicate definitions
wenzelm@13410
  6114
according to the body of text (covering assumptions modulo local
wenzelm@13410
  6115
definitions); predicate "loc_axioms" covers newly introduced text,
wenzelm@13410
  6116
while "loc" is cumulative wrt. all included locale expressions; the
wenzelm@13410
  6117
latter view is presented only on export into the global theory
wenzelm@13410
  6118
context; potential INCOMPATIBILITY, use "(open)" option to fall back
wenzelm@13410
  6119
on the old view without predicates;
wenzelm@13410
  6120
wenzelm@13459
  6121
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm@13459
  6122
parameters (as in CASL, for example); just specify something like
wenzelm@13459
  6123
``var x + var y + struct M'' as import;
wenzelm@13459
  6124
wenzelm@13463
  6125
* Pure: improved thms_containing: proper indexing of facts instead of
wenzelm@13463
  6126
raw theorems; check validity of results wrt. current name space;
wenzelm@13463
  6127
include local facts of proof configuration (also covers active
wenzelm@13541
  6128
locales), cover fixed variables in index; may use "_" in term
wenzelm@13541
  6129
specification; an optional limit for the number of printed facts may
wenzelm@13541
  6130
be given (the default is 40);
wenzelm@13541
  6131
wenzelm@13541
  6132
* Pure: disallow duplicate fact bindings within new-style theory files
wenzelm@13541
  6133
(batch-mode only);
wenzelm@13540
  6134
wenzelm@13463
  6135
* Provers: improved induct method: assumptions introduced by case
wenzelm@13463
  6136
"foo" are split into "foo.hyps" (from the rule) and "foo.prems" (from
wenzelm@13463
  6137
the goal statement); "foo" still refers to all facts collectively;
wenzelm@13463
  6138
paulson@13550
  6139
* Provers: the function blast.overloaded has been removed: all constants
paulson@13550
  6140
are regarded as potentially overloaded, which improves robustness in exchange
paulson@13550
  6141
for slight decrease in efficiency;
paulson@13550
  6142
nipkow@13781
  6143
* Provers/linorder: New generic prover for transitivity reasoning over
nipkow@13781
  6144
linear orders.  Note: this prover is not efficient!
nipkow@13781
  6145
wenzelm@13522
  6146
* Isar: preview of problems to finish 'show' now produce an error
wenzelm@13522
  6147
rather than just a warning (in interactive mode);
wenzelm@13522
  6148
wenzelm@13280
  6149
nipkow@13158
  6150
*** HOL ***
nipkow@13158
  6151
nipkow@13899
  6152
* arith(_tac)
nipkow@13899
  6153
nipkow@13899
  6154
 - Produces a counter example if it cannot prove a goal.
nipkow@13899
  6155
   Note that the counter example may be spurious if the goal is not a formula
nipkow@13899
  6156
   of quantifier-free linear arithmetic.
nipkow@13899
  6157
   In ProofGeneral the counter example appears in the trace buffer.
nipkow@13899
  6158
nipkow@13899
  6159
 - Knows about div k and mod k where k is a numeral of type nat or int.
nipkow@13899
  6160
nipkow@13899
  6161
 - Calls full Presburger arithmetic (by Amine Chaieb) if quantifier-free
nipkow@13899
  6162
   linear arithmetic fails. This takes account of quantifiers and divisibility.
wenzelm@14731
  6163
   Presburger arithmetic can also be called explicitly via presburger(_tac).
nipkow@13899
  6164
nipkow@13899
  6165
* simp's arithmetic capabilities have been enhanced a bit: it now
nipkow@13899
  6166
takes ~= in premises into account (by performing a case split);
nipkow@13899
  6167
nipkow@13899
  6168
* simp reduces "m*(n div m) + n mod m" to n, even if the two summands
nipkow@13899
  6169
are distributed over a sum of terms;
nipkow@13899
  6170
ballarin@13735
  6171
* New tactic "trans_tac" and method "trans" instantiate
ballarin@13735
  6172
Provers/linorder.ML for axclasses "order" and "linorder" (predicates
wenzelm@14731
  6173
"<=", "<" and "=").
wenzelm@14731
  6174
wenzelm@14731
  6175
* function INCOMPATIBILITIES: Pi-sets have been redefined and moved from main
paulson@13587
  6176
HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp";
paulson@13587
  6177
wenzelm@13443
  6178
* 'typedef' command has new option "open" to suppress the set
wenzelm@13443
  6179
definition;
wenzelm@13443
  6180
wenzelm@13522
  6181
* functions Min and Max on finite sets have been introduced (theory
wenzelm@13522
  6182
Finite_Set);
nipkow@13492
  6183
wenzelm@13443
  6184
* attribute [symmetric] now works for relations as well; it turns
wenzelm@13443
  6185
(x,y) : R^-1 into (y,x) : R, and vice versa;
wenzelm@13443
  6186
nipkow@13613
  6187
* induct over a !!-quantified statement (say !!x1..xn):
nipkow@13613
  6188
  each "case" automatically performs "fix x1 .. xn" with exactly those names.
nipkow@13613
  6189
nipkow@13899
  6190
* Map: `empty' is no longer a constant but a syntactic abbreviation for
nipkow@13899
  6191
%x. None. Warning: empty_def now refers to the previously hidden definition
nipkow@13899
  6192
of the empty set.
nipkow@13899
  6193
ballarin@14018
  6194
* Algebra: formalization of classical algebra.  Intended as base for
ballarin@14018
  6195
any algebraic development in Isabelle.  Currently covers group theory
ballarin@14018
  6196
(up to Sylow's theorem) and ring theory (Universal Property of
ballarin@14018
  6197
Univariate Polynomials).  Contributions welcome;
paulson@13960
  6198
paulson@13960
  6199
* GroupTheory: deleted, since its material has been moved to Algebra;
paulson@13960
  6200
wenzelm@14731
  6201
* Complex: new directory of the complex numbers with numeric constants,
wenzelm@14731
  6202
nonstandard complex numbers, and some complex analysis, standard and
paulson@13966
  6203
nonstandard (Jacques Fleuriot);
paulson@13966
  6204
paulson@13966
  6205
* HOL-Complex: new image for analysis, replacing HOL-Real and HOL-Hyperreal;
paulson@13966
  6206
wenzelm@14731
  6207
* Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques
paulson@13966
  6208
Fleuriot);
paulson@13960
  6209
wenzelm@13549
  6210
* Real/HahnBanach: updated and adapted to locales;
wenzelm@13549
  6211
ballarin@13995
  6212
* NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad,
ballarin@13995
  6213
Gray and Kramer);
paulson@13872
  6214
paulson@13872
  6215
* UNITY: added the Meier-Sanders theory of progress sets;
paulson@13872
  6216
kleing@14011
  6217
* MicroJava: bytecode verifier and lightweight bytecode verifier
kleing@14011
  6218
as abstract algorithms, instantiated to the JVM;
kleing@14011
  6219
schirmer@14010
  6220
* Bali: Java source language formalization. Type system, operational
schirmer@14010
  6221
semantics, axiomatic semantics. Supported language features:
schirmer@14010
  6222
classes, interfaces, objects,virtual methods, static methods,
schirmer@14010
  6223
static/instance fields, arrays, access modifiers, definite
schirmer@14010
  6224
assignment, exceptions.
wenzelm@13549
  6225
kleing@14011
  6226
wenzelm@13549
  6227
*** ZF ***
wenzelm@13549
  6228
webertj@15154
  6229
* ZF/Constructible: consistency proof for AC (Gdel's constructible
wenzelm@13549
  6230
universe, etc.);
wenzelm@13549
  6231
paulson@13872
  6232
* Main ZF: virtually all theories converted to new-style format;
nipkow@13518
  6233
wenzelm@13280
  6234
wenzelm@13478
  6235
*** ML ***
wenzelm@13478
  6236
wenzelm@13478
  6237
* Pure: Tactic.prove provides sane interface for internal proofs;
wenzelm@13478
  6238
omits the infamous "standard" operation, so this is more appropriate
wenzelm@13478
  6239
than prove_goalw_cterm in many situations (e.g. in simprocs);
wenzelm@13478
  6240
wenzelm@13478
  6241
* Pure: improved error reporting of simprocs;
wenzelm@13478
  6242
wenzelm@13478
  6243
* Provers: Simplifier.simproc(_i) provides sane interface for setting
wenzelm@13478
  6244
up simprocs;
wenzelm@13478
  6245
wenzelm@13478
  6246
kleing@13953
  6247
*** Document preparation ***
kleing@13953
  6248
kleing@13953
  6249
* uses \par instead of \\ for line breaks in theory text. This may
kleing@13953
  6250
shift some page breaks in large documents. To get the old behaviour
kleing@13953
  6251
use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex.
kleing@13953
  6252
wenzelm@14731
  6253
* minimized dependencies of isabelle.sty and isabellesym.sty on
kleing@13953
  6254
other packages
kleing@13953
  6255
kleing@13953
  6256
* \<euro> now needs package babel/greek instead of marvosym (which
kleing@13953
  6257
broke \Rightarrow)
kleing@13953
  6258
wenzelm@14731
  6259
* normal size for \<zero>...\<nine> (uses \mathbf instead of
kleing@13954
  6260
textcomp package)
kleing@13953
  6261
wenzelm@13280
  6262
wenzelm@14572
  6263
wenzelm@12984
  6264
New in Isabelle2002 (March 2002)
wenzelm@12984
  6265
--------------------------------
wenzelm@11474
  6266
wenzelm@11572
  6267
*** Document preparation ***
wenzelm@11572
  6268
wenzelm@11842
  6269
* greatly simplified document preparation setup, including more
wenzelm@11842
  6270
graceful interpretation of isatool usedir -i/-d/-D options, and more
wenzelm@11842
  6271
instructive isatool mkdir; users should basically be able to get
wenzelm@12899
  6272
started with "isatool mkdir HOL Test && isatool make"; alternatively,
wenzelm@12899
  6273
users may run a separate document processing stage manually like this:
wenzelm@12899
  6274
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm@11842
  6275
wenzelm@11842
  6276
* theory dependency graph may now be incorporated into documents;
wenzelm@11842
  6277
isatool usedir -g true will produce session_graph.eps/.pdf for use
wenzelm@11842
  6278
with \includegraphics of LaTeX;
wenzelm@11842
  6279
wenzelm@11864
  6280
* proper spacing of consecutive markup elements, especially text
wenzelm@11864
  6281
blocks after section headings;
wenzelm@11864
  6282
wenzelm@11572
  6283
* support bold style (for single symbols only), input syntax is like
wenzelm@11572
  6284
this: "\<^bold>\<alpha>" or "\<^bold>A";
wenzelm@11572
  6285
wenzelm@11814
  6286
* \<bullet> is now output as bold \cdot by default, which looks much
wenzelm@11572
  6287
better in printed text;
wenzelm@11572
  6288
wenzelm@11712
  6289
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm@11712
  6290
note that these symbols are currently unavailable in Proof General /
wenzelm@12769
  6291
X-Symbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>;
wenzelm@12690
  6292
wenzelm@12690
  6293
* isatool latex no longer depends on changed TEXINPUTS, instead
wenzelm@12690
  6294
isatool document copies the Isabelle style files to the target
wenzelm@12690
  6295
location;
wenzelm@11712
  6296
wenzelm@11572
  6297
wenzelm@11633
  6298
*** Isar ***
wenzelm@11633
  6299
wenzelm@12312
  6300
* Pure/Provers: improved proof by cases and induction;
wenzelm@12280
  6301
  - 'case' command admits impromptu naming of parameters (such as
wenzelm@12280
  6302
    "case (Suc n)");
wenzelm@12280
  6303
  - 'induct' method divinates rule instantiation from the inductive
wenzelm@12280
  6304
    claim; no longer requires excessive ?P bindings for proper
wenzelm@12280
  6305
    instantiation of cases;
wenzelm@12280
  6306
  - 'induct' method properly enumerates all possibilities of set/type
wenzelm@12280
  6307
    rules; as a consequence facts may be also passed through *type*
wenzelm@12280
  6308
    rules without further ado;
wenzelm@12280
  6309
  - 'induct' method now derives symbolic cases from the *rulified*
wenzelm@12280
  6310
    rule (before it used to rulify cases stemming from the internal
wenzelm@12280
  6311
    atomized version); this means that the context of a non-atomic
wenzelm@12280
  6312
    statement becomes is included in the hypothesis, avoiding the
wenzelm@12280
  6313
    slightly cumbersome show "PROP ?case" form;
wenzelm@12280
  6314
  - 'induct' may now use elim-style induction rules without chaining
wenzelm@12280
  6315
    facts, using ``missing'' premises from the goal state; this allows
wenzelm@12280
  6316
    rules stemming from inductive sets to be applied in unstructured
wenzelm@12280
  6317
    scripts, while still benefitting from proper handling of non-atomic
wenzelm@12280
  6318
    statements; NB: major inductive premises need to be put first, all
wenzelm@12280
  6319
    the rest of the goal is passed through the induction;
wenzelm@12280
  6320
  - 'induct' proper support for mutual induction involving non-atomic
wenzelm@12280
  6321
    rule statements (uses the new concept of simultaneous goals, see
wenzelm@12280
  6322
    below);
wenzelm@12853
  6323
  - append all possible rule selections, but only use the first
wenzelm@12853
  6324
    success (no backtracking);
wenzelm@11995
  6325
  - removed obsolete "(simplified)" and "(stripped)" options of methods;
wenzelm@12754
  6326
  - undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm@12754
  6327
  - added 'print_induct_rules' (covered by help item in recent Proof
wenzelm@12754
  6328
    General versions);
wenzelm@11995
  6329
  - moved induct/cases attributes to Pure, methods to Provers;
wenzelm@11995
  6330
  - generic method setup instantiated for FOL and HOL;
wenzelm@11986
  6331
wenzelm@12163
  6332
* Pure: support multiple simultaneous goal statements, for example
wenzelm@12163
  6333
"have a: A and b: B" (same for 'theorem' etc.); being a pure
wenzelm@12163
  6334
meta-level mechanism, this acts as if several individual goals had
wenzelm@12163
  6335
been stated separately; in particular common proof methods need to be
wenzelm@12163
  6336
repeated in order to cover all claims; note that a single elimination
wenzelm@12163
  6337
step is *not* sufficient to establish the two conjunctions, so this
wenzelm@12163
  6338
fails:
wenzelm@12163
  6339
wenzelm@12163
  6340
  assume "A & B" then have A and B ..   (*".." fails*)
wenzelm@12163
  6341
wenzelm@12163
  6342
better use "obtain" in situations as above; alternative refer to
wenzelm@12163
  6343
multi-step methods like 'auto', 'simp_all', 'blast+' etc.;
wenzelm@12163
  6344
wenzelm@12078
  6345
* Pure: proper integration with ``locales''; unlike the original
webertj@15154
  6346
version by Florian Kammller, Isar locales package high-level proof
wenzelm@12078
  6347
contexts rather than raw logical ones (e.g. we admit to include
wenzelm@12280
  6348
attributes everywhere); operations on locales include merge and
wenzelm@12964
  6349
rename; support for implicit arguments (``structures''); simultaneous
wenzelm@12964
  6350
type-inference over imports and text; see also HOL/ex/Locales.thy for
wenzelm@12964
  6351
some examples;
wenzelm@12078
  6352
wenzelm@12707
  6353
* Pure: the following commands have been ``localized'', supporting a
wenzelm@12707
  6354
target locale specification "(in name)": 'lemma', 'theorem',
wenzelm@12707
  6355
'corollary', 'lemmas', 'theorems', 'declare'; the results will be
wenzelm@12707
  6356
stored both within the locale and at the theory level (exported and
wenzelm@12707
  6357
qualified by the locale name);
wenzelm@12707
  6358
wenzelm@12964
  6359
* Pure: theory goals may now be specified in ``long'' form, with
wenzelm@12964
  6360
ad-hoc contexts consisting of arbitrary locale elements. for example
wenzelm@12964
  6361
``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and
wenzelm@12964
  6362
definitions may be given, too); the result is a meta-level rule with
wenzelm@12964
  6363
the context elements being discharged in the obvious way;
wenzelm@12964
  6364
wenzelm@12964
  6365
* Pure: new proof command 'using' allows to augment currently used
wenzelm@12964
  6366
facts after a goal statement ('using' is syntactically analogous to
wenzelm@12964
  6367
'apply', but acts on the goal's facts only); this allows chained facts
wenzelm@12964
  6368
to be separated into parts given before and after a claim, as in
wenzelm@12964
  6369
``from a and b have C using d and e <proof>'';
wenzelm@12078
  6370
wenzelm@11722
  6371
* Pure: renamed "antecedent" case to "rule_context";
wenzelm@11722
  6372
wenzelm@12964
  6373
* Pure: new 'judgment' command records explicit information about the
wenzelm@12964
  6374
object-logic embedding (used by several tools internally); no longer
wenzelm@12964
  6375
use hard-wired "Trueprop";
wenzelm@12964
  6376
wenzelm@11738
  6377
* Pure: added 'corollary' command;
wenzelm@11738
  6378
wenzelm@11722
  6379
* Pure: fixed 'token_translation' command;
wenzelm@11722
  6380
wenzelm@11899
  6381
* Pure: removed obsolete 'exported' attribute;
wenzelm@11899
  6382
wenzelm@11933
  6383
* Pure: dummy pattern "_" in is/let is now automatically lifted over
wenzelm@11933
  6384
bound variables: "ALL x. P x --> Q x" (is "ALL x. _ --> ?C x")
wenzelm@11899
  6385
supersedes more cumbersome ... (is "ALL x. _ x --> ?C x");
wenzelm@11899
  6386
wenzelm@11952
  6387
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm@11952
  6388
statements (atomic meta-level propositions); setup controlled via
wenzelm@11952
  6389
rewrite rules declarations of 'atomize' attribute; example
wenzelm@11952
  6390
application: 'induct' method with proper rule statements in improper
wenzelm@11952
  6391
proof *scripts*;
wenzelm@11952
  6392
wenzelm@12106
  6393
* Pure: emulation of instantiation tactics (rule_tac, cut_tac, etc.)
wenzelm@12106
  6394
now consider the syntactic context of assumptions, giving a better
wenzelm@12106
  6395
chance to get type-inference of the arguments right (this is
wenzelm@12106
  6396
especially important for locales);
wenzelm@12106
  6397
wenzelm@12312
  6398
* Pure: "sorry" no longer requires quick_and_dirty in interactive
wenzelm@12312
  6399
mode;
wenzelm@12312
  6400
wenzelm@12405
  6401
* Pure/obtain: the formal conclusion "thesis", being marked as
wenzelm@12405
  6402
``internal'', may no longer be reference directly in the text;
wenzelm@12405
  6403
potential INCOMPATIBILITY, may need to use "?thesis" in rare
wenzelm@12405
  6404
situations;
wenzelm@12405
  6405
wenzelm@12405
  6406
* Pure: generic 'sym' attribute which declares a rule both as pure
wenzelm@12405
  6407
'elim?' and for the 'symmetric' operation;
wenzelm@12405
  6408
wenzelm@12877
  6409
* Pure: marginal comments ``--'' may now occur just anywhere in the
wenzelm@12877
  6410
text; the fixed correlation with particular command syntax has been
wenzelm@12877
  6411
discontinued;
wenzelm@12877
  6412
berghofe@13023
  6413
* Pure: new method 'rules' is particularly well-suited for proof
berghofe@13023
  6414
search in intuitionistic logic; a bit slower than 'blast' or 'fast',
berghofe@13023
  6415
but often produces more compact proof terms with less detours;
berghofe@13023
  6416
wenzelm@12364
  6417
* Pure/Provers/classical: simplified integration with pure rule
wenzelm@12364
  6418
attributes and methods; the classical "intro?/elim?/dest?"
wenzelm@12364
  6419
declarations coincide with the pure ones; the "rule" method no longer
wenzelm@12364
  6420
includes classically swapped intros; "intro" and "elim" methods no
wenzelm@12364
  6421
longer pick rules from the context; also got rid of ML declarations
wenzelm@12364
  6422
AddXIs/AddXEs/AddXDs; all of this has some potential for
wenzelm@12364
  6423
INCOMPATIBILITY;
wenzelm@12364
  6424
wenzelm@12405
  6425
* Provers/classical: attribute 'swapped' produces classical inversions
wenzelm@12405
  6426
of introduction rules;
wenzelm@12405
  6427
wenzelm@12364
  6428
* Provers/simplifier: 'simplified' attribute may refer to explicit
wenzelm@12364
  6429
rules instead of full simplifier context; 'iff' attribute handles
wenzelm@12364
  6430
conditional rules;
wenzelm@11936
  6431
wenzelm@11745
  6432
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm@11745
  6433
wenzelm@11690
  6434
* HOL: 'recdef' now fails on unfinished automated proofs, use
wenzelm@11633
  6435
"(permissive)" option to recover old behavior;
wenzelm@11633
  6436
wenzelm@11933
  6437
* HOL: 'inductive' no longer features separate (collective) attributes
wenzelm@11933
  6438
for 'intros' (was found too confusing);
wenzelm@11933
  6439
wenzelm@12405
  6440
* HOL: properly declared induction rules less_induct and
wenzelm@12405
  6441
wf_induct_rule;
wenzelm@12405
  6442
kleing@11788
  6443
wenzelm@11474
  6444
*** HOL ***
wenzelm@11474
  6445
wenzelm@11702
  6446
* HOL: moved over to sane numeral syntax; the new policy is as
wenzelm@11702
  6447
follows:
wenzelm@11702
  6448
wenzelm@11702
  6449
  - 0 and 1 are polymorphic constants, which are defined on any
wenzelm@11702
  6450
  numeric type (nat, int, real etc.);
wenzelm@11702
  6451
wenzelm@11702
  6452
  - 2, 3, 4, ... and -1, -2, -3, ... are polymorphic numerals, based
wenzelm@11702
  6453
  binary representation internally;
wenzelm@11702
  6454
wenzelm@11702
  6455
  - type nat has special constructor Suc, and generally prefers Suc 0
wenzelm@11702
  6456
  over 1::nat and Suc (Suc 0) over 2::nat;
wenzelm@11702
  6457
wenzelm@12364
  6458
This change may cause significant problems of INCOMPATIBILITY; here
wenzelm@12364
  6459
are some hints on converting existing sources:
wenzelm@11702
  6460
wenzelm@11702
  6461
  - due to the new "num" token, "-0" and "-1" etc. are now atomic
wenzelm@11702
  6462
  entities, so expressions involving "-" (unary or binary minus) need
wenzelm@11702
  6463
  to be spaced properly;
wenzelm@11702
  6464
wenzelm@11702
  6465
  - existing occurrences of "1" may need to be constraint "1::nat" or
wenzelm@11702
  6466
  even replaced by Suc 0; similar for old "2";
wenzelm@11702
  6467
wenzelm@11702
  6468
  - replace "#nnn" by "nnn", and "#-nnn" by "-nnn";
wenzelm@11702
  6469
wenzelm@11702
  6470
  - remove all special provisions on numerals in proofs;
wenzelm@11702
  6471
wenzelm@13042
  6472
* HOL: simp rules nat_number expand numerals on nat to Suc/0
wenzelm@12837
  6473
representation (depends on bin_arith_simps in the default context);
wenzelm@12837
  6474
wenzelm@12736
  6475
* HOL: symbolic syntax for x^2 (numeral 2);
wenzelm@12736
  6476
wenzelm@12335
  6477
* HOL: the class of all HOL types is now called "type" rather than
wenzelm@12335
  6478
"term"; INCOMPATIBILITY, need to adapt references to this type class
wenzelm@12335
  6479
in axclass/classes, instance/arities, and (usually rare) occurrences
wenzelm@12335
  6480
in typings (of consts etc.); internally the class is called
wenzelm@12335
  6481
"HOL.type", ML programs should refer to HOLogic.typeS;
wenzelm@12335
  6482
wenzelm@12280
  6483
* HOL/record package improvements:
wenzelm@12280
  6484
  - new derived operations "fields" to build a partial record section,
wenzelm@12280
  6485
    "extend" to promote a fixed record to a record scheme, and
wenzelm@12280
  6486
    "truncate" for the reverse; cf. theorems "xxx.defs", which are *not*
wenzelm@12280
  6487
    declared as simp by default;
wenzelm@12587
  6488
  - shared operations ("more", "fields", etc.) now need to be always
wenzelm@12587
  6489
    qualified) --- potential INCOMPATIBILITY;
wenzelm@12280
  6490
  - removed "make_scheme" operations (use "make" with "extend") --
wenzelm@12280
  6491
    INCOMPATIBILITY;
wenzelm@11937
  6492
  - removed "more" class (simply use "term") -- INCOMPATIBILITY;
wenzelm@12253
  6493
  - provides cases/induct rules for use with corresponding Isar
wenzelm@12253
  6494
    methods (for concrete records, record schemes, concrete more
wenzelm@12280
  6495
    parts, and schematic more parts -- in that order);
wenzelm@11930
  6496
  - internal definitions directly based on a light-weight abstract
wenzelm@11930
  6497
    theory of product types over typedef rather than datatype;
wenzelm@11930
  6498
berghofe@13023
  6499
* HOL: generic code generator for generating executable ML code from
berghofe@13023
  6500
specifications; specific support for HOL constructs such as inductive
berghofe@13023
  6501
datatypes and sets, as well as recursive functions; can be invoked
berghofe@13023
  6502
via 'generate_code' theory section;
berghofe@13023
  6503
wenzelm@11933
  6504
* HOL: canonical cases/induct rules for n-tuples (n = 3..7);
wenzelm@11933
  6505
paulson@13824
  6506
* HOL: consolidated and renamed several theories.  In particular:
wenzelm@14731
  6507
        Ord.thy has been absorbed into HOL.thy
wenzelm@14731
  6508
        String.thy has been absorbed into List.thy
wenzelm@14731
  6509
wenzelm@11802
  6510
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm@11802
  6511
(beware of argument permutation!);
wenzelm@11802
  6512
wenzelm@11657
  6513
* HOL: linorder_less_split superseded by linorder_cases;
wenzelm@11657
  6514
wenzelm@12917
  6515
* HOL/List: "nodups" renamed to "distinct";
nipkow@12889
  6516
wenzelm@11633
  6517
* HOL: added "The" definite description operator; move Hilbert's "Eps"
paulson@13824
  6518
to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES:
paulson@13824
  6519
  - Ex_def has changed, now need to use some_eq_ex
wenzelm@11437
  6520
wenzelm@11572
  6521
* HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so
wenzelm@11572
  6522
in this (rare) case use:
wenzelm@11572
  6523
wenzelm@11572
  6524
  delSWrapper "split_all_tac"
wenzelm@11572
  6525
  addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac)
wenzelm@11572
  6526
wenzelm@11572
  6527
* HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS
wenzelm@11474
  6528
MAY FAIL;
nipkow@11361
  6529
wenzelm@11572
  6530
* HOL: introduced f^n = f o ... o f; warning: due to the limits of
wenzelm@11572
  6531
Isabelle's type classes, ^ on functions and relations has too general
wenzelm@11572
  6532
a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be
wenzelm@11572
  6533
necessary to attach explicit type constraints;
nipkow@11307
  6534
wenzelm@12917
  6535
* HOL/Relation: the prefix name of the infix "O" has been changed from
wenzelm@12917
  6536
"comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been
wenzelm@12917
  6537
renamed accordingly (eg "compI" -> "rel_compI").
nipkow@12489
  6538
wenzelm@11487
  6539
* HOL: syntax translations now work properly with numerals and records
wenzelm@11487
  6540
expressions;
wenzelm@11474
  6541
wenzelm@12457
  6542
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm@12457
  6543
of "lam" -- INCOMPATIBILITY;
wenzelm@11474
  6544
wenzelm@11933
  6545
* HOL: got rid of some global declarations (potential INCOMPATIBILITY
wenzelm@11933
  6546
for ML tools): const "()" renamed "Product_Type.Unity", type "unit"
wenzelm@11933
  6547
renamed "Product_Type.unit";
wenzelm@11611
  6548
nipkow@12564
  6549
* HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl
nipkow@12564
  6550
wenzelm@12924
  6551
* HOL: removed obsolete theorem "optionE" (use "option.exhaust", or
wenzelm@12924
  6552
the "cases" method);
wenzelm@12924
  6553
wenzelm@12597
  6554
* HOL/GroupTheory: group theory examples including Sylow's theorem (by
webertj@15154
  6555
Florian Kammller);
wenzelm@12597
  6556
wenzelm@12608
  6557
* HOL/IMP: updated and converted to new-style theory format; several
wenzelm@12608
  6558
parts turned into readable document, with proper Isar proof texts and
wenzelm@12608
  6559
some explanations (by Gerwin Klein);
wenzelm@12597
  6560
wenzelm@12734
  6561
* HOL-Real: added Complex_Numbers (by Gertrud Bauer);
wenzelm@12734
  6562
wenzelm@12690
  6563
* HOL-Hyperreal is now a logic image;
wenzelm@12690
  6564
wenzelm@11611
  6565
wenzelm@12022
  6566
*** HOLCF ***
wenzelm@12022
  6567
wenzelm@12622
  6568
* Isar: consts/constdefs supports mixfix syntax for continuous
wenzelm@12622
  6569
operations;
wenzelm@12622
  6570
wenzelm@12622
  6571
* Isar: domain package adapted to new-style theory format, e.g. see
wenzelm@12622
  6572
HOLCF/ex/Dnat.thy;
wenzelm@12622
  6573
wenzelm@12622
  6574
* theory Lift: proper use of rep_datatype lift instead of ML hacks --
wenzelm@12280
  6575
potential INCOMPATIBILITY; now use plain induct_tac instead of former
wenzelm@12280
  6576
lift.induct_tac, always use UU instead of Undef;
wenzelm@12022
  6577
wenzelm@12597
  6578
* HOLCF/IMP: updated and converted to new-style theory;
wenzelm@12597
  6579
wenzelm@12022
  6580
wenzelm@11474
  6581
*** ZF ***
wenzelm@11474
  6582
wenzelm@12622
  6583
* Isar: proper integration of logic-specific tools and packages,
wenzelm@12622
  6584
including theory commands '(co)inductive', '(co)datatype',
wenzelm@12622
  6585
'rep_datatype', 'inductive_cases', as well as methods 'ind_cases',
wenzelm@12622
  6586
'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC');
wenzelm@12622
  6587
wenzelm@12622
  6588
* theory Main no longer includes AC; for the Axiom of Choice, base
wenzelm@12622
  6589
your theory on Main_ZFC;
wenzelm@12622
  6590
wenzelm@12622
  6591
* the integer library now covers quotients and remainders, with many
wenzelm@12622
  6592
laws relating division to addition, multiplication, etc.;
paulson@12563
  6593
wenzelm@12280
  6594
* ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a
wenzelm@12280
  6595
typeless version of the formalism;
wenzelm@12280
  6596
wenzelm@13025
  6597
* ZF/AC, Coind, IMP, Resid: updated and converted to new-style theory
wenzelm@13025
  6598
format;
wenzelm@12608
  6599
wenzelm@12280
  6600
* ZF/Induct: new directory for examples of inductive definitions,
wenzelm@12608
  6601
including theory Multiset for multiset orderings; converted to
wenzelm@12608
  6602
new-style theory format;
wenzelm@12177
  6603
wenzelm@13025
  6604
* ZF: many new theorems about lists, ordinals, etc.;
paulson@12850
  6605
wenzelm@11474
  6606
wenzelm@11474
  6607
*** General ***
wenzelm@11474
  6608
wenzelm@12280
  6609
* Pure/kernel: meta-level proof terms (by Stefan Berghofer); reference
wenzelm@12280
  6610
variable proof controls level of detail: 0 = no proofs (only oracle
wenzelm@12280
  6611
dependencies), 1 = lemma dependencies, 2 = compact proof terms; see
wenzelm@12280
  6612
also ref manual for further ML interfaces;
wenzelm@12280
  6613
wenzelm@12280
  6614
* Pure/axclass: removed obsolete ML interface
wenzelm@12280
  6615
goal_subclass/goal_arity;
wenzelm@12280
  6616
wenzelm@12280
  6617
* Pure/syntax: new token syntax "num" for plain numerals (without "#"
wenzelm@12280
  6618
of "xnum"); potential INCOMPATIBILITY, since -0, -1 etc. are now
wenzelm@12280
  6619
separate tokens, so expressions involving minus need to be spaced
wenzelm@12280
  6620
properly;
wenzelm@12280
  6621
wenzelm@12312
  6622
* Pure/syntax: support non-oriented infixes, using keyword "infix"
wenzelm@12312
  6623
rather than "infixl" or "infixr";
wenzelm@12312
  6624
wenzelm@12312
  6625
* Pure/syntax: concrete syntax for dummy type variables admits genuine
wenzelm@12312
  6626
sort constraint specifications in type inference; e.g. "x::_::foo"
wenzelm@12312
  6627
ensures that the type of "x" is of sort "foo" (but not necessarily a
wenzelm@12312
  6628
type variable);
wenzelm@12280
  6629
wenzelm@12280
  6630
* Pure/syntax: print modes "type_brackets" and "no_type_brackets"
wenzelm@12280
  6631
control output of nested => (types); the default behavior is
wenzelm@12280
  6632
"type_brackets";
wenzelm@12280
  6633
wenzelm@12280
  6634
* Pure/syntax: builtin parse translation for "_constify" turns valued
wenzelm@11817
  6635
tokens into AST constants;
wenzelm@11474
  6636
wenzelm@12280
  6637
* Pure/syntax: prefer later declarations of translations and print
wenzelm@12280
  6638
translation functions; potential INCOMPATIBILITY: need to reverse
wenzelm@12280
  6639
multiple declarations for same syntax element constant;
wenzelm@12280
  6640
wenzelm@12832
  6641
* Pure/show_hyps reset by default (in accordance to existing Isar
wenzelm@12832
  6642
practice);
wenzelm@12832
  6643
wenzelm@12280
  6644
* Provers/classical: renamed addaltern to addafter, addSaltern to
wenzelm@12280
  6645
addSafter;
wenzelm@12280
  6646
wenzelm@12280
  6647
* Provers/clasimp: ``iff'' declarations now handle conditional rules
wenzelm@12280
  6648
as well;
wenzelm@12253
  6649
wenzelm@12538
  6650
* system: tested support for MacOS X; should be able to get Isabelle +
wenzelm@12538
  6651
Proof General to work in a plain Terminal after installing Poly/ML
wenzelm@12538
  6652
(e.g. from the Isabelle distribution area) and GNU bash alone
wenzelm@12538
  6653
(e.g. from http://www.apple.com); full X11, XEmacs and X-Symbol
wenzelm@12538
  6654
support requires further installations, e.g. from
wenzelm@12538
  6655
http://fink.sourceforge.net/);
wenzelm@12538
  6656
wenzelm@12280
  6657
* system: support Poly/ML 4.1.1 (able to manage larger heaps);
wenzelm@11551
  6658
wenzelm@12753
  6659
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm@12753
  6660
of 40 MB), cf. ML_OPTIONS;
wenzelm@12753
  6661
wenzelm@11633
  6662
* system: Proof General keywords specification is now part of the
wenzelm@11633
  6663
Isabelle distribution (see etc/isar-keywords.el);
wenzelm@11633
  6664
wenzelm@12728
  6665
* system: support for persistent Proof General sessions (refrain from
wenzelm@12728
  6666
outdating all loaded theories on startup); user may create writable
wenzelm@12728
  6667
logic images like this: ``isabelle -q HOL Test'';
wenzelm@12597
  6668
wenzelm@11551
  6669
* system: smart selection of Isabelle process versus Isabelle
wenzelm@11572
  6670
interface, accommodates case-insensitive file systems (e.g. HFS+); may
wenzelm@11572
  6671
run both "isabelle" and "Isabelle" even if file names are badly
wenzelm@11572
  6672
damaged (executable inspects the case of the first letter of its own
wenzelm@11572
  6673
name); added separate "isabelle-process" and "isabelle-interface";
wenzelm@11551
  6674
wenzelm@12472
  6675
* system: refrain from any attempt at filtering input streams; no
wenzelm@12472
  6676
longer support ``8bit'' encoding of old isabelle font, instead proper
wenzelm@12472
  6677
iso-latin characters may now be used; the related isatools
wenzelm@12472
  6678
"symbolinput" and "nonascii" have disappeared as well;
wenzelm@12472
  6679
wenzelm@12472
  6680
* system: removed old "xterm" interface (the print modes "xterm" and
wenzelm@12472
  6681
"xterm_color" are still available for direct use in a suitable
wenzelm@12472
  6682
terminal);
wenzelm@12472
  6683
paulson@11314
  6684
oheimb@11169
  6685
wenzelm@11062
  6686
New in Isabelle99-2 (February 2001)
wenzelm@11062
  6687
-----------------------------------
wenzelm@11062
  6688
nipkow@10224
  6689
*** Overview of INCOMPATIBILITIES ***
nipkow@10224
  6690
paulson@11241
  6691
* HOL: please note that theories in the Library and elsewhere often use the
paulson@11241
  6692
new-style (Isar) format; to refer to their theorems in an ML script you must
wenzelm@12622
  6693
bind them to ML identifers by e.g.      val thm_name = thm "thm_name";
paulson@11241
  6694
wenzelm@11043
  6695
* HOL: inductive package no longer splits induction rule aggressively,
wenzelm@11043
  6696
but only as far as specified by the introductions given; the old
oheimb@11130
  6697
format may be recovered via ML function complete_split_rule or attribute
wenzelm@11043
  6698
'split_rule (complete)';
wenzelm@11043
  6699
wenzelm@10998
  6700
* HOL: induct renamed to lfp_induct, lfp_Tarski to lfp_unfold,
wenzelm@10998
  6701
gfp_Tarski to gfp_unfold;
nipkow@10224
  6702
paulson@10288
  6703
* HOL: contrapos, contrapos2 renamed to contrapos_nn, contrapos_pp;
paulson@10288
  6704
wenzelm@10858
  6705
* HOL: infix "dvd" now has priority 50 rather than 70 (because it is a
wenzelm@10858
  6706
relation); infix "^^" has been renamed "``"; infix "``" has been
wenzelm@10858
  6707
renamed "`"; "univalent" has been renamed "single_valued";
nipkow@10793
  6708
wenzelm@10998
  6709
* HOL/Real: "rinv" and "hrinv" replaced by overloaded "inverse"
wenzelm@10998
  6710
operation;
wenzelm@10998
  6711
nipkow@10868
  6712
* HOLCF: infix "`" has been renamed "$"; the symbol syntax is \<cdot>;
nipkow@10856
  6713
wenzelm@10391
  6714
* Isar: 'obtain' no longer declares "that" fact as simp/intro;
wenzelm@10391
  6715
wenzelm@10401
  6716
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm@10401
  6717
consequence, it is no longer monotonic wrt. the local goal context
wenzelm@10401
  6718
(which is now passed through the inductive cases);
wenzelm@10401
  6719
wenzelm@10976
  6720
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm@10976
  6721
\<gg> to \<ggreater>;
wenzelm@10976
  6722
nipkow@10224
  6723
wenzelm@10245
  6724
*** Document preparation ***
wenzelm@10245
  6725
wenzelm@10858
  6726
* \isabellestyle{NAME} selects version of Isabelle output (currently
wenzelm@10858
  6727
available: are "it" for near math-mode best-style output, "sl" for
wenzelm@10858
  6728
slanted text style, and "tt" for plain type-writer; if no
wenzelm@10858
  6729
\isabellestyle command is given, output is according to slanted
wenzelm@10858
  6730
type-writer);
wenzelm@10858
  6731
wenzelm@10322
  6732
* support sub/super scripts (for single symbols only), input syntax is
wenzelm@10322
  6733
like this: "A\<^sup>*" or "A\<^sup>\<star>";
wenzelm@10322
  6734
wenzelm@10858
  6735
* some more standard symbols; see Appendix A of the system manual for
wenzelm@11062
  6736
the complete list of symbols defined in isabellesym.sty;
wenzelm@10858
  6737
wenzelm@10998
  6738
* improved isabelle style files; more abstract symbol implementation
wenzelm@10998
  6739
(should now use \isamath{...} and \isatext{...} in custom symbol
wenzelm@10998
  6740
definitions);
wenzelm@10998
  6741
wenzelm@10634
  6742
* antiquotation @{goals} and @{subgoals} for output of *dynamic* goals
wenzelm@10634
  6743
state; Note that presentation of goal states does not conform to
wenzelm@10634
  6744
actual human-readable proof documents.  Please do not include goal
wenzelm@10634
  6745
states into document output unless you really know what you are doing!
wenzelm@10322
  6746
wenzelm@11062
  6747
* proper indentation of antiquoted output with proportional LaTeX
wenzelm@11062
  6748
fonts;
wenzelm@10862
  6749
wenzelm@11050
  6750
* no_document ML operator temporarily disables LaTeX document
wenzelm@11050
  6751
generation;
wenzelm@11050
  6752
wenzelm@11062
  6753
* isatool unsymbolize tunes sources for plain ASCII communication;
wenzelm@11062
  6754
wenzelm@10322
  6755
wenzelm@10306
  6756
*** Isar ***
wenzelm@10306
  6757
wenzelm@10547
  6758
* Pure: Isar now suffers initial goal statements to contain unbound
wenzelm@10547
  6759
schematic variables (this does not conform to actual readable proof
wenzelm@10547
  6760
documents, due to unpredictable outcome and non-compositional proof
wenzelm@10547
  6761
checking); users who know what they are doing may use schematic goals
wenzelm@10547
  6762
for Prolog-style synthesis of proven results;
wenzelm@10547
  6763
wenzelm@10391
  6764
* Pure: assumption method (an implicit finishing) now handles actual
wenzelm@10391
  6765
rules as well;
wenzelm@10391
  6766
wenzelm@10391
  6767
* Pure: improved 'obtain' --- moved to Pure, insert "that" into
wenzelm@10391
  6768
initial goal, declare "that" only as Pure intro (only for single
wenzelm@10391
  6769
steps); the "that" rule assumption may now be involved in implicit
wenzelm@10391
  6770
finishing, thus ".." becomes a feasible for trivial obtains;
wenzelm@10391
  6771
wenzelm@10391
  6772
* Pure: default proof step now includes 'intro_classes'; thus trivial
wenzelm@10391
  6773
instance proofs may be performed by "..";
wenzelm@10391
  6774
wenzelm@10391
  6775
* Pure: ?thesis / ?this / "..." now work for pure meta-level
wenzelm@10391
  6776
statements as well;
wenzelm@10306
  6777
wenzelm@11097
  6778
* Pure: more robust selection of calculational rules;
wenzelm@11097
  6779
wenzelm@10858
  6780
* Pure: the builtin notion of 'finished' goal now includes the ==-refl
wenzelm@10858
  6781
rule (as well as the assumption rule);
wenzelm@10858
  6782
wenzelm@10858
  6783
* Pure: 'thm_deps' command visualizes dependencies of theorems and
wenzelm@10858
  6784
lemmas, using the graph browser tool;
wenzelm@10858
  6785
wenzelm@10944
  6786
* Pure: predict failure of "show" in interactive mode;
wenzelm@10944
  6787
wenzelm@11016
  6788
* Pure: 'thms_containing' now takes actual terms as arguments;
wenzelm@11016
  6789
wenzelm@10401
  6790
* HOL: improved method 'induct' --- now handles non-atomic goals
wenzelm@10401
  6791
(potential INCOMPATIBILITY); tuned error handling;
wenzelm@10401
  6792
wenzelm@10557
  6793
* HOL: cases and induct rules now provide explicit hints about the
wenzelm@10547
  6794
number of facts to be consumed (0 for "type" and 1 for "set" rules);
wenzelm@10547
  6795
any remaining facts are inserted into the goal verbatim;
wenzelm@10547
  6796
wenzelm@10858
  6797
* HOL: local contexts (aka cases) may now contain term bindings as
wenzelm@10858
  6798
well; the 'cases' and 'induct' methods new provide a ?case binding for
wenzelm@10858
  6799
the result to be shown in each case;
wenzelm@10858
  6800
wenzelm@10770
  6801
* HOL: added 'recdef_tc' command;
wenzelm@10770
  6802
wenzelm@11016
  6803
* isatool convert assists in eliminating legacy ML scripts;
wenzelm@11016
  6804
wenzelm@10306
  6805
wenzelm@10245
  6806
*** HOL ***
wenzelm@10245
  6807
wenzelm@10245
  6808
* HOL/Library: a collection of generic theories to be used together
wenzelm@10245
  6809
with main HOL; the theory loader path already includes this directory
wenzelm@10245
  6810
by default; the following existing theories have been moved here:
wenzelm@10245
  6811
HOL/Induct/Multiset, HOL/Induct/Acc (as Accessible_Part), HOL/While
wenzelm@10337
  6812
(as While_Combinator), HOL/Lex/Prefix (as List_Prefix);
wenzelm@10245
  6813
wenzelm@10966
  6814
* HOL/Unix: "Some aspects of Unix file-system security", a typical
wenzelm@10966
  6815
modelling and verification task performed in Isabelle/HOL +
wenzelm@10966
  6816
Isabelle/Isar + Isabelle document preparation (by Markus Wenzel).
wenzelm@10966
  6817
wenzelm@11094
  6818
* HOL/Algebra: special summation operator SUM no longer exists, it has
wenzelm@11094
  6819
been replaced by setsum; infix 'assoc' now has priority 50 (like
wenzelm@11094
  6820
'dvd'); axiom 'one_not_zero' has been moved from axclass 'ring' to
wenzelm@11094
  6821
'domain', this makes the theory consistent with mathematical
wenzelm@11094
  6822
literature;
wenzelm@11094
  6823
wenzelm@10514
  6824
* HOL basics: added overloaded operations "inverse" and "divide"
wenzelm@10726
  6825
(infix "/"), syntax for generic "abs" operation, generic summation
wenzelm@11094
  6826
operator \<Sum>;
wenzelm@10452
  6827
wenzelm@10391
  6828
* HOL/typedef: simplified package, provide more useful rules (see also
wenzelm@10391
  6829
HOL/subset.thy);
wenzelm@10391
  6830
wenzelm@10915
  6831
* HOL/datatype: induction rule for arbitrarily branching datatypes is
wenzelm@10915
  6832
now expressed as a proper nested rule (old-style tactic scripts may
wenzelm@10915
  6833
require atomize_strip_tac to cope with non-atomic premises);
wenzelm@10915
  6834
wenzelm@10915
  6835
* HOL: renamed theory "Prod" to "Product_Type", renamed "split" rule
wenzelm@10915
  6836
to "split_conv" (old name still available for compatibility);
wenzelm@10915
  6837
wenzelm@10915
  6838
* HOL: improved concrete syntax for strings (e.g. allows translation
wenzelm@10915
  6839
rules with string literals);
wenzelm@10915
  6840
paulson@12245
  6841
* HOL-Real-Hyperreal: this extends HOL-Real with the hyperreals
paulson@12245
  6842
 and Fleuriot's mechanization of analysis, including the transcendental
paulson@12245
  6843
 functions for the reals;
paulson@10756
  6844
wenzelm@11094
  6845
* HOL/Real, HOL/Hyperreal: improved arithmetic simplification;
wenzelm@10391
  6846
wenzelm@10858
  6847
paulson@10474
  6848
*** CTT ***
paulson@10474
  6849
wenzelm@10547
  6850
* CTT: x-symbol support for Pi, Sigma, -->, : (membership); note that
wenzelm@10547
  6851
"lam" is displayed as TWO lambda-symbols
paulson@10474
  6852
wenzelm@10547
  6853
* CTT: theory Main now available, containing everything (that is, Bool
wenzelm@10547
  6854
and Arith);
wenzelm@10547
  6855
paulson@10474
  6856
wenzelm@10391
  6857
*** General ***
wenzelm@10391
  6858
wenzelm@10547
  6859
* Pure: the Simplifier has been implemented properly as a derived rule
wenzelm@10547
  6860
outside of the actual kernel (at last!); the overall performance
wenzelm@10547
  6861
penalty in practical applications is about 50%, while reliability of
wenzelm@10547
  6862
the Isabelle inference kernel has been greatly improved;
wenzelm@10547
  6863
wenzelm@11112
  6864
* print modes "brackets" and "no_brackets" control output of nested =>
wenzelm@11112
  6865
(types) and ==> (props); the default behaviour is "brackets";
wenzelm@11112
  6866
wenzelm@10391
  6867
* Provers: fast_tac (and friends) now handle actual object-logic rules
wenzelm@10391
  6868
as assumptions as well;
wenzelm@10391
  6869
wenzelm@11124
  6870
* system: support Poly/ML 4.0;
wenzelm@11124
  6871
wenzelm@11124
  6872
* system: isatool install handles KDE version 1 or 2;
wenzelm@11124
  6873
wenzelm@10391
  6874
wenzelm@10245
  6875
wenzelm@10103
  6876
New in Isabelle99-1 (October 2000)
wenzelm@10103
  6877
----------------------------------
wenzelm@8015
  6878
wenzelm@10003
  6879
*** Overview of INCOMPATIBILITIES ***
paulson@8014
  6880
wenzelm@8848
  6881
* HOL: simplification of natural numbers is much changed; to partly
wenzelm@8848
  6882
recover the old behaviour (e.g. to prevent n+n rewriting to #2*n)
wenzelm@8848
  6883
issue the following ML commands:
wenzelm@8848
  6884
wenzelm@8848
  6885
  Delsimprocs Nat_Numeral_Simprocs.cancel_numerals;
wenzelm@8848
  6886
  Delsimprocs [Nat_Numeral_Simprocs.combine_numerals];
paulson@8788
  6887
wenzelm@10129
  6888
* HOL: simplification no longer dives into case-expressions; this is
wenzelm@10129
  6889
controlled by "t.weak_case_cong" for each datatype t;
paulson@8967
  6890
wenzelm@10003
  6891
* HOL: nat_less_induct renamed to less_induct;
wenzelm@10003
  6892
wenzelm@10003
  6893
* HOL: systematic renaming of the SOME (Eps) rules, may use isatool
wenzelm@10003
  6894
fixsome to patch .thy and .ML sources automatically;
wenzelm@10003
  6895
wenzelm@10003
  6896
  select_equality  -> some_equality
wenzelm@10003
  6897
  select_eq_Ex     -> some_eq_ex
wenzelm@10003
  6898
  selectI2EX       -> someI2_ex
wenzelm@10003
  6899
  selectI2         -> someI2
wenzelm@10003
  6900
  selectI          -> someI
wenzelm@10003
  6901
  select1_equality -> some1_equality
wenzelm@10003
  6902
  Eps_sym_eq       -> some_sym_eq_trivial
wenzelm@10003
  6903
  Eps_eq           -> some_eq_trivial
wenzelm@10003
  6904
wenzelm@36856
  6905
* HOL: exhaust_tac on datatypes superceded by new generic case_tac;
wenzelm@10003
  6906
wenzelm@10003
  6907
* HOL: removed obsolete theorem binding expand_if (refer to split_if
wenzelm@10003
  6908
instead);
wenzelm@10003
  6909
wenzelm@10003
  6910
* HOL: the recursion equations generated by 'recdef' are now called
wenzelm@10003
  6911
f.simps instead of f.rules;
wenzelm@10003
  6912
wenzelm@10003
  6913
* HOL: qed_spec_mp now also handles bounded ALL as well;
wenzelm@10003
  6914
wenzelm@10003
  6915
* HOL: 0 is now overloaded, so the type constraint ":: nat" may
wenzelm@10003
  6916
sometimes be needed;
wenzelm@10003
  6917
wenzelm@10003
  6918
* HOL: the constant for "f``x" is now "image" rather than "op ``";
paulson@8014
  6919
paulson@10065
  6920
* HOL: the constant for "f-``x" is now "vimage" rather than "op -``";
paulson@10065
  6921
wenzelm@9330
  6922
* HOL: the disjoint sum is now "<+>" instead of "Plus"; the cartesian
wenzelm@9330
  6923
product is now "<*>" instead of "Times"; the lexicographic product is
wenzelm@9330
  6924
now "<*lex*>" instead of "**";
nipkow@8705
  6925
wenzelm@10003
  6926
* HOL: theory Sexp is now in HOL/Induct examples (it used to be part
wenzelm@10003
  6927
of main HOL, but was unused); better use HOL's datatype package;
paulson@9971
  6928
wenzelm@10137
  6929
* HOL: removed "symbols" syntax for constant "override" of theory Map;
wenzelm@10137
  6930
the old syntax may be recovered as follows:
wenzelm@10137
  6931
wenzelm@10137
  6932
  syntax (symbols)
wenzelm@10137
  6933
    override  :: "('a ~=> 'b) => ('a ~=> 'b) => ('a ~=> 'b)"
wenzelm@10137
  6934
      (infixl "\\<oplus>" 100)
wenzelm@10137
  6935
wenzelm@8848
  6936
* HOL/Real: "rabs" replaced by overloaded "abs" function;
wenzelm@8848
  6937
wenzelm@8887
  6938
* HOL/ML: even fewer consts are declared as global (see theories Ord,
wenzelm@8887
  6939
Lfp, Gfp, WF); this only affects ML packages that refer to const names
wenzelm@8887
  6940
internally;
wenzelm@8887
  6941
wenzelm@10003
  6942
* HOL and ZF: syntax for quotienting wrt an equivalence relation
wenzelm@10003
  6943
changed from A/r to A//r;
wenzelm@9908
  6944
wenzelm@10003
  6945
* ZF: new treatment of arithmetic (nat & int) may break some old
wenzelm@10003
  6946
proofs;
paulson@9388
  6947
wenzelm@10003
  6948
* Isar: renamed some attributes (RS -> THEN, simplify -> simplified,
wenzelm@10003
  6949
rulify -> rule_format, elimify -> elim_format, ...);
paulson@9542
  6950
wenzelm@9941
  6951
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  6952
intro/intro!/intro!! flags to intro!/intro/intro? (in most cases, one
wenzelm@9937
  6953
should have to change intro!! to intro? only); replaced "delrule" by
wenzelm@9937
  6954
"rule del";
wenzelm@9437
  6955
wenzelm@9612
  6956
* Isar/HOL: renamed "intrs" to "intros" in inductive definitions;
wenzelm@9612
  6957
wenzelm@9437
  6958
* Provers: strengthened force_tac by using new first_best_tac;
oheimb@9402
  6959
wenzelm@10003
  6960
* LaTeX document preparation: several changes of isabelle.sty (see
wenzelm@10003
  6961
lib/texinputs);
wenzelm@8729
  6962
paulson@8014
  6963
wenzelm@8487
  6964
*** Document preparation ***
wenzelm@8358
  6965
wenzelm@9198
  6966
* formal comments (text blocks etc.) in new-style theories may now
wenzelm@9753
  6967
contain antiquotations of thm/prop/term/typ/text to be presented
wenzelm@9753
  6968
according to latex print mode; concrete syntax is like this:
wenzelm@9753
  6969
@{term[show_types] "f(x) = a + x"};
wenzelm@9198
  6970
wenzelm@8358
  6971
* isatool mkdir provides easy setup of Isabelle session directories,
wenzelm@8518
  6972
including proper document sources;
wenzelm@8358
  6973
wenzelm@8358
  6974
* generated LaTeX sources are now deleted after successful run
wenzelm@8358
  6975
(isatool document -c); may retain a copy somewhere else via -D option
wenzelm@8358
  6976
of isatool usedir;
wenzelm@8358
  6977
wenzelm@8566
  6978
* isatool usedir -D now lets isatool latex -o sty update the Isabelle
wenzelm@10003
  6979
style files, achieving self-contained LaTeX sources and simplifying
wenzelm@10003
  6980
LaTeX debugging;
wenzelm@8566
  6981
wenzelm@8518
  6982
* old-style theories now produce (crude) LaTeX output as well;
wenzelm@8358
  6983
wenzelm@9057
  6984
* browser info session directories are now self-contained (may be put
wenzelm@9437
  6985
on WWW server seperately); improved graphs of nested sessions; removed
wenzelm@9437
  6986
graph for 'all sessions';
wenzelm@9057
  6987
wenzelm@10003
  6988
* several improvements in isabelle style files; \isabellestyle{it}
wenzelm@10003
  6989
produces fake math mode output; \isamarkupheader is now \section by
wenzelm@10003
  6990
default; see lib/texinputs/isabelle.sty etc.;
wenzelm@9489
  6991
wenzelm@8358
  6992
wenzelm@8184
  6993
*** Isar ***
wenzelm@8184
  6994
wenzelm@10003
  6995
* Isar/Pure: local results and corresponding term bindings are now
wenzelm@10003
  6996
subject to Hindley-Milner polymorphism (similar to ML); this
wenzelm@10003
  6997
accommodates incremental type-inference very nicely;
wenzelm@8283
  6998
wenzelm@10003
  6999
* Isar/Pure: new derived language element 'obtain' supports
wenzelm@10003
  7000
generalized existence reasoning;
wenzelm@8621
  7001
wenzelm@10003
  7002
* Isar/Pure: new calculational elements 'moreover' and 'ultimately'
wenzelm@10003
  7003
support accumulation of results, without applying any rules yet;
wenzelm@10003
  7004
useful to collect intermediate results without explicit name
wenzelm@10003
  7005
references, and for use with transitivity rules with more than 2
wenzelm@10003
  7006
premises;
wenzelm@8184
  7007
wenzelm@10003
  7008
* Isar/Pure: scalable support for case-analysis type proofs: new
wenzelm@10003
  7009
'case' language element refers to local contexts symbolically, as
wenzelm@10003
  7010
produced by certain proof methods; internally, case names are attached
wenzelm@10003
  7011
to theorems as "tags";
wenzelm@8440
  7012
wenzelm@10003
  7013
* Isar/Pure: theory command 'hide' removes declarations from
wenzelm@9330
  7014
class/type/const name spaces;
wenzelm@9330
  7015
wenzelm@10003
  7016
* Isar/Pure: theory command 'defs' supports option "(overloaded)" to
wenzelm@9330
  7017
indicate potential overloading;
wenzelm@9330
  7018
wenzelm@10003
  7019
* Isar/Pure: changed syntax of local blocks from {{ }} to { };
wenzelm@8921
  7020
wenzelm@10003
  7021
* Isar/Pure: syntax of sorts made 'inner', i.e. have to write
wenzelm@10003
  7022
"{a,b,c}" instead of {a,b,c};
wenzelm@9612
  7023
wenzelm@10003
  7024
* Isar/Pure now provides its own version of intro/elim/dest
wenzelm@10003
  7025
attributes; useful for building new logics, but beware of confusion
wenzelm@10003
  7026
with the version in Provers/classical;
wenzelm@8921
  7027
wenzelm@10003
  7028
* Isar/Pure: the local context of (non-atomic) goals is provided via
wenzelm@10003
  7029
case name 'antecedent';
wenzelm@8621
  7030
wenzelm@10003
  7031
* Isar/Pure: removed obsolete 'transfer' attribute (transfer of thms
wenzelm@10003
  7032
to the current context is now done automatically);
wenzelm@8991
  7033
wenzelm@10003
  7034
* Isar/Pure: theory command 'method_setup' provides a simple interface
wenzelm@10003
  7035
for definining proof methods in ML;
wenzelm@9011
  7036
wenzelm@10003
  7037
* Isar/Provers: intro/elim/dest attributes changed; renamed
wenzelm@9941
  7038
intro/intro!/intro!! flags to intro!/intro/intro? (INCOMPATIBILITY, in
wenzelm@9941
  7039
most cases, one should have to change intro!! to intro? only);
wenzelm@9941
  7040
replaced "delrule" by "rule del";
wenzelm@8283
  7041
wenzelm@10003
  7042
* Isar/Provers: new 'hypsubst' method, plain 'subst' method and
wenzelm@36856
  7043
'symmetric' attribute (the latter supercedes [RS sym]);
wenzelm@9612
  7044
wenzelm@10003
  7045
* Isar/Provers: splitter support (via 'split' attribute and 'simp'
wenzelm@10003
  7046
method modifier); 'simp' method: 'only:' modifier removes loopers as
wenzelm@10003
  7047
well (including splits);
wenzelm@10003
  7048
wenzelm@10003
  7049
* Isar/Provers: Simplifier and Classical methods now support all kind
wenzelm@10003
  7050
of modifiers used in the past, including 'cong', 'iff', etc.
wenzelm@10003
  7051
wenzelm@10003
  7052
* Isar/Provers: added 'fastsimp' and 'clarsimp' methods (combination
wenzelm@10003
  7053
of Simplifier and Classical reasoner);
wenzelm@10003
  7054
wenzelm@10003
  7055
* Isar/HOL: new proof method 'cases' and improved version of 'induct'
wenzelm@10003
  7056
now support named cases; major packages (inductive, datatype, primrec,
wenzelm@10003
  7057
recdef) support case names and properly name parameters;
wenzelm@10003
  7058
wenzelm@10003
  7059
* Isar/HOL: new transitivity rules for substitution in inequalities --
wenzelm@10003
  7060
monotonicity conditions are extracted to be proven at end of
wenzelm@10003
  7061
calculations;
wenzelm@10003
  7062
wenzelm@10003
  7063
* Isar/HOL: removed 'case_split' thm binding, should use 'cases' proof
wenzelm@10003
  7064
method anyway;
wenzelm@10003
  7065
wenzelm@10003
  7066
* Isar/HOL: removed old expand_if = split_if; theorems if_splits =
wenzelm@10003
  7067
split_if split_if_asm; datatype package provides theorems foo.splits =
wenzelm@10003
  7068
foo.split foo.split_asm for each datatype;
wenzelm@10003
  7069
wenzelm@10003
  7070
* Isar/HOL: tuned inductive package, rename "intrs" to "intros"
wenzelm@10003
  7071
(potential INCOMPATIBILITY), emulation of mk_cases feature for proof
wenzelm@10003
  7072
scripts: new 'inductive_cases' command and 'ind_cases' method; (Note:
wenzelm@10003
  7073
use "(cases (simplified))" method in proper proof texts);
wenzelm@10003
  7074
wenzelm@10003
  7075
* Isar/HOL: added global 'arith_split' attribute for 'arith' method;
wenzelm@10003
  7076
wenzelm@10003
  7077
* Isar: names of theorems etc. may be natural numbers as well;
wenzelm@10003
  7078
wenzelm@10003
  7079
* Isar: 'pr' command: optional arguments for goals_limit and
wenzelm@9724
  7080
ProofContext.prems_limit; no longer prints theory contexts, but only
wenzelm@9724
  7081
proof states;
wenzelm@8487
  7082
wenzelm@10003
  7083
* Isar: diagnostic commands 'pr', 'thm', 'prop', 'term', 'typ' admit
wenzelm@8518
  7084
additional print modes to be specified; e.g. "pr(latex)" will print
wenzelm@8518
  7085
proof state according to the Isabelle LaTeX style;
wenzelm@8487
  7086
wenzelm@10003
  7087
* Isar: improved support for emulating tactic scripts, including proof
wenzelm@9612
  7088
methods 'rule_tac' etc., 'cut_tac', 'thin_tac', 'subgoal_tac',
wenzelm@9612
  7089
'rename_tac', 'rotate_tac', 'tactic', and 'case_tac' / 'induct_tac'
wenzelm@9612
  7090
(for HOL datatypes);
wenzelm@8534
  7091
wenzelm@10003
  7092
* Isar: simplified (more robust) goal selection of proof methods: 1st
wenzelm@10003
  7093
goal, all goals, or explicit goal specifier (tactic emulation); thus
wenzelm@10003
  7094
'proof method scripts' have to be in depth-first order;
wenzelm@8673
  7095
wenzelm@10003
  7096
* Isar: tuned 'let' syntax: replaced 'as' keyword by 'and';
wenzelm@8729
  7097
wenzelm@10003
  7098
* Isar: removed 'help' command, which hasn't been too helpful anyway;
wenzelm@10003
  7099
should instead use individual commands for printing items
wenzelm@10003
  7100
(print_commands, print_methods etc.);
wenzelm@9224
  7101
wenzelm@10003
  7102
* Isar: added 'nothing' --- the empty list of theorems;
wenzelm@9239
  7103
wenzelm@8184
  7104
paulson@8014
  7105
*** HOL ***
paulson@8014
  7106
wenzelm@10080
  7107
* HOL/MicroJava: formalization of a fragment of Java, together with a
wenzelm@10080
  7108
corresponding virtual machine and a specification of its bytecode
wenzelm@10080
  7109
verifier and a lightweight bytecode verifier, including proofs of
wenzelm@10080
  7110
type-safety; by Gerwin Klein, Tobias Nipkow, David von Oheimb, and
wenzelm@10080
  7111
Cornelia Pusch (see also the homepage of project Bali at
wenzelm@10080
  7112
http://isabelle.in.tum.de/Bali/);
wenzelm@10080
  7113
wenzelm@8518
  7114
* HOL/Algebra: new theory of rings and univariate polynomials, by
wenzelm@8518
  7115
Clemens Ballarin;
paulson@8014
  7116
wenzelm@10157
  7117
* HOL/NumberTheory: fundamental Theorem of Arithmetic, Chinese
wenzelm@10003
  7118
Remainder Theorem, Fermat/Euler Theorem, Wilson's Theorem, by Thomas M
wenzelm@10003
  7119
Rasmussen;
wenzelm@8007
  7120
wenzelm@10157
  7121
* HOL/Lattice: fundamental concepts of lattice theory and order
wenzelm@10157
  7122
structures, including duals, properties of bounds versus algebraic
wenzelm@10157
  7123
laws, lattice operations versus set-theoretic ones, the Knaster-Tarski
wenzelm@10157
  7124
Theorem for complete lattices etc.; may also serve as a demonstration
wenzelm@10157
  7125
for abstract algebraic reasoning using axiomatic type classes, and
wenzelm@10157
  7126
mathematics-style proof in Isabelle/Isar; by Markus Wenzel;
wenzelm@10157
  7127
wenzelm@10003
  7128
* HOL/Prolog: a (bare-bones) implementation of Lambda-Prolog, by David
wenzelm@10003
  7129
von Oheimb;
wenzelm@8570
  7130
wenzelm@10164
  7131
* HOL/IMPP: extension of IMP with local variables and mutually
wenzelm@10164
  7132
recursive procedures, by David von Oheimb;
wenzelm@10164
  7133
wenzelm@10003
  7134
* HOL/Lambda: converted into new-style theory and document;
paulson@9542
  7135
wenzelm@10003
  7136
* HOL/ex/Multiquote: example of multiple nested quotations and
wenzelm@10003
  7137
anti-quotations -- basically a generalized version of de-Bruijn
wenzelm@10003
  7138
representation; very useful in avoiding lifting of operations;
wenzelm@8848
  7139
wenzelm@9612
  7140
* HOL/record: added general record equality rule to simpset; fixed
wenzelm@9612
  7141
select-update simplification procedure to handle extended records as
wenzelm@9612
  7142
well; admit "r" as field name;
paulson@9542
  7143
paulson@8967
  7144
* HOL: 0 is now overloaded over the new sort "zero", allowing its use with
paulson@8967
  7145
other numeric types and also as the identity of groups, rings, etc.;
paulson@8967
  7146
paulson@8967
  7147
* HOL: new axclass plus_ac0 for addition with the AC-laws and 0 as identity.
paulson@8967
  7148
Types nat and int belong to this axclass;
paulson@8967
  7149
wenzelm@10003
  7150
* HOL: greatly improved simplification involving numerals of type nat, int, real:
paulson@8788
  7151
   (i + #8 + j) = Suc k simplifies to  #7 + (i + j) = k
paulson@8832
  7152
   i*j + k + j*#3*i     simplifies to  #4*(i*j) + k
paulson@8832
  7153
  two terms #m*u and #n*u are replaced by #(m+n)*u
paulson@8832
  7154
    (where #m, #n and u can implicitly be 1; this is simproc combine_numerals)
paulson@8832
  7155
  and the term/formula #m*u+x ~~ #n*u+y simplifies simplifies to #(m-n)+x ~~ y
paulson@8832
  7156
    or x ~~ #(n-m)+y, where ~~ is one of = < <= or - (simproc cancel_numerals);
paulson@8736
  7157
wenzelm@10003
  7158
* HOL: meson_tac is available (previously in ex/meson.ML); it is a
wenzelm@10003
  7159
powerful prover for predicate logic but knows nothing of clasets; see
wenzelm@10003
  7160
ex/mesontest.ML and ex/mesontest2.ML for example applications;
paulson@9835
  7161
wenzelm@8848
  7162
* HOL: new version of "case_tac" subsumes both boolean case split and
wenzelm@8440
  7163
"exhaust_tac" on datatypes; INCOMPATIBILITY: exhaust_tac no longer
wenzelm@8518
  7164
exists, may define val exhaust_tac = case_tac for ad-hoc portability;
wenzelm@8440
  7165
wenzelm@8848
  7166
* HOL: simplification no longer dives into case-expressions: only the
wenzelm@10129
  7167
selector expression is simplified, but not the remaining arms; to
wenzelm@10129
  7168
enable full simplification of case-expressions for datatype t, you may
wenzelm@10129
  7169
remove t.weak_case_cong from the simpset, either globally (Delcongs
wenzelm@10129
  7170
[thm"t.weak_case_cong"];) or locally (delcongs [...]).
nipkow@8603
  7171
wenzelm@8848
  7172
* HOL/recdef: the recursion equations generated by 'recdef' for
wenzelm@8848
  7173
function 'f' are now called f.simps instead of f.rules; if all
wenzelm@8848
  7174
termination conditions are proved automatically, these simplification
wenzelm@8848
  7175
rules are added to the simpset, as in primrec; rules may be named
wenzelm@8848
  7176
individually as well, resulting in a separate list of theorems for
wenzelm@8848
  7177
each equation;
wenzelm@8848
  7178
wenzelm@9489
  7179
* HOL/While is a new theory that provides a while-combinator. It
wenzelm@9489
  7180
permits the definition of tail-recursive functions without the
wenzelm@9489
  7181
provision of a termination measure. The latter is necessary once the
wenzelm@9489
  7182
invariant proof rule for while is applied.
nipkow@9457
  7183
wenzelm@10003
  7184
* HOL: new (overloaded) notation for the set of elements below/above
wenzelm@10003
  7185
some element: {..u}, {..u(}, {l..}, {)l..}. See theory SetInterval.
nipkow@8925
  7186
wenzelm@8848
  7187
* HOL: theorems impI, allI, ballI bound as "strip";
wenzelm@8848
  7188
wenzelm@10003
  7189
* HOL: new tactic induct_thm_tac: thm -> string -> int -> tactic
nipkow@9746
  7190
induct_tac th "x1 ... xn" expects th to have a conclusion of the form
nipkow@9746
  7191
P v1 ... vn and abbreviates res_inst_tac [("v1","x1"),...,("vn","xn")] th;
nipkow@9746
  7192
wenzelm@10003
  7193
* HOL/Real: "rabs" replaced by overloaded "abs" function;
nipkow@9737
  7194
wenzelm@10003
  7195
* HOL: theory Sexp now in HOL/Induct examples (it used to be part of
wenzelm@10003
  7196
main HOL, but was unused);
nipkow@8626
  7197
wenzelm@10003
  7198
* HOL: fewer consts declared as global (e.g. have to refer to
wenzelm@10003
  7199
"Lfp.lfp" instead of "lfp" internally; affects ML packages only);
wenzelm@8887
  7200
wenzelm@10003
  7201
* HOL: tuned AST representation of nested pairs, avoiding bogus output
wenzelm@10003
  7202
in case of overlap with user translations (e.g. judgements over
wenzelm@10003
  7203
tuples); (note that the underlying logical represenation is still
wenzelm@10003
  7204
bogus);
wenzelm@9349
  7205
nipkow@8412
  7206
paulson@9542
  7207
*** ZF ***
paulson@9542
  7208
wenzelm@10003
  7209
* ZF: simplification automatically cancels common terms in arithmetic
wenzelm@10003
  7210
expressions over nat and int;
paulson@9542
  7211
wenzelm@10003
  7212
* ZF: new treatment of nat to minimize type-checking: all operators
wenzelm@10003
  7213
coerce their operands to a natural number using the function natify,
wenzelm@10003
  7214
making the algebraic laws unconditional;
paulson@9542
  7215
wenzelm@10003
  7216
* ZF: as above, for int: operators coerce their operands to an integer
wenzelm@10003
  7217
using the function intify;
paulson@9542
  7218
wenzelm@10003
  7219
* ZF: the integer library now contains many of the usual laws for the
wenzelm@10003
  7220
orderings, including $<=, and monotonicity laws for $+ and $*;
paulson@9542
  7221
wenzelm@10003
  7222
* ZF: new example ZF/ex/NatSum to demonstrate integer arithmetic
wenzelm@10003
  7223
simplification;
paulson@9542
  7224
wenzelm@10003
  7225
* FOL and ZF: AddIffs now available, giving theorems of the form P<->Q
wenzelm@10003
  7226
to the simplifier and classical reasoner simultaneously;
paulson@9388
  7227
paulson@9388
  7228
wenzelm@8358
  7229
*** General ***
wenzelm@8358
  7230
wenzelm@10003
  7231
* Provers: blast_tac now handles actual object-logic rules as
wenzelm@10003
  7232
assumptions; note that auto_tac uses blast_tac internally as well;
wenzelm@10003
  7233
wenzelm@10003
  7234
* Provers: new functions rulify/rulify_no_asm: thm -> thm for turning
wenzelm@10003
  7235
outer -->/All/Ball into ==>/!!; qed_spec_mp now uses rulify_no_asm;
wenzelm@10003
  7236
wenzelm@9941
  7237
* Provers: delrules now handles destruct rules as well (no longer need
wenzelm@9941
  7238
explicit make_elim);
wenzelm@9941
  7239
wenzelm@10003
  7240
* Provers: Blast_tac now warns of and ignores "weak elimination rules" e.g.
wenzelm@10003
  7241
  [| inj ?f;          ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  7242
use instead the strong form,
wenzelm@10003
  7243
  [| inj ?f; ~ ?W ==> ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
wenzelm@10003
  7244
in HOL, FOL and ZF the function cla_make_elim will create such rules
wenzelm@10003
  7245
from destruct-rules;
wenzelm@9489
  7246
wenzelm@9709
  7247
* Provers: Simplifier.easy_setup provides a fast path to basic
wenzelm@9709
  7248
Simplifier setup for new object-logics;
wenzelm@9349
  7249
wenzelm@9709
  7250
* Pure: AST translation rules no longer require constant head on LHS;
wenzelm@8729
  7251
wenzelm@9709
  7252
* Pure: improved name spaces: ambiguous output is qualified; support
wenzelm@9709
  7253
for hiding of names;
wenzelm@8358
  7254
wenzelm@10003
  7255
* system: smart setup of canonical ML_HOME, ISABELLE_INTERFACE, and
wenzelm@10003
  7256
XSYMBOL_HOME; no longer need to do manual configuration in most
wenzelm@10003
  7257
situations;
wenzelm@10003
  7258
wenzelm@9709
  7259
* system: compression of ML heaps images may now be controlled via -c
wenzelm@9709
  7260
option of isabelle and isatool usedir (currently only observed by
wenzelm@9709
  7261
Poly/ML);
wenzelm@9709
  7262
wenzelm@9981
  7263
* system: isatool installfonts may handle X-Symbol fonts as well (very
wenzelm@9981
  7264
useful for remote X11);
wenzelm@9981
  7265
wenzelm@9709
  7266
* system: provide TAGS file for Isabelle sources;
wenzelm@9052
  7267
wenzelm@9288
  7268
* ML: infix 'OF' is a version of 'MRS' with more appropriate argument
wenzelm@9288
  7269
order;
wenzelm@9288
  7270
wenzelm@8994
  7271
* ML: renamed flags Syntax.trace_norm_ast to Syntax.trace_ast; global
wenzelm@8994
  7272
timing flag supersedes proof_timing and Toplevel.trace;
wenzelm@8994
  7273
wenzelm@10003
  7274
* ML: new combinators |>> and |>>> for incremental transformations
wenzelm@10003
  7275
with secondary results (e.g. certain theory extensions):
wenzelm@10003
  7276
wenzelm@9330
  7277
* ML: PureThy.add_defs gets additional argument to indicate potential
wenzelm@9330
  7278
overloading (usually false);
wenzelm@9330
  7279
wenzelm@10003
  7280
* ML: PureThy.add_thms/add_axioms/add_defs now return theorems as
wenzelm@10003
  7281
results;
wenzelm@8440
  7282
wenzelm@8358
  7283
wenzelm@8015
  7284
wenzelm@7986
  7285
New in Isabelle99 (October 1999)
wenzelm@7986
  7286
--------------------------------
oheimb@4649
  7287
paulson@5931
  7288
*** Overview of INCOMPATIBILITIES (see below for more details) ***
paulson@5931
  7289
paulson@6922
  7290
* HOL: The THEN and ELSE parts of conditional expressions (if P then x else y)
paulson@6922
  7291
are no longer simplified.  (This allows the simplifier to unfold recursive
paulson@6922
  7292
functional programs.)  To restore the old behaviour, declare
wenzelm@7215
  7293
wenzelm@7215
  7294
    Delcongs [if_weak_cong];
paulson@6922
  7295
wenzelm@6269
  7296
* HOL: Removed the obsolete syntax "Compl A"; use -A for set
wenzelm@6269
  7297
complement;
paulson@5931
  7298
wenzelm@6269
  7299
* HOL: the predicate "inj" is now defined by translation to "inj_on";
paulson@6174
  7300
berghofe@7847
  7301
* HOL/datatype: mutual_induct_tac no longer exists --
berghofe@7847
  7302
  use induct_tac "x_1 ... x_n" instead of mutual_induct_tac ["x_1", ..., "x_n"]
berghofe@7847
  7303
wenzelm@6386
  7304
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  7305
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  7306
wenzelm@6269
  7307
* ZF: The con_defs part of an inductive definition may no longer refer
wenzelm@6269
  7308
to constants declared in the same theory;
nipkow@6057
  7309
wenzelm@6269
  7310
* HOL, ZF: the function mk_cases, generated by the inductive
wenzelm@6269
  7311
definition package, has lost an argument.  To simplify its result, it
wenzelm@6269
  7312
uses the default simpset instead of a supplied list of theorems.
paulson@6141
  7313
wenzelm@7215
  7314
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  7315
nipkow@7619
  7316
* Simplifier: the type of the infix ML functions
wenzelm@8729
  7317
        setSSolver addSSolver setSolver addSolver
nipkow@7619
  7318
is now  simpset * solver -> simpset  where `solver' is a new abstract type
nipkow@7619
  7319
for packaging solvers. A solver is created via
wenzelm@8729
  7320
        mk_solver: string -> (thm list -> int -> tactic) -> solver
nipkow@7619
  7321
where the string argument is only a comment.
nipkow@6057
  7322
wenzelm@7647
  7323
paulson@6069
  7324
*** Proof tools ***
paulson@6069
  7325
wenzelm@6343
  7326
* Provers/Arith/fast_lin_arith.ML contains a functor for creating a
wenzelm@6343
  7327
decision procedure for linear arithmetic. Currently it is used for
wenzelm@7593
  7328
types `nat', `int', and `real' in HOL (see below); it can, should and
wenzelm@7593
  7329
will be instantiated for other types and logics as well.
paulson@6069
  7330
nipkow@7324
  7331
* The simplifier now accepts rewrite rules with flexible heads, eg
nipkow@7324
  7332
     hom ?f ==> ?f(?x+?y) = ?f ?x + ?f ?y
nipkow@7324
  7333
  They are applied like any rule with a non-pattern lhs, i.e. by first-order
nipkow@7324
  7334
  matching.
paulson@6069
  7335
wenzelm@7593
  7336
paulson@6014
  7337
*** General ***
paulson@6014
  7338
wenzelm@7986
  7339
* New Isabelle/Isar subsystem provides an alternative to traditional
wenzelm@7215
  7340
tactical theorem proving; together with the ProofGeneral/isar user
wenzelm@7215
  7341
interface it offers an interactive environment for developing human
wenzelm@7215
  7342
readable proof documents (Isar == Intelligible semi-automated
wenzelm@7886
  7343
reasoning); for further information see isatool doc isar-ref,
wenzelm@7986
  7344
src/HOL/Isar_examples and http://isabelle.in.tum.de/Isar/
wenzelm@7886
  7345
wenzelm@9612
  7346
* improved and simplified presentation of theories: better HTML markup
wenzelm@9612
  7347
(including colors), graph views in several sizes; isatool usedir now
wenzelm@9612
  7348
provides a proper interface for user theories (via -P option); actual
wenzelm@9612
  7349
document preparation based on (PDF)LaTeX is available as well (for
wenzelm@9612
  7350
new-style theories only); see isatool doc system for more information;
wenzelm@7215
  7351
wenzelm@7252
  7352
* native support for Proof General, both for classic Isabelle and
wenzelm@7986
  7353
Isabelle/Isar;
wenzelm@7215
  7354
wenzelm@7791
  7355
* ML function thm_deps visualizes dependencies of theorems and lemmas,
wenzelm@7791
  7356
using the graph browser tool;
wenzelm@7791
  7357
wenzelm@6751
  7358
* Isabelle manuals now also available as PDF;
wenzelm@6751
  7359
wenzelm@6449
  7360
* theory loader rewritten from scratch (may not be fully
wenzelm@6449
  7361
bug-compatible); old loadpath variable has been replaced by show_path,
wenzelm@6671
  7362
add_path, del_path, reset_path functions; new operations such as
wenzelm@7593
  7363
update_thy, touch_thy, remove_thy, use/update_thy_only (see also
wenzelm@7593
  7364
isatool doc ref);
wenzelm@6449
  7365
wenzelm@7215
  7366
* improved isatool install: option -k creates KDE application icon,
wenzelm@7215
  7367
option -p DIR installs standalone binaries;
wenzelm@7215
  7368
wenzelm@7215
  7369
* added ML_PLATFORM setting (useful for cross-platform installations);
wenzelm@7215
  7370
more robust handling of platform specific ML images for SML/NJ;
wenzelm@7215
  7371
wenzelm@7886
  7372
* the settings environment is now statically scoped, i.e. it is never
wenzelm@7986
  7373
created again in sub-processes invoked from isabelle, isatool, or
wenzelm@7886
  7374
Isabelle;
wenzelm@7886
  7375
wenzelm@7215
  7376
* path element specification '~~' refers to '$ISABELLE_HOME';
wenzelm@7215
  7377
wenzelm@6343
  7378
* in locales, the "assumes" and "defines" parts may be omitted if
wenzelm@6343
  7379
empty;
wenzelm@5973
  7380
wenzelm@6269
  7381
* new print_mode "xsymbols" for extended symbol support (e.g. genuine
wenzelm@6269
  7382
long arrows);
wenzelm@6259
  7383
wenzelm@6343
  7384
* new print_mode "HTML";
wenzelm@6343
  7385
wenzelm@6343
  7386
* new flag show_tags controls display of tags of theorems (which are
wenzelm@6343
  7387
basically just comments that may be attached by some tools);
wenzelm@6343
  7388
wenzelm@6461
  7389
* Isamode 2.6 requires patch to accomodate change of Isabelle font
wenzelm@6461
  7390
mode and goal output format:
wenzelm@6461
  7391
wenzelm@6461
  7392
diff -r Isamode-2.6/elisp/isa-load.el Isamode/elisp/isa-load.el
wenzelm@6461
  7393
244c244
wenzelm@6461
  7394
<       (list (isa-getenv "ISABELLE") "-msymbols" logic-name)
wenzelm@6461
  7395
---
wenzelm@6533
  7396
>       (list (isa-getenv "ISABELLE") "-misabelle_font" "-msymbols" logic-name)
wenzelm@6461
  7397
diff -r Isabelle-2.6/elisp/isa-proofstate.el Isamode/elisp/isa-proofstate.el
wenzelm@6461
  7398
181c181
wenzelm@6461
  7399
< (defconst proofstate-proofstart-regexp "^Level [0-9]+$"
wenzelm@6461
  7400
---
wenzelm@6461
  7401
> (defconst proofstate-proofstart-regexp "^Level [0-9]+"
wenzelm@6461
  7402
wenzelm@7450
  7403
* function bind_thms stores lists of theorems (cf. bind_thm);
wenzelm@7450
  7404
wenzelm@7593
  7405
* new shorthand tactics ftac, eatac, datac, fatac;
wenzelm@7593
  7406
wenzelm@7593
  7407
* qed (and friends) now accept "" as result name; in that case the
wenzelm@7986
  7408
theorem is not stored, but proper checks and presentation of the
wenzelm@7986
  7409
result still apply;
wenzelm@7593
  7410
wenzelm@7805
  7411
* theorem database now also indexes constants "Trueprop", "all",
wenzelm@7805
  7412
"==>", "=="; thus thms_containing, findI etc. may retrieve more rules;
wenzelm@7805
  7413
oheimb@6028
  7414
nipkow@6057
  7415
*** HOL ***
nipkow@6057
  7416
wenzelm@7215
  7417
** HOL arithmetic **
wenzelm@7215
  7418
wenzelm@6343
  7419
* There are now decision procedures for linear arithmetic over nat and
wenzelm@6343
  7420
int:
nipkow@6131
  7421
wenzelm@6343
  7422
1. arith_tac copes with arbitrary formulae involving `=', `<', `<=',
wenzelm@6343
  7423
`+', `-', `Suc', `min', `max' and numerical constants; other subterms
wenzelm@6343
  7424
are treated as atomic; subformulae not involving type `nat' or `int'
wenzelm@6343
  7425
are ignored; quantified subformulae are ignored unless they are
wenzelm@6343
  7426
positive universal or negative existential. The tactic has to be
wenzelm@6343
  7427
invoked by hand and can be a little bit slow. In particular, the
wenzelm@6343
  7428
running time is exponential in the number of occurrences of `min' and
wenzelm@6343
  7429
`max', and `-' on `nat'.
nipkow@6131
  7430
wenzelm@6343
  7431
2. fast_arith_tac is a cut-down version of arith_tac: it only takes
wenzelm@6343
  7432
(negated) (in)equalities among the premises and the conclusion into
wenzelm@6343
  7433
account (i.e. no compound formulae) and does not know about `min' and
wenzelm@6343
  7434
`max', and `-' on `nat'. It is fast and is used automatically by the
wenzelm@6343
  7435
simplifier.
nipkow@6131
  7436
wenzelm@6343
  7437
NB: At the moment, these decision procedures do not cope with mixed
wenzelm@6343
  7438
nat/int formulae where the two parts interact, such as `m < n ==>
wenzelm@6343
  7439
int(m) < int(n)'.
oheimb@6028
  7440
wenzelm@7215
  7441
* HOL/Numeral provides a generic theory of numerals (encoded
wenzelm@7313
  7442
efficiently as bit strings); setup for types nat/int/real is in place;
wenzelm@7215
  7443
INCOMPATIBILITY: since numeral syntax is now polymorphic, rather than
wenzelm@7215
  7444
int, existing theories and proof scripts may require a few additional
wenzelm@7215
  7445
type constraints;
paulson@7157
  7446
wenzelm@7215
  7447
* integer division and remainder can now be performed on constant
wenzelm@7215
  7448
arguments;
paulson@6922
  7449
wenzelm@7215
  7450
* many properties of integer multiplication, division and remainder
wenzelm@7215
  7451
are now available;
wenzelm@7215
  7452
paulson@7287
  7453
* An interface to the Stanford Validity Checker (SVC) is available through the
paulson@7287
  7454
tactic svc_tac.  Propositional tautologies and theorems of linear arithmetic
paulson@7287
  7455
are proved automatically.  SVC must be installed separately, and its results
paulson@7287
  7456
must be TAKEN ON TRUST (Isabelle does not check the proofs, but tags any
paulson@7287
  7457
invocation of the underlying oracle).  For SVC see
paulson@7444
  7458
  http://verify.stanford.edu/SVC
paulson@6922
  7459
wenzelm@7125
  7460
* IsaMakefile: the HOL-Real target now builds an actual image;
wenzelm@7125
  7461
wenzelm@7215
  7462
wenzelm@7215
  7463
** HOL misc **
wenzelm@7215
  7464
wenzelm@7595
  7465
* HOL/Real/HahnBanach: the Hahn-Banach theorem for real vector spaces
wenzelm@7595
  7466
(in Isabelle/Isar) -- by Gertrud Bauer;
wenzelm@7595
  7467
wenzelm@7691
  7468
* HOL/BCV: generic model of bytecode verification, i.e. data-flow
wenzelm@7691
  7469
analysis for assembly languages with subtypes;
wenzelm@7691
  7470
wenzelm@6278
  7471
* HOL/TLA (Lamport's Temporal Logic of Actions): major reorganization
wenzelm@6278
  7472
-- avoids syntactic ambiguities and treats state, transition, and
wenzelm@6278
  7473
temporal levels more uniformly; introduces INCOMPATIBILITIES due to
wenzelm@6278
  7474
changed syntax and (many) tactics;
wenzelm@6278
  7475
wenzelm@7791
  7476
* HOL/inductive: Now also handles more general introduction rules such
wenzelm@7791
  7477
  as "ALL y. (y, x) : r --> y : acc r ==> x : acc r"; monotonicity
wenzelm@7791
  7478
  theorems are now maintained within the theory (maintained via the
wenzelm@7791
  7479
  "mono" attribute);
berghofe@7780
  7480
wenzelm@7238
  7481
* HOL/datatype: Now also handles arbitrarily branching datatypes
wenzelm@7238
  7482
  (using function types) such as
wenzelm@7238
  7483
wenzelm@7238
  7484
  datatype 'a tree = Atom 'a | Branch "nat => 'a tree"
berghofe@7047
  7485
wenzelm@7326
  7486
* HOL/record: record_simproc (part of the default simpset) takes care
wenzelm@7326
  7487
of selectors applied to updated records; record_split_tac is no longer
wenzelm@7327
  7488
part of the default claset; update_defs may now be removed from the
wenzelm@7327
  7489
simpset in many cases; COMPATIBILITY: old behavior achieved by
wenzelm@7326
  7490
wenzelm@7326
  7491
  claset_ref () := claset() addSWrapper record_split_wrapper;
wenzelm@7326
  7492
  Delsimprocs [record_simproc]
wenzelm@7326
  7493
wenzelm@6386
  7494
* HOL/typedef: fixed type inference for representing set; type
wenzelm@6386
  7495
arguments now have to occur explicitly on the rhs as type constraints;
wenzelm@6386
  7496
paulson@7287
  7497
* HOL/recdef (TFL): 'congs' syntax now expects comma separated list of theorem
paulson@7287
  7498
names rather than an ML expression;
paulson@7287
  7499
paulson@7287
  7500
* HOL/defer_recdef (TFL): like recdef but the well-founded relation can be
paulson@7287
  7501
supplied later.  Program schemes can be defined, such as
paulson@7287
  7502
    "While B C s = (if B s then While B C (C s) else s)"
paulson@7287
  7503
where the well-founded relation can be chosen after B and C have been given.
wenzelm@6563
  7504
wenzelm@7215
  7505
* HOL/List: the constructors of type list are now Nil and Cons;
wenzelm@7215
  7506
INCOMPATIBILITY: while [] and infix # syntax is still there, of
wenzelm@7215
  7507
course, ML tools referring to List.list.op # etc. have to be adapted;
wenzelm@7215
  7508
wenzelm@7238
  7509
* HOL_quantifiers flag superseded by "HOL" print mode, which is
wenzelm@7238
  7510
disabled by default; run isabelle with option -m HOL to get back to
wenzelm@7238
  7511
the original Gordon/HOL-style output;
wenzelm@7238
  7512
wenzelm@7238
  7513
* HOL/Ord.thy: new bounded quantifier syntax (input only): ALL x<y. P,
wenzelm@7238
  7514
ALL x<=y. P, EX x<y. P, EX x<=y. P;
wenzelm@7238
  7515
wenzelm@7238
  7516
* HOL basic syntax simplified (more orthogonal): all variants of
wenzelm@7238
  7517
All/Ex now support plain / symbolic / HOL notation; plain syntax for
wenzelm@7238
  7518
Eps operator is provided as well: "SOME x. P[x]";
wenzelm@7238
  7519
berghofe@7320
  7520
* HOL/Sum.thy: sum_case has been moved to HOL/Datatype;
wenzelm@7261
  7521
wenzelm@7280
  7522
* HOL/Univ.thy: infix syntax <*>, <+>, <**>, <+> eliminated and made
wenzelm@7280
  7523
thus available for user theories;
wenzelm@7280
  7524
wenzelm@7300
  7525
* HOLCF/IOA/Sequents: renamed 'Cons' to 'Consq' to avoid clash with
wenzelm@7300
  7526
HOL/List; hardly an INCOMPATIBILITY since '>>' syntax is used all the
wenzelm@7300
  7527
time;
wenzelm@7300
  7528
wenzelm@7986
  7529
* HOL: new tactic smp_tac: int -> int -> tactic, which applies spec
wenzelm@7986
  7530
several times and then mp;
oheimb@7492
  7531
wenzelm@7215
  7532
paulson@7113
  7533
*** LK ***
paulson@7113
  7534
wenzelm@7215
  7535
* the notation <<...>> is now available as a notation for sequences of
wenzelm@7215
  7536
formulas;
paulson@7113
  7537
paulson@7113
  7538
* the simplifier is now installed
paulson@7113
  7539
wenzelm@8729
  7540
* the axiom system has been generalized (thanks to Soren Heilmann)
paulson@7113
  7541
paulson@7113
  7542
* the classical reasoner now has a default rule database
paulson@7113
  7543
paulson@7113
  7544
paulson@6064
  7545
*** ZF ***
paulson@6064
  7546
paulson@6064
  7547
* new primrec section allows primitive recursive functions to be given
wenzelm@6269
  7548
directly (as in HOL) over datatypes and the natural numbers;
paulson@6064
  7549
wenzelm@6269
  7550
* new tactics induct_tac and exhaust_tac for induction (or case
wenzelm@6269
  7551
analysis) over datatypes and the natural numbers;
paulson@6064
  7552
paulson@6064
  7553
* the datatype declaration of type T now defines the recursor T_rec;
paulson@6064
  7554
paulson@6141
  7555
* simplification automatically does freeness reasoning for datatype
wenzelm@6269
  7556
constructors;
paulson@6141
  7557
wenzelm@6269
  7558
* automatic type-inference, with AddTCs command to insert new
wenzelm@6269
  7559
type-checking rules;
paulson@6155
  7560
wenzelm@6269
  7561
* datatype introduction rules are now added as Safe Introduction rules
wenzelm@6269
  7562
to the claset;
paulson@6155
  7563
wenzelm@6269
  7564
* the syntax "if P then x else y" is now available in addition to
wenzelm@6269
  7565
if(P,x,y);
wenzelm@6269
  7566
paulson@6069
  7567
wenzelm@6343
  7568
*** Internal programming interfaces ***
wenzelm@6343
  7569
wenzelm@7919
  7570
* tuned simplifier trace output; new flag debug_simp;
wenzelm@7919
  7571
wenzelm@7420
  7572
* structures Vartab / Termtab (instances of TableFun) offer efficient
wenzelm@7420
  7573
tables indexed by indexname_ord / term_ord (compatible with aconv);
wenzelm@7420
  7574
wenzelm@6386
  7575
* AxClass.axclass_tac lost the theory argument;
wenzelm@6386
  7576
wenzelm@6343
  7577
* tuned current_goals_markers semantics: begin / end goal avoids
wenzelm@6343
  7578
printing empty lines;
wenzelm@6343
  7579
wenzelm@6343
  7580
* removed prs and prs_fn hook, which was broken because it did not
wenzelm@6343
  7581
include \n in its semantics, forcing writeln to add one
wenzelm@6343
  7582
uncoditionally; replaced prs_fn by writeln_fn; consider std_output:
wenzelm@6343
  7583
string -> unit if you really want to output text without newline;
wenzelm@6343
  7584
wenzelm@6343
  7585
* Symbol.output subject to print mode; INCOMPATIBILITY: defaults to
wenzelm@6343
  7586
plain output, interface builders may have to enable 'isabelle_font'
wenzelm@6343
  7587
mode to get Isabelle font glyphs as before;
wenzelm@6343
  7588
wenzelm@6343
  7589
* refined token_translation interface; INCOMPATIBILITY: output length
wenzelm@6343
  7590
now of type real instead of int;
wenzelm@6343
  7591
wenzelm@7196
  7592
* theory loader actions may be traced via new ThyInfo.add_hook
wenzelm@7196
  7593
interface (see src/Pure/Thy/thy_info.ML); example application: keep
wenzelm@7196
  7594
your own database of information attached to *whole* theories -- as
wenzelm@7196
  7595
opposed to intra-theory data slots offered via TheoryDataFun;
wenzelm@7196
  7596
wenzelm@7647
  7597
* proper handling of dangling sort hypotheses (at last!);
wenzelm@7647
  7598
Thm.strip_shyps and Drule.strip_shyps_warning take care of removing
wenzelm@7647
  7599
extra sort hypotheses that can be witnessed from the type signature;
wenzelm@7986
  7600
the force_strip_shyps flag is gone, any remaining shyps are simply
wenzelm@7986
  7601
left in the theorem (with a warning issued by strip_shyps_warning);
wenzelm@7647
  7602
wenzelm@6343
  7603
paulson@6064
  7604
wenzelm@5781
  7605
New in Isabelle98-1 (October 1998)
wenzelm@5781
  7606
----------------------------------
wenzelm@5781
  7607
wenzelm@5127
  7608
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4842
  7609
wenzelm@5726
  7610
* several changes of automated proof tools;
wenzelm@5207
  7611
wenzelm@5726
  7612
* HOL: major changes to the inductive and datatype packages, including
wenzelm@5726
  7613
some minor incompatibilities of theory syntax;
wenzelm@5373
  7614
wenzelm@5726
  7615
* HOL: renamed r^-1 to 'converse' from 'inverse'; 'inj_onto' is now
wenzelm@5217
  7616
called `inj_on';
paulson@5160
  7617
nipkow@5275
  7618
* HOL: removed duplicate thms in Arith:
nipkow@5275
  7619
  less_imp_add_less  should be replaced by  trans_less_add1
nipkow@5275
  7620
  le_imp_add_le      should be replaced by  trans_le_add1
paulson@5160
  7621
wenzelm@5726
  7622
* HOL: unary minus is now overloaded (new type constraints may be
wenzelm@5726
  7623
required);
paulson@5490
  7624
wenzelm@5726
  7625
* HOL and ZF: unary minus for integers is now #- instead of #~.  In
wenzelm@5726
  7626
ZF, expressions such as n#-1 must be changed to n#- 1, since #-1 is
wenzelm@5726
  7627
now taken as an integer constant.
paulson@5541
  7628
wenzelm@5726
  7629
* Pure: ML function 'theory_of' renamed to 'theory';
wenzelm@5397
  7630
wenzelm@5363
  7631
wenzelm@5127
  7632
*** Proof tools ***
nipkow@4880
  7633
nipkow@5657
  7634
* Simplifier:
nipkow@5657
  7635
  1. Asm_full_simp_tac is now more aggressive.
nipkow@5657
  7636
     1. It will sometimes reorient premises if that increases their power to
nipkow@5657
  7637
        simplify.
nipkow@5657
  7638
     2. It does no longer proceed strictly from left to right but may also
nipkow@5657
  7639
        rotate premises to achieve further simplification.
nipkow@5657
  7640
     For compatibility reasons there is now Asm_lr_simp_tac which is like the
nipkow@5657
  7641
     old Asm_full_simp_tac in that it does not rotate premises.
nipkow@5657
  7642
  2. The simplifier now knows a little bit about nat-arithmetic.
nipkow@4880
  7643
wenzelm@5127
  7644
* Classical reasoner: wrapper mechanism for the classical reasoner now
wenzelm@5127
  7645
allows for selected deletion of wrappers, by introduction of names for
wenzelm@5127
  7646
wrapper functionals.  This implies that addbefore, addSbefore,
wenzelm@5127
  7647
addaltern, and addSaltern now take a pair (name, tactic) as argument,
wenzelm@5127
  7648
and that adding two tactics with the same name overwrites the first
wenzelm@5127
  7649
one (emitting a warning).
oheimb@4824
  7650
  type wrapper = (int -> tactic) -> (int -> tactic)
oheimb@4649
  7651
  setWrapper, setSWrapper, compWrapper and compSWrapper are replaced by
oheimb@4824
  7652
  addWrapper, addSWrapper: claset * (string * wrapper) -> claset
oheimb@4824
  7653
  delWrapper, delSWrapper: claset *  string            -> claset
oheimb@4649
  7654
  getWrapper is renamed to appWrappers, getSWrapper to appSWrappers;
oheimb@4649
  7655
wenzelm@5705
  7656
* Classical reasoner: addbefore/addSbefore now have APPEND/ORELSE
wenzelm@5726
  7657
semantics; addbefore now affects only the unsafe part of step_tac
wenzelm@5726
  7658
etc.; this affects addss/auto_tac/force_tac, so EXISTING PROOFS MAY
wenzelm@5726
  7659
FAIL, but proofs should be fixable easily, e.g. by replacing Auto_tac
wenzelm@5726
  7660
by Force_tac;
oheimb@5524
  7661
wenzelm@5726
  7662
* Classical reasoner: setwrapper to setWrapper and compwrapper to
wenzelm@5726
  7663
compWrapper; added safe wrapper (and access functions for it);
oheimb@5524
  7664
wenzelm@5127
  7665
* HOL/split_all_tac is now much faster and fails if there is nothing
wenzelm@5726
  7666
to split.  Some EXISTING PROOFS MAY REQUIRE ADAPTION because the order
wenzelm@5726
  7667
and the names of the automatically generated variables have changed.
wenzelm@5726
  7668
split_all_tac has moved within claset() from unsafe wrappers to safe
wenzelm@5726
  7669
wrappers, which means that !!-bound variables are split much more
wenzelm@5726
  7670
aggressively, and safe_tac and clarify_tac now split such variables.
wenzelm@5726
  7671
If this splitting is not appropriate, use delSWrapper "split_all_tac".
wenzelm@5726
  7672
Note: the same holds for record_split_tac, which does the job of
wenzelm@5726
  7673
split_all_tac for record fields.
wenzelm@5127
  7674
wenzelm@5726
  7675
* HOL/Simplifier: Rewrite rules for case distinctions can now be added
wenzelm@5726
  7676
permanently to the default simpset using Addsplits just like
wenzelm@5726
  7677
Addsimps. They can be removed via Delsplits just like
wenzelm@5726
  7678
Delsimps. Lower-case versions are also available.
wenzelm@5127
  7679
wenzelm@5726
  7680
* HOL/Simplifier: The rule split_if is now part of the default
wenzelm@5726
  7681
simpset. This means that the simplifier will eliminate all occurrences
wenzelm@5726
  7682
of if-then-else in the conclusion of a goal. To prevent this, you can
wenzelm@5726
  7683
either remove split_if completely from the default simpset by
wenzelm@5726
  7684
`Delsplits [split_if]' or remove it in a specific call of the
wenzelm@5726
  7685
simplifier using `... delsplits [split_if]'.  You can also add/delete
wenzelm@5726
  7686
other case splitting rules to/from the default simpset: every datatype
wenzelm@5726
  7687
generates suitable rules `split_t_case' and `split_t_case_asm' (where
wenzelm@5726
  7688
t is the name of the datatype).
wenzelm@5127
  7689
wenzelm@5726
  7690
* Classical reasoner / Simplifier combination: new force_tac (and
wenzelm@5127
  7691
derivatives Force_tac, force) combines rewriting and classical
wenzelm@5127
  7692
reasoning (and whatever other tools) similarly to auto_tac, but is
wenzelm@5726
  7693
aimed to solve the given subgoal completely.
wenzelm@5127
  7694
wenzelm@5127
  7695
wenzelm@5127
  7696
*** General ***
wenzelm@5127
  7697
wenzelm@5217
  7698
* new top-level commands `Goal' and `Goalw' that improve upon `goal'
wenzelm@5127
  7699
and `goalw': the theory is no longer needed as an explicit argument -
wenzelm@5127
  7700
the current theory context is used; assumptions are no longer returned
wenzelm@5127
  7701
at the ML-level unless one of them starts with ==> or !!; it is
wenzelm@5217
  7702
recommended to convert to these new commands using isatool fixgoal
wenzelm@5217
  7703
(backup your sources first!);
wenzelm@4842
  7704
wenzelm@5217
  7705
* new top-level commands 'thm' and 'thms' for retrieving theorems from
wenzelm@5207
  7706
the current theory context, and 'theory' to lookup stored theories;
paulson@4806
  7707
paulson@5722
  7708
* new theory section 'locale' for declaring constants, assumptions and
paulson@5722
  7709
definitions that have local scope;
paulson@5722
  7710
wenzelm@5127
  7711
* new theory section 'nonterminals' for purely syntactic types;
wenzelm@4858
  7712
wenzelm@5127
  7713
* new theory section 'setup' for generic ML setup functions
wenzelm@5127
  7714
(e.g. package initialization);
wenzelm@4869
  7715
wenzelm@5131
  7716
* the distribution now includes Isabelle icons: see
wenzelm@5131
  7717
lib/logo/isabelle-{small,tiny}.xpm;
wenzelm@5131
  7718
wenzelm@5363
  7719
* isatool install - install binaries with absolute references to
wenzelm@5363
  7720
ISABELLE_HOME/bin;
wenzelm@5363
  7721
wenzelm@5572
  7722
* isatool logo -- create instances of the Isabelle logo (as EPS);
wenzelm@5572
  7723
wenzelm@5407
  7724
* print mode 'emacs' reserved for Isamode;
wenzelm@5407
  7725
wenzelm@5726
  7726
* support multiple print (ast) translations per constant name;
wenzelm@5726
  7727
wenzelm@6925
  7728
* theorems involving oracles are now printed with a suffixed [!];
wenzelm@6925
  7729
wenzelm@4711
  7730
paulson@4661
  7731
*** HOL ***
paulson@4661
  7732
wenzelm@5710
  7733
* there is now a tutorial on Isabelle/HOL (do 'isatool doc tutorial');
nipkow@5709
  7734
wenzelm@5217
  7735
* HOL/inductive package reorganized and improved: now supports mutual
paulson@5267
  7736
definitions such as
berghofe@5214
  7737
wenzelm@5217
  7738
  inductive EVEN ODD
wenzelm@5217
  7739
    intrs
wenzelm@5217
  7740
      null "0 : EVEN"
wenzelm@5217
  7741
      oddI "n : EVEN ==> Suc n : ODD"
wenzelm@5217
  7742
      evenI "n : ODD ==> Suc n : EVEN"
berghofe@5214
  7743
wenzelm@5217
  7744
new theorem list "elims" contains an elimination rule for each of the
wenzelm@5217
  7745
recursive sets; inductive definitions now handle disjunctive premises
wenzelm@5217
  7746
correctly (also ZF);
berghofe@5214
  7747
wenzelm@5217
  7748
INCOMPATIBILITIES: requires Inductive as an ancestor; component
wenzelm@5217
  7749
"mutual_induct" no longer exists - the induction rule is always
wenzelm@5217
  7750
contained in "induct";
berghofe@5214
  7751
berghofe@5214
  7752
wenzelm@5217
  7753
* HOL/datatype package re-implemented and greatly improved: now
paulson@5267
  7754
supports mutually recursive datatypes such as
berghofe@5214
  7755
wenzelm@5217
  7756
  datatype
wenzelm@5217
  7757
    'a aexp = IF_THEN_ELSE ('a bexp) ('a aexp) ('a aexp)
wenzelm@5217
  7758
            | SUM ('a aexp) ('a aexp)
wenzelm@5217
  7759
            | DIFF ('a aexp) ('a aexp)
wenzelm@5217
  7760
            | NUM 'a
wenzelm@5217
  7761
  and
wenzelm@5217
  7762
    'a bexp = LESS ('a aexp) ('a aexp)
wenzelm@5217
  7763
            | AND ('a bexp) ('a bexp)
wenzelm@5217
  7764
            | OR ('a bexp) ('a bexp)
wenzelm@5217
  7765
paulson@5267
  7766
as well as indirectly recursive datatypes such as
wenzelm@5217
  7767
wenzelm@5217
  7768
  datatype
wenzelm@5217
  7769
    ('a, 'b) term = Var 'a
wenzelm@5217
  7770
                  | App 'b ((('a, 'b) term) list)
wenzelm@5217
  7771
wenzelm@5217
  7772
The new tactic  mutual_induct_tac [<var_1>, ..., <var_n>] i  performs
wenzelm@5217
  7773
induction on mutually / indirectly recursive datatypes.
wenzelm@5217
  7774
wenzelm@5217
  7775
Primrec equations are now stored in theory and can be accessed via
wenzelm@5217
  7776
<function_name>.simps.
wenzelm@5217
  7777
wenzelm@5217
  7778
INCOMPATIBILITIES:
wenzelm@5217
  7779
wenzelm@5217
  7780
  - Theories using datatypes must now have theory Datatype as an
wenzelm@5217
  7781
    ancestor.
wenzelm@5217
  7782
  - The specific <typename>.induct_tac no longer exists - use the
wenzelm@5217
  7783
    generic induct_tac instead.
berghofe@5226
  7784
  - natE has been renamed to nat.exhaust - use exhaust_tac
wenzelm@5217
  7785
    instead of res_inst_tac ... natE. Note that the variable
berghofe@5226
  7786
    names in nat.exhaust differ from the names in natE, this
wenzelm@5217
  7787
    may cause some "fragile" proofs to fail.
wenzelm@5217
  7788
  - The theorems split_<typename>_case and split_<typename>_case_asm
wenzelm@5217
  7789
    have been renamed to <typename>.split and <typename>.split_asm.
wenzelm@5217
  7790
  - Since default sorts of type variables are now handled correctly,
wenzelm@5217
  7791
    some datatype definitions may have to be annotated with explicit
wenzelm@5217
  7792
    sort constraints.
wenzelm@5217
  7793
  - Primrec definitions no longer require function name and type
wenzelm@5217
  7794
    of recursive argument.
wenzelm@5217
  7795
wenzelm@5217
  7796
Consider using isatool fixdatatype to adapt your theories and proof
wenzelm@5217
  7797
scripts to the new package (backup your sources first!).
wenzelm@5217
  7798
wenzelm@5217
  7799
wenzelm@5726
  7800
* HOL/record package: considerably improved implementation; now
wenzelm@5726
  7801
includes concrete syntax for record types, terms, updates; theorems
wenzelm@5726
  7802
for surjective pairing and splitting !!-bound record variables; proof
wenzelm@5726
  7803
support is as follows:
wenzelm@5726
  7804
wenzelm@5726
  7805
  1) standard conversions (selectors or updates applied to record
wenzelm@5726
  7806
constructor terms) are part of the standard simpset;
wenzelm@5726
  7807
wenzelm@5726
  7808
  2) inject equations of the form ((x, y) = (x', y')) == x=x' & y=y' are
wenzelm@5726
  7809
made part of standard simpset and claset via addIffs;
wenzelm@5726
  7810
wenzelm@5726
  7811
  3) a tactic for record field splitting (record_split_tac) is part of
wenzelm@5726
  7812
the standard claset (addSWrapper);
wenzelm@5726
  7813
wenzelm@5726
  7814
To get a better idea about these rules you may retrieve them via
wenzelm@5726
  7815
something like 'thms "foo.simps"' or 'thms "foo.iffs"', where "foo" is
wenzelm@5726
  7816
the name of your record type.
wenzelm@5726
  7817
wenzelm@5726
  7818
The split tactic 3) conceptually simplifies by the following rule:
wenzelm@5726
  7819
wenzelm@5726
  7820
  "(!!x. PROP ?P x) == (!!a b. PROP ?P (a, b))"
wenzelm@5726
  7821
wenzelm@5726
  7822
Thus any record variable that is bound by meta-all will automatically
wenzelm@5726
  7823
blow up into some record constructor term, consequently the
wenzelm@5726
  7824
simplifications of 1), 2) apply.  Thus force_tac, auto_tac etc. shall
wenzelm@5726
  7825
solve record problems automatically.
wenzelm@5726
  7826
berghofe@5214
  7827
wenzelm@5125
  7828
* reorganized the main HOL image: HOL/Integ and String loaded by
wenzelm@5125
  7829
default; theory Main includes everything;
wenzelm@5125
  7830
paulson@5650
  7831
* automatic simplification of integer sums and comparisons, using cancellation;
paulson@5650
  7832
oheimb@5526
  7833
* added option_map_eq_Some and not_Some_eq to the default simpset and claset;
wenzelm@5125
  7834
wenzelm@5127
  7835
* added disj_not1 = "(~P | Q) = (P --> Q)" to the default simpset;
wenzelm@5125
  7836
wenzelm@5127
  7837
* many new identities for unions, intersections, set difference, etc.;
wenzelm@5127
  7838
wenzelm@5127
  7839
* expand_if, expand_split, expand_sum_case and expand_nat_case are now
wenzelm@5127
  7840
called split_if, split_split, split_sum_case and split_nat_case (to go
wenzelm@5127
  7841
with add/delsplits);
wenzelm@5127
  7842
wenzelm@5127
  7843
* HOL/Prod introduces simplification procedure unit_eq_proc rewriting
wenzelm@5127
  7844
(?x::unit) = (); this is made part of the default simpset, which COULD
wenzelm@5127
  7845
MAKE EXISTING PROOFS FAIL under rare circumstances (consider
wenzelm@5207
  7846
'Delsimprocs [unit_eq_proc];' as last resort); also note that
wenzelm@5207
  7847
unit_abs_eta_conv is added in order to counter the effect of
wenzelm@5207
  7848
unit_eq_proc on (%u::unit. f u), replacing it by f rather than by
wenzelm@5207
  7849
%u.f();
wenzelm@5127
  7850
wenzelm@5217
  7851
* HOL/Fun INCOMPATIBILITY: `inj_onto' is now called `inj_on' (which
wenzelm@5217
  7852
makes more sense);
wenzelm@5127
  7853
paulson@5475
  7854
* HOL/Set INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  7855
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  7856
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  7857
wenzelm@5217
  7858
* HOL/Relation INCOMPATIBILITY: renamed the relational operator r^-1
wenzelm@5217
  7859
to 'converse' from 'inverse' (for compatibility with ZF and some
wenzelm@5217
  7860
literature);
berghofe@5109
  7861
wenzelm@5127
  7862
* HOL/recdef can now declare non-recursive functions, with {} supplied as
wenzelm@5127
  7863
the well-founded relation;
wenzelm@5085
  7864
paulson@5490
  7865
* HOL/Set INCOMPATIBILITY: the complement of set A is now written -A instead of
paulson@5490
  7866
    Compl A.  The "Compl" syntax remains available as input syntax for this
paulson@5490
  7867
    release ONLY.
paulson@5490
  7868
wenzelm@5127
  7869
* HOL/Update: new theory of function updates:
wenzelm@5127
  7870
    f(a:=b) == %x. if x=a then b else f x
wenzelm@5127
  7871
may also be iterated as in f(a:=b,c:=d,...);
oheimb@4824
  7872
wenzelm@5127
  7873
* HOL/Vimage: new theory for inverse image of a function, syntax f-``B;
paulson@4899
  7874
nipkow@5282
  7875
* HOL/List:
nipkow@5282
  7876
  - new function list_update written xs[i:=v] that updates the i-th
nipkow@5282
  7877
    list position. May also be iterated as in xs[i:=a,j:=b,...].
nipkow@5428
  7878
  - new function `upt' written [i..j(] which generates the list
nipkow@5428
  7879
    [i,i+1,...,j-1], i.e. the upper bound is excluded. To include the upper
nipkow@5428
  7880
    bound write [i..j], which is a shorthand for [i..j+1(].
nipkow@5282
  7881
  - new lexicographic orderings and corresponding wellfoundedness theorems.
paulson@4779
  7882
wenzelm@5127
  7883
* HOL/Arith:
wenzelm@5127
  7884
  - removed 'pred' (predecessor) function;
wenzelm@5127
  7885
  - generalized some theorems about n-1;
wenzelm@5127
  7886
  - many new laws about "div" and "mod";
wenzelm@5127
  7887
  - new laws about greatest common divisors (see theory ex/Primes);
oheimb@4766
  7888
wenzelm@5127
  7889
* HOL/Relation: renamed the relational operator r^-1 "converse"
wenzelm@4842
  7890
instead of "inverse";
wenzelm@4711
  7891
nipkow@5651
  7892
* HOL/Induct/Multiset: a theory of multisets, including the wellfoundedness
nipkow@5651
  7893
  of the multiset ordering;
nipkow@5651
  7894
wenzelm@5127
  7895
* directory HOL/Real: a construction of the reals using Dedekind cuts
nipkow@5651
  7896
  (not included by default);
paulson@4806
  7897
wenzelm@5127
  7898
* directory HOL/UNITY: Chandy and Misra's UNITY formalism;
wenzelm@4711
  7899
nipkow@5651
  7900
* directory HOL/Hoare: a new version of Hoare logic which permits many-sorted
nipkow@5651
  7901
  programs, i.e. different program variables may have different types.
nipkow@5651
  7902
paulson@5142
  7903
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  7904
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  7905
  Now rew can involve either definitions or equalities (either == or =).
wenzelm@5002
  7906
wenzelm@5363
  7907
paulson@4879
  7908
*** ZF ***
paulson@4879
  7909
paulson@5332
  7910
* theory Main includes everything; INCOMPATIBILITY: theory ZF.thy contains
paulson@5332
  7911
  only the theorems proved on ZF.ML;
paulson@5160
  7912
paulson@5475
  7913
* ZF INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
paulson@5475
  7914
  It and 'sym RS equals0D' are now in the default  claset, giving automatic
paulson@5475
  7915
  disjointness reasoning but breaking a few old proofs.
paulson@5267
  7916
paulson@5160
  7917
* ZF/Update: new theory of function updates
paulson@5160
  7918
    with default rewrite rule  f(x:=y) ` z = if(z=x, y, f`z)
paulson@5160
  7919
  may also be iterated as in f(a:=b,c:=d,...);
paulson@5160
  7920
paulson@4879
  7921
* in  let x=t in u(x), neither t nor u(x) has to be an FOL term.
oheimb@4649
  7922
paulson@5142
  7923
* calling (stac rew i) now fails if "rew" has no effect on the goal
paulson@5142
  7924
  [previously, this check worked only if the rewrite rule was unconditional]
paulson@5308
  7925
  Now rew can involve either definitions or equalities (either == or =).
paulson@5142
  7926
paulson@5160
  7927
* case_tac provided for compatibility with HOL
paulson@5160
  7928
    (like the old excluded_middle_tac, but with subgoals swapped)
paulson@5160
  7929
wenzelm@4842
  7930
wenzelm@5127
  7931
*** Internal programming interfaces ***
wenzelm@5002
  7932
wenzelm@5251
  7933
* Pure: several new basic modules made available for general use, see
wenzelm@5251
  7934
also src/Pure/README;
wenzelm@5207
  7935
wenzelm@5008
  7936
* improved the theory data mechanism to support encapsulation (data
wenzelm@5008
  7937
kind name replaced by private Object.kind, acting as authorization
wenzelm@5373
  7938
key); new type-safe user interface via functor TheoryDataFun; generic
wenzelm@5373
  7939
print_data function becomes basically useless;
wenzelm@5002
  7940
wenzelm@5251
  7941
* removed global_names compatibility flag -- all theory declarations
wenzelm@5251
  7942
are qualified by default;
wenzelm@5251
  7943
wenzelm@5085
  7944
* module Pure/Syntax now offers quote / antiquote translation
wenzelm@5085
  7945
functions (useful for Hoare logic etc. with implicit dependencies);
wenzelm@5373
  7946
see HOL/ex/Antiquote for an example use;
wenzelm@5085
  7947
wenzelm@5127
  7948
* Simplifier now offers conversions (asm_)(full_)rewrite: simpset ->
wenzelm@5127
  7949
cterm -> thm;
wenzelm@5127
  7950
wenzelm@5207
  7951
* new tactical CHANGED_GOAL for checking that a tactic modifies a
wenzelm@5207
  7952
subgoal;
paulson@5142
  7953
wenzelm@5251
  7954
* Display.print_goals function moved to Locale.print_goals;
wenzelm@5251
  7955
wenzelm@5731
  7956
* standard print function for goals supports current_goals_markers
wenzelm@5731
  7957
variable for marking begin of proof, end of proof, start of goal; the
wenzelm@5731
  7958
default is ("", "", ""); setting current_goals_markers := ("<proof>",
wenzelm@5731
  7959
"</proof>", "<goal>") causes SGML like tagged proof state printing,
wenzelm@5731
  7960
for example;
wenzelm@5731
  7961
wenzelm@5002
  7962
wenzelm@5002
  7963
wenzelm@4410
  7964
New in Isabelle98 (January 1998)
wenzelm@4410
  7965
--------------------------------
wenzelm@4410
  7966
wenzelm@4410
  7967
*** Overview of INCOMPATIBILITIES (see below for more details) ***
wenzelm@4410
  7968
wenzelm@4410
  7969
* changed lexical syntax of terms / types: dots made part of long
wenzelm@4410
  7970
identifiers, e.g. "%x.x" no longer possible, should be "%x. x";
wenzelm@4410
  7971
wenzelm@4410
  7972
* simpset (and claset) reference variable replaced by functions
wenzelm@4410
  7973
simpset / simpset_ref;
wenzelm@4410
  7974
wenzelm@4410
  7975
* no longer supports theory aliases (via merge) and non-trivial
wenzelm@4410
  7976
implicit merge of thms' signatures;
wenzelm@4410
  7977
wenzelm@4410
  7978
* most internal names of constants changed due to qualified names;
wenzelm@4410
  7979
wenzelm@4410
  7980
* changed Pure/Sequence interface (see Pure/seq.ML);
wenzelm@4410
  7981
wenzelm@3454
  7982
paulson@3715
  7983
*** General Changes ***
wenzelm@3697
  7984
wenzelm@4174
  7985
* hierachically structured name spaces (for consts, types, axms, thms
wenzelm@3943
  7986
etc.); new lexical class 'longid' (e.g. Foo.bar.x) may render much of
wenzelm@4108
  7987
old input syntactically incorrect (e.g. "%x.x"); COMPATIBILITY:
wenzelm@4108
  7988
isatool fixdots ensures space after dots (e.g. "%x. x"); set
wenzelm@4174
  7989
long_names for fully qualified output names; NOTE: ML programs
wenzelm@4174
  7990
(special tactics, packages etc.) referring to internal names may have
wenzelm@4174
  7991
to be adapted to cope with fully qualified names; in case of severe
wenzelm@4174
  7992
backward campatibility problems try setting 'global_names' at compile
wenzelm@4174
  7993
time to have enrything declared within a flat name space; one may also
wenzelm@4174
  7994
fine tune name declarations in theories via the 'global' and 'local'
wenzelm@4174
  7995
section;
wenzelm@4108
  7996
wenzelm@4108
  7997
* reimplemented the implicit simpset and claset using the new anytype
wenzelm@4108
  7998
data filed in signatures; references simpset:simpset ref etc. are
wenzelm@4108
  7999
replaced by functions simpset:unit->simpset and
wenzelm@4108
  8000
simpset_ref:unit->simpset ref; COMPATIBILITY: use isatool fixclasimp
wenzelm@4108
  8001
to patch your ML files accordingly;
paulson@3856
  8002
wenzelm@3857
  8003
* HTML output now includes theory graph data for display with Java
wenzelm@3857
  8004
applet or isatool browser; data generated automatically via isatool
wenzelm@3901
  8005
usedir (see -i option, ISABELLE_USEDIR_OPTIONS);
wenzelm@3857
  8006
paulson@3856
  8007
* defs may now be conditional; improved rewrite_goals_tac to handle
paulson@3856
  8008
conditional equations;
paulson@3856
  8009
wenzelm@4174
  8010
* defs now admits additional type arguments, using TYPE('a) syntax;
wenzelm@4174
  8011
wenzelm@3901
  8012
* theory aliases via merge (e.g. M=A+B+C) no longer supported, always
wenzelm@3901
  8013
creates a new theory node; implicit merge of thms' signatures is
wenzelm@4112
  8014
restricted to 'trivial' ones; COMPATIBILITY: one may have to use
wenzelm@3901
  8015
transfer:theory->thm->thm in (rare) cases;
wenzelm@3901
  8016
wenzelm@3968
  8017
* improved handling of draft signatures / theories; draft thms (and
wenzelm@3968
  8018
ctyps, cterms) are automatically promoted to real ones;
wenzelm@3968
  8019
wenzelm@3901
  8020
* slightly changed interfaces for oracles: admit many per theory, named
wenzelm@3901
  8021
(e.g. oracle foo = mlfun), additional name argument for invoke_oracle;
wenzelm@3901
  8022
wenzelm@3901
  8023
* print_goals: optional output of const types (set show_consts and
wenzelm@3901
  8024
show_types);
wenzelm@3851
  8025
wenzelm@4388
  8026
* improved output of warnings (###) and errors (***);
wenzelm@3697
  8027
paulson@4178
  8028
* subgoal_tac displays a warning if the new subgoal has type variables;
paulson@4178
  8029
paulson@3715
  8030
* removed old README and Makefiles;
paulson@3715
  8031
paulson@3856
  8032
* replaced print_goals_ref hook by print_current_goals_fn and result_error_fn;
wenzelm@3670
  8033
paulson@3715
  8034
* removed obsolete init_pps and init_database;
paulson@3715
  8035
paulson@3715
  8036
* deleted the obsolete tactical STATE, which was declared by
paulson@3715
  8037
    fun STATE tacfun st = tacfun st st;
paulson@3715
  8038
wenzelm@4388
  8039
* cd and use now support path variables, e.g. $ISABELLE_HOME, or ~
wenzelm@4388
  8040
(which abbreviates $HOME);
wenzelm@4269
  8041
wenzelm@4269
  8042
* changed Pure/Sequence interface (see Pure/seq.ML); COMPATIBILITY:
wenzelm@4269
  8043
use isatool fixseq to adapt your ML programs (this works for fully
wenzelm@4269
  8044
qualified references to the Sequence structure only!);
wenzelm@4269
  8045
wenzelm@4381
  8046
* use_thy no longer requires writable current directory; it always
wenzelm@4381
  8047
reloads .ML *and* .thy file, if either one is out of date;
wenzelm@4269
  8048
paulson@3715
  8049
paulson@3715
  8050
*** Classical Reasoner ***
paulson@3715
  8051
wenzelm@3744
  8052
* Clarify_tac, clarify_tac, clarify_step_tac, Clarify_step_tac: new
wenzelm@3744
  8053
tactics that use classical reasoning to simplify a subgoal without
wenzelm@3744
  8054
splitting it into several subgoals;
paulson@3715
  8055
paulson@3719
  8056
* Safe_tac: like safe_tac but uses the default claset;
paulson@3719
  8057
paulson@3715
  8058
paulson@3715
  8059
*** Simplifier ***
paulson@3715
  8060
paulson@3715
  8061
* added simplification meta rules:
paulson@3715
  8062
    (asm_)(full_)simplify: simpset -> thm -> thm;
paulson@3715
  8063
paulson@3715
  8064
* simplifier.ML no longer part of Pure -- has to be loaded by object
paulson@3715
  8065
logics (again);
paulson@3715
  8066
paulson@3715
  8067
* added prems argument to simplification procedures;
paulson@3715
  8068
paulson@4325
  8069
* HOL, FOL, ZF: added infix function `addsplits':
paulson@4325
  8070
  instead of `<simpset> setloop (split_tac <thms>)'
paulson@4325
  8071
  you can simply write `<simpset> addsplits <thms>'
paulson@4325
  8072
paulson@3715
  8073
paulson@3715
  8074
*** Syntax ***
paulson@3715
  8075
wenzelm@4174
  8076
* TYPE('a) syntax for type reflection terms;
wenzelm@4174
  8077
wenzelm@3985
  8078
* no longer handles consts with name "" -- declare as 'syntax' instead;
paulson@3856
  8079
paulson@3856
  8080
* pretty printer: changed order of mixfix annotation preference (again!);
wenzelm@3846
  8081
paulson@3715
  8082
* Pure: fixed idt/idts vs. pttrn/pttrns syntactic categories;
paulson@3715
  8083
paulson@3715
  8084
paulson@3715
  8085
*** HOL ***
paulson@3715
  8086
wenzelm@5726
  8087
* HOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  8088
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  8089
nipkow@4035
  8090
* HOL/TLA: Stephan Merz's formalization of Lamport's Temporal Logic of Actions;
wenzelm@3985
  8091
wenzelm@3985
  8092
* HOL/Auth: new protocol proofs including some for the Internet
nipkow@4035
  8093
  protocol TLS;
wenzelm@3985
  8094
wenzelm@4125
  8095
* HOL/Map: new theory of `maps' a la VDM;
nipkow@3982
  8096
wenzelm@4335
  8097
* HOL/simplifier: simplification procedures nat_cancel_sums for
wenzelm@4335
  8098
cancelling out common nat summands from =, <, <= (in)equalities, or
wenzelm@4335
  8099
differences; simplification procedures nat_cancel_factor for
wenzelm@4335
  8100
cancelling common factor from =, <, <= (in)equalities over natural
wenzelm@4373
  8101
sums; nat_cancel contains both kinds of procedures, it is installed by
wenzelm@4373
  8102
default in Arith.thy -- this COULD MAKE EXISTING PROOFS FAIL;
wenzelm@4335
  8103
nipkow@3580
  8104
* HOL/simplifier: terms of the form
paulson@4325
  8105
  `? x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x)'  (or t=x)
nipkow@3580
  8106
  are rewritten to
nipkow@4035
  8107
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t)',
nipkow@4035
  8108
  and those of the form
paulson@4325
  8109
  `! x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x) --> R(x)'  (or t=x)
nipkow@4035
  8110
  are rewritten to
nipkow@4035
  8111
  `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t) --> R(t)',
nipkow@3580
  8112
nipkow@4035
  8113
* HOL/datatype
nipkow@4035
  8114
  Each datatype `t' now comes with a theorem `split_t_case' of the form
nipkow@4035
  8115
nipkow@4035
  8116
  P(t_case f1 ... fn x) =
nipkow@4035
  8117
     ( (!y1 ... ym1. x = C1 y1 ... ym1 --> P(f1 y1 ... ym1)) &
nipkow@4035
  8118
        ...
oheimb@4189
  8119
       (!y1 ... ymn. x = Cn y1 ... ymn --> P(f1 y1 ... ymn))
nipkow@4035
  8120
     )
nipkow@4035
  8121
oheimb@4930
  8122
  and a theorem `split_t_case_asm' of the form
oheimb@4189
  8123
oheimb@4189
  8124
  P(t_case f1 ... fn x) =
oheimb@4189
  8125
    ~( (? y1 ... ym1. x = C1 y1 ... ym1 & ~P(f1 y1 ... ym1)) |
oheimb@4189
  8126
        ...
oheimb@4189
  8127
       (? y1 ... ymn. x = Cn y1 ... ymn & ~P(f1 y1 ... ymn))
oheimb@4189
  8128
     )
oheimb@4930
  8129
  which can be added to a simpset via `addsplits'. The existing theorems
oheimb@4930
  8130
  expand_list_case and expand_option_case have been renamed to
oheimb@4930
  8131
  split_list_case and split_option_case.
oheimb@4189
  8132
nipkow@4361
  8133
* HOL/Arithmetic:
nipkow@4361
  8134
  - `pred n' is automatically converted to `n-1'.
nipkow@4361
  8135
    Users are strongly encouraged not to use `pred' any longer,
nipkow@4361
  8136
    because it will disappear altogether at some point.
nipkow@4361
  8137
  - Users are strongly encouraged to write "0 < n" rather than
nipkow@4361
  8138
    "n ~= 0". Theorems and proof tools have been modified towards this
nipkow@4361
  8139
    `standard'.
nipkow@4357
  8140
nipkow@4502
  8141
* HOL/Lists:
nipkow@4502
  8142
  the function "set_of_list" has been renamed "set" (and its theorems too);
nipkow@4502
  8143
  the function "nth" now takes its arguments in the reverse order and
nipkow@4502
  8144
  has acquired the infix notation "!" as in "xs!n".
paulson@3570
  8145
paulson@4154
  8146
* HOL/Set: UNIV is now a constant and is no longer translated to Compl{};
paulson@4154
  8147
paulson@4154
  8148
* HOL/Set: The operator (UN x.B x) now abbreviates (UN x:UNIV. B x) and its
paulson@4154
  8149
  specialist theorems (like UN1_I) are gone.  Similarly for (INT x.B x);
paulson@4154
  8150
wenzelm@4575
  8151
* HOL/record: extensible records with schematic structural subtyping
wenzelm@4575
  8152
(single inheritance); EXPERIMENTAL version demonstrating the encoding,
wenzelm@4575
  8153
still lacks various theorems and concrete record syntax;
wenzelm@4575
  8154
wenzelm@4125
  8155
paulson@3715
  8156
*** HOLCF ***
wenzelm@3511
  8157
wenzelm@4125
  8158
* removed "axioms" and "generated by" sections;
wenzelm@4125
  8159
oheimb@4123
  8160
* replaced "ops" section by extended "consts" section, which is capable of
wenzelm@4125
  8161
  handling the continuous function space "->" directly;
wenzelm@4125
  8162
wenzelm@4125
  8163
* domain package:
wenzelm@4125
  8164
  . proves theorems immediately and stores them in the theory,
wenzelm@4125
  8165
  . creates hierachical name space,
wenzelm@4125
  8166
  . now uses normal mixfix annotations (instead of cinfix...),
wenzelm@4125
  8167
  . minor changes to some names and values (for consistency),
wenzelm@4125
  8168
  . e.g. cases -> casedist, dists_eq -> dist_eqs, [take_lemma] -> take_lemmas,
wenzelm@4125
  8169
  . separator between mutual domain defs: changed "," to "and",
wenzelm@4125
  8170
  . improved handling of sort constraints;  now they have to
wenzelm@4125
  8171
    appear on the left-hand side of the equations only;
oheimb@4123
  8172
oheimb@4123
  8173
* fixed LAM <x,y,zs>.b syntax;
wenzelm@3535
  8174
wenzelm@3744
  8175
* added extended adm_tac to simplifier in HOLCF -- can now discharge
wenzelm@3744
  8176
adm (%x. P (t x)), where P is chainfinite and t continuous;
wenzelm@3579
  8177
wenzelm@3579
  8178
paulson@3719
  8179
*** FOL and ZF ***
paulson@3719
  8180
wenzelm@5726
  8181
* FOL: there is a new splitter `split_asm_tac' that can be used e.g.
oheimb@4189
  8182
  with `addloop' of the simplifier to faciliate case splitting in premises.
oheimb@4189
  8183
wenzelm@3744
  8184
* qed_spec_mp, qed_goal_spec_mp, qed_goalw_spec_mp are available, as
wenzelm@3744
  8185
in HOL, they strip ALL and --> from proved theorems;
wenzelm@3744
  8186
paulson@3719
  8187
wenzelm@3579
  8188
wenzelm@3006
  8189
New in Isabelle94-8 (May 1997)
wenzelm@3006
  8190
------------------------------
wenzelm@2654
  8191
paulson@3002
  8192
*** General Changes ***
paulson@3002
  8193
paulson@3002
  8194
* new utilities to build / run / maintain Isabelle etc. (in parts
paulson@3002
  8195
still somewhat experimental); old Makefiles etc. still functional;
wenzelm@2971
  8196
wenzelm@3205
  8197
* new 'Isabelle System Manual';
wenzelm@3205
  8198
wenzelm@2825
  8199
* INSTALL text, together with ./configure and ./build scripts;
wenzelm@2773
  8200
wenzelm@3006
  8201
* reimplemented type inference for greater efficiency, better error
wenzelm@3006
  8202
messages and clean internal interface;
paulson@3002
  8203
paulson@3002
  8204
* prlim command for dealing with lots of subgoals (an easier way of
paulson@3002
  8205
setting goals_limit);
paulson@3002
  8206
wenzelm@3006
  8207
wenzelm@3006
  8208
*** Syntax ***
paulson@3002
  8209
wenzelm@3116
  8210
* supports alternative (named) syntax tables (parser and pretty
wenzelm@3116
  8211
printer); internal interface is provided by add_modesyntax(_i);
wenzelm@3116
  8212
paulson@3002
  8213
* Pure, FOL, ZF, HOL, HOLCF now support symbolic input and output; to
paulson@3002
  8214
be used in conjunction with the Isabelle symbol font; uses the
paulson@3002
  8215
"symbols" syntax table;
paulson@3002
  8216
wenzelm@2705
  8217
* added token_translation interface (may translate name tokens in
wenzelm@2756
  8218
arbitrary ways, dependent on their type (free, bound, tfree, ...) and
wenzelm@3116
  8219
the current print_mode); IMPORTANT: user print translation functions
wenzelm@3116
  8220
are responsible for marking newly introduced bounds
wenzelm@3116
  8221
(Syntax.mark_boundT);
wenzelm@2705
  8222
wenzelm@2730
  8223
* token translations for modes "xterm" and "xterm_color" that display
wenzelm@3006
  8224
names in bold, underline etc. or colors (which requires a color
wenzelm@3006
  8225
version of xterm);
wenzelm@2730
  8226
paulson@3002
  8227
* infixes may now be declared with names independent of their syntax;
paulson@3002
  8228
paulson@3002
  8229
* added typed_print_translation (like print_translation, but may
paulson@3002
  8230
access type of constant);
paulson@3002
  8231
wenzelm@3006
  8232
paulson@3002
  8233
*** Classical Reasoner ***
paulson@3002
  8234
paulson@3002
  8235
Blast_tac: a new tactic!  It is often more powerful than fast_tac, but has
paulson@3002
  8236
some limitations.  Blast_tac...
paulson@3002
  8237
  + ignores addss, addbefore, addafter; this restriction is intrinsic
paulson@3002
  8238
  + ignores elimination rules that don't have the correct format
wenzelm@5726
  8239
        (the conclusion MUST be a formula variable)
paulson@3002
  8240
  + ignores types, which can make HOL proofs fail
paulson@3002
  8241
  + rules must not require higher-order unification, e.g. apply_type in ZF
paulson@3002
  8242
    [message "Function Var's argument not a bound variable" relates to this]
paulson@3002
  8243
  + its proof strategy is more general but can actually be slower
paulson@3002
  8244
wenzelm@3107
  8245
* substitution with equality assumptions no longer permutes other
wenzelm@3107
  8246
assumptions;
paulson@3002
  8247
paulson@3002
  8248
* minor changes in semantics of addafter (now called addaltern); renamed
paulson@3002
  8249
setwrapper to setWrapper and compwrapper to compWrapper; added safe wrapper
wenzelm@3107
  8250
(and access functions for it);
paulson@3002
  8251
wenzelm@5726
  8252
* improved combination of classical reasoner and simplifier:
oheimb@3317
  8253
  + functions for handling clasimpsets
oheimb@3317
  8254
  + improvement of addss: now the simplifier is called _after_ the
oheimb@3317
  8255
    safe steps.
oheimb@3317
  8256
  + safe variant of addss called addSss: uses safe simplifications
wenzelm@5726
  8257
    _during_ the safe steps. It is more complete as it allows multiple
oheimb@3317
  8258
    instantiations of unknowns (e.g. with slow_tac).
wenzelm@3006
  8259
paulson@3002
  8260
*** Simplifier ***
paulson@3002
  8261
wenzelm@3006
  8262
* added interface for simplification procedures (functions that
wenzelm@3006
  8263
produce *proven* rewrite rules on the fly, depending on current
wenzelm@3006
  8264
redex);
wenzelm@3006
  8265
wenzelm@3006
  8266
* ordering on terms as parameter (used for ordered rewriting);
wenzelm@3006
  8267
wenzelm@3107
  8268
* new functions delcongs, deleqcongs, and Delcongs. richer rep_ss;
paulson@3002
  8269
paulson@3002
  8270
* the solver is now split into a safe and an unsafe part.
paulson@3002
  8271
This should be invisible for the normal user, except that the
paulson@3002
  8272
functions setsolver and addsolver have been renamed to setSolver and
wenzelm@3107
  8273
addSolver; added safe_asm_full_simp_tac;
paulson@3002
  8274
paulson@3002
  8275
paulson@3002
  8276
*** HOL ***
paulson@3002
  8277
nipkow@3042
  8278
* a generic induction tactic `induct_tac' which works for all datatypes and
wenzelm@3107
  8279
also for type `nat';
nipkow@3042
  8280
nipkow@3316
  8281
* a generic case distinction tactic `exhaust_tac' which works for all
nipkow@3316
  8282
datatypes and also for type `nat';
nipkow@3316
  8283
nipkow@3316
  8284
* each datatype comes with a function `size';
nipkow@3316
  8285
paulson@3002
  8286
* patterns in case expressions allow tuple patterns as arguments to
wenzelm@3107
  8287
constructors, for example `case x of [] => ... | (x,y,z)#ps => ...';
paulson@3002
  8288
paulson@3002
  8289
* primrec now also works with type nat;
paulson@3002
  8290
paulson@3338
  8291
* recdef: a new declaration form, allows general recursive functions to be
paulson@3338
  8292
defined in theory files.  See HOL/ex/Fib, HOL/ex/Primes, HOL/Subst/Unify.
paulson@3338
  8293
paulson@3002
  8294
* the constant for negation has been renamed from "not" to "Not" to
wenzelm@3107
  8295
harmonize with FOL, ZF, LK, etc.;
paulson@3002
  8296
wenzelm@3107
  8297
* HOL/ex/LFilter theory of a corecursive "filter" functional for
wenzelm@3107
  8298
infinite lists;
paulson@3002
  8299
wenzelm@3227
  8300
* HOL/Modelcheck demonstrates invocation of model checker oracle;
wenzelm@3227
  8301
paulson@3002
  8302
* HOL/ex/Ring.thy declares cring_simp, which solves equational
paulson@3002
  8303
problems in commutative rings, using axiomatic type classes for + and *;
paulson@3002
  8304
paulson@3002
  8305
* more examples in HOL/MiniML and HOL/Auth;
paulson@3002
  8306
paulson@3002
  8307
* more default rewrite rules for quantifiers, union/intersection;
paulson@3002
  8308
nipkow@3321
  8309
* a new constant `arbitrary == @x.False';
nipkow@3321
  8310
wenzelm@3107
  8311
* HOLCF/IOA replaces old HOL/IOA;
wenzelm@3107
  8312
wenzelm@5726
  8313
* HOLCF changes: derived all rules and arities
wenzelm@5726
  8314
  + axiomatic type classes instead of classes
slotosch@2653
  8315
  + typedef instead of faking type definitions
paulson@2747
  8316
  + eliminated the internal constants less_fun, less_cfun, UU_fun, UU_cfun etc.
wenzelm@2730
  8317
  + new axclasses cpo, chfin, flat with flat < chfin < pcpo < cpo < po
slotosch@2653
  8318
  + eliminated the types void, one, tr
slotosch@2653
  8319
  + use unit lift and bool lift (with translations) instead of one and tr
slotosch@2653
  8320
  + eliminated blift from Lift3.thy (use Def instead of blift)
wenzelm@3107
  8321
  all eliminated rules are derived as theorems --> no visible changes ;
oheimb@2649
  8322
wenzelm@3006
  8323
paulson@3002
  8324
*** ZF ***
wenzelm@2553
  8325
paulson@2865
  8326
* ZF now has Fast_tac, Simp_tac and Auto_tac.  Union_iff is a now a default
paulson@2865
  8327
rewrite rule; this may affect some proofs.  eq_cs is gone but can be put back
paulson@2865
  8328
as ZF_cs addSIs [equalityI];
wenzelm@2553
  8329
wenzelm@2554
  8330
wenzelm@2732
  8331
wenzelm@2553
  8332
New in Isabelle94-7 (November 96)
wenzelm@2553
  8333
---------------------------------
wenzelm@2553
  8334
wenzelm@2553
  8335
* allowing negative levels (as offsets) in prlev and choplev;
wenzelm@2553
  8336
wenzelm@2554
  8337
* super-linear speedup for large simplifications;
wenzelm@2554
  8338
wenzelm@2554
  8339
* FOL, ZF and HOL now use miniscoping: rewriting pushes
wenzelm@2554
  8340
quantifications in as far as possible (COULD MAKE EXISTING PROOFS
wenzelm@2554
  8341
FAIL); can suppress it using the command Delsimps (ex_simps @
wenzelm@2554
  8342
all_simps); De Morgan laws are also now included, by default;
wenzelm@2554
  8343
wenzelm@2554
  8344
* improved printing of ==>  :  ~:
wenzelm@2554
  8345
wenzelm@2554
  8346
* new object-logic "Sequents" adds linear logic, while replacing LK
wenzelm@2554
  8347
and Modal (thanks to Sara Kalvala);
wenzelm@2554
  8348
wenzelm@2554
  8349
* HOL/Auth: correctness proofs for authentication protocols;
wenzelm@2554
  8350
wenzelm@2554
  8351
* HOL: new auto_tac combines rewriting and classical reasoning (many
wenzelm@2554
  8352
examples on HOL/Auth);
wenzelm@2554
  8353
wenzelm@2554
  8354
* HOL: new command AddIffs for declaring theorems of the form P=Q to
wenzelm@2554
  8355
the rewriter and classical reasoner simultaneously;
wenzelm@2554
  8356
wenzelm@2554
  8357
* function uresult no longer returns theorems in "standard" format;
wenzelm@2554
  8358
regain previous version by: val uresult = standard o uresult;
wenzelm@2554
  8359
wenzelm@2554
  8360
wenzelm@2554
  8361
wenzelm@2554
  8362
New in Isabelle94-6
wenzelm@2554
  8363
-------------------
wenzelm@2554
  8364
wenzelm@2554
  8365
* oracles -- these establish an interface between Isabelle and trusted
wenzelm@2554
  8366
external reasoners, which may deliver results as theorems;
wenzelm@2554
  8367
wenzelm@2554
  8368
* proof objects (in particular record all uses of oracles);
wenzelm@2554
  8369
wenzelm@2554
  8370
* Simp_tac, Fast_tac, etc. that refer to implicit simpset / claset;
wenzelm@2554
  8371
wenzelm@2554
  8372
* "constdefs" section in theory files;
wenzelm@2554
  8373
wenzelm@2554
  8374
* "primrec" section (HOL) no longer requires names;
wenzelm@2554
  8375
wenzelm@2554
  8376
* internal type "tactic" now simply "thm -> thm Sequence.seq";
wenzelm@2554
  8377
wenzelm@2554
  8378
wenzelm@2554
  8379
wenzelm@2554
  8380
New in Isabelle94-5
wenzelm@2554
  8381
-------------------
wenzelm@2554
  8382
wenzelm@2554
  8383
* reduced space requirements;
wenzelm@2554
  8384
wenzelm@2554
  8385
* automatic HTML generation from theories;
wenzelm@2554
  8386
wenzelm@2554
  8387
* theory files no longer require "..." (quotes) around most types;
wenzelm@2554
  8388
wenzelm@2554
  8389
* new examples, including two proofs of the Church-Rosser theorem;
wenzelm@2554
  8390
wenzelm@2554
  8391
* non-curried (1994) version of HOL is no longer distributed;
wenzelm@2554
  8392
wenzelm@2553
  8393
paulson@2557
  8394
paulson@2557
  8395
New in Isabelle94-4
paulson@2557
  8396
-------------------
paulson@2557
  8397
paulson@2747
  8398
* greatly reduced space requirements;
paulson@2557
  8399
paulson@2557
  8400
* theory files (.thy) no longer require \...\ escapes at line breaks;
paulson@2557
  8401
wenzelm@5726
  8402
* searchable theorem database (see the section "Retrieving theorems" on
paulson@2557
  8403
page 8 of the Reference Manual);
paulson@2557
  8404
paulson@2557
  8405
* new examples, including Grabczewski's monumental case study of the
paulson@2557
  8406
Axiom of Choice;
paulson@2557
  8407
paulson@2557
  8408
* The previous version of HOL renamed to Old_HOL;
paulson@2557
  8409
wenzelm@5726
  8410
* The new version of HOL (previously called CHOL) uses a curried syntax
paulson@2557
  8411
for functions.  Application looks like f a b instead of f(a,b);
paulson@2557
  8412
paulson@2557
  8413
* Mutually recursive inductive definitions finally work in HOL;
paulson@2557
  8414
paulson@2557
  8415
* In ZF, pattern-matching on tuples is now available in all abstractions and
paulson@2557
  8416
translates to the operator "split";
paulson@2557
  8417
paulson@2557
  8418
paulson@2557
  8419
paulson@2557
  8420
New in Isabelle94-3
paulson@2557
  8421
-------------------
paulson@2557
  8422
wenzelm@5726
  8423
* new infix operator, addss, allowing the classical reasoner to
paulson@2557
  8424
perform simplification at each step of its search.  Example:
wenzelm@5726
  8425
        fast_tac (cs addss ss)
paulson@2557
  8426
wenzelm@5726
  8427
* a new logic, CHOL, the same as HOL, but with a curried syntax
wenzelm@5726
  8428
for functions.  Application looks like f a b instead of f(a,b).  Also pairs
paulson@2557
  8429
look like (a,b) instead of <a,b>;
paulson@2557
  8430
paulson@2557
  8431
* PLEASE NOTE: CHOL will eventually replace HOL!
paulson@2557
  8432
paulson@2557
  8433
* In CHOL, pattern-matching on tuples is now available in all abstractions.
paulson@2557
  8434
It translates to the operator "split".  A new theory of integers is available;
paulson@2557
  8435
paulson@2557
  8436
* In ZF, integer numerals now denote two's-complement binary integers.
paulson@2557
  8437
Arithmetic operations can be performed by rewriting.  See ZF/ex/Bin.ML;
paulson@2557
  8438
wenzelm@5726
  8439
* Many new examples: I/O automata, Church-Rosser theorem, equivalents
paulson@2557
  8440
of the Axiom of Choice;
paulson@2557
  8441
paulson@2557
  8442
paulson@2557
  8443
paulson@2557
  8444
New in Isabelle94-2
paulson@2557
  8445
-------------------
paulson@2557
  8446
wenzelm@5726
  8447
* Significantly faster resolution;
paulson@2557
  8448
paulson@2557
  8449
* the different sections in a .thy file can now be mixed and repeated
paulson@2557
  8450
freely;
paulson@2557
  8451
paulson@2557
  8452
* Database of theorems for FOL, HOL and ZF.  New
paulson@2557
  8453
commands including qed, qed_goal and bind_thm store theorems in the database.
paulson@2557
  8454
paulson@2557
  8455
* Simple database queries: return a named theorem (get_thm) or all theorems of
paulson@2557
  8456
a given theory (thms_of), or find out what theory a theorem was proved in
paulson@2557
  8457
(theory_of_thm);
paulson@2557
  8458
paulson@2557
  8459
* Bugs fixed in the inductive definition and datatype packages;
paulson@2557
  8460
paulson@2557
  8461
* The classical reasoner provides deepen_tac and depth_tac, making FOL_dup_cs
paulson@2557
  8462
and HOL_dup_cs obsolete;
paulson@2557
  8463
paulson@2557
  8464
* Syntactic ambiguities caused by the new treatment of syntax in Isabelle94-1
paulson@2557
  8465
have been removed;
paulson@2557
  8466
paulson@2557
  8467
* Simpler definition of function space in ZF;
paulson@2557
  8468
paulson@2557
  8469
* new results about cardinal and ordinal arithmetic in ZF;
paulson@2557
  8470
paulson@2557
  8471
* 'subtype' facility in HOL for introducing new types as subsets of existing
paulson@2557
  8472
types;
paulson@2557
  8473
wenzelm@24213
  8474
:mode=text:wrap=hard:maxLineLen=72: