NEWS
author haftmann
Thu Nov 23 17:03:27 2017 +0000 (18 months ago)
changeset 67087 733017b19de9
parent 67069 f11486d31586
child 67088 89e82aed7813
permissions -rw-r--r--
generalized more lemmas
wenzelm@57491
     1
Isabelle NEWS -- history of user-relevant changes
wenzelm@57491
     2
=================================================
wenzelm@2553
     3
wenzelm@62114
     4
(Note: Isabelle/jEdit shows a tree-view of the NEWS file in Sidekick.)
wenzelm@60006
     5
wenzelm@64603
     6
wenzelm@66651
     7
New in this Isabelle version
wenzelm@66651
     8
----------------------------
wenzelm@66651
     9
wenzelm@66712
    10
*** General ***
wenzelm@66712
    11
wenzelm@66712
    12
* Session-qualified theory names are mandatory: it is no longer possible
wenzelm@66712
    13
to refer to unqualified theories from the parent session.
wenzelm@66712
    14
INCOMPATIBILITY for old developments that have not been updated to
wenzelm@66712
    15
Isabelle2017 yet (using the "isabelle imports" tool).
wenzelm@66712
    16
wenzelm@67013
    17
* Theory header 'abbrevs' specifications need to be separated by 'and'.
wenzelm@67013
    18
INCOMPATIBILITY.
wenzelm@67013
    19
wenzelm@66993
    20
* Only the most fundamental theory names are global, usually the entry
wenzelm@66993
    21
points to major logic sessions: Pure, Main, Complex_Main, HOLCF, IFOL,
wenzelm@66993
    22
FOL, ZF, ZFC etc. INCOMPATIBILITY, need to use qualified names for
wenzelm@66993
    23
formerly global "HOL-Probability.Probability" and "HOL-SPARK.SPARK".
wenzelm@66993
    24
wenzelm@66757
    25
* Command 'external_file' declares the formal dependency on the given
wenzelm@66757
    26
file name, such that the Isabelle build process knows about it, but
wenzelm@66757
    27
without specific Prover IDE management.
wenzelm@66757
    28
wenzelm@66759
    29
* Session ROOT entries no longer allow specification of 'files'. Rare
wenzelm@66759
    30
INCOMPATIBILITY, use command 'external_file' within a proper theory
wenzelm@66759
    31
context.
wenzelm@66759
    32
wenzelm@66764
    33
* Session root directories may be specified multiple times: each
wenzelm@66764
    34
accessible ROOT file is processed only once. This facilitates
wenzelm@66764
    35
specification of $ISABELLE_HOME_USER/ROOTS or command-line options like
wenzelm@66764
    36
-d or -D for "isabelle build" and "isabelle jedit". Example:
wenzelm@66764
    37
wenzelm@66764
    38
  isabelle build -D '~~/src/ZF'
wenzelm@66764
    39
wenzelm@66712
    40
wenzelm@66768
    41
*** Prover IDE -- Isabelle/Scala/jEdit ***
wenzelm@66768
    42
wenzelm@66993
    43
* Completion supports theory header imports, using theory base name.
wenzelm@66994
    44
E.g. "Prob" may be completed to "HOL-Probability.Probability".
wenzelm@66768
    45
wenzelm@66988
    46
* The command-line tool "isabelle jedit" provides more flexible options
wenzelm@66988
    47
for session selection:
wenzelm@66988
    48
  - options -P opens the parent session image of -l
wenzelm@66988
    49
  - options -A and -B modify the meaning of -l to produce a base
wenzelm@66988
    50
    image on the spot, based on the specified ancestor (or parent)
wenzelm@66987
    51
  - option -F focuses on the specified logic session
wenzelm@66987
    52
  - option -R has changed: it only opens the session ROOT entry
wenzelm@66987
    53
  - option -S sets up the development environment to edit the
wenzelm@66987
    54
    specified session: it abbreviates -B -F -R -l
wenzelm@66973
    55
wenzelm@66990
    56
  Examples:
wenzelm@66990
    57
    isabelle jedit -d '$AFP' -S Formal_SSA -A HOL
wenzelm@66990
    58
    isabelle jedit -d '$AFP' -S Formal_SSA -A HOL-Analysis
wenzelm@66988
    59
wenzelm@66768
    60
blanchet@66661
    61
*** HOL ***
blanchet@66661
    62
blanchet@66661
    63
* SMT module:
blanchet@66661
    64
  - The 'smt_oracle' option is now necessary when using the 'smt' method
blanchet@66662
    65
    with a solver other than Z3. INCOMPATIBILITY.
wenzelm@66844
    66
  - The encoding to first-order logic is now more complete in the
wenzelm@66844
    67
    presence of higher-order quantifiers. An 'smt_explicit_application'
wenzelm@66844
    68
    option has been added to control this. INCOMPATIBILITY.
wenzelm@66844
    69
wenzelm@66844
    70
* Theory HOL-Computational_Algebra.Polynomial_Factorial does not provide
wenzelm@66844
    71
instances of rat, real, complex as factorial rings etc. Import
wenzelm@66844
    72
HOL-Computational_Algebra.Field_as_Ring explicitly in case of need.
wenzelm@66844
    73
INCOMPATIBILITY.
wenzelm@66844
    74
wenzelm@66844
    75
* Fact mod_mult_self4 (on nat) renamed to mod_mult_self3', to avoid
wenzelm@66844
    76
clash with fact mod_mult_self4 (on more generic semirings).
wenzelm@66844
    77
INCOMPATIBILITY.
haftmann@66801
    78
haftmann@66804
    79
* Facts sum.commute(_restrict) and prod.commute(_restrict) renamed to
wenzelm@66844
    80
sum.swap(_restrict) and prod.swap(_restrict), to avoid name clashes on
wenzelm@66844
    81
interpretation of abstract locales. INCOMPATIBILITY.
haftmann@66804
    82
haftmann@66803
    83
* Predicate pairwise_coprime abolished, use "pairwise coprime" instead.
haftmann@66803
    84
INCOMPATIBILITY.
haftmann@66803
    85
wenzelm@66844
    86
* Session HOL-Analysis: Moebius functions and the Riemann mapping
wenzelm@66844
    87
theorem.
wenzelm@66844
    88
haftmann@66937
    89
* Class linordered_semiring_1 covers zero_less_one also, ruling out
haftmann@66937
    90
pathologic instances. Minor INCOMPATIBILITY.
haftmann@66937
    91
haftmann@67051
    92
* Removed nat-int transfer machinery. Rare INCOMPATIBILITY.
haftmann@67051
    93
haftmann@67051
    94
* Predicate coprime is now a real definition, not a mere
haftmann@67051
    95
abbreviation. INCOMPATIBILITY.
haftmann@66954
    96
wenzelm@66651
    97
wenzelm@66729
    98
*** System ***
wenzelm@66729
    99
wenzelm@66949
   100
* Session ROOT entry: empty 'document_files' means there is no document
wenzelm@66949
   101
for this session. There is no need to specify options [document = false]
wenzelm@66949
   102
anymore.
wenzelm@66949
   103
wenzelm@67043
   104
* The command-line tool "isabelle mkroot" now always produces a document
wenzelm@67043
   105
outline: its options have been adapted accordingly. INCOMPATIBILITY.
wenzelm@67043
   106
wenzelm@67069
   107
* The command-line tool "isabelle mkroot -I" initializes a Mercurial
wenzelm@67069
   108
repository for the generated session files.
wenzelm@67069
   109
wenzelm@66909
   110
* Linux and Windows/Cygwin is for x86_64 only. Old 32bit platform
wenzelm@66909
   111
support has been discontinued.
wenzelm@66729
   112
wenzelm@66906
   113
* Java runtime is for x86_64 only. Corresponding Isabelle settings have
wenzelm@66906
   114
been renamed to ISABELLE_TOOL_JAVA_OPTIONS and JEDIT_JAVA_OPTIONS,
wenzelm@66906
   115
instead of former 32/64 variants. INCOMPATIBILITY.
wenzelm@66906
   116
wenzelm@66745
   117
* Command-line tool "isabelle build" supports new options:
wenzelm@66745
   118
  - option -B NAME: include session NAME and all descendants
wenzelm@66745
   119
  - option -S: only observe changes of sources, not heap images
wenzelm@66841
   120
  - option -f: forces a fresh build
wenzelm@66737
   121
wenzelm@66843
   122
* Command-line tool "isabelle build" takes "condition" options with the
wenzelm@66843
   123
corresponding environment values into account, when determining the
wenzelm@66843
   124
up-to-date status of a session.
wenzelm@66843
   125
wenzelm@66851
   126
* Command-line tool "isabelle imports -I" also reports actual session
wenzelm@66851
   127
imports. This helps to minimize the session dependency graph.
wenzelm@66851
   128
wenzelm@66729
   129
wenzelm@66472
   130
New in Isabelle2017 (October 2017)
wenzelm@66472
   131
----------------------------------
wenzelm@64439
   132
wenzelm@64986
   133
*** General ***
wenzelm@64986
   134
wenzelm@66238
   135
* Experimental support for Visual Studio Code (VSCode) as alternative
wenzelm@66238
   136
Isabelle/PIDE front-end, see also
wenzelm@66599
   137
https://marketplace.visualstudio.com/items?itemName=makarius.Isabelle2017
wenzelm@66238
   138
wenzelm@66238
   139
VSCode is a new type of application that continues the concepts of
wenzelm@66238
   140
"programmer's editor" and "integrated development environment" towards
wenzelm@66238
   141
fully semantic editing and debugging -- in a relatively light-weight
wenzelm@66238
   142
manner. Thus it fits nicely on top of the Isabelle/PIDE infrastructure.
wenzelm@66238
   143
Technically, VSCode is based on the Electron application framework
wenzelm@66238
   144
(Node.js + Chromium browser + V8), which is implemented in JavaScript
wenzelm@66238
   145
and TypeScript, while Isabelle/VSCode mainly consists of Isabelle/Scala
wenzelm@66238
   146
modules around a Language Server implementation.
wenzelm@66238
   147
wenzelm@65504
   148
* Theory names are qualified by the session name that they belong to.
wenzelm@66454
   149
This affects imports, but not the theory name space prefix (which is
wenzelm@66454
   150
just the theory base name as before).
wenzelm@66454
   151
wenzelm@66454
   152
In order to import theories from other sessions, the ROOT file format
wenzelm@66454
   153
provides a new 'sessions' keyword. In contrast, a theory that is
wenzelm@66454
   154
imported in the old-fashioned manner via an explicit file-system path
wenzelm@66472
   155
belongs to the current session, and might cause theory name conflicts
wenzelm@66454
   156
later on. Theories that are imported from other sessions are excluded
wenzelm@66454
   157
from the current session document. The command-line tool "isabelle
wenzelm@66454
   158
imports" helps to update theory imports.
wenzelm@66454
   159
wenzelm@65451
   160
* The main theory entry points for some non-HOL sessions have changed,
wenzelm@65451
   161
to avoid confusion with the global name "Main" of the session HOL. This
wenzelm@65451
   162
leads to the follow renamings:
wenzelm@65451
   163
wenzelm@65451
   164
  CTT/Main.thy    ~>  CTT/CTT.thy
wenzelm@65451
   165
  ZF/Main.thy     ~>  ZF/ZF.thy
wenzelm@65451
   166
  ZF/Main_ZF.thy  ~>  ZF/ZF.thy
wenzelm@65451
   167
  ZF/Main_ZFC.thy ~>  ZF/ZFC.thy
wenzelm@65451
   168
  ZF/ZF.thy       ~>  ZF/ZF_Base.thy
wenzelm@65451
   169
wenzelm@65451
   170
INCOMPATIBILITY.
wenzelm@65451
   171
wenzelm@66472
   172
* Commands 'alias' and 'type_alias' introduce aliases for constants and
wenzelm@66472
   173
type constructors, respectively. This allows adhoc changes to name-space
wenzelm@66472
   174
accesses within global or local theory contexts, e.g. within a 'bundle'.
wenzelm@66472
   175
wenzelm@64986
   176
* Document antiquotations @{prf} and @{full_prf} output proof terms
wenzelm@64986
   177
(again) in the same way as commands 'prf' and 'full_prf'.
wenzelm@64986
   178
wenzelm@65055
   179
* Computations generated by the code generator can be embedded directly
wenzelm@65055
   180
into ML, alongside with @{code} antiquotations, using the following
wenzelm@65055
   181
antiquotations:
wenzelm@65055
   182
wenzelm@65055
   183
  @{computation ... terms: ... datatypes: ...} :
wenzelm@65055
   184
    ((term -> term) -> 'ml option -> 'a) -> Proof.context -> term -> 'a
wenzelm@65055
   185
  @{computation_conv ... terms: ... datatypes: ...} :
wenzelm@65055
   186
    (Proof.context -> 'ml -> conv) -> Proof.context -> conv
wenzelm@65045
   187
  @{computation_check terms: ... datatypes: ...} : Proof.context -> conv
haftmann@65041
   188
wenzelm@65055
   189
See src/HOL/ex/Computations.thy,
wenzelm@65055
   190
src/HOL/Decision_Procs/Commutative_Ring.thy and
wenzelm@65055
   191
src/HOL/Decision_Procs/Reflective_Field.thy for examples and the
wenzelm@65055
   192
tutorial on code generation.
haftmann@65041
   193
wenzelm@64986
   194
wenzelm@64602
   195
*** Prover IDE -- Isabelle/Scala/jEdit ***
wenzelm@64602
   196
wenzelm@66472
   197
* Session-qualified theory imports allow the Prover IDE to process
wenzelm@66472
   198
arbitrary theory hierarchies independently of the underlying logic
wenzelm@66472
   199
session image (e.g. option "isabelle jedit -l"), but the directory
wenzelm@66472
   200
structure needs to be known in advance (e.g. option "isabelle jedit -d"
wenzelm@66472
   201
or a line in the file $ISABELLE_HOME_USER/ROOTS).
wenzelm@64602
   202
wenzelm@64842
   203
* The PIDE document model maintains file content independently of the
wenzelm@64842
   204
status of jEdit editor buffers. Reloading jEdit buffers no longer causes
wenzelm@64842
   205
changes of formal document content. Theory dependencies are always
wenzelm@64842
   206
resolved internally, without the need for corresponding editor buffers.
wenzelm@64842
   207
The system option "jedit_auto_load" has been discontinued: it is
wenzelm@64842
   208
effectively always enabled.
wenzelm@64842
   209
wenzelm@64867
   210
* The Theories dockable provides a "Purge" button, in order to restrict
wenzelm@64867
   211
the document model to theories that are required for open editor
wenzelm@64867
   212
buffers.
wenzelm@64867
   213
wenzelm@66424
   214
* The Theories dockable indicates the overall status of checking of each
wenzelm@66424
   215
entry. When all forked tasks of a theory are finished, the border is
wenzelm@66424
   216
painted with thick lines; remaining errors in this situation are
wenzelm@66424
   217
represented by a different border color.
wenzelm@66424
   218
wenzelm@66472
   219
* Automatic indentation is more careful to avoid redundant spaces in
wenzelm@66472
   220
intermediate situations. Keywords are indented after input (via typed
wenzelm@66472
   221
characters or completion); see also option "jedit_indent_input".
wenzelm@66472
   222
wenzelm@66472
   223
* Action "isabelle.preview" opens an HTML preview of the current theory
wenzelm@66472
   224
document in the default web browser.
wenzelm@66472
   225
wenzelm@66574
   226
* Command-line invocation "isabelle jedit -R -l LOGIC" opens the ROOT
wenzelm@66574
   227
entry of the specified logic session in the editor, while its parent is
wenzelm@66574
   228
used for formal checking.
wenzelm@66472
   229
wenzelm@66462
   230
* The main Isabelle/jEdit plugin may be restarted manually (using the
wenzelm@66462
   231
jEdit Plugin Manager), as long as the "Isabelle Base" plugin remains
wenzelm@66462
   232
enabled at all times.
wenzelm@66462
   233
wenzelm@66472
   234
* Update to current jedit-5.4.0.
wenzelm@65329
   235
wenzelm@64602
   236
haftmann@66149
   237
*** Pure ***
haftmann@66149
   238
haftmann@66149
   239
* Deleting the last code equations for a particular function using
haftmann@66149
   240
[code del] results in function with no equations (runtime abort) rather
wenzelm@66472
   241
than an unimplemented function (generation time abort). Use explicit
haftmann@66665
   242
[[code drop:]] to enforce the latter. Minor INCOMPATIBILITY.
haftmann@66149
   243
haftmann@66310
   244
* Proper concept of code declarations in code.ML:
wenzelm@66472
   245
  - Regular code declarations act only on the global theory level, being
wenzelm@66472
   246
    ignored with warnings if syntactically malformed.
wenzelm@66472
   247
  - Explicitly global code declarations yield errors if syntactically
wenzelm@66472
   248
    malformed.
wenzelm@66472
   249
  - Default code declarations are silently ignored if syntactically
wenzelm@66472
   250
    malformed.
haftmann@66310
   251
Minor INCOMPATIBILITY.
haftmann@66310
   252
wenzelm@66472
   253
* Clarified and standardized internal data bookkeeping of code
wenzelm@66472
   254
declarations: history of serials allows to track potentially
wenzelm@66472
   255
non-monotonous declarations appropriately. Minor INCOMPATIBILITY.
haftmann@66310
   256
haftmann@66149
   257
haftmann@64593
   258
*** HOL ***
haftmann@64593
   259
blanchet@66614
   260
* The Nunchaku model finder is now part of "Main".
blanchet@66614
   261
wenzelm@66472
   262
* SMT module:
wenzelm@66472
   263
  - A new option, 'smt_nat_as_int', has been added to translate 'nat' to
wenzelm@66472
   264
    'int' and benefit from the SMT solver's theory reasoning. It is
wenzelm@66472
   265
    disabled by default.
wenzelm@66472
   266
  - The legacy module "src/HOL/Library/Old_SMT.thy" has been removed.
wenzelm@66472
   267
  - Several small issues have been rectified in the 'smt' command.
wenzelm@66472
   268
wenzelm@66472
   269
* (Co)datatype package: The 'size_gen_o_map' lemma is no longer
wenzelm@66472
   270
generated for datatypes with type class annotations. As a result, the
wenzelm@66472
   271
tactic that derives it no longer fails on nested datatypes. Slight
wenzelm@66472
   272
INCOMPATIBILITY.
eberlm@66450
   273
haftmann@66345
   274
* Command and antiquotation "value" with modified default strategy:
haftmann@66345
   275
terms without free variables are always evaluated using plain evaluation
wenzelm@66472
   276
only, with no fallback on normalization by evaluation. Minor
wenzelm@66472
   277
INCOMPATIBILITY.
eberlm@65956
   278
wenzelm@65552
   279
* Theories "GCD" and "Binomial" are already included in "Main" (instead
wenzelm@65575
   280
of "Complex_Main").
wenzelm@65552
   281
haftmann@65170
   282
* Constant "surj" is a full input/output abbreviation (again).
haftmann@65170
   283
Minor INCOMPATIBILITY.
haftmann@65170
   284
haftmann@64632
   285
* Dropped aliasses RangeP, DomainP for Rangep, Domainp respectively.
haftmann@64632
   286
INCOMPATIBILITY.
haftmann@64632
   287
wenzelm@66472
   288
* Renamed ii to imaginary_unit in order to free up ii as a variable
wenzelm@66472
   289
name. The syntax \<i> remains available. INCOMPATIBILITY.
wenzelm@66472
   290
wenzelm@66472
   291
* Dropped abbreviations transP, antisymP, single_valuedP; use constants
wenzelm@66472
   292
transp, antisymp, single_valuedp instead. INCOMPATIBILITY.
wenzelm@66472
   293
wenzelm@66472
   294
* Constant "subseq" in Topological_Spaces has been removed -- it is
wenzelm@66472
   295
subsumed by "strict_mono". Some basic lemmas specific to "subseq" have
wenzelm@66472
   296
been renamed accordingly, e.g. "subseq_o" -> "strict_mono_o" etc.
wenzelm@66472
   297
wenzelm@66472
   298
* Theory List: "sublist" renamed to "nths" in analogy with "nth", and
wenzelm@66472
   299
"sublisteq" renamed to "subseq". Minor INCOMPATIBILITY.
wenzelm@66472
   300
wenzelm@66472
   301
* Theory List: new generic function "sorted_wrt".
wenzelm@66472
   302
wenzelm@66472
   303
* Named theorems mod_simps covers various congruence rules concerning
wenzelm@66472
   304
mod, replacing former zmod_simps. INCOMPATIBILITY.
haftmann@64787
   305
haftmann@64593
   306
* Swapped orientation of congruence rules mod_add_left_eq,
haftmann@64593
   307
mod_add_right_eq, mod_add_eq, mod_mult_left_eq, mod_mult_right_eq,
haftmann@64593
   308
mod_mult_eq, mod_minus_eq, mod_diff_left_eq, mod_diff_right_eq,
wenzelm@66472
   309
mod_diff_eq. INCOMPATIBILITY.
haftmann@64593
   310
haftmann@64593
   311
* Generalized some facts:
blanchet@64876
   312
    measure_induct_rule
blanchet@64876
   313
    measure_induct
haftmann@64593
   314
    zminus_zmod ~> mod_minus_eq
haftmann@64593
   315
    zdiff_zmod_left ~> mod_diff_left_eq
haftmann@64593
   316
    zdiff_zmod_right ~> mod_diff_right_eq
haftmann@64593
   317
    zmod_eq_dvd_iff ~> mod_eq_dvd_iff
haftmann@64593
   318
INCOMPATIBILITY.
haftmann@64593
   319
wenzelm@66472
   320
* Algebraic type class hierarchy of euclidean (semi)rings in HOL:
wenzelm@66472
   321
euclidean_(semi)ring, euclidean_(semi)ring_cancel,
wenzelm@66472
   322
unique_euclidean_(semi)ring; instantiation requires provision of a
wenzelm@66472
   323
euclidean size.
wenzelm@66472
   324
wenzelm@66472
   325
* Theory "HOL-Number_Theory.Euclidean_Algorithm" has been reworked:
wenzelm@66472
   326
  - Euclidean induction is available as rule eucl_induct.
wenzelm@66472
   327
  - Constants Euclidean_Algorithm.gcd, Euclidean_Algorithm.lcm,
wenzelm@66472
   328
    Euclidean_Algorithm.Gcd and Euclidean_Algorithm.Lcm allow
wenzelm@66472
   329
    easy instantiation of euclidean (semi)rings as GCD (semi)rings.
wenzelm@66472
   330
  - Coefficients obtained by extended euclidean algorithm are
wenzelm@66472
   331
    available as "bezout_coefficients".
wenzelm@66472
   332
INCOMPATIBILITY.
wenzelm@66472
   333
wenzelm@66472
   334
* Theory "Number_Theory.Totient" introduces basic notions about Euler's
wenzelm@66472
   335
totient function previously hidden as solitary example in theory
wenzelm@66472
   336
Residues. Definition changed so that "totient 1 = 1" in agreement with
wenzelm@66472
   337
the literature. Minor INCOMPATIBILITY.
wenzelm@66472
   338
wenzelm@66542
   339
* New styles in theory "HOL-Library.LaTeXsugar":
nipkow@66541
   340
  - "dummy_pats" for printing equations with "_" on the lhs;
nipkow@66541
   341
  - "eta_expand" for printing eta-expanded terms.
nipkow@66541
   342
wenzelm@66472
   343
* Theory "HOL-Library.Permutations": theorem bij_swap_ompose_bij has
wenzelm@66472
   344
been renamed to bij_swap_compose_bij. INCOMPATIBILITY.
wenzelm@66472
   345
lp15@66643
   346
* New theory "HOL-Library.Going_To_Filter" providing the "f going_to F"
eberlm@66488
   347
filter for describing points x such that f(x) is in the filter F.
eberlm@66488
   348
eberlm@66480
   349
* Theory "HOL-Library.Formal_Power_Series": constants X/E/L/F have been
eberlm@66480
   350
renamed to fps_X/fps_exp/fps_ln/fps_hypergeo to avoid polluting the name
wenzelm@66472
   351
space. INCOMPATIBILITY.
wenzelm@66472
   352
wenzelm@66472
   353
* Theory "HOL-Library.FinFun" has been moved to AFP (again).
wenzelm@66472
   354
INCOMPATIBILITY.
wenzelm@66472
   355
wenzelm@66472
   356
* Theory "HOL-Library.FuncSet": some old and rarely used ASCII
wenzelm@66472
   357
replacement syntax has been removed. INCOMPATIBILITY, standard syntax
wenzelm@66472
   358
with symbols should be used instead. The subsequent commands help to
wenzelm@66472
   359
reproduce the old forms, e.g. to simplify porting old theories:
wenzelm@66472
   360
wenzelm@66472
   361
syntax (ASCII)
wenzelm@66472
   362
  "_PiE" :: "pttrn \<Rightarrow> 'a set \<Rightarrow> 'b set \<Rightarrow> ('a \<Rightarrow> 'b) set"  ("(3PIE _:_./ _)" 10)
wenzelm@66472
   363
  "_Pi"  :: "pttrn \<Rightarrow> 'a set \<Rightarrow> 'b set \<Rightarrow> ('a \<Rightarrow> 'b) set"  ("(3PI _:_./ _)" 10)
wenzelm@66472
   364
  "_lam" :: "pttrn \<Rightarrow> 'a set \<Rightarrow> 'a \<Rightarrow> 'b \<Rightarrow> ('a \<Rightarrow> 'b)"  ("(3%_:_./ _)" [0,0,3] 3)
wenzelm@66472
   365
wenzelm@66472
   366
* Theory "HOL-Library.Multiset": the simprocs on subsets operators of
wenzelm@66472
   367
multisets have been renamed:
wenzelm@66472
   368
wenzelm@66472
   369
  msetless_cancel_numerals ~> msetsubset_cancel
wenzelm@66472
   370
  msetle_cancel_numerals ~> msetsubset_eq_cancel
wenzelm@66472
   371
wenzelm@66472
   372
INCOMPATIBILITY.
wenzelm@66472
   373
lars@66481
   374
* Theory "HOL-Library.Pattern_Aliases" provides input and output syntax
lars@66481
   375
for pattern aliases as known from Haskell, Scala and ML.
blanchet@65515
   376
Andreas@66563
   377
* Theory "HOL-Library.Uprod" formalizes the type of unordered pairs.
Andreas@66563
   378
wenzelm@64898
   379
* Session HOL-Analysis: more material involving arcs, paths, covering
wenzelm@66650
   380
spaces, innessential maps, retracts, infinite products, simplicial
wenzelm@66650
   381
complexes. Baire Category theorem. Major results include the Jordan
wenzelm@66650
   382
Curve Theorem and the Great Picard Theorem.
wenzelm@66472
   383
wenzelm@66472
   384
* Session HOL-Algebra has been extended by additional lattice theory:
wenzelm@66472
   385
the Knaster-Tarski fixed point theorem and Galois Connections.
wenzelm@66472
   386
wenzelm@66472
   387
* Sessions HOL-Computational_Algebra and HOL-Number_Theory: new notions
wenzelm@66472
   388
of squarefreeness, n-th powers, and prime powers.
wenzelm@66472
   389
wenzelm@66472
   390
* Session "HOL-Computional_Algebra" covers many previously scattered
wenzelm@66472
   391
theories, notably Euclidean_Algorithm, Factorial_Ring,
wenzelm@66472
   392
Formal_Power_Series, Fraction_Field, Fundamental_Theorem_Algebra,
wenzelm@66472
   393
Normalized_Fraction, Polynomial_FPS, Polynomial, Primes. Minor
wenzelm@66472
   394
INCOMPATIBILITY.
Mathias@65027
   395
wenzelm@60331
   396
wenzelm@64844
   397
*** System ***
wenzelm@64844
   398
wenzelm@66474
   399
* Isabelle/Scala: the SQL module supports access to relational
wenzelm@66474
   400
databases, either as plain file (SQLite) or full-scale server
wenzelm@66474
   401
(PostgreSQL via local port or remote ssh connection).
wenzelm@66474
   402
wenzelm@66474
   403
* Results of "isabelle build" are recorded as SQLite database (i.e.
wenzelm@66474
   404
"Application File Format" in the sense of
wenzelm@66474
   405
https://www.sqlite.org/appfileformat.html). This allows systematic
wenzelm@66474
   406
access via operations from module Sessions.Store in Isabelle/Scala.
wenzelm@66474
   407
wenzelm@66472
   408
* System option "parallel_proofs" is 1 by default (instead of more
wenzelm@66472
   409
aggressive 2). This requires less heap space and avoids burning parallel
wenzelm@66472
   410
CPU cycles, while full subproof parallelization is enabled for repeated
wenzelm@66472
   411
builds (according to parallel_subproofs_threshold).
wenzelm@65072
   412
wenzelm@65448
   413
* System option "record_proofs" allows to change the global
wenzelm@65448
   414
Proofterm.proofs variable for a session. Regular values are are 0, 1, 2;
wenzelm@65448
   415
a negative value means the current state in the ML heap image remains
wenzelm@65448
   416
unchanged.
wenzelm@65448
   417
wenzelm@66472
   418
* Isabelle settings variable ISABELLE_SCALA_BUILD_OPTIONS has been
wenzelm@66472
   419
renamed to ISABELLE_SCALAC_OPTIONS. Rare INCOMPATIBILITY.
wenzelm@66472
   420
wenzelm@66472
   421
* Isabelle settings variables ISABELLE_WINDOWS_PLATFORM,
wenzelm@66472
   422
ISABELLE_WINDOWS_PLATFORM32, ISABELLE_WINDOWS_PLATFORM64 indicate the
wenzelm@66472
   423
native Windows platform (independently of the Cygwin installation). This
wenzelm@66472
   424
is analogous to ISABELLE_PLATFORM, ISABELLE_PLATFORM32,
wenzelm@66472
   425
ISABELLE_PLATFORM64.
wenzelm@65557
   426
wenzelm@66786
   427
* Command-line tool "isabelle build_docker" builds a Docker image from
wenzelm@66786
   428
the Isabelle application bundle for Linux. See also
wenzelm@66786
   429
https://hub.docker.com/r/makarius/isabelle
wenzelm@66786
   430
wenzelm@66473
   431
* Command-line tool "isabelle vscode_server" provides a Language Server
wenzelm@66473
   432
Protocol implementation, e.g. for the Visual Studio Code editor. It
wenzelm@66473
   433
serves as example for alternative PIDE front-ends.
wenzelm@66473
   434
wenzelm@66472
   435
* Command-line tool "isabelle imports" helps to maintain theory imports
wenzelm@66671
   436
wrt. session structure. Examples for the main Isabelle distribution:
wenzelm@66472
   437
wenzelm@66472
   438
  isabelle imports -I -a
wenzelm@66472
   439
  isabelle imports -U -a
wenzelm@66472
   440
  isabelle imports -U -i -a
wenzelm@66472
   441
  isabelle imports -M -a -d '~~/src/Benchmarks'
wenzelm@66472
   442
wenzelm@64844
   443
wenzelm@64072
   444
New in Isabelle2016-1 (December 2016)
wenzelm@64072
   445
-------------------------------------
wenzelm@62216
   446
wenzelm@62440
   447
*** General ***
wenzelm@62440
   448
wenzelm@64390
   449
* Splitter in proof methods "simp", "auto" and friends:
wenzelm@64390
   450
  - The syntax "split add" has been discontinued, use plain "split",
wenzelm@64390
   451
    INCOMPATIBILITY.
wenzelm@64390
   452
  - For situations with many conditional or case expressions, there is
wenzelm@64390
   453
    an alternative splitting strategy that can be much faster. It is
wenzelm@64390
   454
    selected by writing "split!" instead of "split". It applies safe
wenzelm@64390
   455
    introduction and elimination rules after each split rule. As a
wenzelm@64390
   456
    result the subgoal may be split into several subgoals.
wenzelm@64390
   457
wenzelm@63273
   458
* Command 'bundle' provides a local theory target to define a bundle
wenzelm@63273
   459
from the body of specification commands (such as 'declare',
wenzelm@63273
   460
'declaration', 'notation', 'lemmas', 'lemma'). For example:
wenzelm@63273
   461
wenzelm@63273
   462
bundle foo
wenzelm@63273
   463
begin
wenzelm@63273
   464
  declare a [simp]
wenzelm@63273
   465
  declare b [intro]
wenzelm@63273
   466
end
wenzelm@63272
   467
wenzelm@63282
   468
* Command 'unbundle' is like 'include', but works within a local theory
wenzelm@63282
   469
context. Unlike "context includes ... begin", the effect of 'unbundle'
wenzelm@63282
   470
on the target context persists, until different declarations are given.
wenzelm@63282
   471
wenzelm@63977
   472
* Simplified outer syntax: uniform category "name" includes long
wenzelm@63977
   473
identifiers. Former "xname" / "nameref" / "name reference" has been
wenzelm@63977
   474
discontinued.
wenzelm@63977
   475
wenzelm@63977
   476
* Embedded content (e.g. the inner syntax of types, terms, props) may be
wenzelm@63977
   477
delimited uniformly via cartouches. This works better than old-fashioned
wenzelm@63977
   478
quotes when sub-languages are nested.
wenzelm@63977
   479
wenzelm@63977
   480
* Mixfix annotations support general block properties, with syntax
wenzelm@63977
   481
"(\<open>x=a y=b z \<dots>\<close>". Notable property names are "indent", "consistent",
wenzelm@63977
   482
"unbreakable", "markup". The existing notation "(DIGITS" is equivalent
wenzelm@63977
   483
to "(\<open>indent=DIGITS\<close>". The former notation "(00" for unbreakable blocks
wenzelm@63977
   484
is superseded by "(\<open>unbreabable\<close>" --- rare INCOMPATIBILITY.
nipkow@63650
   485
wenzelm@63383
   486
* Proof method "blast" is more robust wrt. corner cases of Pure
wenzelm@63383
   487
statements without object-logic judgment.
wenzelm@63383
   488
wenzelm@63624
   489
* Commands 'prf' and 'full_prf' are somewhat more informative (again):
wenzelm@63977
   490
proof terms are reconstructed and cleaned from administrative thm nodes.
wenzelm@63977
   491
wenzelm@63977
   492
* Code generator: config option "code_timing" triggers measurements of
wenzelm@63977
   493
different phases of code generation. See src/HOL/ex/Code_Timing.thy for
wenzelm@63977
   494
examples.
wenzelm@63977
   495
wenzelm@63977
   496
* Code generator: implicits in Scala (stemming from type class
wenzelm@63977
   497
instances) are generated into companion object of corresponding type
wenzelm@63977
   498
class, to resolve some situations where ambiguities may occur.
wenzelm@63977
   499
wenzelm@64390
   500
* Solve direct: option "solve_direct_strict_warnings" gives explicit
wenzelm@64390
   501
warnings for lemma statements with trivial proofs.
haftmann@64013
   502
wenzelm@64602
   503
wenzelm@62904
   504
*** Prover IDE -- Isabelle/Scala/jEdit ***
wenzelm@62904
   505
wenzelm@64527
   506
* More aggressive flushing of machine-generated input, according to
wenzelm@64527
   507
system option editor_generated_input_delay (in addition to existing
wenzelm@64527
   508
editor_input_delay for regular user edits). This may affect overall PIDE
wenzelm@64527
   509
reactivity and CPU usage.
wenzelm@64527
   510
wenzelm@64390
   511
* Syntactic indentation according to Isabelle outer syntax. Action
wenzelm@64390
   512
"indent-lines" (shortcut C+i) indents the current line according to
wenzelm@64390
   513
command keywords and some command substructure. Action
wenzelm@64390
   514
"isabelle.newline" (shortcut ENTER) indents the old and the new line
wenzelm@64390
   515
according to command keywords only; see also option
wenzelm@64390
   516
"jedit_indent_newline".
wenzelm@64390
   517
wenzelm@64390
   518
* Semantic indentation for unstructured proof scripts ('apply' etc.) via
wenzelm@64390
   519
number of subgoals. This requires information of ongoing document
wenzelm@64390
   520
processing and may thus lag behind, when the user is editing too
wenzelm@64390
   521
quickly; see also option "jedit_script_indent" and
wenzelm@64390
   522
"jedit_script_indent_limit".
wenzelm@64390
   523
wenzelm@64390
   524
* Refined folding mode "isabelle" based on Isar syntax: 'next' and 'qed'
wenzelm@64390
   525
are treated as delimiters for fold structure; 'begin' and 'end'
wenzelm@64390
   526
structure of theory specifications is treated as well.
wenzelm@64390
   527
wenzelm@64390
   528
* Command 'proof' provides information about proof outline with cases,
wenzelm@64390
   529
e.g. for proof methods "cases", "induct", "goal_cases".
wenzelm@64390
   530
wenzelm@64390
   531
* Completion templates for commands involving "begin ... end" blocks,
wenzelm@64390
   532
e.g. 'context', 'notepad'.
wenzelm@64390
   533
wenzelm@64390
   534
* Sidekick parser "isabelle-context" shows nesting of context blocks
wenzelm@64390
   535
according to 'begin' and 'end' structure.
wenzelm@64390
   536
wenzelm@63977
   537
* Highlighting of entity def/ref positions wrt. cursor.
wenzelm@63977
   538
wenzelm@63977
   539
* Action "isabelle.select-entity" (shortcut CS+ENTER) selects all
wenzelm@64514
   540
occurrences of the formal entity at the caret position. This facilitates
wenzelm@63977
   541
systematic renaming.
wenzelm@63977
   542
wenzelm@63977
   543
* PIDE document markup works across multiple Isar commands, e.g. the
wenzelm@63977
   544
results established at the end of a proof are properly identified in the
wenzelm@63977
   545
theorem statement.
wenzelm@63977
   546
wenzelm@63977
   547
* Cartouche abbreviations work both for " and ` to accomodate typical
wenzelm@63977
   548
situations where old ASCII notation may be updated.
wenzelm@63977
   549
wenzelm@63875
   550
* Dockable window "Symbols" also provides access to 'abbrevs' from the
wenzelm@63875
   551
outer syntax of the current theory buffer. This provides clickable
wenzelm@63875
   552
syntax templates, including entries with empty abbrevs name (which are
wenzelm@63875
   553
inaccessible via keyboard completion).
wenzelm@63875
   554
wenzelm@63022
   555
* IDE support for the Isabelle/Pure bootstrap process, with the
wenzelm@63022
   556
following independent stages:
wenzelm@63022
   557
wenzelm@63022
   558
  src/Pure/ROOT0.ML
wenzelm@63022
   559
  src/Pure/ROOT.ML
wenzelm@63022
   560
  src/Pure/Pure.thy
wenzelm@63022
   561
  src/Pure/ML_Bootstrap.thy
wenzelm@63022
   562
wenzelm@63022
   563
The ML ROOT files act like quasi-theories in the context of theory
wenzelm@63022
   564
ML_Bootstrap: this allows continuous checking of all loaded ML files.
wenzelm@63022
   565
The theory files are presented with a modified header to import Pure
wenzelm@63022
   566
from the running Isabelle instance. Results from changed versions of
wenzelm@63022
   567
each stage are *not* propagated to the next stage, and isolated from the
wenzelm@63022
   568
actual Isabelle/Pure that runs the IDE itself. The sequential
wenzelm@63307
   569
dependencies of the above files are only observed for batch build.
wenzelm@62904
   570
wenzelm@63977
   571
* Isabelle/ML and Standard ML files are presented in Sidekick with the
wenzelm@63977
   572
tree structure of section headings: this special comment format is
wenzelm@63977
   573
described in "implementation" chapter 0, e.g. (*** section ***).
wenzelm@63461
   574
wenzelm@63581
   575
* Additional abbreviations for syntactic completion may be specified
wenzelm@63871
   576
within the theory header as 'abbrevs'. The theory syntax for 'keywords'
wenzelm@63871
   577
has been simplified accordingly: optional abbrevs need to go into the
wenzelm@63871
   578
new 'abbrevs' section.
wenzelm@63871
   579
wenzelm@63871
   580
* Global abbreviations via $ISABELLE_HOME/etc/abbrevs and
wenzelm@63871
   581
$ISABELLE_HOME_USER/etc/abbrevs are no longer supported. Minor
wenzelm@63871
   582
INCOMPATIBILITY, use 'abbrevs' within theory header instead.
wenzelm@63579
   583
wenzelm@64390
   584
* Action "isabelle.keymap-merge" asks the user to resolve pending
wenzelm@64390
   585
Isabelle keymap changes that are in conflict with the current jEdit
wenzelm@64390
   586
keymap; non-conflicting changes are always applied implicitly. This
wenzelm@64390
   587
action is automatically invoked on Isabelle/jEdit startup and thus
wenzelm@64390
   588
increases chances that users see new keyboard shortcuts when re-using
wenzelm@64390
   589
old keymaps.
wenzelm@64390
   590
wenzelm@63675
   591
* ML and document antiquotations for file-systems paths are more uniform
wenzelm@63675
   592
and diverse:
wenzelm@63675
   593
wenzelm@63675
   594
  @{path NAME}   -- no file-system check
wenzelm@63675
   595
  @{file NAME}   -- check for plain file
wenzelm@63675
   596
  @{dir NAME}    -- check for directory
wenzelm@63675
   597
wenzelm@63675
   598
Minor INCOMPATIBILITY, former uses of @{file} and @{file_unchecked} may
wenzelm@63675
   599
have to be changed.
wenzelm@63669
   600
wenzelm@63669
   601
wenzelm@63977
   602
*** Document preparation ***
wenzelm@63977
   603
wenzelm@63977
   604
* New symbol \<circle>, e.g. for temporal operator.
wenzelm@63977
   605
wenzelm@64073
   606
* New document and ML antiquotation @{locale} for locales, similar to
wenzelm@64073
   607
existing antiquotation @{class}.
wenzelm@64073
   608
wenzelm@63977
   609
* Mixfix annotations support delimiters like \<^control>\<open>cartouche\<close> --
wenzelm@63977
   610
this allows special forms of document output.
wenzelm@63977
   611
wenzelm@63977
   612
* Raw LaTeX output now works via \<^latex>\<open>...\<close> instead of raw control
wenzelm@63977
   613
symbol \<^raw:...>. INCOMPATIBILITY, notably for LaTeXsugar.thy and its
wenzelm@63977
   614
derivatives.
wenzelm@63977
   615
wenzelm@63977
   616
* \<^raw:...> symbols are no longer supported.
wenzelm@63977
   617
wenzelm@63977
   618
* Old 'header' command is no longer supported (legacy since
wenzelm@63977
   619
Isabelle2015).
wenzelm@63977
   620
wenzelm@63977
   621
wenzelm@62312
   622
*** Isar ***
wenzelm@62312
   623
wenzelm@63180
   624
* Many specification elements support structured statements with 'if' /
wenzelm@63180
   625
'for' eigen-context, e.g. 'axiomatization', 'abbreviation',
wenzelm@63180
   626
'definition', 'inductive', 'function'.
wenzelm@63180
   627
wenzelm@63094
   628
* Toplevel theorem statements support eigen-context notation with 'if' /
wenzelm@63284
   629
'for' (in postfix), which corresponds to 'assumes' / 'fixes' in the
wenzelm@63094
   630
traditional long statement form (in prefix). Local premises are called
wenzelm@63094
   631
"that" or "assms", respectively. Empty premises are *not* bound in the
wenzelm@63094
   632
context: INCOMPATIBILITY.
wenzelm@63094
   633
wenzelm@63039
   634
* Command 'define' introduces a local (non-polymorphic) definition, with
wenzelm@63039
   635
optional abstraction over local parameters. The syntax resembles
wenzelm@63043
   636
'definition' and 'obtain'. It fits better into the Isar language than
wenzelm@63043
   637
old 'def', which is now a legacy feature.
wenzelm@63039
   638
wenzelm@63059
   639
* Command 'obtain' supports structured statements with 'if' / 'for'
wenzelm@63059
   640
context.
wenzelm@63059
   641
wenzelm@62312
   642
* Command '\<proof>' is an alias for 'sorry', with different
wenzelm@62312
   643
typesetting. E.g. to produce proof holes in examples and documentation.
wenzelm@62216
   644
wenzelm@63977
   645
* The defining position of a literal fact \<open>prop\<close> is maintained more
wenzelm@63977
   646
carefully, and made accessible as hyperlink in the Prover IDE.
wenzelm@63977
   647
wenzelm@63977
   648
* Commands 'finally' and 'ultimately' used to expose the result as
wenzelm@63977
   649
literal fact: this accidental behaviour has been discontinued. Rare
wenzelm@63977
   650
INCOMPATIBILITY, use more explicit means to refer to facts in Isar.
wenzelm@63977
   651
wenzelm@63977
   652
* Command 'axiomatization' has become more restrictive to correspond
wenzelm@63977
   653
better to internal axioms as singleton facts with mandatory name. Minor
wenzelm@63977
   654
INCOMPATIBILITY.
wenzelm@62939
   655
wenzelm@63259
   656
* Proof methods may refer to the main facts via the dynamic fact
wenzelm@63259
   657
"method_facts". This is particularly useful for Eisbach method
wenzelm@63259
   658
definitions.
wenzelm@63259
   659
wenzelm@63527
   660
* Proof method "use" allows to modify the main facts of a given method
wenzelm@63527
   661
expression, e.g.
wenzelm@63259
   662
wenzelm@63259
   663
  (use facts in simp)
wenzelm@63259
   664
  (use facts in \<open>simp add: ...\<close>)
wenzelm@63259
   665
wenzelm@63977
   666
* The old proof method "default" has been removed (legacy since
wenzelm@63977
   667
Isabelle2016). INCOMPATIBILITY, use "standard" instead.
wenzelm@63977
   668
wenzelm@62216
   669
haftmann@63165
   670
*** Pure ***
haftmann@63165
   671
wenzelm@63977
   672
* Pure provides basic versions of proof methods "simp" and "simp_all"
wenzelm@63977
   673
that only know about meta-equality (==). Potential INCOMPATIBILITY in
wenzelm@63977
   674
theory imports that merge Pure with e.g. Main of Isabelle/HOL: the order
wenzelm@63977
   675
is relevant to avoid confusion of Pure.simp vs. HOL.simp.
wenzelm@63977
   676
wenzelm@63977
   677
* The command 'unfolding' and proof method "unfold" include a second
wenzelm@63977
   678
stage where given equations are passed through the attribute "abs_def"
wenzelm@63977
   679
before rewriting. This ensures that definitions are fully expanded,
wenzelm@63977
   680
regardless of the actual parameters that are provided. Rare
wenzelm@63977
   681
INCOMPATIBILITY in some corner cases: use proof method (simp only:)
wenzelm@63977
   682
instead, or declare [[unfold_abs_def = false]] in the proof context.
wenzelm@63977
   683
wenzelm@63977
   684
* Type-inference improves sorts of newly introduced type variables for
wenzelm@63977
   685
the object-logic, using its base sort (i.e. HOL.type for Isabelle/HOL).
wenzelm@63977
   686
Thus terms like "f x" or "\<And>x. P x" without any further syntactic context
wenzelm@63977
   687
produce x::'a::type in HOL instead of x::'a::{} in Pure. Rare
wenzelm@63977
   688
INCOMPATIBILITY, need to provide explicit type constraints for Pure
wenzelm@63977
   689
types where this is really intended.
haftmann@63350
   690
haftmann@63165
   691
blanchet@62327
   692
*** HOL ***
blanchet@62327
   693
wenzelm@63977
   694
* New proof method "argo" using the built-in Argo solver based on SMT
wenzelm@63977
   695
technology. The method can be used to prove goals of quantifier-free
wenzelm@63977
   696
propositional logic, goals based on a combination of quantifier-free
wenzelm@63977
   697
propositional logic with equality, and goals based on a combination of
wenzelm@63977
   698
quantifier-free propositional logic with linear real arithmetic
wenzelm@63977
   699
including min/max/abs. See HOL/ex/Argo_Examples.thy for examples.
wenzelm@63977
   700
blanchet@66614
   701
* The new "nunchaku" command integrates the Nunchaku model finder. The
wenzelm@64390
   702
tool is experimental. See ~~/src/HOL/Nunchaku/Nunchaku.thy for details.
wenzelm@64390
   703
wenzelm@63977
   704
* Metis: The problem encoding has changed very slightly. This might
blanchet@63785
   705
break existing proofs. INCOMPATIBILITY.
blanchet@63785
   706
blanchet@63116
   707
* Sledgehammer:
lp15@63967
   708
  - The MaSh relevance filter is now faster than before.
blanchet@63116
   709
  - Produce syntactically correct Vampire 4.0 problem files.
blanchet@63116
   710
blanchet@62327
   711
* (Co)datatype package:
blanchet@62693
   712
  - New commands for defining corecursive functions and reasoning about
blanchet@62693
   713
    them in "~~/src/HOL/Library/BNF_Corec.thy": 'corec', 'corecursive',
blanchet@62693
   714
    'friend_of_corec', and 'corecursion_upto'; and 'corec_unique' proof
blanchet@62842
   715
    method. See 'isabelle doc corec'.
wenzelm@63977
   716
  - The predicator :: ('a \<Rightarrow> bool) \<Rightarrow> 'a F \<Rightarrow> bool is now a first-class
blanchet@63855
   717
    citizen in bounded natural functors.
blanchet@62693
   718
  - 'primrec' now allows nested calls through the predicator in addition
blanchet@62327
   719
    to the map function.
blanchet@63855
   720
  - 'bnf' automatically discharges reflexive proof obligations.
blanchet@62693
   721
  - 'bnf' outputs a slightly modified proof obligation expressing rel in
traytel@62332
   722
       terms of map and set
blanchet@63855
   723
       (not giving a specification for rel makes this one reflexive).
blanchet@62693
   724
  - 'bnf' outputs a new proof obligation expressing pred in terms of set
blanchet@63855
   725
       (not giving a specification for pred makes this one reflexive).
blanchet@63855
   726
    INCOMPATIBILITY: manual 'bnf' declarations may need adjustment.
blanchet@62335
   727
  - Renamed lemmas:
blanchet@62335
   728
      rel_prod_apply ~> rel_prod_inject
blanchet@62335
   729
      pred_prod_apply ~> pred_prod_inject
blanchet@62335
   730
    INCOMPATIBILITY.
blanchet@62536
   731
  - The "size" plugin has been made compatible again with locales.
blanchet@63855
   732
  - The theorems about "rel" and "set" may have a slightly different (but
blanchet@63855
   733
    equivalent) form.
blanchet@63855
   734
    INCOMPATIBILITY.
blanchet@62327
   735
wenzelm@63977
   736
* The 'coinductive' command produces a proper coinduction rule for
wenzelm@63977
   737
mutual coinductive predicates. This new rule replaces the old rule,
wenzelm@63977
   738
which exposed details of the internal fixpoint construction and was
wenzelm@63977
   739
hard to use. INCOMPATIBILITY.
wenzelm@63977
   740
wenzelm@63977
   741
* New abbreviations for negated existence (but not bounded existence):
wenzelm@63977
   742
wenzelm@63977
   743
  \<nexists>x. P x \<equiv> \<not> (\<exists>x. P x)
wenzelm@63977
   744
  \<nexists>!x. P x \<equiv> \<not> (\<exists>!x. P x)
wenzelm@63977
   745
wenzelm@63977
   746
* The print mode "HOL" for ASCII syntax of binders "!", "?", "?!", "@"
wenzelm@63977
   747
has been removed for output. It is retained for input only, until it is
wenzelm@63977
   748
eliminated altogether.
wenzelm@63977
   749
wenzelm@63977
   750
* The unique existence quantifier no longer provides 'binder' syntax,
wenzelm@63977
   751
but uses syntax translations (as for bounded unique existence). Thus
wenzelm@63977
   752
iterated quantification \<exists>!x y. P x y with its slightly confusing
wenzelm@63977
   753
sequential meaning \<exists>!x. \<exists>!y. P x y is no longer possible. Instead,
wenzelm@63977
   754
pattern abstraction admits simultaneous unique existence \<exists>!(x, y). P x y
wenzelm@63977
   755
(analogous to existing notation \<exists>!(x, y)\<in>A. P x y). Potential
wenzelm@63977
   756
INCOMPATIBILITY in rare situations.
wenzelm@63977
   757
wenzelm@63977
   758
* Conventional syntax "%(). t" for unit abstractions. Slight syntactic
wenzelm@63977
   759
INCOMPATIBILITY.
wenzelm@63977
   760
wenzelm@64390
   761
* Renamed constants and corresponding theorems:
wenzelm@64390
   762
wenzelm@64390
   763
    setsum ~> sum
wenzelm@64390
   764
    setprod ~> prod
wenzelm@64390
   765
    listsum ~> sum_list
wenzelm@64390
   766
    listprod ~> prod_list
wenzelm@64390
   767
wenzelm@64390
   768
INCOMPATIBILITY.
wenzelm@64390
   769
wenzelm@64390
   770
* Sligthly more standardized theorem names:
wenzelm@64390
   771
    sgn_times ~> sgn_mult
wenzelm@64390
   772
    sgn_mult' ~> Real_Vector_Spaces.sgn_mult
wenzelm@64390
   773
    divide_zero_left ~> div_0
wenzelm@64390
   774
    zero_mod_left ~> mod_0
wenzelm@64390
   775
    divide_zero ~> div_by_0
wenzelm@64390
   776
    divide_1 ~> div_by_1
wenzelm@64390
   777
    nonzero_mult_divide_cancel_left ~> nonzero_mult_div_cancel_left
wenzelm@64390
   778
    div_mult_self1_is_id ~> nonzero_mult_div_cancel_left
wenzelm@64390
   779
    nonzero_mult_divide_cancel_right ~> nonzero_mult_div_cancel_right
wenzelm@64390
   780
    div_mult_self2_is_id ~> nonzero_mult_div_cancel_right
wenzelm@64390
   781
    is_unit_divide_mult_cancel_left ~> is_unit_div_mult_cancel_left
wenzelm@64390
   782
    is_unit_divide_mult_cancel_right ~> is_unit_div_mult_cancel_right
wenzelm@64390
   783
    mod_div_equality ~> div_mult_mod_eq
wenzelm@64390
   784
    mod_div_equality2 ~> mult_div_mod_eq
wenzelm@64390
   785
    mod_div_equality3 ~> mod_div_mult_eq
wenzelm@64390
   786
    mod_div_equality4 ~> mod_mult_div_eq
wenzelm@64390
   787
    minus_div_eq_mod ~> minus_div_mult_eq_mod
wenzelm@64390
   788
    minus_div_eq_mod2 ~> minus_mult_div_eq_mod
wenzelm@64390
   789
    minus_mod_eq_div ~> minus_mod_eq_div_mult
wenzelm@64390
   790
    minus_mod_eq_div2 ~> minus_mod_eq_mult_div
wenzelm@64390
   791
    div_mod_equality' ~> minus_mod_eq_div_mult [symmetric]
wenzelm@64390
   792
    mod_div_equality' ~> minus_div_mult_eq_mod [symmetric]
wenzelm@64390
   793
    zmod_zdiv_equality ~> mult_div_mod_eq [symmetric]
wenzelm@64390
   794
    zmod_zdiv_equality' ~> minus_div_mult_eq_mod [symmetric]
wenzelm@64390
   795
    Divides.mult_div_cancel ~> minus_mod_eq_mult_div [symmetric]
wenzelm@64390
   796
    mult_div_cancel ~> minus_mod_eq_mult_div [symmetric]
wenzelm@64390
   797
    zmult_div_cancel ~> minus_mod_eq_mult_div [symmetric]
wenzelm@64390
   798
    div_1 ~> div_by_Suc_0
wenzelm@64390
   799
    mod_1 ~> mod_by_Suc_0
wenzelm@64390
   800
INCOMPATIBILITY.
wenzelm@64390
   801
wenzelm@64390
   802
* New type class "idom_abs_sgn" specifies algebraic properties
wenzelm@64390
   803
of sign and absolute value functions.  Type class "sgn_if" has
wenzelm@64390
   804
disappeared.  Slight INCOMPATIBILITY.
wenzelm@64390
   805
wenzelm@64390
   806
* Dedicated syntax LENGTH('a) for length of types.
wenzelm@64390
   807
wenzelm@63977
   808
* Characters (type char) are modelled as finite algebraic type
wenzelm@63977
   809
corresponding to {0..255}.
wenzelm@63977
   810
wenzelm@63977
   811
  - Logical representation:
wenzelm@63977
   812
    * 0 is instantiated to the ASCII zero character.
wenzelm@63977
   813
    * All other characters are represented as "Char n"
wenzelm@63977
   814
      with n being a raw numeral expression less than 256.
wenzelm@63977
   815
    * Expressions of the form "Char n" with n greater than 255
wenzelm@63977
   816
      are non-canonical.
wenzelm@63977
   817
  - Printing and parsing:
wenzelm@63977
   818
    * Printable characters are printed and parsed as "CHR ''\<dots>''"
wenzelm@63977
   819
      (as before).
wenzelm@63977
   820
    * The ASCII zero character is printed and parsed as "0".
wenzelm@63977
   821
    * All other canonical characters are printed as "CHR 0xXX"
wenzelm@63977
   822
      with XX being the hexadecimal character code.  "CHR n"
wenzelm@63977
   823
      is parsable for every numeral expression n.
wenzelm@63977
   824
    * Non-canonical characters have no special syntax and are
wenzelm@63977
   825
      printed as their logical representation.
wenzelm@63977
   826
  - Explicit conversions from and to the natural numbers are
wenzelm@63977
   827
    provided as char_of_nat, nat_of_char (as before).
wenzelm@63977
   828
  - The auxiliary nibble type has been discontinued.
wenzelm@63977
   829
wenzelm@63977
   830
INCOMPATIBILITY.
wenzelm@63977
   831
wenzelm@63977
   832
* Type class "div" with operation "mod" renamed to type class "modulo"
wenzelm@63977
   833
with operation "modulo", analogously to type class "divide". This
wenzelm@63977
   834
eliminates the need to qualify any of those names in the presence of
wenzelm@63977
   835
infix "mod" syntax. INCOMPATIBILITY.
wenzelm@63977
   836
wenzelm@63979
   837
* Statements and proofs of Knaster-Tarski fixpoint combinators lfp/gfp
wenzelm@63979
   838
have been clarified. The fixpoint properties are lfp_fixpoint, its
wenzelm@63979
   839
symmetric lfp_unfold (as before), and the duals for gfp. Auxiliary items
wenzelm@63979
   840
for the proof (lfp_lemma2 etc.) are no longer exported, but can be
wenzelm@63979
   841
easily recovered by composition with eq_refl. Minor INCOMPATIBILITY.
wenzelm@63979
   842
wenzelm@63977
   843
* Constant "surj" is a mere input abbreviation, to avoid hiding an
wenzelm@63977
   844
equation in term output. Minor INCOMPATIBILITY.
wenzelm@63977
   845
wenzelm@63977
   846
* Command 'code_reflect' accepts empty constructor lists for datatypes,
wenzelm@63977
   847
which renders those abstract effectively.
wenzelm@63977
   848
wenzelm@63977
   849
* Command 'export_code' checks given constants for abstraction
wenzelm@63977
   850
violations: a small guarantee that given constants specify a safe
wenzelm@63977
   851
interface for the generated code.
wenzelm@63977
   852
wenzelm@63977
   853
* Code generation for Scala: ambiguous implicts in class diagrams are
wenzelm@63977
   854
spelt out explicitly.
wenzelm@63977
   855
wenzelm@63977
   856
* Static evaluators (Code_Evaluation.static_* in Isabelle/ML) rely on
wenzelm@63977
   857
explicitly provided auxiliary definitions for required type class
wenzelm@64390
   858
dictionaries rather than half-working magic. INCOMPATIBILITY, see the
wenzelm@64390
   859
tutorial on code generation for details.
wenzelm@64390
   860
wenzelm@64390
   861
* Theory Set_Interval: substantial new theorems on indexed sums and
wenzelm@64390
   862
products.
wenzelm@63977
   863
wenzelm@63977
   864
* Locale bijection establishes convenient default simp rules such as
wenzelm@63977
   865
"inv f (f a) = a" for total bijections.
wenzelm@63977
   866
wenzelm@63977
   867
* Abstract locales semigroup, abel_semigroup, semilattice,
wenzelm@63977
   868
semilattice_neutr, ordering, ordering_top, semilattice_order,
wenzelm@63977
   869
semilattice_neutr_order, comm_monoid_set, semilattice_set,
wenzelm@63977
   870
semilattice_neutr_set, semilattice_order_set,
wenzelm@63977
   871
semilattice_order_neutr_set monoid_list, comm_monoid_list,
wenzelm@63977
   872
comm_monoid_list_set, comm_monoid_mset, comm_monoid_fun use boldified
wenzelm@63977
   873
syntax uniformly that does not clash with corresponding global syntax.
wenzelm@63977
   874
INCOMPATIBILITY.
wenzelm@63977
   875
wenzelm@63977
   876
* Former locale lifting_syntax is now a bundle, which is easier to
wenzelm@63977
   877
include in a local context or theorem statement, e.g. "context includes
wenzelm@63977
   878
lifting_syntax begin ... end". Minor INCOMPATIBILITY.
wenzelm@63977
   879
wenzelm@63807
   880
* Some old / obsolete theorems have been renamed / removed, potential
wenzelm@63807
   881
INCOMPATIBILITY.
wenzelm@63807
   882
wenzelm@63807
   883
  nat_less_cases  --  removed, use linorder_cases instead
wenzelm@63807
   884
  inv_image_comp  --  removed, use image_inv_f_f instead
wenzelm@63807
   885
  image_surj_f_inv_f  ~>  image_f_inv_f
wenzelm@63113
   886
Mathias@63456
   887
* Some theorems about groups and orders have been generalised from
Mathias@63456
   888
  groups to semi-groups that are also monoids:
Mathias@63456
   889
    le_add_same_cancel1
Mathias@63456
   890
    le_add_same_cancel2
Mathias@63456
   891
    less_add_same_cancel1
Mathias@63456
   892
    less_add_same_cancel2
Mathias@63456
   893
    add_le_same_cancel1
Mathias@63456
   894
    add_le_same_cancel2
Mathias@63456
   895
    add_less_same_cancel1
Mathias@63456
   896
    add_less_same_cancel2
Mathias@63456
   897
Mathias@63456
   898
* Some simplifications theorems about rings have been removed, since
Mathias@63456
   899
  superseeded by a more general version:
Mathias@63456
   900
    less_add_cancel_left_greater_zero ~> less_add_same_cancel1
Mathias@63456
   901
    less_add_cancel_right_greater_zero ~> less_add_same_cancel2
Mathias@63456
   902
    less_eq_add_cancel_left_greater_eq_zero ~> le_add_same_cancel1
Mathias@63456
   903
    less_eq_add_cancel_right_greater_eq_zero ~> le_add_same_cancel2
Mathias@63456
   904
    less_eq_add_cancel_left_less_eq_zero ~> add_le_same_cancel1
Mathias@63456
   905
    less_eq_add_cancel_right_less_eq_zero ~> add_le_same_cancel2
Mathias@63456
   906
    less_add_cancel_left_less_zero ~> add_less_same_cancel1
Mathias@63456
   907
    less_add_cancel_right_less_zero ~> add_less_same_cancel2
Mathias@63456
   908
INCOMPATIBILITY.
Mathias@63456
   909
wenzelm@62407
   910
* Renamed split_if -> if_split and split_if_asm -> if_split_asm to
wenzelm@62407
   911
resemble the f.split naming convention, INCOMPATIBILITY.
nipkow@62396
   912
wenzelm@63977
   913
* Added class topological_monoid.
wenzelm@63977
   914
wenzelm@64391
   915
* The following theorems have been renamed:
wenzelm@64391
   916
nipkow@64457
   917
  setsum_left_distrib ~> sum_distrib_right
nipkow@64457
   918
  setsum_right_distrib ~> sum_distrib_left
wenzelm@64391
   919
wenzelm@64391
   920
INCOMPATIBILITY.
wenzelm@64391
   921
wenzelm@64391
   922
* Compound constants INFIMUM and SUPREMUM are mere abbreviations now.
wenzelm@64391
   923
INCOMPATIBILITY.
wenzelm@64391
   924
wenzelm@64391
   925
* "Gcd (f ` A)" and "Lcm (f ` A)" are printed with optional
wenzelm@64391
   926
comprehension-like syntax analogously to "Inf (f ` A)" and "Sup (f `
wenzelm@64391
   927
A)".
wenzelm@64391
   928
wenzelm@64391
   929
* Class semiring_Lcd merged into semiring_Gcd. INCOMPATIBILITY.
wenzelm@64391
   930
wenzelm@64391
   931
* The type class ordered_comm_monoid_add is now called
wenzelm@64391
   932
ordered_cancel_comm_monoid_add. A new type class ordered_comm_monoid_add
wenzelm@64391
   933
is introduced as the combination of ordered_ab_semigroup_add +
wenzelm@64391
   934
comm_monoid_add. INCOMPATIBILITY.
wenzelm@64391
   935
wenzelm@64391
   936
* Introduced the type classes canonically_ordered_comm_monoid_add and
wenzelm@64391
   937
dioid.
wenzelm@64391
   938
wenzelm@64391
   939
* Introduced the type class ordered_ab_semigroup_monoid_add_imp_le. When
wenzelm@64391
   940
instantiating linordered_semiring_strict and ordered_ab_group_add, an
wenzelm@64391
   941
explicit instantiation of ordered_ab_semigroup_monoid_add_imp_le might
wenzelm@64391
   942
be required. INCOMPATIBILITY.
nipkow@63117
   943
haftmann@62348
   944
* Dropped various legacy fact bindings, whose replacements are often
haftmann@62348
   945
of a more general type also:
haftmann@62348
   946
  lcm_left_commute_nat ~> lcm.left_commute
haftmann@62348
   947
  lcm_left_commute_int ~> lcm.left_commute
haftmann@62348
   948
  gcd_left_commute_nat ~> gcd.left_commute
haftmann@62348
   949
  gcd_left_commute_int ~> gcd.left_commute
haftmann@62348
   950
  gcd_greatest_iff_nat ~> gcd_greatest_iff
haftmann@62348
   951
  gcd_greatest_iff_int ~> gcd_greatest_iff
haftmann@62348
   952
  coprime_dvd_mult_nat ~> coprime_dvd_mult
haftmann@62348
   953
  coprime_dvd_mult_int ~> coprime_dvd_mult
haftmann@62348
   954
  zpower_numeral_even ~> power_numeral_even
haftmann@62348
   955
  gcd_mult_cancel_nat ~> gcd_mult_cancel
haftmann@62348
   956
  gcd_mult_cancel_int ~> gcd_mult_cancel
haftmann@62348
   957
  div_gcd_coprime_nat ~> div_gcd_coprime
haftmann@62348
   958
  div_gcd_coprime_int ~> div_gcd_coprime
haftmann@62348
   959
  zpower_numeral_odd ~> power_numeral_odd
haftmann@62348
   960
  zero_less_int_conv ~> of_nat_0_less_iff
haftmann@62348
   961
  gcd_greatest_nat ~> gcd_greatest
haftmann@62348
   962
  gcd_greatest_int ~> gcd_greatest
haftmann@62348
   963
  coprime_mult_nat ~> coprime_mult
haftmann@62348
   964
  coprime_mult_int ~> coprime_mult
haftmann@62348
   965
  lcm_commute_nat ~> lcm.commute
haftmann@62348
   966
  lcm_commute_int ~> lcm.commute
haftmann@62348
   967
  int_less_0_conv ~> of_nat_less_0_iff
haftmann@62348
   968
  gcd_commute_nat ~> gcd.commute
haftmann@62348
   969
  gcd_commute_int ~> gcd.commute
haftmann@62348
   970
  Gcd_insert_nat ~> Gcd_insert
haftmann@62348
   971
  Gcd_insert_int ~> Gcd_insert
haftmann@62348
   972
  of_int_int_eq ~> of_int_of_nat_eq
haftmann@62348
   973
  lcm_least_nat ~> lcm_least
haftmann@62348
   974
  lcm_least_int ~> lcm_least
haftmann@62348
   975
  lcm_assoc_nat ~> lcm.assoc
haftmann@62348
   976
  lcm_assoc_int ~> lcm.assoc
haftmann@62348
   977
  int_le_0_conv ~> of_nat_le_0_iff
haftmann@62348
   978
  int_eq_0_conv ~> of_nat_eq_0_iff
haftmann@62348
   979
  Gcd_empty_nat ~> Gcd_empty
haftmann@62348
   980
  Gcd_empty_int ~> Gcd_empty
haftmann@62348
   981
  gcd_assoc_nat ~> gcd.assoc
haftmann@62348
   982
  gcd_assoc_int ~> gcd.assoc
haftmann@62348
   983
  zero_zle_int ~> of_nat_0_le_iff
haftmann@62348
   984
  lcm_dvd2_nat ~> dvd_lcm2
haftmann@62348
   985
  lcm_dvd2_int ~> dvd_lcm2
haftmann@62348
   986
  lcm_dvd1_nat ~> dvd_lcm1
haftmann@62348
   987
  lcm_dvd1_int ~> dvd_lcm1
haftmann@62348
   988
  gcd_zero_nat ~> gcd_eq_0_iff
haftmann@62348
   989
  gcd_zero_int ~> gcd_eq_0_iff
haftmann@62348
   990
  gcd_dvd2_nat ~> gcd_dvd2
haftmann@62348
   991
  gcd_dvd2_int ~> gcd_dvd2
haftmann@62348
   992
  gcd_dvd1_nat ~> gcd_dvd1
haftmann@62348
   993
  gcd_dvd1_int ~> gcd_dvd1
haftmann@62348
   994
  int_numeral ~> of_nat_numeral
haftmann@62348
   995
  lcm_ac_nat ~> ac_simps
haftmann@62348
   996
  lcm_ac_int ~> ac_simps
haftmann@62348
   997
  gcd_ac_nat ~> ac_simps
haftmann@62348
   998
  gcd_ac_int ~> ac_simps
haftmann@62348
   999
  abs_int_eq ~> abs_of_nat
haftmann@62348
  1000
  zless_int ~> of_nat_less_iff
haftmann@62348
  1001
  zdiff_int ~> of_nat_diff
haftmann@62348
  1002
  zadd_int ~> of_nat_add
haftmann@62348
  1003
  int_mult ~> of_nat_mult
haftmann@62348
  1004
  int_Suc ~> of_nat_Suc
haftmann@62348
  1005
  inj_int ~> inj_of_nat
haftmann@62348
  1006
  int_1 ~> of_nat_1
haftmann@62348
  1007
  int_0 ~> of_nat_0
haftmann@62353
  1008
  Lcm_empty_nat ~> Lcm_empty
haftmann@62353
  1009
  Lcm_empty_int ~> Lcm_empty
haftmann@62353
  1010
  Lcm_insert_nat ~> Lcm_insert
haftmann@62353
  1011
  Lcm_insert_int ~> Lcm_insert
haftmann@62353
  1012
  comp_fun_idem_gcd_nat ~> comp_fun_idem_gcd
haftmann@62353
  1013
  comp_fun_idem_gcd_int ~> comp_fun_idem_gcd
haftmann@62353
  1014
  comp_fun_idem_lcm_nat ~> comp_fun_idem_lcm
haftmann@62353
  1015
  comp_fun_idem_lcm_int ~> comp_fun_idem_lcm
haftmann@62353
  1016
  Lcm_eq_0 ~> Lcm_eq_0_I
haftmann@62353
  1017
  Lcm0_iff ~> Lcm_0_iff
haftmann@62353
  1018
  Lcm_dvd_int ~> Lcm_least
haftmann@62353
  1019
  divides_mult_nat ~> divides_mult
haftmann@62353
  1020
  divides_mult_int ~> divides_mult
haftmann@62353
  1021
  lcm_0_nat ~> lcm_0_right
haftmann@62353
  1022
  lcm_0_int ~> lcm_0_right
haftmann@62353
  1023
  lcm_0_left_nat ~> lcm_0_left
haftmann@62353
  1024
  lcm_0_left_int ~> lcm_0_left
haftmann@62353
  1025
  dvd_gcd_D1_nat ~> dvd_gcdD1
haftmann@62353
  1026
  dvd_gcd_D1_int ~> dvd_gcdD1
haftmann@62353
  1027
  dvd_gcd_D2_nat ~> dvd_gcdD2
haftmann@62353
  1028
  dvd_gcd_D2_int ~> dvd_gcdD2
haftmann@62353
  1029
  coprime_dvd_mult_iff_nat ~> coprime_dvd_mult_iff
haftmann@62353
  1030
  coprime_dvd_mult_iff_int ~> coprime_dvd_mult_iff
haftmann@62348
  1031
  realpow_minus_mult ~> power_minus_mult
haftmann@62348
  1032
  realpow_Suc_le_self ~> power_Suc_le_self
haftmann@62353
  1033
  dvd_Gcd, dvd_Gcd_nat, dvd_Gcd_int removed in favour of Gcd_greatest
haftmann@62347
  1034
INCOMPATIBILITY.
haftmann@62347
  1035
lp15@63967
  1036
* Renamed HOL/Quotient_Examples/FSet.thy to
wenzelm@63977
  1037
HOL/Quotient_Examples/Quotient_FSet.thy INCOMPATIBILITY.
wenzelm@63977
  1038
wenzelm@64390
  1039
* Session HOL-Library: theory FinFun bundles "finfun_syntax" and
wenzelm@64390
  1040
"no_finfun_syntax" allow to control optional syntax in local contexts;
wenzelm@64390
  1041
this supersedes former theory FinFun_Syntax. INCOMPATIBILITY, e.g. use
wenzelm@64390
  1042
"unbundle finfun_syntax" to imitate import of
wenzelm@64390
  1043
"~~/src/HOL/Library/FinFun_Syntax".
wenzelm@64390
  1044
wenzelm@64390
  1045
* Session HOL-Library: theory Multiset_Permutations (executably) defines
wenzelm@64390
  1046
the set of permutations of a given set or multiset, i.e. the set of all
wenzelm@64390
  1047
lists that contain every element of the carrier (multi-)set exactly
wenzelm@64390
  1048
once.
wenzelm@64390
  1049
wenzelm@64390
  1050
* Session HOL-Library: multiset membership is now expressed using
wenzelm@64390
  1051
set_mset rather than count.
wenzelm@64390
  1052
wenzelm@64390
  1053
  - Expressions "count M a > 0" and similar simplify to membership
wenzelm@64390
  1054
    by default.
wenzelm@64390
  1055
wenzelm@64390
  1056
  - Converting between "count M a = 0" and non-membership happens using
wenzelm@64390
  1057
    equations count_eq_zero_iff and not_in_iff.
wenzelm@64390
  1058
wenzelm@64390
  1059
  - Rules count_inI and in_countE obtain facts of the form
wenzelm@64390
  1060
    "count M a = n" from membership.
wenzelm@64390
  1061
wenzelm@64390
  1062
  - Rules count_in_diffI and in_diff_countE obtain facts of the form
wenzelm@64390
  1063
    "count M a = n + count N a" from membership on difference sets.
wenzelm@64390
  1064
wenzelm@64390
  1065
INCOMPATIBILITY.
wenzelm@64390
  1066
wenzelm@64390
  1067
* Session HOL-Library: theory LaTeXsugar uses new-style "dummy_pats" for
wenzelm@64390
  1068
displaying equations in functional programming style --- variables
wenzelm@64390
  1069
present on the left-hand but not on the righ-hand side are replaced by
wenzelm@64390
  1070
underscores.
wenzelm@64390
  1071
wenzelm@64390
  1072
* Session HOL-Library: theory Combinator_PER provides combinator to
wenzelm@64390
  1073
build partial equivalence relations from a predicate and an equivalence
wenzelm@64390
  1074
relation.
wenzelm@64390
  1075
wenzelm@64390
  1076
* Session HOL-Library: theory Perm provides basic facts about almost
wenzelm@64390
  1077
everywhere fix bijections.
wenzelm@64390
  1078
wenzelm@64390
  1079
* Session HOL-Library: theory Normalized_Fraction allows viewing an
wenzelm@64390
  1080
element of a field of fractions as a normalized fraction (i.e. a pair of
wenzelm@64390
  1081
numerator and denominator such that the two are coprime and the
wenzelm@64390
  1082
denominator is normalized wrt. unit factors).
wenzelm@64390
  1083
wenzelm@64390
  1084
* Session HOL-NSA has been renamed to HOL-Nonstandard_Analysis.
wenzelm@64390
  1085
wenzelm@64390
  1086
* Session HOL-Multivariate_Analysis has been renamed to HOL-Analysis.
wenzelm@64390
  1087
wenzelm@64390
  1088
* Session HOL-Analysis: measure theory has been moved here from
wenzelm@64390
  1089
HOL-Probability. When importing HOL-Analysis some theorems need
wenzelm@64390
  1090
additional name spaces prefixes due to name clashes. INCOMPATIBILITY.
wenzelm@64390
  1091
wenzelm@64390
  1092
* Session HOL-Analysis: more complex analysis including Cauchy's
wenzelm@64390
  1093
inequality, Liouville theorem, open mapping theorem, maximum modulus
wenzelm@64390
  1094
principle, Residue theorem, Schwarz Lemma.
wenzelm@64390
  1095
wenzelm@64390
  1096
* Session HOL-Analysis: Theory of polyhedra: faces, extreme points,
wenzelm@64390
  1097
polytopes, and the Krein–Milman Minkowski theorem.
wenzelm@64390
  1098
wenzelm@64390
  1099
* Session HOL-Analysis: Numerous results ported from the HOL Light
wenzelm@64390
  1100
libraries: homeomorphisms, continuous function extensions, invariance of
wenzelm@64390
  1101
domain.
wenzelm@64390
  1102
wenzelm@64390
  1103
* Session HOL-Probability: the type of emeasure and nn_integral was
wenzelm@64390
  1104
changed from ereal to ennreal, INCOMPATIBILITY.
wenzelm@64390
  1105
wenzelm@64390
  1106
  emeasure :: 'a measure \<Rightarrow> 'a set \<Rightarrow> ennreal
wenzelm@64390
  1107
  nn_integral :: 'a measure \<Rightarrow> ('a \<Rightarrow> ennreal) \<Rightarrow> ennreal
wenzelm@64390
  1108
wenzelm@64390
  1109
* Session HOL-Probability: Code generation and QuickCheck for
wenzelm@64390
  1110
Probability Mass Functions.
wenzelm@64390
  1111
wenzelm@64390
  1112
* Session HOL-Probability: theory Random_Permutations contains some
wenzelm@64390
  1113
theory about choosing a permutation of a set uniformly at random and
wenzelm@64390
  1114
folding over a list in random order.
wenzelm@64390
  1115
wenzelm@64390
  1116
* Session HOL-Probability: theory SPMF formalises discrete
wenzelm@64390
  1117
subprobability distributions.
wenzelm@64390
  1118
wenzelm@64390
  1119
* Session HOL-Library: the names of multiset theorems have been
wenzelm@64390
  1120
normalised to distinguish which ordering the theorems are about
wenzelm@64390
  1121
wenzelm@64390
  1122
    mset_less_eqI ~> mset_subset_eqI
wenzelm@64390
  1123
    mset_less_insertD ~> mset_subset_insertD
wenzelm@64390
  1124
    mset_less_eq_count ~> mset_subset_eq_count
wenzelm@64390
  1125
    mset_less_diff_self ~> mset_subset_diff_self
wenzelm@64390
  1126
    mset_le_exists_conv ~> mset_subset_eq_exists_conv
wenzelm@64390
  1127
    mset_le_mono_add_right_cancel ~> mset_subset_eq_mono_add_right_cancel
wenzelm@64390
  1128
    mset_le_mono_add_left_cancel ~> mset_subset_eq_mono_add_left_cancel
wenzelm@64390
  1129
    mset_le_mono_add ~> mset_subset_eq_mono_add
wenzelm@64390
  1130
    mset_le_add_left ~> mset_subset_eq_add_left
wenzelm@64390
  1131
    mset_le_add_right ~> mset_subset_eq_add_right
wenzelm@64390
  1132
    mset_le_single ~> mset_subset_eq_single
wenzelm@64390
  1133
    mset_le_multiset_union_diff_commute ~> mset_subset_eq_multiset_union_diff_commute
wenzelm@64390
  1134
    diff_le_self ~> diff_subset_eq_self
wenzelm@64390
  1135
    mset_leD ~> mset_subset_eqD
wenzelm@64390
  1136
    mset_lessD ~> mset_subsetD
wenzelm@64390
  1137
    mset_le_insertD ~> mset_subset_eq_insertD
wenzelm@64390
  1138
    mset_less_of_empty ~> mset_subset_of_empty
wenzelm@64390
  1139
    mset_less_size ~> mset_subset_size
wenzelm@64390
  1140
    wf_less_mset_rel ~> wf_subset_mset_rel
wenzelm@64390
  1141
    count_le_replicate_mset_le ~> count_le_replicate_mset_subset_eq
wenzelm@64390
  1142
    mset_remdups_le ~> mset_remdups_subset_eq
wenzelm@64390
  1143
    ms_lesseq_impl ~> subset_eq_mset_impl
wenzelm@64390
  1144
wenzelm@64390
  1145
Some functions have been renamed:
wenzelm@64390
  1146
    ms_lesseq_impl -> subset_eq_mset_impl
wenzelm@64390
  1147
wenzelm@64390
  1148
* HOL-Library: multisets are now ordered with the multiset ordering
wenzelm@64390
  1149
    #\<subseteq># ~> \<le>
wenzelm@64390
  1150
    #\<subset># ~> <
wenzelm@64390
  1151
    le_multiset ~> less_eq_multiset
wenzelm@64390
  1152
    less_multiset ~> le_multiset
wenzelm@64390
  1153
INCOMPATIBILITY.
wenzelm@64390
  1154
wenzelm@64390
  1155
* Session HOL-Library: the prefix multiset_order has been discontinued:
wenzelm@64390
  1156
the theorems can be directly accessed. As a consequence, the lemmas
wenzelm@64390
  1157
"order_multiset" and "linorder_multiset" have been discontinued, and the
wenzelm@64390
  1158
interpretations "multiset_linorder" and "multiset_wellorder" have been
wenzelm@64390
  1159
replaced by instantiations. INCOMPATIBILITY.
wenzelm@64390
  1160
wenzelm@64390
  1161
* Session HOL-Library: some theorems about the multiset ordering have
wenzelm@64390
  1162
been renamed:
wenzelm@64390
  1163
wenzelm@64390
  1164
    le_multiset_def ~> less_eq_multiset_def
wenzelm@64390
  1165
    less_multiset_def ~> le_multiset_def
wenzelm@64390
  1166
    less_eq_imp_le_multiset ~> subset_eq_imp_le_multiset
wenzelm@64390
  1167
    mult_less_not_refl ~> mset_le_not_refl
wenzelm@64390
  1168
    mult_less_trans ~> mset_le_trans
wenzelm@64390
  1169
    mult_less_not_sym ~> mset_le_not_sym
wenzelm@64390
  1170
    mult_less_asym ~> mset_le_asym
wenzelm@64390
  1171
    mult_less_irrefl ~> mset_le_irrefl
wenzelm@64390
  1172
    union_less_mono2{,1,2} ~> union_le_mono2{,1,2}
wenzelm@64390
  1173
wenzelm@64390
  1174
    le_multiset\<^sub>H\<^sub>O ~> less_eq_multiset\<^sub>H\<^sub>O
wenzelm@64390
  1175
    le_multiset_total ~> less_eq_multiset_total
wenzelm@64390
  1176
    less_multiset_right_total ~> subset_eq_imp_le_multiset
wenzelm@64390
  1177
    le_multiset_empty_left ~> less_eq_multiset_empty_left
wenzelm@64390
  1178
    le_multiset_empty_right ~> less_eq_multiset_empty_right
wenzelm@64390
  1179
    less_multiset_empty_right ~> le_multiset_empty_left
wenzelm@64390
  1180
    less_multiset_empty_left ~> le_multiset_empty_right
wenzelm@64390
  1181
    union_less_diff_plus ~> union_le_diff_plus
wenzelm@64390
  1182
    ex_gt_count_imp_less_multiset ~> ex_gt_count_imp_le_multiset
wenzelm@64390
  1183
    less_multiset_plus_left_nonempty ~> le_multiset_plus_left_nonempty
wenzelm@64390
  1184
    le_multiset_plus_right_nonempty ~> le_multiset_plus_right_nonempty
wenzelm@64390
  1185
INCOMPATIBILITY.
wenzelm@64390
  1186
wenzelm@64390
  1187
* Session HOL-Library: the lemma mset_map has now the attribute [simp].
wenzelm@64390
  1188
INCOMPATIBILITY.
wenzelm@64390
  1189
wenzelm@64390
  1190
* Session HOL-Library: some theorems about multisets have been removed.
wenzelm@64390
  1191
INCOMPATIBILITY, use the following replacements:
wenzelm@64390
  1192
wenzelm@64390
  1193
    le_multiset_plus_plus_left_iff ~> add_less_cancel_right
wenzelm@64390
  1194
    less_multiset_plus_plus_left_iff ~> add_less_cancel_right
wenzelm@64390
  1195
    le_multiset_plus_plus_right_iff ~> add_less_cancel_left
wenzelm@64390
  1196
    less_multiset_plus_plus_right_iff ~> add_less_cancel_left
wenzelm@64390
  1197
    add_eq_self_empty_iff ~> add_cancel_left_right
wenzelm@64390
  1198
    mset_subset_add_bothsides ~> subset_mset.add_less_cancel_right
wenzelm@64390
  1199
    mset_less_add_bothsides ~> subset_mset.add_less_cancel_right
wenzelm@64390
  1200
    mset_le_add_bothsides ~> subset_mset.add_less_cancel_right
wenzelm@64390
  1201
    empty_inter ~> subset_mset.inf_bot_left
wenzelm@64390
  1202
    inter_empty ~> subset_mset.inf_bot_right
wenzelm@64390
  1203
    empty_sup ~> subset_mset.sup_bot_left
wenzelm@64390
  1204
    sup_empty ~> subset_mset.sup_bot_right
wenzelm@64390
  1205
    bdd_below_multiset ~> subset_mset.bdd_above_bot
wenzelm@64390
  1206
    subset_eq_empty ~> subset_mset.le_zero_eq
wenzelm@64390
  1207
    le_empty ~> subset_mset.le_zero_eq
wenzelm@64390
  1208
    mset_subset_empty_nonempty ~> subset_mset.zero_less_iff_neq_zero
wenzelm@64390
  1209
    mset_less_empty_nonempty ~> subset_mset.zero_less_iff_neq_zero
wenzelm@64390
  1210
wenzelm@64390
  1211
* Session HOL-Library: some typeclass constraints about multisets have
wenzelm@64390
  1212
been reduced from ordered or linordered to preorder. Multisets have the
wenzelm@64390
  1213
additional typeclasses order_bot, no_top,
wenzelm@64390
  1214
ordered_ab_semigroup_add_imp_le, ordered_cancel_comm_monoid_add,
wenzelm@64390
  1215
linordered_cancel_ab_semigroup_add, and
wenzelm@64390
  1216
ordered_ab_semigroup_monoid_add_imp_le. INCOMPATIBILITY.
wenzelm@64390
  1217
wenzelm@64390
  1218
* Session HOL-Library: there are some new simplification rules about
wenzelm@64390
  1219
multisets, the multiset ordering, and the subset ordering on multisets.
wenzelm@64390
  1220
INCOMPATIBILITY.
wenzelm@64390
  1221
wenzelm@64390
  1222
* Session HOL-Library: the subset ordering on multisets has now the
wenzelm@64390
  1223
interpretations ordered_ab_semigroup_monoid_add_imp_le and
wenzelm@64390
  1224
bounded_lattice_bot. INCOMPATIBILITY.
wenzelm@64390
  1225
wenzelm@64390
  1226
* Session HOL-Library, theory Multiset: single has been removed in favor
wenzelm@64390
  1227
of add_mset that roughly corresponds to Set.insert. Some theorems have
wenzelm@64390
  1228
removed or changed:
wenzelm@64390
  1229
wenzelm@64390
  1230
  single_not_empty ~> add_mset_not_empty or empty_not_add_mset
wenzelm@64390
  1231
  fold_mset_insert ~> fold_mset_add_mset
wenzelm@64390
  1232
  image_mset_insert ~> image_mset_add_mset
wenzelm@64390
  1233
  union_single_eq_diff
wenzelm@64390
  1234
  multi_self_add_other_not_self
wenzelm@64390
  1235
  diff_single_eq_union
wenzelm@64390
  1236
INCOMPATIBILITY.
wenzelm@64390
  1237
wenzelm@64390
  1238
* Session HOL-Library, theory Multiset: some theorems have been changed
wenzelm@64390
  1239
to use add_mset instead of single:
wenzelm@64390
  1240
wenzelm@64390
  1241
  mset_add
wenzelm@64390
  1242
  multi_self_add_other_not_self
wenzelm@64390
  1243
  diff_single_eq_union
wenzelm@64390
  1244
  union_single_eq_diff
wenzelm@64390
  1245
  union_single_eq_member
wenzelm@64390
  1246
  add_eq_conv_diff
wenzelm@64390
  1247
  insert_noteq_member
wenzelm@64390
  1248
  add_eq_conv_ex
wenzelm@64390
  1249
  multi_member_split
wenzelm@64390
  1250
  multiset_add_sub_el_shuffle
wenzelm@64390
  1251
  mset_subset_eq_insertD
wenzelm@64390
  1252
  mset_subset_insertD
wenzelm@64390
  1253
  insert_subset_eq_iff
wenzelm@64390
  1254
  insert_union_subset_iff
wenzelm@64390
  1255
  multi_psub_of_add_self
wenzelm@64390
  1256
  inter_add_left1
wenzelm@64390
  1257
  inter_add_left2
wenzelm@64390
  1258
  inter_add_right1
wenzelm@64390
  1259
  inter_add_right2
wenzelm@64390
  1260
  sup_union_left1
wenzelm@64390
  1261
  sup_union_left2
wenzelm@64390
  1262
  sup_union_right1
wenzelm@64390
  1263
  sup_union_right2
wenzelm@64390
  1264
  size_eq_Suc_imp_eq_union
wenzelm@64390
  1265
  multi_nonempty_split
wenzelm@64390
  1266
  mset_insort
wenzelm@64390
  1267
  mset_update
wenzelm@64390
  1268
  mult1I
wenzelm@64390
  1269
  less_add
wenzelm@64390
  1270
  mset_zip_take_Cons_drop_twice
wenzelm@64390
  1271
  rel_mset_Zero
wenzelm@64390
  1272
  msed_map_invL
wenzelm@64390
  1273
  msed_map_invR
wenzelm@64390
  1274
  msed_rel_invL
wenzelm@64390
  1275
  msed_rel_invR
wenzelm@64390
  1276
  le_multiset_right_total
wenzelm@64390
  1277
  multiset_induct
wenzelm@64390
  1278
  multiset_induct2_size
wenzelm@64390
  1279
  multiset_induct2
wenzelm@64390
  1280
INCOMPATIBILITY.
wenzelm@64390
  1281
wenzelm@64390
  1282
* Session HOL-Library, theory Multiset: the definitions of some
wenzelm@64390
  1283
constants have changed to use add_mset instead of adding a single
wenzelm@64390
  1284
element:
wenzelm@64390
  1285
wenzelm@64390
  1286
  image_mset
wenzelm@64390
  1287
  mset
wenzelm@64390
  1288
  replicate_mset
wenzelm@64390
  1289
  mult1
wenzelm@64390
  1290
  pred_mset
wenzelm@64390
  1291
  rel_mset'
wenzelm@64390
  1292
  mset_insort
wenzelm@64390
  1293
wenzelm@64390
  1294
INCOMPATIBILITY.
wenzelm@64390
  1295
wenzelm@64390
  1296
* Session HOL-Library, theory Multiset: due to the above changes, the
wenzelm@64390
  1297
attributes of some multiset theorems have been changed:
wenzelm@64390
  1298
wenzelm@64390
  1299
  insert_DiffM  [] ~> [simp]
wenzelm@64390
  1300
  insert_DiffM2 [simp] ~> []
wenzelm@64390
  1301
  diff_add_mset_swap [simp]
wenzelm@64390
  1302
  fold_mset_add_mset [simp]
wenzelm@64390
  1303
  diff_diff_add [simp] (for multisets only)
wenzelm@64390
  1304
  diff_cancel [simp] ~> []
wenzelm@64390
  1305
  count_single [simp] ~> []
wenzelm@64390
  1306
  set_mset_single [simp] ~> []
wenzelm@64390
  1307
  size_multiset_single [simp] ~> []
wenzelm@64390
  1308
  size_single [simp] ~> []
wenzelm@64390
  1309
  image_mset_single [simp] ~> []
wenzelm@64390
  1310
  mset_subset_eq_mono_add_right_cancel [simp] ~> []
wenzelm@64390
  1311
  mset_subset_eq_mono_add_left_cancel [simp] ~> []
wenzelm@64390
  1312
  fold_mset_single [simp] ~> []
wenzelm@64390
  1313
  subset_eq_empty [simp] ~> []
wenzelm@64390
  1314
  empty_sup [simp] ~> []
wenzelm@64390
  1315
  sup_empty [simp] ~> []
wenzelm@64390
  1316
  inter_empty [simp] ~> []
wenzelm@64390
  1317
  empty_inter [simp] ~> []
wenzelm@64390
  1318
INCOMPATIBILITY.
wenzelm@64390
  1319
wenzelm@64391
  1320
* Session HOL-Library, theory Multiset: the order of the variables in
wenzelm@64390
  1321
the second cases of multiset_induct, multiset_induct2_size,
wenzelm@64390
  1322
multiset_induct2 has been changed (e.g. Add A a ~> Add a A).
wenzelm@64390
  1323
INCOMPATIBILITY.
wenzelm@64390
  1324
wenzelm@64390
  1325
* Session HOL-Library, theory Multiset: there is now a simplification
wenzelm@64390
  1326
procedure on multisets. It mimics the behavior of the procedure on
wenzelm@64390
  1327
natural numbers. INCOMPATIBILITY.
wenzelm@64390
  1328
wenzelm@64390
  1329
* Session HOL-Library, theory Multiset: renamed sums and products of
wenzelm@64390
  1330
multisets:
wenzelm@64390
  1331
wenzelm@64390
  1332
  msetsum ~> sum_mset
wenzelm@64390
  1333
  msetprod ~> prod_mset
wenzelm@64390
  1334
wenzelm@64390
  1335
* Session HOL-Library, theory Multiset: the notation for intersection
wenzelm@64390
  1336
and union of multisets have been changed:
wenzelm@64390
  1337
wenzelm@64390
  1338
  #\<inter> ~> \<inter>#
wenzelm@64390
  1339
  #\<union> ~> \<union>#
wenzelm@64390
  1340
wenzelm@64390
  1341
INCOMPATIBILITY.
wenzelm@64390
  1342
wenzelm@64390
  1343
* Session HOL-Library, theory Multiset: the lemma
wenzelm@64390
  1344
one_step_implies_mult_aux on multisets has been removed, use
wenzelm@64390
  1345
one_step_implies_mult instead. INCOMPATIBILITY.
wenzelm@64390
  1346
wenzelm@64390
  1347
* Session HOL-Library: theory Complete_Partial_Order2 provides reasoning
wenzelm@64390
  1348
support for monotonicity and continuity in chain-complete partial orders
wenzelm@64390
  1349
and about admissibility conditions for fixpoint inductions.
wenzelm@64390
  1350
haftmann@64523
  1351
* Session HOL-Library: theory Library/Polynomial contains also
haftmann@64523
  1352
derivation of polynomials (formerly in Library/Poly_Deriv) but not
haftmann@64523
  1353
gcd/lcm on polynomials over fields. This has been moved to a separate
haftmann@64523
  1354
theory Library/Polynomial_GCD_euclidean.thy, to pave way for a possible
haftmann@64523
  1355
future different type class instantiation for polynomials over factorial
haftmann@64523
  1356
rings. INCOMPATIBILITY.
wenzelm@64390
  1357
wenzelm@64390
  1358
* Session HOL-Library: theory Sublist provides function "prefixes" with
wenzelm@64390
  1359
the following renaming
wenzelm@64390
  1360
wenzelm@64390
  1361
  prefixeq -> prefix
wenzelm@64390
  1362
  prefix -> strict_prefix
wenzelm@64390
  1363
  suffixeq -> suffix
wenzelm@64390
  1364
  suffix -> strict_suffix
wenzelm@64390
  1365
wenzelm@64390
  1366
Added theory of longest common prefixes.
blanchet@64389
  1367
wenzelm@64391
  1368
* Session HOL-Number_Theory: algebraic foundation for primes:
wenzelm@64391
  1369
Generalisation of predicate "prime" and introduction of predicates
wenzelm@64391
  1370
"prime_elem", "irreducible", a "prime_factorization" function, and the
wenzelm@64391
  1371
"factorial_ring" typeclass with instance proofs for nat, int, poly. Some
wenzelm@64391
  1372
theorems now have different names, most notably "prime_def" is now
wenzelm@64391
  1373
"prime_nat_iff". INCOMPATIBILITY.
wenzelm@64391
  1374
wenzelm@64391
  1375
* Session Old_Number_Theory has been removed, after porting remaining
wenzelm@64391
  1376
theories.
wenzelm@64391
  1377
wenzelm@64551
  1378
* Session HOL-Types_To_Sets provides an experimental extension of
wenzelm@64551
  1379
Higher-Order Logic to allow translation of types to sets.
wenzelm@64551
  1380
wenzelm@63198
  1381
wenzelm@62498
  1382
*** ML ***
wenzelm@62498
  1383
wenzelm@63227
  1384
* Integer.gcd and Integer.lcm use efficient operations from the Poly/ML
wenzelm@63228
  1385
library (notably for big integers). Subtle change of semantics:
wenzelm@63228
  1386
Integer.gcd and Integer.lcm both normalize the sign, results are never
wenzelm@63228
  1387
negative. This coincides with the definitions in HOL/GCD.thy.
wenzelm@63228
  1388
INCOMPATIBILITY.
wenzelm@63227
  1389
wenzelm@63212
  1390
* Structure Rat for rational numbers is now an integral part of
wenzelm@63215
  1391
Isabelle/ML, with special notation @int/nat or @int for numerals (an
wenzelm@63215
  1392
abbreviation for antiquotation @{Pure.rat argument}) and ML pretty
wenzelm@63212
  1393
printing. Standard operations on type Rat.rat are provided via ad-hoc
wenzelm@63215
  1394
overloading of + - * / < <= > >= ~ abs. INCOMPATIBILITY, need to
wenzelm@63212
  1395
use + instead of +/ etc. Moreover, exception Rat.DIVZERO has been
wenzelm@63212
  1396
superseded by General.Div.
wenzelm@63198
  1397
wenzelm@64390
  1398
* ML antiquotation @{path} is superseded by @{file}, which ensures that
wenzelm@64390
  1399
the argument is a plain file. Minor INCOMPATIBILITY.
wenzelm@64390
  1400
wenzelm@64390
  1401
* Antiquotation @{make_string} is available during Pure bootstrap --
wenzelm@64390
  1402
with approximative output quality.
wenzelm@64390
  1403
wenzelm@64390
  1404
* Low-level ML system structures (like PolyML and RunCall) are no longer
wenzelm@64390
  1405
exposed to Isabelle/ML user-space. Potential INCOMPATIBILITY.
wenzelm@64390
  1406
wenzelm@62861
  1407
* The ML function "ML" provides easy access to run-time compilation.
wenzelm@62861
  1408
This is particularly useful for conditional compilation, without
wenzelm@62861
  1409
requiring separate files.
wenzelm@62861
  1410
wenzelm@62498
  1411
* Option ML_exception_debugger controls detailed exception trace via the
wenzelm@62498
  1412
Poly/ML debugger. Relevant ML modules need to be compiled beforehand
wenzelm@62498
  1413
with ML_file_debug, or with ML_file and option ML_debugger enabled. Note
wenzelm@62498
  1414
debugger information requires consirable time and space: main
wenzelm@62498
  1415
Isabelle/HOL with full debugger support may need ML_system_64.
wenzelm@62498
  1416
wenzelm@62514
  1417
* Local_Theory.restore has been renamed to Local_Theory.reset to
wenzelm@62514
  1418
emphasize its disruptive impact on the cumulative context, notably the
wenzelm@62514
  1419
scope of 'private' or 'qualified' names. Note that Local_Theory.reset is
wenzelm@62514
  1420
only appropriate when targets are managed, e.g. starting from a global
wenzelm@62514
  1421
theory and returning to it. Regular definitional packages should use
wenzelm@62514
  1422
balanced blocks of Local_Theory.open_target versus
wenzelm@62514
  1423
Local_Theory.close_target instead. Rare INCOMPATIBILITY.
wenzelm@62514
  1424
wenzelm@62519
  1425
* Structure TimeLimit (originally from the SML/NJ library) has been
wenzelm@62519
  1426
replaced by structure Timeout, with slightly different signature.
wenzelm@62519
  1427
INCOMPATIBILITY.
wenzelm@62519
  1428
wenzelm@62551
  1429
* Discontinued cd and pwd operations, which are not well-defined in a
wenzelm@62551
  1430
multi-threaded environment. Note that files are usually located
wenzelm@62551
  1431
relatively to the master directory of a theory (see also
wenzelm@62551
  1432
File.full_path). Potential INCOMPATIBILITY.
wenzelm@62551
  1433
wenzelm@63352
  1434
* Binding.empty_atts supersedes Thm.empty_binding and
wenzelm@63352
  1435
Attrib.empty_binding. Minor INCOMPATIBILITY.
wenzelm@63352
  1436
wenzelm@62498
  1437
wenzelm@62354
  1438
*** System ***
wenzelm@62354
  1439
wenzelm@64390
  1440
* SML/NJ and old versions of Poly/ML are no longer supported.
wenzelm@64390
  1441
wenzelm@64390
  1442
* Poly/ML heaps now follow the hierarchy of sessions, and thus require
wenzelm@64390
  1443
much less disk space.
wenzelm@63226
  1444
wenzelm@62591
  1445
* The Isabelle ML process is now managed directly by Isabelle/Scala, and
wenzelm@62591
  1446
shell scripts merely provide optional command-line access. In
wenzelm@62591
  1447
particular:
wenzelm@62591
  1448
wenzelm@62591
  1449
  . Scala module ML_Process to connect to the raw ML process,
wenzelm@62591
  1450
    with interaction via stdin/stdout/stderr or in batch mode;
wenzelm@62591
  1451
  . command-line tool "isabelle console" as interactive wrapper;
wenzelm@62591
  1452
  . command-line tool "isabelle process" as batch mode wrapper.
wenzelm@62588
  1453
wenzelm@62588
  1454
* The executable "isabelle_process" has been discontinued. Tools and
wenzelm@62588
  1455
prover front-ends should use ML_Process or Isabelle_Process in
wenzelm@62591
  1456
Isabelle/Scala. INCOMPATIBILITY.
wenzelm@62588
  1457
wenzelm@62588
  1458
* New command-line tool "isabelle process" supports ML evaluation of
wenzelm@62588
  1459
literal expressions (option -e) or files (option -f) in the context of a
wenzelm@62588
  1460
given heap image. Errors lead to premature exit of the ML process with
wenzelm@62588
  1461
return code 1.
wenzelm@62588
  1462
wenzelm@64390
  1463
* The command-line tool "isabelle build" supports option -N for cyclic
wenzelm@64390
  1464
shuffling of NUMA CPU nodes. This may help performance tuning on Linux
wenzelm@64390
  1465
servers with separate CPU/memory modules.
wenzelm@64390
  1466
wenzelm@64390
  1467
* System option "threads" (for the size of the Isabelle/ML thread farm)
wenzelm@64390
  1468
is also passed to the underlying ML runtime system as --gcthreads,
wenzelm@64274
  1469
unless there is already a default provided via ML_OPTIONS settings.
wenzelm@64274
  1470
wenzelm@63827
  1471
* System option "checkpoint" helps to fine-tune the global heap space
wenzelm@63827
  1472
management of isabelle build. This is relevant for big sessions that may
wenzelm@63827
  1473
exhaust the small 32-bit address space of the ML process (which is used
wenzelm@63827
  1474
by default).
wenzelm@63827
  1475
wenzelm@64308
  1476
* System option "profiling" specifies the mode for global ML profiling
wenzelm@64342
  1477
in "isabelle build". Possible values are "time", "allocations". The
wenzelm@64342
  1478
command-line tool "isabelle profiling_report" helps to digest the
wenzelm@64342
  1479
resulting log files.
wenzelm@64308
  1480
wenzelm@63986
  1481
* System option "ML_process_policy" specifies an optional command prefix
wenzelm@63986
  1482
for the underlying ML process, e.g. to control CPU affinity on
wenzelm@63987
  1483
multiprocessor systems. The "isabelle jedit" tool allows to override the
wenzelm@63987
  1484
implicit default via option -p.
wenzelm@63986
  1485
wenzelm@64390
  1486
* Command-line tool "isabelle console" provides option -r to help to
wenzelm@64390
  1487
bootstrapping Isabelle/Pure interactively.
wenzelm@64390
  1488
wenzelm@64390
  1489
* Command-line tool "isabelle yxml" has been discontinued.
wenzelm@64390
  1490
INCOMPATIBILITY, use operations from the modules "XML" and "YXML" in
wenzelm@64390
  1491
Isabelle/ML or Isabelle/Scala.
wenzelm@64390
  1492
wenzelm@64390
  1493
* Many Isabelle tools that require a Java runtime system refer to the
wenzelm@64390
  1494
settings ISABELLE_TOOL_JAVA_OPTIONS32 / ISABELLE_TOOL_JAVA_OPTIONS64,
wenzelm@64390
  1495
depending on the underlying platform. The settings for "isabelle build"
wenzelm@64390
  1496
ISABELLE_BUILD_JAVA_OPTIONS32 / ISABELLE_BUILD_JAVA_OPTIONS64 have been
wenzelm@64390
  1497
discontinued. Potential INCOMPATIBILITY.
wenzelm@64390
  1498
wenzelm@64390
  1499
* The Isabelle system environment always ensures that the main
wenzelm@64390
  1500
executables are found within the shell search $PATH: "isabelle" and
wenzelm@64390
  1501
"isabelle_scala_script".
wenzelm@64390
  1502
wenzelm@64390
  1503
* Isabelle tools may consist of .scala files: the Scala compiler is
wenzelm@64390
  1504
invoked on the spot. The source needs to define some object that extends
wenzelm@64390
  1505
Isabelle_Tool.Body.
wenzelm@64390
  1506
wenzelm@64390
  1507
* File.bash_string, File.bash_path etc. represent Isabelle/ML and
wenzelm@64390
  1508
Isabelle/Scala strings authentically within GNU bash. This is useful to
wenzelm@64390
  1509
produce robust shell scripts under program control, without worrying
wenzelm@64390
  1510
about spaces or special characters. Note that user output works via
wenzelm@64390
  1511
Path.print (ML) or Path.toString (Scala). INCOMPATIBILITY, the old (and
wenzelm@64390
  1512
less versatile) operations File.shell_quote, File.shell_path etc. have
wenzelm@64390
  1513
been discontinued.
wenzelm@64390
  1514
wenzelm@63995
  1515
* The isabelle_java executable allows to run a Java process within the
wenzelm@63995
  1516
name space of Java and Scala components that are bundled with Isabelle,
wenzelm@63995
  1517
but without the Isabelle settings environment.
wenzelm@63995
  1518
wenzelm@64390
  1519
* Isabelle/Scala: the SSH module supports ssh and sftp connections, for
wenzelm@64390
  1520
remote command-execution and file-system access. This resembles
wenzelm@64390
  1521
operations from module File and Isabelle_System to some extent. Note
wenzelm@64390
  1522
that Path specifications need to be resolved remotely via
wenzelm@64390
  1523
ssh.remote_path instead of File.standard_path: the implicit process
wenzelm@64390
  1524
environment is different, Isabelle settings are not available remotely.
wenzelm@64390
  1525
wenzelm@64390
  1526
* Isabelle/Scala: the Mercurial module supports repositories via the
wenzelm@64390
  1527
regular hg command-line interface. The repositroy clone and working
wenzelm@64390
  1528
directory may reside on a local or remote file-system (via ssh
wenzelm@64390
  1529
connection).
wenzelm@64265
  1530
wenzelm@62354
  1531
wenzelm@62354
  1532
wenzelm@62031
  1533
New in Isabelle2016 (February 2016)
wenzelm@62016
  1534
-----------------------------------
wenzelm@60138
  1535
wenzelm@61337
  1536
*** General ***
wenzelm@61337
  1537
wenzelm@62168
  1538
* Eisbach is now based on Pure instead of HOL. Objects-logics may import
wenzelm@62168
  1539
either the theory ~~/src/HOL/Eisbach/Eisbach (for HOL etc.) or
wenzelm@62168
  1540
~~/src/HOL/Eisbach/Eisbach_Old_Appl_Syntax (for FOL, ZF etc.). Note that
wenzelm@62168
  1541
the HOL-Eisbach session located in ~~/src/HOL/Eisbach/ contains further
wenzelm@62168
  1542
examples that do require HOL.
wenzelm@62168
  1543
wenzelm@62157
  1544
* Better resource usage on all platforms (Linux, Windows, Mac OS X) for
wenzelm@62157
  1545
both Isabelle/ML and Isabelle/Scala.  Slightly reduced heap space usage.
wenzelm@62157
  1546
wenzelm@62017
  1547
* Former "xsymbols" syntax with Isabelle symbols is used by default,
wenzelm@62017
  1548
without any special print mode. Important ASCII replacement syntax
wenzelm@62017
  1549
remains available under print mode "ASCII", but less important syntax
wenzelm@62017
  1550
has been removed (see below).
wenzelm@62017
  1551
wenzelm@62109
  1552
* Support for more arrow symbols, with rendering in LaTeX and Isabelle
wenzelm@62109
  1553
fonts: \<Lleftarrow> \<Rrightarrow> \<longlongleftarrow> \<longlongrightarrow> \<longlonglongleftarrow> \<longlonglongrightarrow>.
wenzelm@62017
  1554
wenzelm@62108
  1555
* Special notation \<struct> for the first implicit 'structure' in the
wenzelm@62108
  1556
context has been discontinued. Rare INCOMPATIBILITY, use explicit
wenzelm@62108
  1557
structure name instead, notably in indexed notation with block-subscript
wenzelm@62108
  1558
(e.g. \<odot>\<^bsub>A\<^esub>).
wenzelm@62108
  1559
wenzelm@62108
  1560
* The glyph for \<diamond> in the IsabelleText font now corresponds better to its
wenzelm@62108
  1561
counterpart \<box> as quantifier-like symbol. A small diamond is available as
wenzelm@62108
  1562
\<diamondop>; the old symbol \<struct> loses this rendering and any special
wenzelm@62108
  1563
meaning.
wenzelm@62108
  1564
wenzelm@62017
  1565
* Syntax for formal comments "-- text" now also supports the symbolic
wenzelm@62017
  1566
form "\<comment> text". Command-line tool "isabelle update_cartouches -c" helps
wenzelm@62017
  1567
to update old sources.
wenzelm@62017
  1568
wenzelm@61337
  1569
* Toplevel theorem statements have been simplified as follows:
wenzelm@61337
  1570
wenzelm@61337
  1571
  theorems             ~>  lemmas
wenzelm@61337
  1572
  schematic_lemma      ~>  schematic_goal
wenzelm@61337
  1573
  schematic_theorem    ~>  schematic_goal
wenzelm@61337
  1574
  schematic_corollary  ~>  schematic_goal
wenzelm@61337
  1575
wenzelm@61337
  1576
Command-line tool "isabelle update_theorems" updates theory sources
wenzelm@61337
  1577
accordingly.
wenzelm@61337
  1578
wenzelm@61338
  1579
* Toplevel theorem statement 'proposition' is another alias for
wenzelm@61338
  1580
'theorem'.
wenzelm@61338
  1581
wenzelm@62169
  1582
* The old 'defs' command has been removed (legacy since Isabelle2014).
wenzelm@62169
  1583
INCOMPATIBILITY, use regular 'definition' instead. Overloaded and/or
wenzelm@62169
  1584
deferred definitions require a surrounding 'overloading' block.
wenzelm@62169
  1585
wenzelm@61337
  1586
wenzelm@60610
  1587
*** Prover IDE -- Isabelle/Scala/jEdit ***
wenzelm@60610
  1588
wenzelm@60986
  1589
* IDE support for the source-level debugger of Poly/ML, to work with
wenzelm@62253
  1590
Isabelle/ML and official Standard ML. Option "ML_debugger" and commands
wenzelm@62253
  1591
'ML_file_debug', 'ML_file_no_debug', 'SML_file_debug',
wenzelm@62253
  1592
'SML_file_no_debug' control compilation of sources with or without
wenzelm@62253
  1593
debugging information. The Debugger panel allows to set breakpoints (via
wenzelm@62253
  1594
context menu), step through stopped threads, evaluate local ML
wenzelm@62253
  1595
expressions etc. At least one Debugger view needs to be active to have
wenzelm@62253
  1596
any effect on the running ML program.
wenzelm@60984
  1597
wenzelm@61803
  1598
* The State panel manages explicit proof state output, with dynamic
wenzelm@61803
  1599
auto-update according to cursor movement. Alternatively, the jEdit
wenzelm@61803
  1600
action "isabelle.update-state" (shortcut S+ENTER) triggers manual
wenzelm@61803
  1601
update.
wenzelm@61729
  1602
wenzelm@61729
  1603
* The Output panel no longer shows proof state output by default, to
wenzelm@61729
  1604
avoid GUI overcrowding. INCOMPATIBILITY, use the State panel instead or
wenzelm@61729
  1605
enable option "editor_output_state".
wenzelm@61215
  1606
wenzelm@61803
  1607
* The text overview column (status of errors, warnings etc.) is updated
wenzelm@61803
  1608
asynchronously, leading to much better editor reactivity. Moreover, the
wenzelm@61803
  1609
full document node content is taken into account. The width of the
wenzelm@61803
  1610
column is scaled according to the main text area font, for improved
wenzelm@61803
  1611
visibility.
wenzelm@61803
  1612
wenzelm@61803
  1613
* The main text area no longer changes its color hue in outdated
wenzelm@61803
  1614
situations. The text overview column takes over the role to indicate
wenzelm@61803
  1615
unfinished edits in the PIDE pipeline. This avoids flashing text display
wenzelm@61803
  1616
due to ad-hoc updates by auxiliary GUI components, such as the State
wenzelm@61803
  1617
panel.
wenzelm@61803
  1618
wenzelm@62254
  1619
* Slightly improved scheduling for urgent print tasks (e.g. command
wenzelm@62254
  1620
state output, interactive queries) wrt. long-running background tasks.
wenzelm@62017
  1621
wenzelm@62017
  1622
* Completion of symbols via prefix of \<name> or \<^name> or \name is
wenzelm@62017
  1623
always possible, independently of the language context. It is never
wenzelm@62017
  1624
implicit: a popup will show up unconditionally.
wenzelm@62017
  1625
wenzelm@62017
  1626
* Additional abbreviations for syntactic completion may be specified in
wenzelm@62017
  1627
$ISABELLE_HOME/etc/abbrevs and $ISABELLE_HOME_USER/etc/abbrevs, with
wenzelm@62017
  1628
support for simple templates using ASCII 007 (bell) as placeholder.
wenzelm@62017
  1629
wenzelm@62234
  1630
* Symbols \<oplus>, \<Oplus>, \<otimes>, \<Otimes>, \<odot>, \<Odot>, \<ominus>, \<oslash> no longer provide abbreviations for
wenzelm@62234
  1631
completion like "+o", "*o", ".o" etc. -- due to conflicts with other
wenzelm@62234
  1632
ASCII syntax. INCOMPATIBILITY, use plain backslash-completion or define
wenzelm@62234
  1633
suitable abbreviations in $ISABELLE_HOME_USER/etc/abbrevs.
wenzelm@62234
  1634
wenzelm@61483
  1635
* Action "isabelle-emph" (with keyboard shortcut C+e LEFT) controls
wenzelm@61483
  1636
emphasized text style; the effect is visible in document output, not in
wenzelm@61483
  1637
the editor.
wenzelm@61483
  1638
wenzelm@61483
  1639
* Action "isabelle-reset" now uses keyboard shortcut C+e BACK_SPACE,
wenzelm@61483
  1640
instead of former C+e LEFT.
wenzelm@61483
  1641
wenzelm@61512
  1642
* The command-line tool "isabelle jedit" and the isabelle.Main
wenzelm@62027
  1643
application wrapper treat the default $USER_HOME/Scratch.thy more
wenzelm@61512
  1644
uniformly, and allow the dummy file argument ":" to open an empty buffer
wenzelm@61512
  1645
instead.
wenzelm@61512
  1646
wenzelm@62017
  1647
* New command-line tool "isabelle jedit_client" allows to connect to an
wenzelm@62017
  1648
already running Isabelle/jEdit process. This achieves the effect of
wenzelm@62017
  1649
single-instance applications seen on common GUI desktops.
wenzelm@62017
  1650
wenzelm@61529
  1651
* The default look-and-feel for Linux is the traditional "Metal", which
wenzelm@61529
  1652
works better with GUI scaling for very high-resolution displays (e.g.
wenzelm@61529
  1653
4K). Moreover, it is generally more robust than "Nimbus".
wenzelm@61529
  1654
wenzelm@62163
  1655
* Update to jedit-5.3.0, with improved GUI scaling and support of
wenzelm@62163
  1656
high-resolution displays (e.g. 4K).
wenzelm@62163
  1657
wenzelm@62034
  1658
* The main Isabelle executable is managed as single-instance Desktop
wenzelm@62034
  1659
application uniformly on all platforms: Linux, Windows, Mac OS X.
wenzelm@62034
  1660
wenzelm@60610
  1661
wenzelm@61405
  1662
*** Document preparation ***
wenzelm@61405
  1663
wenzelm@62017
  1664
* Commands 'paragraph' and 'subparagraph' provide additional section
wenzelm@62017
  1665
headings. Thus there are 6 levels of standard headings, as in HTML.
wenzelm@62017
  1666
wenzelm@62017
  1667
* Command 'text_raw' has been clarified: input text is processed as in
wenzelm@62017
  1668
'text' (with antiquotations and control symbols). The key difference is
wenzelm@62017
  1669
the lack of the surrounding isabelle markup environment in output.
wenzelm@62017
  1670
wenzelm@62017
  1671
* Text is structured in paragraphs and nested lists, using notation that
wenzelm@62017
  1672
is similar to Markdown. The control symbols for list items are as
wenzelm@62017
  1673
follows:
wenzelm@62017
  1674
wenzelm@62017
  1675
  \<^item>  itemize
wenzelm@62017
  1676
  \<^enum>  enumerate
wenzelm@62017
  1677
  \<^descr>  description
wenzelm@62017
  1678
wenzelm@61491
  1679
* There is a new short form for antiquotations with a single argument
wenzelm@61491
  1680
that is a cartouche: \<^name>\<open>...\<close> is equivalent to @{name \<open>...\<close>} and
wenzelm@61595
  1681
\<open>...\<close> without control symbol is equivalent to @{cartouche \<open>...\<close>}.
wenzelm@61595
  1682
\<^name> without following cartouche is equivalent to @{name}. The
wenzelm@61501
  1683
standard Isabelle fonts provide glyphs to render important control
wenzelm@61501
  1684
symbols, e.g. "\<^verbatim>", "\<^emph>", "\<^bold>".
wenzelm@61491
  1685
wenzelm@61595
  1686
* Antiquotations @{noindent}, @{smallskip}, @{medskip}, @{bigskip} with
wenzelm@61595
  1687
corresponding control symbols \<^noindent>, \<^smallskip>, \<^medskip>, \<^bigskip> specify spacing formally, using
wenzelm@61595
  1688
standard LaTeX macros of the same names.
wenzelm@61595
  1689
wenzelm@61491
  1690
* Antiquotation @{cartouche} in Isabelle/Pure is the same as @{text}.
wenzelm@61491
  1691
Consequently, \<open>...\<close> without any decoration prints literal quasi-formal
wenzelm@61492
  1692
text. Command-line tool "isabelle update_cartouches -t" helps to update
wenzelm@61492
  1693
old sources, by approximative patching of the content of string and
wenzelm@61492
  1694
cartouche tokens seen in theory sources.
wenzelm@61491
  1695
wenzelm@61491
  1696
* The @{text} antiquotation now ignores the antiquotation option
wenzelm@61491
  1697
"source". The given text content is output unconditionally, without any
wenzelm@61491
  1698
surrounding quotes etc. Subtle INCOMPATIBILITY, put quotes into the
wenzelm@61494
  1699
argument where they are really intended, e.g. @{text \<open>"foo"\<close>}. Initial
wenzelm@61494
  1700
or terminal spaces are ignored.
wenzelm@61491
  1701
wenzelm@62017
  1702
* Antiquotations @{emph} and @{bold} output LaTeX source recursively,
wenzelm@62017
  1703
adding appropriate text style markup. These may be used in the short
wenzelm@62017
  1704
form \<^emph>\<open>...\<close> and \<^bold>\<open>...\<close>.
wenzelm@62017
  1705
wenzelm@62017
  1706
* Document antiquotation @{footnote} outputs LaTeX source recursively,
wenzelm@62017
  1707
marked as \footnote{}. This may be used in the short form \<^footnote>\<open>...\<close>.
wenzelm@62017
  1708
wenzelm@62017
  1709
* Antiquotation @{verbatim [display]} supports option "indent".
wenzelm@62017
  1710
wenzelm@62017
  1711
* Antiquotation @{theory_text} prints uninterpreted theory source text
wenzelm@62231
  1712
(Isar outer syntax with command keywords etc.). This may be used in the
wenzelm@62231
  1713
short form \<^theory_text>\<open>...\<close>. @{theory_text [display]} supports option "indent".
wenzelm@62017
  1714
wenzelm@62017
  1715
* Antiquotation @{doc ENTRY} provides a reference to the given
wenzelm@62017
  1716
documentation, with a hyperlink in the Prover IDE.
wenzelm@62017
  1717
wenzelm@62017
  1718
* Antiquotations @{command}, @{method}, @{attribute} print checked
wenzelm@62017
  1719
entities of the Isar language.
wenzelm@62017
  1720
wenzelm@61471
  1721
* HTML presentation uses the standard IsabelleText font and Unicode
wenzelm@61471
  1722
rendering of Isabelle symbols like Isabelle/Scala/jEdit.  The former
wenzelm@61488
  1723
print mode "HTML" loses its special meaning.
wenzelm@61471
  1724
wenzelm@61405
  1725
wenzelm@60406
  1726
*** Isar ***
wenzelm@60406
  1727
wenzelm@62205
  1728
* Local goals ('have', 'show', 'hence', 'thus') allow structured rule
wenzelm@62205
  1729
statements like fixes/assumes/shows in theorem specifications, but the
wenzelm@62205
  1730
notation is postfix with keywords 'if' (or 'when') and 'for'. For
wenzelm@60555
  1731
example:
wenzelm@60414
  1732
wenzelm@60414
  1733
  have result: "C x y"
wenzelm@60414
  1734
    if "A x" and "B y"
wenzelm@60414
  1735
    for x :: 'a and y :: 'a
wenzelm@60414
  1736
    <proof>
wenzelm@60414
  1737
wenzelm@60449
  1738
The local assumptions are bound to the name "that". The result is
wenzelm@60449
  1739
exported from context of the statement as usual. The above roughly
wenzelm@60414
  1740
corresponds to a raw proof block like this:
wenzelm@60414
  1741
wenzelm@60414
  1742
  {
wenzelm@60414
  1743
    fix x :: 'a and y :: 'a
wenzelm@60449
  1744
    assume that: "A x" "B y"
wenzelm@60414
  1745
    have "C x y" <proof>
wenzelm@60414
  1746
  }
wenzelm@60414
  1747
  note result = this
wenzelm@60406
  1748
wenzelm@60555
  1749
The keyword 'when' may be used instead of 'if', to indicate 'presume'
wenzelm@60555
  1750
instead of 'assume' above.
wenzelm@60555
  1751
wenzelm@61733
  1752
* Assumptions ('assume', 'presume') allow structured rule statements
wenzelm@61733
  1753
using 'if' and 'for', similar to 'have' etc. above. For example:
wenzelm@61658
  1754
wenzelm@61658
  1755
  assume result: "C x y"
wenzelm@61658
  1756
    if "A x" and "B y"
wenzelm@61658
  1757
    for x :: 'a and y :: 'a
wenzelm@61658
  1758
wenzelm@61658
  1759
This assumes "\<And>x y::'a. A x \<Longrightarrow> B y \<Longrightarrow> C x y" and produces a general
wenzelm@61658
  1760
result as usual: "A ?x \<Longrightarrow> B ?y \<Longrightarrow> C ?x ?y".
wenzelm@61658
  1761
wenzelm@61658
  1762
Vacuous quantification in assumptions is omitted, i.e. a for-context
wenzelm@61658
  1763
only effects propositions according to actual use of variables. For
wenzelm@61658
  1764
example:
wenzelm@61658
  1765
wenzelm@61658
  1766
  assume "A x" and "B y" for x and y
wenzelm@61658
  1767
wenzelm@61658
  1768
is equivalent to:
wenzelm@61658
  1769
wenzelm@61658
  1770
  assume "\<And>x. A x" and "\<And>y. B y"
wenzelm@61658
  1771
wenzelm@60595
  1772
* The meaning of 'show' with Pure rule statements has changed: premises
wenzelm@60595
  1773
are treated in the sense of 'assume', instead of 'presume'. This means,
wenzelm@62205
  1774
a goal like "\<And>x. A x \<Longrightarrow> B x \<Longrightarrow> C x" can be solved completely as
wenzelm@62205
  1775
follows:
wenzelm@60595
  1776
wenzelm@60595
  1777
  show "\<And>x. A x \<Longrightarrow> B x \<Longrightarrow> C x"
wenzelm@60595
  1778
wenzelm@60595
  1779
or:
wenzelm@60595
  1780
wenzelm@60595
  1781
  show "C x" if "A x" "B x" for x
wenzelm@60595
  1782
wenzelm@60595
  1783
Rare INCOMPATIBILITY, the old behaviour may be recovered as follows:
wenzelm@60595
  1784
wenzelm@60595
  1785
  show "C x" when "A x" "B x" for x
wenzelm@60595
  1786
wenzelm@60459
  1787
* New command 'consider' states rules for generalized elimination and
wenzelm@60459
  1788
case splitting. This is like a toplevel statement "theorem obtains" used
wenzelm@60459
  1789
within a proof body; or like a multi-branch 'obtain' without activation
wenzelm@60459
  1790
of the local context elements yet.
wenzelm@60459
  1791
wenzelm@60455
  1792
* Proof method "cases" allows to specify the rule as first entry of
wenzelm@60455
  1793
chained facts.  This is particularly useful with 'consider':
wenzelm@60455
  1794
wenzelm@60455
  1795
  consider (a) A | (b) B | (c) C <proof>
wenzelm@60455
  1796
  then have something
wenzelm@60455
  1797
  proof cases
wenzelm@60455
  1798
    case a
wenzelm@60455
  1799
    then show ?thesis <proof>
wenzelm@60455
  1800
  next
wenzelm@60455
  1801
    case b
wenzelm@60455
  1802
    then show ?thesis <proof>
wenzelm@60455
  1803
  next
wenzelm@60455
  1804
    case c
wenzelm@60455
  1805
    then show ?thesis <proof>
wenzelm@60455
  1806
  qed
wenzelm@60455
  1807
wenzelm@60565
  1808
* Command 'case' allows fact name and attribute specification like this:
wenzelm@60565
  1809
wenzelm@60565
  1810
  case a: (c xs)
wenzelm@60565
  1811
  case a [attributes]: (c xs)
wenzelm@60565
  1812
wenzelm@60565
  1813
Facts that are introduced by invoking the case context are uniformly
wenzelm@60565
  1814
qualified by "a"; the same name is used for the cumulative fact. The old
wenzelm@60565
  1815
form "case (c xs) [attributes]" is no longer supported. Rare
wenzelm@60565
  1816
INCOMPATIBILITY, need to adapt uses of case facts in exotic situations,
wenzelm@60565
  1817
and always put attributes in front.
wenzelm@60565
  1818
wenzelm@60618
  1819
* The standard proof method of commands 'proof' and '..' is now called
wenzelm@60618
  1820
"standard" to make semantically clear what it is; the old name "default"
wenzelm@60618
  1821
is still available as legacy for some time. Documentation now explains
wenzelm@60618
  1822
'..' more accurately as "by standard" instead of "by rule".
wenzelm@60618
  1823
wenzelm@62017
  1824
* Nesting of Isar goal structure has been clarified: the context after
wenzelm@62017
  1825
the initial backwards refinement is retained for the whole proof, within
wenzelm@62017
  1826
all its context sections (as indicated via 'next'). This is e.g.
wenzelm@62017
  1827
relevant for 'using', 'including', 'supply':
wenzelm@62017
  1828
wenzelm@62017
  1829
  have "A \<and> A" if a: A for A
wenzelm@62017
  1830
    supply [simp] = a
wenzelm@62017
  1831
  proof
wenzelm@62017
  1832
    show A by simp
wenzelm@62017
  1833
  next
wenzelm@62017
  1834
    show A by simp
wenzelm@62017
  1835
  qed
wenzelm@62017
  1836
wenzelm@62017
  1837
* Command 'obtain' binds term abbreviations (via 'is' patterns) in the
wenzelm@62017
  1838
proof body as well, abstracted over relevant parameters.
wenzelm@62017
  1839
wenzelm@62017
  1840
* Improved type-inference for theorem statement 'obtains': separate
wenzelm@62017
  1841
parameter scope for of each clause.
wenzelm@62017
  1842
wenzelm@62017
  1843
* Term abbreviations via 'is' patterns also work for schematic
wenzelm@62017
  1844
statements: result is abstracted over unknowns.
wenzelm@62017
  1845
wenzelm@60631
  1846
* Command 'subgoal' allows to impose some structure on backward
wenzelm@60631
  1847
refinements, to avoid proof scripts degenerating into long of 'apply'
wenzelm@60631
  1848
sequences. Further explanations and examples are given in the isar-ref
wenzelm@60631
  1849
manual.
wenzelm@60631
  1850
wenzelm@62017
  1851
* Command 'supply' supports fact definitions during goal refinement
wenzelm@62017
  1852
('apply' scripts).
wenzelm@62017
  1853
wenzelm@61166
  1854
* Proof method "goal_cases" turns the current subgoals into cases within
wenzelm@61166
  1855
the context; the conclusion is bound to variable ?case in each case. For
wenzelm@61166
  1856
example:
wenzelm@60617
  1857
wenzelm@60617
  1858
lemma "\<And>x. A x \<Longrightarrow> B x \<Longrightarrow> C x"
wenzelm@60622
  1859
  and "\<And>y z. U y \<Longrightarrow> V z \<Longrightarrow> W y z"
wenzelm@61166
  1860
proof goal_cases
wenzelm@60622
  1861
  case (1 x)
wenzelm@60622
  1862
  then show ?case using \<open>A x\<close> \<open>B x\<close> sorry
wenzelm@60622
  1863
next
wenzelm@60622
  1864
  case (2 y z)
wenzelm@60622
  1865
  then show ?case using \<open>U y\<close> \<open>V z\<close> sorry
wenzelm@60622
  1866
qed
wenzelm@60622
  1867
wenzelm@60622
  1868
lemma "\<And>x. A x \<Longrightarrow> B x \<Longrightarrow> C x"
wenzelm@60622
  1869
  and "\<And>y z. U y \<Longrightarrow> V z \<Longrightarrow> W y z"
wenzelm@61166
  1870
proof goal_cases
wenzelm@60617
  1871
  case prems: 1
wenzelm@60617
  1872
  then show ?case using prems sorry
wenzelm@60617
  1873
next
wenzelm@60617
  1874
  case prems: 2
wenzelm@60617
  1875
  then show ?case using prems sorry
wenzelm@60617
  1876
qed
wenzelm@60578
  1877
wenzelm@60581
  1878
* The undocumented feature of implicit cases goal1, goal2, goal3, etc.
wenzelm@60617
  1879
is marked as legacy, and will be removed eventually. The proof method
wenzelm@60617
  1880
"goals" achieves a similar effect within regular Isar; often it can be
wenzelm@60617
  1881
done more adequately by other means (e.g. 'consider').
wenzelm@60581
  1882
wenzelm@62017
  1883
* The vacuous fact "TERM x" may be established "by fact" or as `TERM x`
wenzelm@62017
  1884
as well, not just "by this" or "." as before.
wenzelm@60551
  1885
wenzelm@60554
  1886
* Method "sleep" succeeds after a real-time delay (in seconds). This is
wenzelm@60554
  1887
occasionally useful for demonstration and testing purposes.
wenzelm@60554
  1888
wenzelm@60406
  1889
wenzelm@60331
  1890
*** Pure ***
wenzelm@60331
  1891
wenzelm@61606
  1892
* Qualifiers in locale expressions default to mandatory ('!') regardless
wenzelm@61606
  1893
of the command. Previously, for 'locale' and 'sublocale' the default was
wenzelm@61606
  1894
optional ('?'). The old synatx '!' has been discontinued.
wenzelm@61606
  1895
INCOMPATIBILITY, remove '!' and add '?' as required.
ballarin@61565
  1896
ballarin@61566
  1897
* Keyword 'rewrites' identifies rewrite morphisms in interpretation
wenzelm@62017
  1898
commands. Previously, the keyword was 'where'. INCOMPATIBILITY.
ballarin@61566
  1899
ballarin@61701
  1900
* More gentle suppression of syntax along locale morphisms while
wenzelm@62017
  1901
printing terms. Previously 'abbreviation' and 'notation' declarations
wenzelm@62017
  1902
would be suppressed for morphisms except term identity. Now
ballarin@61701
  1903
'abbreviation' is also kept for morphims that only change the involved
wenzelm@62017
  1904
parameters, and only 'notation' is suppressed. This can be of great help
wenzelm@62017
  1905
when working with complex locale hierarchies, because proof states are
wenzelm@62017
  1906
displayed much more succinctly. It also means that only notation needs
wenzelm@62017
  1907
to be redeclared if desired, as illustrated by this example:
ballarin@61701
  1908
ballarin@61701
  1909
  locale struct = fixes composition :: "'a => 'a => 'a" (infixl "\<cdot>" 65)
ballarin@61701
  1910
  begin
ballarin@61701
  1911
    definition derived (infixl "\<odot>" 65) where ...
ballarin@61701
  1912
  end
ballarin@61701
  1913
ballarin@61701
  1914
  locale morphism =
ballarin@61701
  1915
    left: struct composition + right: struct composition'
ballarin@61701
  1916
    for composition (infix "\<cdot>" 65) and composition' (infix "\<cdot>''" 65)
ballarin@61701
  1917
  begin
ballarin@61701
  1918
    notation right.derived ("\<odot>''")
ballarin@61701
  1919
  end
ballarin@61701
  1920
wenzelm@61895
  1921
* Command 'global_interpretation' issues interpretations into global
wenzelm@61895
  1922
theories, with optional rewrite definitions following keyword 'defines'.
wenzelm@61895
  1923
wenzelm@61895
  1924
* Command 'sublocale' accepts optional rewrite definitions after keyword
haftmann@61675
  1925
'defines'.
haftmann@61675
  1926
wenzelm@61895
  1927
* Command 'permanent_interpretation' has been discontinued. Use
wenzelm@61895
  1928
'global_interpretation' or 'sublocale' instead. INCOMPATIBILITY.
haftmann@61670
  1929
wenzelm@61252
  1930
* Command 'print_definitions' prints dependencies of definitional
wenzelm@61252
  1931
specifications. This functionality used to be part of 'print_theory'.
wenzelm@61252
  1932
wenzelm@60331
  1933
* Configuration option rule_insts_schematic has been discontinued
wenzelm@62017
  1934
(intermediate legacy feature in Isabelle2015). INCOMPATIBILITY.
wenzelm@60331
  1935
wenzelm@62205
  1936
* Abbreviations in type classes now carry proper sort constraint. Rare
wenzelm@62205
  1937
INCOMPATIBILITY in situations where the previous misbehaviour has been
wenzelm@62205
  1938
exploited.
haftmann@60347
  1939
haftmann@60347
  1940
* Refinement of user-space type system in type classes: pseudo-local
wenzelm@62205
  1941
operations behave more similar to abbreviations. Potential
haftmann@60347
  1942
INCOMPATIBILITY in exotic situations.
haftmann@60347
  1943
haftmann@60347
  1944
nipkow@60171
  1945
*** HOL ***
nipkow@60171
  1946
wenzelm@62017
  1947
* The 'typedef' command has been upgraded from a partially checked
wenzelm@62017
  1948
"axiomatization", to a full definitional specification that takes the
wenzelm@62017
  1949
global collection of overloaded constant / type definitions into
wenzelm@62017
  1950
account. Type definitions with open dependencies on overloaded
wenzelm@62017
  1951
definitions need to be specified as "typedef (overloaded)". This
wenzelm@62017
  1952
provides extra robustness in theory construction. Rare INCOMPATIBILITY.
wenzelm@62017
  1953
wenzelm@62017
  1954
* Qualification of various formal entities in the libraries is done more
wenzelm@62017
  1955
uniformly via "context begin qualified definition ... end" instead of
wenzelm@62017
  1956
old-style "hide_const (open) ...". Consequently, both the defined
wenzelm@62017
  1957
constant and its defining fact become qualified, e.g. Option.is_none and
wenzelm@62017
  1958
Option.is_none_def. Occasional INCOMPATIBILITY in applications.
wenzelm@62017
  1959
wenzelm@62017
  1960
* Some old and rarely used ASCII replacement syntax has been removed.
wenzelm@62017
  1961
INCOMPATIBILITY, standard syntax with symbols should be used instead.
wenzelm@62017
  1962
The subsequent commands help to reproduce the old forms, e.g. to
wenzelm@62017
  1963
simplify porting old theories:
wenzelm@62017
  1964
wenzelm@62017
  1965
  notation iff  (infixr "<->" 25)
wenzelm@62017
  1966
wenzelm@62017
  1967
  notation Times  (infixr "<*>" 80)
wenzelm@62017
  1968
wenzelm@62017
  1969
  type_notation Map.map  (infixr "~=>" 0)
wenzelm@62017
  1970
  notation Map.map_comp  (infixl "o'_m" 55)
wenzelm@62017
  1971
wenzelm@62017
  1972
  type_notation FinFun.finfun ("(_ =>f /_)" [22, 21] 21)
wenzelm@62017
  1973
wenzelm@62017
  1974
  notation FuncSet.funcset  (infixr "->" 60)
wenzelm@62017
  1975
  notation FuncSet.extensional_funcset  (infixr "->\<^sub>E" 60)
wenzelm@62017
  1976
wenzelm@62017
  1977
  notation Omega_Words_Fun.conc (infixr "conc" 65)
wenzelm@62017
  1978
wenzelm@62017
  1979
  notation Preorder.equiv ("op ~~")
wenzelm@62017
  1980
    and Preorder.equiv ("(_/ ~~ _)" [51, 51] 50)
wenzelm@62017
  1981
wenzelm@62017
  1982
  notation (in topological_space) tendsto (infixr "--->" 55)
wenzelm@62017
  1983
  notation (in topological_space) LIMSEQ ("((_)/ ----> (_))" [60, 60] 60)
wenzelm@62017
  1984
  notation LIM ("((_)/ -- (_)/ --> (_))" [60, 0, 60] 60)
wenzelm@62017
  1985
wenzelm@62017
  1986
  notation NSA.approx (infixl "@=" 50)
wenzelm@62017
  1987
  notation NSLIMSEQ ("((_)/ ----NS> (_))" [60, 60] 60)
wenzelm@62017
  1988
  notation NSLIM ("((_)/ -- (_)/ --NS> (_))" [60, 0, 60] 60)
wenzelm@62017
  1989
wenzelm@62017
  1990
* The alternative notation "\<Colon>" for type and sort constraints has been
wenzelm@62017
  1991
removed: in LaTeX document output it looks the same as "::".
wenzelm@62017
  1992
INCOMPATIBILITY, use plain "::" instead.
wenzelm@62017
  1993
wenzelm@62017
  1994
* Commands 'inductive' and 'inductive_set' work better when names for
wenzelm@62017
  1995
intro rules are omitted: the "cases" and "induct" rules no longer
wenzelm@62017
  1996
declare empty case_names, but no case_names at all. This allows to use
wenzelm@62017
  1997
numbered cases in proofs, without requiring method "goal_cases".
wenzelm@62017
  1998
wenzelm@62017
  1999
* Inductive definitions ('inductive', 'coinductive', etc.) expose
wenzelm@62017
  2000
low-level facts of the internal construction only if the option
wenzelm@62093
  2001
"inductive_internals" is enabled. This refers to the internal predicate
wenzelm@62017
  2002
definition and its monotonicity result. Rare INCOMPATIBILITY.
wenzelm@62017
  2003
wenzelm@62017
  2004
* Recursive function definitions ('fun', 'function', 'partial_function')
wenzelm@62017
  2005
expose low-level facts of the internal construction only if the option
wenzelm@62205
  2006
"function_internals" is enabled. Its internal inductive definition is
wenzelm@62205
  2007
also subject to "inductive_internals". Rare INCOMPATIBILITY.
wenzelm@62093
  2008
wenzelm@62093
  2009
* BNF datatypes ('datatype', 'codatatype', etc.) expose low-level facts
wenzelm@62093
  2010
of the internal construction only if the option "bnf_internals" is
wenzelm@62093
  2011
enabled. This supersedes the former option "bnf_note_all". Rare
wenzelm@62093
  2012
INCOMPATIBILITY.
wenzelm@62017
  2013
wenzelm@62017
  2014
* Combinator to represent case distinction on products is named
wenzelm@62017
  2015
"case_prod", uniformly, discontinuing any input aliasses. Very popular
wenzelm@62017
  2016
theorem aliasses have been retained.
wenzelm@62017
  2017
haftmann@61424
  2018
Consolidated facts:
haftmann@61424
  2019
  PairE ~> prod.exhaust
haftmann@61424
  2020
  Pair_eq ~> prod.inject
haftmann@61424
  2021
  pair_collapse ~> prod.collapse
haftmann@61424
  2022
  Pair_fst_snd_eq ~> prod_eq_iff
haftmann@61424
  2023
  split_twice ~> prod.case_distrib
haftmann@61424
  2024
  split_weak_cong ~> prod.case_cong_weak
haftmann@61424
  2025
  split_split ~> prod.split
haftmann@61424
  2026
  split_split_asm ~> prod.split_asm
haftmann@61424
  2027
  splitI ~> case_prodI
haftmann@61424
  2028
  splitD ~> case_prodD
haftmann@61424
  2029
  splitI2 ~> case_prodI2
haftmann@61424
  2030
  splitI2' ~> case_prodI2'
haftmann@61424
  2031
  splitE ~> case_prodE
haftmann@61424
  2032
  splitE' ~> case_prodE'
haftmann@61424
  2033
  split_pair ~> case_prod_Pair
haftmann@61424
  2034
  split_eta ~> case_prod_eta
haftmann@61424
  2035
  split_comp ~> case_prod_comp
haftmann@61424
  2036
  mem_splitI ~> mem_case_prodI
haftmann@61424
  2037
  mem_splitI2 ~> mem_case_prodI2
haftmann@61424
  2038
  mem_splitE ~> mem_case_prodE
haftmann@61424
  2039
  The_split ~> The_case_prod
haftmann@61424
  2040
  cond_split_eta ~> cond_case_prod_eta
haftmann@61424
  2041
  Collect_split_in_rel_leE ~> Collect_case_prod_in_rel_leE
haftmann@61424
  2042
  Collect_split_in_rel_leI ~> Collect_case_prod_in_rel_leI
haftmann@61424
  2043
  in_rel_Collect_split_eq ~> in_rel_Collect_case_prod_eq
haftmann@61424
  2044
  Collect_split_Grp_eqD ~> Collect_case_prod_Grp_eqD
haftmann@61424
  2045
  Collect_split_Grp_inD ~> Collect_case_prod_Grp_in
haftmann@61424
  2046
  Domain_Collect_split ~> Domain_Collect_case_prod
haftmann@61424
  2047
  Image_Collect_split ~> Image_Collect_case_prod
haftmann@61424
  2048
  Range_Collect_split ~> Range_Collect_case_prod
haftmann@61424
  2049
  Eps_split ~> Eps_case_prod
haftmann@61424
  2050
  Eps_split_eq ~> Eps_case_prod_eq
haftmann@61424
  2051
  split_rsp ~> case_prod_rsp
haftmann@61424
  2052
  curry_split ~> curry_case_prod
haftmann@61424
  2053
  split_curry ~> case_prod_curry
wenzelm@62017
  2054
haftmann@61424
  2055
Changes in structure HOLogic:
haftmann@61424
  2056
  split_const ~> case_prod_const
haftmann@61424
  2057
  mk_split ~> mk_case_prod
haftmann@61424
  2058
  mk_psplits ~> mk_ptupleabs
haftmann@61424
  2059
  strip_psplits ~> strip_ptupleabs
wenzelm@62017
  2060
wenzelm@62017
  2061
INCOMPATIBILITY.
wenzelm@62017
  2062
wenzelm@62017
  2063
* The coercions to type 'real' have been reorganised. The function
wenzelm@62017
  2064
'real' is no longer overloaded, but has type 'nat => real' and
wenzelm@62017
  2065
abbreviates of_nat for that type. Also 'real_of_int :: int => real'
wenzelm@62017
  2066
abbreviates of_int for that type. Other overloaded instances of 'real'
wenzelm@62017
  2067
have been replaced by 'real_of_ereal' and 'real_of_float'.
wenzelm@62017
  2068
lp15@61694
  2069
Consolidated facts (among others):
lp15@61694
  2070
  real_of_nat_le_iff -> of_nat_le_iff
lp15@61694
  2071
  real_of_nat_numeral of_nat_numeral
lp15@61694
  2072
  real_of_int_zero of_int_0
lp15@61694
  2073
  real_of_nat_zero of_nat_0
lp15@61694
  2074
  real_of_one of_int_1
lp15@61694
  2075
  real_of_int_add of_int_add
lp15@61694
  2076
  real_of_nat_add of_nat_add
lp15@61694
  2077
  real_of_int_diff of_int_diff
lp15@61694
  2078
  real_of_nat_diff of_nat_diff
lp15@61694
  2079
  floor_subtract floor_diff_of_int
lp15@61694
  2080
  real_of_int_inject of_int_eq_iff
lp15@61694
  2081
  real_of_int_gt_zero_cancel_iff of_int_0_less_iff
lp15@61694
  2082
  real_of_int_ge_zero_cancel_iff of_int_0_le_iff
lp15@61694
  2083
  real_of_nat_ge_zero of_nat_0_le_iff
lp15@61694
  2084
  real_of_int_ceiling_ge le_of_int_ceiling
lp15@61694
  2085
  ceiling_less_eq ceiling_less_iff
lp15@61694
  2086
  ceiling_le_eq ceiling_le_iff
lp15@61694
  2087
  less_floor_eq less_floor_iff
lp15@61694
  2088
  floor_less_eq floor_less_iff
lp15@61694
  2089
  floor_divide_eq_div floor_divide_of_int_eq
lp15@61694
  2090
  real_of_int_zero_cancel of_nat_eq_0_iff
lp15@61694
  2091
  ceiling_real_of_int ceiling_of_int
wenzelm@62017
  2092
wenzelm@62017
  2093
INCOMPATIBILITY.
wenzelm@61143
  2094
wenzelm@60841
  2095
* Theory Map: lemma map_of_is_SomeD was a clone of map_of_SomeD and has
wenzelm@60841
  2096
been removed. INCOMPATIBILITY.
wenzelm@60841
  2097
lars@60712
  2098
* Quickcheck setup for finite sets.
lars@60712
  2099
nipkow@60171
  2100
* Discontinued simp_legacy_precond. Potential INCOMPATIBILITY.
wenzelm@60138
  2101
blanchet@60306
  2102
* Sledgehammer:
blanchet@61318
  2103
  - The MaSh relevance filter has been sped up.
blanchet@60306
  2104
  - Proof reconstruction has been improved, to minimize the incidence of
blanchet@60306
  2105
    cases where Sledgehammer gives a proof that does not work.
blanchet@60306
  2106
  - Auto Sledgehammer now minimizes and preplays the results.
blanchet@61030
  2107
  - Handle Vampire 4.0 proof output without raising exception.
blanchet@61043
  2108
  - Eliminated "MASH" environment variable. Use the "MaSh" option in
blanchet@61043
  2109
    Isabelle/jEdit instead. INCOMPATIBILITY.
blanchet@61317
  2110
  - Eliminated obsolete "blocking" option and related subcommands.
blanchet@60306
  2111
blanchet@60310
  2112
* Nitpick:
blanchet@61325
  2113
  - Fixed soundness bug in translation of "finite" predicate.
blanchet@61324
  2114
  - Fixed soundness bug in "destroy_constrs" optimization.
blanchet@62080
  2115
  - Fixed soundness bug in translation of "rat" type.
blanchet@60310
  2116
  - Removed "check_potential" and "check_genuine" options.
blanchet@61317
  2117
  - Eliminated obsolete "blocking" option.
blanchet@60310
  2118
wenzelm@62027
  2119
* (Co)datatype package:
blanchet@61345
  2120
  - New commands "lift_bnf" and "copy_bnf" for lifting (copying) a BNF
blanchet@61345
  2121
    structure on the raw type to an abstract type defined using typedef.
blanchet@61345
  2122
  - Always generate "case_transfer" theorem.
wenzelm@62235
  2123
  - For mutual types, generate slightly stronger "rel_induct",
haftmann@63946
  2124
    "rel_coinduct", and "coinduct" theorems. INCOMPATIBILITY.
blanchet@61551
  2125
  - Allow discriminators and selectors with the same name as the type
blanchet@61551
  2126
    being defined.
blanchet@61551
  2127
  - Avoid various internal name clashes (e.g., 'datatype f = f').
traytel@60920
  2128
wenzelm@62098
  2129
* Transfer: new methods for interactive debugging of 'transfer' and
wenzelm@62098
  2130
'transfer_prover': 'transfer_start', 'transfer_step', 'transfer_end',
wenzelm@62098
  2131
'transfer_prover_start' and 'transfer_prover_end'.
kuncar@61370
  2132
kleing@62118
  2133
* New diagnostic command print_record for displaying record definitions.
kleing@62118
  2134
haftmann@60868
  2135
* Division on integers is bootstrapped directly from division on
wenzelm@62017
  2136
naturals and uses generic numeral algorithm for computations. Slight
wenzelm@62017
  2137
INCOMPATIBILITY, simproc numeral_divmod replaces and generalizes former
wenzelm@62017
  2138
simprocs binary_int_div and binary_int_mod
wenzelm@62017
  2139
wenzelm@62017
  2140
* Tightened specification of class semiring_no_zero_divisors. Minor
haftmann@60516
  2141
INCOMPATIBILITY.
haftmann@60516
  2142
haftmann@60688
  2143
* Class algebraic_semidom introduces common algebraic notions of
wenzelm@62017
  2144
integral (semi)domains, particularly units. Although logically subsumed
wenzelm@62017
  2145
by fields, is is not a super class of these in order not to burden
wenzelm@62017
  2146
fields with notions that are trivial there.
wenzelm@62017
  2147
wenzelm@62017
  2148
* Class normalization_semidom specifies canonical representants for
wenzelm@62017
  2149
equivalence classes of associated elements in an integral (semi)domain.
wenzelm@62017
  2150
This formalizes associated elements as well.
haftmann@60688
  2151
haftmann@60688
  2152
* Abstract specification of gcd/lcm operations in classes semiring_gcd,
wenzelm@62017
  2153
semiring_Gcd, semiring_Lcd. Minor INCOMPATIBILITY: facts gcd_nat.commute
wenzelm@62017
  2154
and gcd_int.commute are subsumed by gcd.commute, as well as
wenzelm@62017
  2155
gcd_nat.assoc and gcd_int.assoc by gcd.assoc.
wenzelm@62017
  2156
wenzelm@62017
  2157
* Former constants Fields.divide (_ / _) and Divides.div (_ div _) are
wenzelm@62017
  2158
logically unified to Rings.divide in syntactic type class Rings.divide,
wenzelm@62017
  2159
with infix syntax (_ div _). Infix syntax (_ / _) for field division is
wenzelm@62017
  2160
added later as abbreviation in class Fields.inverse. INCOMPATIBILITY,
wenzelm@62017
  2161
instantiations must refer to Rings.divide rather than the former
wenzelm@62017
  2162
separate constants, hence infix syntax (_ / _) is usually not available
wenzelm@62017
  2163
during instantiation.
wenzelm@62017
  2164
wenzelm@62017
  2165
* New cancellation simprocs for boolean algebras to cancel complementary
wenzelm@62017
  2166
terms for sup and inf. For example, "sup x (sup y (- x))" simplifies to
wenzelm@62017
  2167
"top". INCOMPATIBILITY.
Andreas@61629
  2168
hoelzl@62101
  2169
* Class uniform_space introduces uniform spaces btw topological spaces
hoelzl@62101
  2170
and metric spaces. Minor INCOMPATIBILITY: open_<type>_def needs to be
wenzelm@62205
  2171
introduced in the form of an uniformity. Some constants are more general
wenzelm@62205
  2172
now, it may be necessary to add type class constraints.
hoelzl@62101
  2173
hoelzl@62101
  2174
  open_real_def \<leadsto> open_dist
hoelzl@62101
  2175
  open_complex_def \<leadsto> open_dist
hoelzl@62101
  2176
wenzelm@62026
  2177
* Library/Monad_Syntax: notation uses symbols \<bind> and \<then>. INCOMPATIBILITY.
wenzelm@62026
  2178
Mathias@60397
  2179
* Library/Multiset:
Mathias@60397
  2180
  - Renamed multiset inclusion operators:
Mathias@60397
  2181
      < ~> <#
blanchet@62208
  2182
      > ~> >#
Mathias@60397
  2183
      <= ~> <=#
blanchet@62208
  2184
      >= ~> >=#
Mathias@60397
  2185
      \<le> ~> \<le>#
blanchet@62208
  2186
      \<ge> ~> \<ge>#
Mathias@60397
  2187
    INCOMPATIBILITY.
blanchet@62209
  2188
  - Added multiset inclusion operator syntax:
blanchet@62209
  2189
      \<subset>#
blanchet@62209
  2190
      \<subseteq>#
blanchet@62209
  2191
      \<supset>#
blanchet@62209
  2192
      \<supseteq>#
Mathias@60397
  2193
  - "'a multiset" is no longer an instance of the "order",
Mathias@60397
  2194
    "ordered_ab_semigroup_add_imp_le", "ordered_cancel_comm_monoid_diff",
Mathias@60397
  2195
    "semilattice_inf", and "semilattice_sup" type classes. The theorems
Mathias@60397
  2196
    previously provided by these type classes (directly or indirectly)
Mathias@60397
  2197
    are now available through the "subset_mset" interpretation
Mathias@60397
  2198
    (e.g. add_mono ~> subset_mset.add_mono).
Mathias@60397
  2199
    INCOMPATIBILITY.
nipkow@60497
  2200
  - Renamed conversions:
nipkow@60515
  2201
      multiset_of ~> mset
nipkow@60515
  2202
      multiset_of_set ~> mset_set
nipkow@60497
  2203
      set_of ~> set_mset
nipkow@60497
  2204
    INCOMPATIBILITY
Mathias@60398
  2205
  - Renamed lemmas:
Mathias@60398
  2206
      mset_le_def ~> subseteq_mset_def
Mathias@60398
  2207
      mset_less_def ~> subset_mset_def
Mathias@60400
  2208
      less_eq_multiset.rep_eq ~> subseteq_mset_def
Mathias@60400
  2209
    INCOMPATIBILITY
Mathias@60400
  2210
  - Removed lemmas generated by lift_definition:
wenzelm@62235
  2211
    less_eq_multiset.abs_eq, less_eq_multiset.rsp,
wenzelm@62235
  2212
    less_eq_multiset.transfer, less_eq_multiset_def
Mathias@60400
  2213
    INCOMPATIBILITY
wenzelm@60006
  2214
wenzelm@62017
  2215
* Library/Omega_Words_Fun: Infinite words modeled as functions nat \<Rightarrow> 'a.
wenzelm@62017
  2216
wenzelm@62017
  2217
* Library/Bourbaki_Witt_Fixpoint: Added formalisation of the
wenzelm@62017
  2218
Bourbaki-Witt fixpoint theorem for increasing functions in
wenzelm@62017
  2219
chain-complete partial orders.
wenzelm@62017
  2220
wenzelm@62017
  2221
* Library/Old_Recdef: discontinued obsolete 'defer_recdef' command.
wenzelm@62017
  2222
Minor INCOMPATIBILITY, use 'function' instead.
wenzelm@62017
  2223
wenzelm@62064
  2224
* Library/Periodic_Fun: a locale that provides convenient lemmas for
wenzelm@62064
  2225
periodic functions.
eberlm@62060
  2226
wenzelm@62098
  2227
* Library/Formal_Power_Series: proper definition of division (with
wenzelm@62098
  2228
remainder) for formal power series; instances for Euclidean Ring and
wenzelm@62098
  2229
GCD.
eberlm@62086
  2230
wenzelm@62084
  2231
* HOL-Imperative_HOL: obsolete theory Legacy_Mrec has been removed.
wenzelm@62084
  2232
wenzelm@62084
  2233
* HOL-Statespace: command 'statespace' uses mandatory qualifier for
wenzelm@62084
  2234
import of parent, as for general 'locale' expressions. INCOMPATIBILITY,
wenzelm@62084
  2235
remove '!' and add '?' as required.
wenzelm@62084
  2236
wenzelm@62237
  2237
* HOL-Decision_Procs: The "approximation" method works with "powr"
wenzelm@62237
  2238
(exponentiation on real numbers) again.
wenzelm@62237
  2239
wenzelm@62084
  2240
* HOL-Multivariate_Analysis: theory Cauchy_Integral_Thm with Contour
wenzelm@62084
  2241
integrals (= complex path integrals), Cauchy's integral theorem, winding
wenzelm@62084
  2242
numbers and Cauchy's integral formula, Liouville theorem, Fundamental
wenzelm@62084
  2243
Theorem of Algebra. Ported from HOL Light.
wenzelm@62084
  2244
wenzelm@62084
  2245
* HOL-Multivariate_Analysis: topological concepts such as connected
wenzelm@62017
  2246
components, homotopic paths and the inside or outside of a set.
wenzelm@61121
  2247
wenzelm@62084
  2248
* HOL-Multivariate_Analysis: radius of convergence of power series and
wenzelm@62064
  2249
various summability tests; Harmonic numbers and the Euler–Mascheroni
wenzelm@62064
  2250
constant; the Generalised Binomial Theorem; the complex and real
wenzelm@62064
  2251
Gamma/log-Gamma/Digamma/ Polygamma functions and their most important
wenzelm@62064
  2252
properties.
eberlm@62060
  2253
wenzelm@62084
  2254
* HOL-Probability: The central limit theorem based on Levy's uniqueness
wenzelm@62084
  2255
and continuity theorems, weak convergence, and characterisitc functions.
wenzelm@62084
  2256
wenzelm@62084
  2257
* HOL-Data_Structures: new and growing session of standard data
wenzelm@62084
  2258
structures.
lammich@61178
  2259
wenzelm@60479
  2260
wenzelm@60793
  2261
*** ML ***
wenzelm@60793
  2262
wenzelm@62017
  2263
* The following combinators for low-level profiling of the ML runtime
wenzelm@62017
  2264
system are available:
wenzelm@62017
  2265
wenzelm@62017
  2266
  profile_time          (*CPU time*)
wenzelm@62017
  2267
  profile_time_thread   (*CPU time on this thread*)
wenzelm@62017
  2268
  profile_allocations   (*overall heap allocations*)
wenzelm@62017
  2269
wenzelm@62017
  2270
* Antiquotation @{undefined} or \<^undefined> inlines (raise Match).
wenzelm@62017
  2271
wenzelm@62075
  2272
* Antiquotation @{method NAME} inlines the (checked) name of the given
wenzelm@62075
  2273
Isar proof method.
wenzelm@62075
  2274
wenzelm@61922
  2275
* Pretty printing of Poly/ML compiler output in Isabelle has been
wenzelm@61922
  2276
improved: proper treatment of break offsets and blocks with consistent
wenzelm@61922
  2277
breaks.
wenzelm@61922
  2278
wenzelm@61268
  2279
* The auxiliary module Pure/display.ML has been eliminated. Its
wenzelm@61268
  2280
elementary thm print operations are now in Pure/more_thm.ML and thus
wenzelm@61268
  2281
called Thm.pretty_thm, Thm.string_of_thm etc. INCOMPATIBILITY.
wenzelm@61268
  2282
wenzelm@61144
  2283
* Simproc programming interfaces have been simplified:
wenzelm@61144
  2284
Simplifier.make_simproc and Simplifier.define_simproc supersede various
wenzelm@61144
  2285
forms of Simplifier.mk_simproc, Simplifier.simproc_global etc. Note that
wenzelm@61144
  2286
term patterns for the left-hand sides are specified with implicitly
wenzelm@61144
  2287
fixed variables, like top-level theorem statements. INCOMPATIBILITY.
wenzelm@61144
  2288
wenzelm@60802
  2289
* Instantiation rules have been re-organized as follows:
wenzelm@60802
  2290
wenzelm@60802
  2291
  Thm.instantiate  (*low-level instantiation with named arguments*)
wenzelm@60802
  2292
  Thm.instantiate' (*version with positional arguments*)
wenzelm@60802
  2293
wenzelm@60802
  2294
  Drule.infer_instantiate  (*instantiation with type inference*)
wenzelm@60802
  2295
  Drule.infer_instantiate'  (*version with positional arguments*)
wenzelm@60802
  2296
wenzelm@60802
  2297
The LHS only requires variable specifications, instead of full terms.
wenzelm@60802
  2298
Old cterm_instantiate is superseded by infer_instantiate.
wenzelm@60802
  2299
INCOMPATIBILITY, need to re-adjust some ML names and types accordingly.
wenzelm@60802
  2300
wenzelm@60793
  2301
* Old tactic shorthands atac, rtac, etac, dtac, ftac have been
wenzelm@60793
  2302
discontinued. INCOMPATIBILITY, use regular assume_tac, resolve_tac etc.
wenzelm@60793
  2303
instead (with proper context).
wenzelm@60642
  2304
wenzelm@60642
  2305
* Thm.instantiate (and derivatives) no longer require the LHS of the
wenzelm@60642
  2306
instantiation to be certified: plain variables are given directly.
wenzelm@60642
  2307
wenzelm@60707
  2308
* Subgoal.SUBPROOF and Subgoal.FOCUS combinators use anonymous
wenzelm@60707
  2309
quasi-bound variables (like the Simplifier), instead of accidentally
wenzelm@60707
  2310
named local fixes. This has the potential to improve stability of proof
wenzelm@60707
  2311
tools, but can also cause INCOMPATIBILITY for tools that don't observe
wenzelm@60707
  2312
the proof context discipline.
wenzelm@60707
  2313
wenzelm@62017
  2314
* Isar proof methods are based on a slightly more general type
wenzelm@62017
  2315
context_tactic, which allows to change the proof context dynamically
wenzelm@62017
  2316
(e.g. to update cases) and indicate explicit Seq.Error results. Former
wenzelm@62017
  2317
METHOD_CASES is superseded by CONTEXT_METHOD; further combinators are
wenzelm@62017
  2318
provided in src/Pure/Isar/method.ML for convenience. INCOMPATIBILITY.
wenzelm@61885
  2319
wenzelm@60642
  2320
wenzelm@60983
  2321
*** System ***
wenzelm@60983
  2322
wenzelm@62525
  2323
* Command-line tool "isabelle console" enables print mode "ASCII".
wenzelm@61958
  2324
wenzelm@62017
  2325
* Command-line tool "isabelle update_then" expands old Isar command
wenzelm@62017
  2326
conflations:
wenzelm@62017
  2327
wenzelm@62017
  2328
    hence  ~>  then have
wenzelm@62017
  2329
    thus   ~>  then show
wenzelm@62017
  2330
wenzelm@62017
  2331
This syntax is more orthogonal and improves readability and
wenzelm@62017
  2332
maintainability of proofs.
wenzelm@62017
  2333
wenzelm@61602
  2334
* Global session timeout is multiplied by timeout_scale factor. This
wenzelm@61602
  2335
allows to adjust large-scale tests (e.g. AFP) to overall hardware
wenzelm@61602
  2336
performance.
wenzelm@61602
  2337
wenzelm@61174
  2338
* Property values in etc/symbols may contain spaces, if written with the
wenzelm@62671
  2339
replacement character "␣" (Unicode point 0x2324). For example:
wenzelm@62671
  2340
wenzelm@62671
  2341
    \<star>  code: 0x0022c6  group: operator  font: Deja␣Vu␣Sans␣Mono
wenzelm@61174
  2342
wenzelm@60995
  2343
* Java runtime environment for x86_64-windows allows to use larger heap
wenzelm@60995
  2344
space.
wenzelm@60995
  2345
wenzelm@61135
  2346
* Java runtime options are determined separately for 32bit vs. 64bit
wenzelm@61135
  2347
platforms as follows.
wenzelm@61135
  2348
wenzelm@61135
  2349
  - Isabelle desktop application: platform-specific files that are
wenzelm@61135
  2350
    associated with the main app bundle
wenzelm@61135
  2351
wenzelm@61135
  2352
  - isabelle jedit: settings
wenzelm@61135
  2353
    JEDIT_JAVA_SYSTEM_OPTIONS
wenzelm@61135
  2354
    JEDIT_JAVA_OPTIONS32 vs. JEDIT_JAVA_OPTIONS64
wenzelm@61135
  2355
wenzelm@61135
  2356
  - isabelle build: settings
wenzelm@61135
  2357
    ISABELLE_BUILD_JAVA_OPTIONS32 vs. ISABELLE_BUILD_JAVA_OPTIONS64
wenzelm@61135
  2358
wenzelm@61294
  2359
* Bash shell function "jvmpath" has been renamed to "platform_path": it
wenzelm@61294
  2360
is relevant both for Poly/ML and JVM processes.
wenzelm@61294
  2361
wenzelm@62017
  2362
* Poly/ML default platform architecture may be changed from 32bit to
wenzelm@62205
  2363
64bit via system option ML_system_64. A system restart (and rebuild) is
wenzelm@62205
  2364
required after change.
wenzelm@62017
  2365
wenzelm@62017
  2366
* Poly/ML 5.6 runs natively on x86-windows and x86_64-windows, which
wenzelm@62017
  2367
both allow larger heap space than former x86-cygwin.
wenzelm@62017
  2368
wenzelm@62157
  2369
* Heap images are 10-15% smaller due to less wasteful persistent theory
wenzelm@62157
  2370
content (using ML type theory_id instead of theory);
wenzelm@62157
  2371
wenzelm@60983
  2372
wenzelm@60479
  2373
wenzelm@60009
  2374
New in Isabelle2015 (May 2015)
wenzelm@60009
  2375
------------------------------
wenzelm@57695
  2376
wenzelm@57941
  2377
*** General ***
wenzelm@57941
  2378
wenzelm@59939
  2379
* Local theory specification commands may have a 'private' or
wenzelm@59990
  2380
'qualified' modifier to restrict name space accesses to the local scope,
wenzelm@59939
  2381
as provided by some "context begin ... end" block. For example:
wenzelm@59926
  2382
wenzelm@59926
  2383
  context
wenzelm@59926
  2384
  begin
wenzelm@59926
  2385
wenzelm@59926
  2386
  private definition ...
wenzelm@59926
  2387
  private lemma ...
wenzelm@59926
  2388
wenzelm@59990
  2389
  qualified definition ...
wenzelm@59990
  2390
  qualified lemma ...
wenzelm@59990
  2391
wenzelm@59926
  2392
  lemma ...
wenzelm@59926
  2393
  theorem ...
wenzelm@59926
  2394
wenzelm@59926
  2395
  end
wenzelm@59926
  2396
wenzelm@59901
  2397
* Command 'experiment' opens an anonymous locale context with private
wenzelm@59901
  2398
naming policy.
wenzelm@59901
  2399
wenzelm@59951
  2400
* Command 'notepad' requires proper nesting of begin/end and its proof
wenzelm@59951
  2401
structure in the body: 'oops' is no longer supported here. Minor
wenzelm@59951
  2402
INCOMPATIBILITY, use 'sorry' instead.
wenzelm@59951
  2403
wenzelm@59951
  2404
* Command 'named_theorems' declares a dynamic fact within the context,
wenzelm@59951
  2405
together with an attribute to maintain the content incrementally. This
wenzelm@59951
  2406
supersedes functor Named_Thms in Isabelle/ML, but with a subtle change
wenzelm@59951
  2407
of semantics due to external visual order vs. internal reverse order.
wenzelm@59951
  2408
wenzelm@59951
  2409
* 'find_theorems': search patterns which are abstractions are
wenzelm@59951
  2410
schematically expanded before search. Search results match the naive
wenzelm@59951
  2411
expectation more closely, particularly wrt. abbreviations.
wenzelm@59951
  2412
INCOMPATIBILITY.
wenzelm@59648
  2413
wenzelm@59569
  2414
* Commands 'method_setup' and 'attribute_setup' now work within a local
wenzelm@59569
  2415
theory context.
wenzelm@57941
  2416
wenzelm@58928
  2417
* Outer syntax commands are managed authentically within the theory
wenzelm@59569
  2418
context, without implicit global state. Potential for accidental
wenzelm@58928
  2419
INCOMPATIBILITY, make sure that required theories are really imported.
wenzelm@58928
  2420
wenzelm@60115
  2421
* Historical command-line terminator ";" is no longer accepted (and
wenzelm@60115
  2422
already used differently in Isar). Minor INCOMPATIBILITY, use "isabelle
wenzelm@60115
  2423
update_semicolons" to remove obsolete semicolons from old theory
wenzelm@60115
  2424
sources.
wenzelm@60115
  2425
wenzelm@59951
  2426
* Structural composition of proof methods (meth1; meth2) in Isar
wenzelm@59951
  2427
corresponds to (tac1 THEN_ALL_NEW tac2) in ML.
haftmann@59105
  2428
wenzelm@60119
  2429
* The Eisbach proof method language allows to define new proof methods
wenzelm@60119
  2430
by combining existing ones with their usual syntax. The "match" proof
wenzelm@60119
  2431
method provides basic fact/term matching in addition to
wenzelm@60119
  2432
premise/conclusion matching through Subgoal.focus, and binds fact names
wenzelm@60288
  2433
from matches as well as term patterns within matches. The Isabelle
wenzelm@60288
  2434
documentation provides an entry "eisbach" for the Eisbach User Manual.
wenzelm@60288
  2435
Sources and various examples are in ~~/src/HOL/Eisbach/.
wenzelm@60119
  2436
wenzelm@57941
  2437
wenzelm@58524
  2438
*** Prover IDE -- Isabelle/Scala/jEdit ***
wenzelm@58524
  2439
wenzelm@59569
  2440
* Improved folding mode "isabelle" based on Isar syntax. Alternatively,
wenzelm@59569
  2441
the "sidekick" mode may be used for document structure.
wenzelm@59569
  2442
wenzelm@59569
  2443
* Extended bracket matching based on Isar language structure. System
wenzelm@59569
  2444
option jedit_structure_limit determines maximum number of lines to scan
wenzelm@59569
  2445
in the buffer.
wenzelm@58758
  2446
wenzelm@58540
  2447
* Support for BibTeX files: context menu, context-sensitive token
wenzelm@58540
  2448
marker, SideKick parser.
wenzelm@58524
  2449
wenzelm@58551
  2450
* Document antiquotation @{cite} provides formal markup, which is
wenzelm@60265
  2451
interpreted semi-formally based on .bib files that happen to be open in
wenzelm@60265
  2452
the editor (hyperlinks, completion etc.).
wenzelm@58551
  2453
wenzelm@58785
  2454
* Less waste of vertical space via negative line spacing (see Global
wenzelm@58785
  2455
Options / Text Area).
wenzelm@58785
  2456
wenzelm@60089
  2457
* Improved graphview panel with optional output of PNG or PDF, for
wenzelm@60273
  2458
display of 'thy_deps', 'class_deps' etc.
wenzelm@60009
  2459
wenzelm@60115
  2460
* The commands 'thy_deps' and 'class_deps' allow optional bounds to
wenzelm@60115
  2461
restrict the visualized hierarchy.
wenzelm@60093
  2462
wenzelm@60072
  2463
* Improved scheduling for asynchronous print commands (e.g. provers
wenzelm@60072
  2464
managed by the Sledgehammer panel) wrt. ongoing document processing.
wenzelm@60072
  2465
wenzelm@58524
  2466
wenzelm@59951
  2467
*** Document preparation ***
wenzelm@59951
  2468
wenzelm@59951
  2469
* Document markup commands 'chapter', 'section', 'subsection',
wenzelm@59951
  2470
'subsubsection', 'text', 'txt', 'text_raw' work uniformly in any
wenzelm@59951
  2471
context, even before the initial 'theory' command. Obsolete proof
wenzelm@59951
  2472
commands 'sect', 'subsect', 'subsubsect', 'txt_raw' have been
wenzelm@59951
  2473
discontinued, use 'section', 'subsection', 'subsubsection', 'text_raw'
wenzelm@59951
  2474
instead. The old 'header' command is still retained for some time, but
wenzelm@59951
  2475
should be replaced by 'chapter', 'section' etc. (using "isabelle
wenzelm@59951
  2476
update_header"). Minor INCOMPATIBILITY.
wenzelm@59951
  2477
wenzelm@60009
  2478
* Official support for "tt" style variants, via \isatt{...} or
wenzelm@60009
  2479
\begin{isabellett}...\end{isabellett}. The somewhat fragile \verb or
wenzelm@60009
  2480
verbatim environment of LaTeX is no longer used. This allows @{ML} etc.
wenzelm@60009
  2481
as argument to other macros (such as footnotes).
wenzelm@60009
  2482
wenzelm@60009
  2483
* Document antiquotation @{verbatim} prints ASCII text literally in "tt"
wenzelm@60009
  2484
style.
wenzelm@60009
  2485
wenzelm@60009
  2486
* Discontinued obsolete option "document_graph": session_graph.pdf is
wenzelm@60009
  2487
produced unconditionally for HTML browser_info and PDF-LaTeX document.
wenzelm@60009
  2488
wenzelm@59951
  2489
* Diagnostic commands and document markup commands within a proof do not
wenzelm@59951
  2490
affect the command tag for output. Thus commands like 'thm' are subject
wenzelm@59951
  2491
to proof document structure, and no longer "stick out" accidentally.
wenzelm@59951
  2492
Commands 'text' and 'txt' merely differ in the LaTeX style, not their
wenzelm@59951
  2493
tags. Potential INCOMPATIBILITY in exotic situations.
wenzelm@59951
  2494
wenzelm@59951
  2495
* System option "pretty_margin" is superseded by "thy_output_margin",
wenzelm@59951
  2496
which is also accessible via document antiquotation option "margin".
wenzelm@59951
  2497
Only the margin for document output may be changed, but not the global
wenzelm@59951
  2498
pretty printing: that is 76 for plain console output, and adapted
wenzelm@59951
  2499
dynamically in GUI front-ends. Implementations of document
wenzelm@59951
  2500
antiquotations need to observe the margin explicitly according to
wenzelm@59951
  2501
Thy_Output.string_of_margin. Minor INCOMPATIBILITY.
wenzelm@59951
  2502
wenzelm@60299
  2503
* Specification of 'document_files' in the session ROOT file is
wenzelm@60299
  2504
mandatory for document preparation. The legacy mode with implicit
wenzelm@60299
  2505
copying of the document/ directory is no longer supported. Minor
wenzelm@60299
  2506
INCOMPATIBILITY.
wenzelm@60299
  2507
wenzelm@59951
  2508
haftmann@58202
  2509
*** Pure ***
haftmann@58202
  2510
wenzelm@59835
  2511
* Proof methods with explicit instantiation ("rule_tac", "subgoal_tac"
wenzelm@59835
  2512
etc.) allow an optional context of local variables ('for' declaration):
wenzelm@59835
  2513
these variables become schematic in the instantiated theorem; this
wenzelm@59835
  2514
behaviour is analogous to 'for' in attributes "where" and "of".
wenzelm@59835
  2515
Configuration option rule_insts_schematic (default false) controls use
wenzelm@59835
  2516
of schematic variables outside the context. Minor INCOMPATIBILITY,
wenzelm@59835
  2517
declare rule_insts_schematic = true temporarily and update to use local
wenzelm@59835
  2518
variable declarations or dummy patterns instead.
wenzelm@59835
  2519
wenzelm@60009
  2520
* Explicit instantiation via attributes "where", "of", and proof methods
wenzelm@60009
  2521
"rule_tac" with derivatives like "subgoal_tac" etc. admit dummy patterns
wenzelm@60009
  2522
("_") that stand for anonymous local variables.
wenzelm@60009
  2523
wenzelm@59951
  2524
* Generated schematic variables in standard format of exported facts are
wenzelm@59951
  2525
incremented to avoid material in the proof context. Rare
wenzelm@59951
  2526
INCOMPATIBILITY, explicit instantiation sometimes needs to refer to
wenzelm@59951
  2527
different index.
wenzelm@59951
  2528
wenzelm@60010
  2529
* Lexical separation of signed and unsigned numerals: categories "num"
wenzelm@60010
  2530
and "float" are unsigned. INCOMPATIBILITY: subtle change in precedence
wenzelm@60010
  2531
of numeral signs, particularly in expressions involving infix syntax
wenzelm@60010
  2532
like "(- 1) ^ n".
haftmann@58410
  2533
wenzelm@58421
  2534
* Old inner token category "xnum" has been discontinued.  Potential
wenzelm@58421
  2535
INCOMPATIBILITY for exotic syntax: may use mixfix grammar with "num"
wenzelm@58421
  2536
token category instead.
wenzelm@58421
  2537
haftmann@58202
  2538
blanchet@57737
  2539
*** HOL ***
blanchet@57737
  2540
blanchet@57983
  2541
* New (co)datatype package:
blanchet@58373
  2542
  - The 'datatype_new' command has been renamed 'datatype'. The old
blanchet@58373
  2543
    command of that name is now called 'old_datatype' and is provided
blanchet@58373
  2544
    by "~~/src/HOL/Library/Old_Datatype.thy". See
blanchet@58373
  2545
    'isabelle doc datatypes' for information on porting.
blanchet@58373
  2546
    INCOMPATIBILITY.
blanchet@57983
  2547
  - Renamed theorems:
blanchet@57983
  2548
      disc_corec ~> corec_disc
blanchet@57983
  2549
      disc_corec_iff ~> corec_disc_iff
blanchet@57983
  2550
      disc_exclude ~> distinct_disc
blanchet@57983
  2551
      disc_exhaust ~> exhaust_disc
blanchet@57983
  2552
      disc_map_iff ~> map_disc_iff
blanchet@57983
  2553
      sel_corec ~> corec_sel
blanchet@57983
  2554
      sel_exhaust ~> exhaust_sel
blanchet@57983
  2555
      sel_map ~> map_sel
blanchet@57983
  2556
      sel_set ~> set_sel
blanchet@57983
  2557
      sel_split ~> split_sel
blanchet@57983
  2558
      sel_split_asm ~> split_sel_asm
blanchet@57983
  2559
      strong_coinduct ~> coinduct_strong
blanchet@57983
  2560
      weak_case_cong ~> case_cong_weak
blanchet@57983
  2561
    INCOMPATIBILITY.
blanchet@58192
  2562
  - The "no_code" option to "free_constructors", "datatype_new", and
blanchet@58192
  2563
    "codatatype" has been renamed "plugins del: code".
blanchet@58192
  2564
    INCOMPATIBILITY.
blanchet@58044
  2565
  - The rules "set_empty" have been removed. They are easy
blanchet@58044
  2566
    consequences of other set rules "by auto".
blanchet@58044
  2567
    INCOMPATIBILITY.
blanchet@58044
  2568
  - The rule "set_cases" is now registered with the "[cases set]"
blanchet@57990
  2569
    attribute. This can influence the behavior of the "cases" proof
blanchet@57990
  2570
    method when more than one case rule is applicable (e.g., an
blanchet@57990
  2571
    assumption is of the form "w : set ws" and the method "cases w"
blanchet@57990
  2572
    is invoked). The solution is to specify the case rule explicitly
blanchet@57990
  2573
    (e.g. "cases w rule: widget.exhaust").
blanchet@57990
  2574
    INCOMPATIBILITY.
blanchet@59675
  2575
  - Renamed theories:
blanchet@59675
  2576
      BNF_Comp ~> BNF_Composition
blanchet@59675
  2577
      BNF_FP_Base ~> BNF_Fixpoint_Base
blanchet@59675
  2578
      BNF_GFP ~> BNF_Greatest_Fixpoint
blanchet@59675
  2579
      BNF_LFP ~> BNF_Least_Fixpoint
blanchet@59675
  2580
      BNF_Constructions_on_Wellorders ~> BNF_Wellorder_Constructions
blanchet@59675
  2581
      Cardinals/Constructions_on_Wellorders ~> Cardinals/Wellorder_Constructions
blanchet@59675
  2582
    INCOMPATIBILITY.
wenzelm@60114
  2583
  - Lifting and Transfer setup for basic HOL types sum and prod (also
wenzelm@60114
  2584
    option) is now performed by the BNF package. Theories Lifting_Sum,
wenzelm@60114
  2585
    Lifting_Product and Lifting_Option from Main became obsolete and
wenzelm@60114
  2586
    were removed. Changed definitions of the relators rel_prod and
wenzelm@60114
  2587
    rel_sum (using inductive).
traytel@60111
  2588
    INCOMPATIBILITY: use rel_prod.simps and rel_sum.simps instead
wenzelm@60114
  2589
    of rel_prod_def and rel_sum_def.
wenzelm@60114
  2590
    Minor INCOMPATIBILITY: (rarely used by name) transfer theorem names
wenzelm@60114
  2591
    changed (e.g. map_prod_transfer ~> prod.map_transfer).
wenzelm@60261
  2592
  - Parametricity theorems for map functions, relators, set functions,
wenzelm@60261
  2593
    constructors, case combinators, discriminators, selectors and
wenzelm@60261
  2594
    (co)recursors are automatically proved and registered as transfer
wenzelm@60261
  2595
    rules.
blanchet@57983
  2596
blanchet@57983
  2597
* Old datatype package:
blanchet@58310
  2598
  - The old 'datatype' command has been renamed 'old_datatype', and
blanchet@58373
  2599
    'rep_datatype' has been renamed 'old_rep_datatype'. They are
blanchet@58373
  2600
    provided by "~~/src/HOL/Library/Old_Datatype.thy". See
blanchet@58310
  2601
    'isabelle doc datatypes' for information on porting.
blanchet@58373
  2602
    INCOMPATIBILITY.
blanchet@57983
  2603
  - Renamed theorems:
blanchet@57983
  2604
      weak_case_cong ~> case_cong_weak
blanchet@57983
  2605
    INCOMPATIBILITY.
blanchet@58373
  2606
  - Renamed theory:
blanchet@58373
  2607
      ~~/src/HOL/Datatype.thy ~> ~~/src/HOL/Library/Old_Datatype.thy
blanchet@58373
  2608
    INCOMPATIBILITY.
blanchet@57983
  2609
blanchet@59039
  2610
* Nitpick:
wenzelm@60010
  2611
  - Fixed soundness bug related to the strict and non-strict subset
blanchet@59039
  2612
    operations.
blanchet@59039
  2613
blanchet@57737
  2614
* Sledgehammer:
blanchet@59511
  2615
  - CVC4 is now included with Isabelle instead of CVC3 and run by
blanchet@59511
  2616
    default.
blanchet@59965
  2617
  - Z3 is now always enabled by default, now that it is fully open
blanchet@59965
  2618
    source. The "z3_non_commercial" option is discontinued.
blanchet@57737
  2619
  - Minimization is now always enabled by default.
wenzelm@60010
  2620
    Removed sub-command:
blanchet@57737
  2621
      min
blanchet@59967
  2622
  - Proof reconstruction, both one-liners and Isar, has been
blanchet@59039
  2623
    dramatically improved.
blanchet@59039
  2624
  - Improved support for CVC4 and veriT.
blanchet@57737
  2625
blanchet@58062
  2626
* Old and new SMT modules:
blanchet@58067
  2627
  - The old 'smt' method has been renamed 'old_smt' and moved to
wenzelm@59569
  2628
    'src/HOL/Library/Old_SMT.thy'. It is provided for compatibility,
wenzelm@59569
  2629
    until applications have been ported to use the new 'smt' method. For
wenzelm@59569
  2630
    the method to work, an older version of Z3 (e.g. Z3 3.2 or 4.0) must
wenzelm@59569
  2631
    be installed, and the environment variable "OLD_Z3_SOLVER" must
wenzelm@59569
  2632
    point to it.
blanchet@58062
  2633
    INCOMPATIBILITY.
blanchet@58067
  2634
  - The 'smt2' method has been renamed 'smt'.
blanchet@58060
  2635
    INCOMPATIBILITY.
wenzelm@59569
  2636
  - New option 'smt_reconstruction_step_timeout' to limit the
wenzelm@59569
  2637
    reconstruction time of Z3 proof steps in the new 'smt' method.
boehmes@59216
  2638
  - New option 'smt_statistics' to display statistics of the new 'smt'
boehmes@59216
  2639
    method, especially runtime statistics of Z3 proof reconstruction.
blanchet@58060
  2640
wenzelm@60261
  2641
* Lifting: command 'lift_definition' allows to execute lifted constants
wenzelm@60261
  2642
that have as a return type a datatype containing a subtype. This
wenzelm@60261
  2643
overcomes long-time limitations in the area of code generation and
wenzelm@60261
  2644
lifting, and avoids tedious workarounds.
kuncar@60258
  2645
wenzelm@60009
  2646
* Command and antiquotation "value" provide different evaluation slots
wenzelm@60009
  2647
(again), where the previous strategy (NBE after ML) serves as default.
wenzelm@60009
  2648
Minor INCOMPATIBILITY.
wenzelm@60009
  2649
wenzelm@60009
  2650
* Add NO_MATCH-simproc, allows to check for syntactic non-equality.
wenzelm@60009
  2651
wenzelm@60009
  2652
* field_simps: Use NO_MATCH-simproc for distribution rules, to avoid
wenzelm@60009
  2653
non-termination in case of distributing a division. With this change
wenzelm@60009
  2654
field_simps is in some cases slightly less powerful, if it fails try to
wenzelm@60009
  2655
add algebra_simps, or use divide_simps. Minor INCOMPATIBILITY.
wenzelm@60009
  2656
wenzelm@60009
  2657
* Separate class no_zero_divisors has been given up in favour of fully
wenzelm@60009
  2658
algebraic semiring_no_zero_divisors. INCOMPATIBILITY.
wenzelm@60009
  2659
wenzelm@60009
  2660
* Class linordered_semidom really requires no zero divisors.
wenzelm@60009
  2661
INCOMPATIBILITY.
wenzelm@60009
  2662
wenzelm@60009
  2663
* Classes division_ring, field and linordered_field always demand
wenzelm@60009
  2664
"inverse 0 = 0". Given up separate classes division_ring_inverse_zero,
wenzelm@60009
  2665
field_inverse_zero and linordered_field_inverse_zero. INCOMPATIBILITY.
wenzelm@60009
  2666
wenzelm@60009
  2667
* Classes cancel_ab_semigroup_add / cancel_monoid_add specify explicit
wenzelm@60009
  2668
additive inverse operation. INCOMPATIBILITY.
wenzelm@60009
  2669
lp15@60020
  2670
* Complex powers and square roots. The functions "ln" and "powr" are now
wenzelm@60025
  2671
overloaded for types real and complex, and 0 powr y = 0 by definition.
wenzelm@60025
  2672
INCOMPATIBILITY: type constraints may be necessary.
lp15@60020
  2673
wenzelm@60009
  2674
* The functions "sin" and "cos" are now defined for any type of sort
wenzelm@60009
  2675
"{real_normed_algebra_1,banach}" type, so in particular on "real" and
wenzelm@60009
  2676
"complex" uniformly. Minor INCOMPATIBILITY: type constraints may be
wenzelm@60009
  2677
needed.
wenzelm@60009
  2678
wenzelm@60009
  2679
* New library of properties of the complex transcendental functions sin,
wenzelm@60009
  2680
cos, tan, exp, Ln, Arctan, Arcsin, Arccos. Ported from HOL Light.
wenzelm@60009
  2681
wenzelm@60009
  2682
* The factorial function, "fact", now has type "nat => 'a" (of a sort
wenzelm@60009
  2683
that admits numeric types including nat, int, real and complex.
wenzelm@60009
  2684
INCOMPATIBILITY: an expression such as "fact 3 = 6" may require a type
wenzelm@60009
  2685
constraint, and the combination "real (fact k)" is likely to be
wenzelm@60009
  2686
unsatisfactory. If a type conversion is still necessary, then use
wenzelm@60009
  2687
"of_nat (fact k)" or "real_of_nat (fact k)".
wenzelm@60009
  2688
wenzelm@60009
  2689
* Removed functions "natfloor" and "natceiling", use "nat o floor" and
wenzelm@60009
  2690
"nat o ceiling" instead. A few of the lemmas have been retained and
wenzelm@60009
  2691
adapted: in their names "natfloor"/"natceiling" has been replaced by
wenzelm@60009
  2692
"nat_floor"/"nat_ceiling".
wenzelm@60009
  2693
wenzelm@60009
  2694
* Qualified some duplicated fact names required for boostrapping the
wenzelm@60009
  2695
type class hierarchy:
wenzelm@60009
  2696
  ab_add_uminus_conv_diff ~> diff_conv_add_uminus
wenzelm@60009
  2697
  field_inverse_zero ~> inverse_zero
wenzelm@60009
  2698
  field_divide_inverse ~> divide_inverse
wenzelm@60009
  2699
  field_inverse ~> left_inverse
wenzelm@60009
  2700
Minor INCOMPATIBILITY.
wenzelm@60009
  2701
wenzelm@60009
  2702
* Eliminated fact duplicates:
wenzelm@60009
  2703
  mult_less_imp_less_right ~> mult_right_less_imp_less
wenzelm@60009
  2704
  mult_less_imp_less_left ~> mult_left_less_imp_less
wenzelm@60009
  2705
Minor INCOMPATIBILITY.
wenzelm@60009
  2706
wenzelm@60009
  2707
* Fact consolidation: even_less_0_iff is subsumed by
wenzelm@60009
  2708
double_add_less_zero_iff_single_add_less_zero (simp by default anyway).
wenzelm@60009
  2709
wenzelm@60009
  2710
* Generalized and consolidated some theorems concerning divsibility:
wenzelm@60009
  2711
  dvd_reduce ~> dvd_add_triv_right_iff
wenzelm@60009
  2712
  dvd_plus_eq_right ~> dvd_add_right_iff
wenzelm@60009
  2713
  dvd_plus_eq_left ~> dvd_add_left_iff
wenzelm@60009
  2714
Minor INCOMPATIBILITY.
wenzelm@60009
  2715
wenzelm@60009
  2716
* "even" and "odd" are mere abbreviations for "2 dvd _" and "~ 2 dvd _"
wenzelm@60009
  2717
and part of theory Main.
wenzelm@60009
  2718
  even_def ~> even_iff_mod_2_eq_zero
wenzelm@60009
  2719
INCOMPATIBILITY.
wenzelm@60009
  2720
wenzelm@60009
  2721
* Lemma name consolidation: divide_Numeral1 ~> divide_numeral_1. Minor
wenzelm@60009
  2722
INCOMPATIBILITY.
wenzelm@60009
  2723
wenzelm@60009
  2724
* Bootstrap of listsum as special case of abstract product over lists.
wenzelm@60009
  2725
Fact rename:
wenzelm@60009
  2726
    listsum_def ~> listsum.eq_foldr
wenzelm@60009
  2727
INCOMPATIBILITY.
wenzelm@60009
  2728
wenzelm@60009
  2729
* Product over lists via constant "listprod".
wenzelm@60009
  2730
wenzelm@60009
  2731
* Theory List: renamed drop_Suc_conv_tl and nth_drop' to
wenzelm@60009
  2732
Cons_nth_drop_Suc.
nipkow@58247
  2733
Andreas@58626
  2734
* New infrastructure for compiling, running, evaluating and testing
wenzelm@59569
  2735
generated code in target languages in HOL/Library/Code_Test. See
wenzelm@59569
  2736
HOL/Codegenerator_Test/Code_Test* for examples.
wenzelm@58008
  2737
wenzelm@60009
  2738
* Library/Multiset:
blanchet@59813
  2739
  - Introduced "replicate_mset" operation.
blanchet@59813
  2740
  - Introduced alternative characterizations of the multiset ordering in
blanchet@59813
  2741
    "Library/Multiset_Order".
blanchet@59958
  2742
  - Renamed multiset ordering:
blanchet@59958
  2743
      <# ~> #<#
blanchet@59958
  2744
      <=# ~> #<=#
blanchet@59958
  2745
      \<subset># ~> #\<subset>#
blanchet@59958
  2746
      \<subseteq># ~> #\<subseteq>#