1 Isabelle NEWS -- history user-relevant changes
2 ==============================================
4 New in this Isabelle version
5 ----------------------------
9 * Prover IDE (PIDE) improvements:
11 - markup for bound variables
12 - markup for types of term variables (e.g. displayed as tooltips)
14 * Rule attributes in local theory declarations (e.g. locale or class)
15 are now statically evaluated: the resulting theorem is stored instead
16 of the original expression. INCOMPATIBILITY in rare situations, where
17 the historic accident of dynamic re-evaluation in interpretations
20 * Commands 'lemmas' and 'theorems' allow local variables using 'for'
21 declaration, and results are standardized before being stored. Thus
22 old-style "standard" after instantiation or composition of facts
23 becomes obsolete. Minor INCOMPATIBILITY, due to potential change of
24 indices of schematic variables.
26 * Renamed inner syntax categories "num" to "num_token" and "xnum" to
27 "xnum_token", in accordance to existing "float_token". Minor
28 INCOMPATIBILITY. Note that in practice "num_const" etc. are mainly
29 used instead (which also include position information via
35 * Obsolete command 'types' has been discontinued. Use 'type_synonym'
36 instead. INCOMPATIBILITY.
38 * Ancient code generator for SML and its commands 'code_module',
39 'code_library', 'consts_code', 'types_code' have been discontinued.
40 Use commands of the generic code generator instead. INCOMPATIBILITY.
42 * Redundant attribute 'code_inline' has been discontinued. Use
43 'code_unfold' instead. INCOMPATIBILITY.
45 * Dropped attribute 'code_unfold_post' in favor of the its dual
46 'code_abbrev', which yields a common pattern in definitions like
48 definition [code_abbrev]: "f = t"
52 * Sort constraints are now propagated in simultaneous statements, just
53 like type constraints. INCOMPATIBILITY in rare situations, where
54 distinct sorts used to be assigned accidentally. For example:
56 lemma "P (x::'a::foo)" and "Q (y::'a::bar)" -- "now illegal"
58 lemma "P (x::'a)" and "Q (y::'a::bar)"
59 -- "now uniform 'a::bar instead of default sort for first occurence (!)"
64 * Type 'a set is now a proper type constructor (just as before
65 Isabelle2008). Definitions mem_def and Collect_def have disappeared.
66 Non-trivial INCOMPATIBILITY. For developments keeping predicates and
67 sets separate, it is often sufficient to rephrase sets S accidentally
68 used as predicates by "%x. x : S" and predicates P accidentally used
69 as sets by "{x. P x}". Corresponding proofs in a first step should be
70 pruned from any tinkering with former theorems mem_def and
71 Collect_def. For developments which deliberately mixed predicates and
72 sets, a planning step is necessary to determine what should become a
73 predicate and what a set. It can be helpful to carry out that step in
74 Isabelle2011-1 before jumping right into the current release.
76 * New type synonym 'a rel = ('a * 'a) set
78 * Consolidated various theorem names relating to Finite_Set.fold
81 inf_INFI_fold_inf ~> inf_INF_fold_inf
82 sup_SUPR_fold_sup ~> sup_SUP_fold_sup
83 INFI_fold_inf ~> INF_fold_inf
84 SUPR_fold_sup ~> SUP_fold_sup
85 union_set ~> union_set_fold
86 minus_set ~> minus_set_fold
90 * Consolidated theorem names concerning fold combinators:
92 INFI_set_fold ~> INF_set_fold
93 SUPR_set_fold ~> SUP_set_fold
94 INF_code ~> INF_set_foldr
95 SUP_code ~> SUP_set_foldr
96 foldr.simps ~> foldr_Nil foldr_Cons (in point-free formulation)
97 foldl.simps ~> foldl_Nil foldl_Cons
98 foldr_fold_rev ~> foldr_def
99 foldl_fold ~> foldl_def
103 * Dropped rarely useful theorems concerning fold combinators:
104 foldl_apply, foldl_fun_comm, foldl_rev, fold_weak_invariant,
105 rev_foldl_cons, fold_set_remdups, fold_set, fold_set1,
106 concat_conv_foldl, foldl_weak_invariant, foldl_invariant,
107 foldr_invariant, foldl_absorb0, foldl_foldr1_lemma, foldl_foldr1,
108 listsum_conv_fold, listsum_foldl, sort_foldl_insort. INCOMPATIBILITY.
109 Prefer "List.fold" with canonical argument order, or boil down
110 "List.foldr" and "List.foldl" to "List.fold" by unfolding "foldr_def"
111 and "foldl_def". For the common phrases "%xs. List.foldr plus xs 0"
112 and "List.foldl plus 0", prefer "List.listsum".
114 * Concrete syntax for case expressions includes constraints for source
115 positions, and thus produces Prover IDE markup for its bindings.
116 INCOMPATIBILITY for old-style syntax translations that augment the
117 pattern notation; e.g. see src/HOL/HOLCF/One.thy for translations of
120 * Discontinued configuration option "syntax_positions": atomic terms
121 in parse trees are always annotated by position constraints.
123 * Finite_Set.fold now qualified. INCOMPATIBILITY.
125 * Renamed some facts on canonical fold on lists, in order to avoid
126 problems with interpretation involving corresponding facts on foldl
127 with the same base names:
129 fold_set_remdups ~> fold_set_fold_remdups
130 fold_set ~> fold_set_fold
131 fold1_set ~> fold1_set_fold
135 * Renamed facts about the power operation on relations, i.e., relpow
136 to match the constant's name:
138 rel_pow_1 ~> lemma relpow_1
139 rel_pow_0_I ~> relpow_0_I
140 rel_pow_Suc_I ~> relpow_Suc_I
141 rel_pow_Suc_I2 ~> relpow_Suc_I2
142 rel_pow_0_E ~> relpow_0_E
143 rel_pow_Suc_E ~> relpow_Suc_E
144 rel_pow_E ~> relpow_E
145 rel_pow_Suc_D2 ~> lemma relpow_Suc_D2
146 rel_pow_Suc_E2 ~> relpow_Suc_E2
147 rel_pow_Suc_D2' ~> relpow_Suc_D2'
148 rel_pow_E2 ~> relpow_E2
149 rel_pow_add ~> relpow_add
150 rel_pow_commute ~> relpow
151 rel_pow_empty ~> relpow_empty:
152 rtrancl_imp_UN_rel_pow ~> rtrancl_imp_UN_relpow
153 rel_pow_imp_rtrancl ~> relpow_imp_rtrancl
154 rtrancl_is_UN_rel_pow ~> rtrancl_is_UN_relpow
155 rtrancl_imp_rel_pow ~> rtrancl_imp_relpow
156 rel_pow_fun_conv ~> relpow_fun_conv
157 rel_pow_finite_bounded1 ~> relpow_finite_bounded1
158 rel_pow_finite_bounded ~> relpow_finite_bounded
159 rtrancl_finite_eq_rel_pow ~> rtrancl_finite_eq_relpow
160 trancl_finite_eq_rel_pow ~> trancl_finite_eq_relpow
161 single_valued_rel_pow ~> single_valued_relpow
165 * New theory HOL/Library/DAList provides an abstract type for association
166 lists with distinct keys.
168 * 'datatype' specifications allow explicit sort constraints.
170 * Theory HOL/Library/Diagonalize has been removed. INCOMPATIBILITY,
171 use theory HOL/Library/Nat_Bijection instead.
173 * Session HOL-Word: Discontinued many redundant theorems specific to
174 type 'a word. INCOMPATIBILITY, use the corresponding generic theorems
177 word_sub_alt ~> word_sub_wi
178 word_add_alt ~> word_add_def
179 word_mult_alt ~> word_mult_def
180 word_minus_alt ~> word_minus_def
181 word_0_alt ~> word_0_wi
182 word_1_alt ~> word_1_wi
183 word_add_0 ~> add_0_left
184 word_add_0_right ~> add_0_right
185 word_mult_1 ~> mult_1_left
186 word_mult_1_right ~> mult_1_right
187 word_add_commute ~> add_commute
188 word_add_assoc ~> add_assoc
189 word_add_left_commute ~> add_left_commute
190 word_mult_commute ~> mult_commute
191 word_mult_assoc ~> mult_assoc
192 word_mult_left_commute ~> mult_left_commute
193 word_left_distrib ~> left_distrib
194 word_right_distrib ~> right_distrib
195 word_left_minus ~> left_minus
196 word_diff_0_right ~> diff_0_right
197 word_diff_self ~> diff_self
198 word_sub_def ~> diff_minus
199 word_diff_minus ~> diff_minus
200 word_add_ac ~> add_ac
201 word_mult_ac ~> mult_ac
202 word_plus_ac0 ~> add_0_left add_0_right add_ac
203 word_times_ac1 ~> mult_1_left mult_1_right mult_ac
204 word_order_trans ~> order_trans
205 word_order_refl ~> order_refl
206 word_order_antisym ~> order_antisym
207 word_order_linear ~> linorder_linear
208 lenw1_zero_neq_one ~> zero_neq_one
209 word_number_of_eq ~> number_of_eq
210 word_of_int_add_hom ~> wi_hom_add
211 word_of_int_sub_hom ~> wi_hom_sub
212 word_of_int_mult_hom ~> wi_hom_mult
213 word_of_int_minus_hom ~> wi_hom_neg
214 word_of_int_succ_hom ~> wi_hom_succ
215 word_of_int_pred_hom ~> wi_hom_pred
216 word_of_int_0_hom ~> word_0_wi
217 word_of_int_1_hom ~> word_1_wi
219 * Clarified attribute "mono_set": pure declaration without modifying
220 the result of the fact expression.
222 * "Transitive_Closure.ntrancl": bounded transitive closure on
225 * Constant "Set.not_member" now qualified. INCOMPATIBILITY.
227 * "sublists" moved to theory More_List. INCOMPATIBILITY.
229 * Theory Int: Discontinued many legacy theorems specific to type int.
230 INCOMPATIBILITY, use the corresponding generic theorems instead.
232 zminus_zminus ~> minus_minus
233 zminus_0 ~> minus_zero
234 zminus_zadd_distrib ~> minus_add_distrib
235 zadd_commute ~> add_commute
236 zadd_assoc ~> add_assoc
237 zadd_left_commute ~> add_left_commute
241 zadd_0_right ~> add_0_right
242 zadd_zminus_inverse2 ~> left_minus
243 zmult_zminus ~> mult_minus_left
244 zmult_commute ~> mult_commute
245 zmult_assoc ~> mult_assoc
246 zadd_zmult_distrib ~> left_distrib
247 zadd_zmult_distrib2 ~> right_distrib
248 zdiff_zmult_distrib ~> left_diff_distrib
249 zdiff_zmult_distrib2 ~> right_diff_distrib
250 zmult_1 ~> mult_1_left
251 zmult_1_right ~> mult_1_right
252 zle_refl ~> order_refl
253 zle_trans ~> order_trans
254 zle_antisym ~> order_antisym
255 zle_linear ~> linorder_linear
256 zless_linear ~> linorder_less_linear
257 zadd_left_mono ~> add_left_mono
258 zadd_strict_right_mono ~> add_strict_right_mono
259 zadd_zless_mono ~> add_less_le_mono
260 int_0_less_1 ~> zero_less_one
261 int_0_neq_1 ~> zero_neq_one
263 zpower_zadd_distrib ~> power_add
264 zero_less_zpower_abs_iff ~> zero_less_power_abs_iff
265 zero_le_zpower_abs ~> zero_le_power_abs
267 * Theory Deriv: Renamed
269 DERIV_nonneg_imp_nonincreasing ~> DERIV_nonneg_imp_nondecreasing
271 * New "case_product" attribute to generate a case rule doing multiple
272 case distinctions at the same time. E.g.
274 list.exhaust [case_product nat.exhaust]
276 produces a rule which can be used to perform case distinction on both
279 * Improved code generation of multisets.
282 - Quickcheck returns variable assignments as counterexamples, which
283 allows to reveal the underspecification of functions under test.
284 For example, refuting "hd xs = x", it presents the variable
285 assignment xs = [] and x = a1 as a counterexample, assuming that
286 any property is false whenever "hd []" occurs in it.
287 These counterexample are marked as potentially spurious, as
288 Quickcheck also returns "xs = []" as a counterexample to the
289 obvious theorem "hd xs = hd xs".
290 After finding a potentially spurious counterexample, Quickcheck
291 continues searching for genuine ones.
292 By default, Quickcheck shows potentially spurious and genuine
293 counterexamples. The option "genuine_only" sets quickcheck to
294 only show genuine counterexamples.
296 - The command 'quickcheck_generator' creates random and exhaustive
297 value generators for a given type and operations.
298 It generates values by using the operations as if they were
299 constructors of that type.
301 - Support for multisets.
304 - Fixed infinite loop caused by the 'peephole_optim' option and
305 affecting 'rat' and 'real'.
308 - Added "lam_trans", "uncurry_aliases", and "minimize" options.
309 - Renamed "slicing" ("no_slicing") option to "slice" ("dont_slice").
310 - Renamed "sound" option to "strict".
313 - Added possibility to specify lambda translations scheme as a
314 parenthesized argument (e.g., "by (metis (lifting) ...)").
319 * New "case_product" attribute (see HOL).
324 * Antiquotation @{attributes [...]} embeds attribute source
325 representation into the ML text, which is particularly useful with
326 declarations like Local_Theory.note.
328 * Structure Proof_Context follows standard naming scheme. Old
329 ProofContext has been discontinued. INCOMPATIBILITY.
331 * Refined Local_Theory.declaration {syntax, pervasive}, with subtle
332 change of semantics: update is applied to auxiliary local theory
335 * Modernized some old-style infix operations:
337 addeqcongs ~> Simplifier.add_eqcong
338 deleqcongs ~> Simplifier.del_eqcong
339 addcongs ~> Simplifier.add_cong
340 delcongs ~> Simplifier.del_cong
341 setmksimps ~> Simplifier.set_mksimps
342 setmkcong ~> Simplifier.set_mkcong
343 setmksym ~> Simplifier.set_mksym
344 setmkeqTrue ~> Simplifier.set_mkeqTrue
345 settermless ~> Simplifier.set_termless
346 setsubgoaler ~> Simplifier.set_subgoaler
347 addsplits ~> Splitter.add_split
348 delsplits ~> Splitter.del_split
352 New in Isabelle2011-1 (October 2011)
353 ------------------------------------
357 * Improved Isabelle/jEdit Prover IDE (PIDE), which can be invoked as
358 "isabelle jedit" or "ISABELLE_HOME/Isabelle" on the command line.
360 - Management of multiple theory files directly from the editor
361 buffer store -- bypassing the file-system (no requirement to save
364 - Markup of formal entities within the text buffer, with semantic
365 highlighting, tooltips and hyperlinks to jump to defining source
368 - Improved text rendering, with sub/superscripts in the source
369 buffer (including support for copy/paste wrt. output panel, HTML
370 theory output and other non-Isabelle text boxes).
372 - Refined scheduling of proof checking and printing of results,
373 based on interactive editor view. (Note: jEdit folding and
374 narrowing allows to restrict buffer perspectives explicitly.)
376 - Reduced CPU performance requirements, usable on machines with few
379 - Reduced memory requirements due to pruning of unused document
380 versions (garbage collection).
382 See also ~~/src/Tools/jEdit/README.html for further information,
383 including some remaining limitations.
385 * Theory loader: source files are exclusively located via the master
386 directory of each theory node (where the .thy file itself resides).
387 The global load path (such as src/HOL/Library) has been discontinued.
388 Note that the path element ~~ may be used to reference theories in the
389 Isabelle home folder -- for instance, "~~/src/HOL/Library/FuncSet".
392 * Theory loader: source files are identified by content via SHA1
393 digests. Discontinued former path/modtime identification and optional
394 ISABELLE_FILE_IDENT plugin scripts.
396 * Parallelization of nested Isar proofs is subject to
397 Goal.parallel_proofs_threshold (default 100). See also isabelle
400 * Name space: former unsynchronized references are now proper
401 configuration options, with more conventional names:
403 long_names ~> names_long
404 short_names ~> names_short
405 unique_names ~> names_unique
407 Minor INCOMPATIBILITY, need to declare options in context like this:
409 declare [[names_unique = false]]
411 * Literal facts `prop` may contain dummy patterns, e.g. `_ = _`. Note
412 that the result needs to be unique, which means fact specifications
413 may have to be refined after enriching a proof context.
415 * Attribute "case_names" has been refined: the assumptions in each case
416 can be named now by following the case name with [name1 name2 ...].
418 * Isabelle/Isar reference manual has been updated and extended:
419 - "Synopsis" provides a catalog of main Isar language concepts.
420 - Formal references in syntax diagrams, via @{rail} antiquotation.
421 - Updated material from classic "ref" manual, notably about
422 "Classical Reasoner".
427 * Class bot and top require underlying partial order rather than
428 preorder: uniqueness of bot and top is guaranteed. INCOMPATIBILITY.
430 * Class complete_lattice: generalized a couple of lemmas from sets;
431 generalized theorems INF_cong and SUP_cong. New type classes for
432 complete boolean algebras and complete linear orders. Lemmas
433 Inf_less_iff, less_Sup_iff, INF_less_iff, less_SUP_iff now reside in
434 class complete_linorder.
436 Changed proposition of lemmas Inf_bool_def, Sup_bool_def, Inf_fun_def,
437 Sup_fun_def, Inf_apply, Sup_apply.
439 Removed redundant lemmas (the right hand side gives hints how to
440 replace them for (metis ...), or (simp only: ...) proofs):
442 Inf_singleton ~> Inf_insert [where A="{}", unfolded Inf_empty inf_top_right]
443 Sup_singleton ~> Sup_insert [where A="{}", unfolded Sup_empty sup_bot_right]
444 Inf_binary ~> Inf_insert, Inf_empty, and inf_top_right
445 Sup_binary ~> Sup_insert, Sup_empty, and sup_bot_right
446 Int_eq_Inter ~> Inf_insert, Inf_empty, and inf_top_right
447 Un_eq_Union ~> Sup_insert, Sup_empty, and sup_bot_right
448 Inter_def ~> INF_def, image_def
449 Union_def ~> SUP_def, image_def
450 INT_eq ~> INF_def, and image_def
451 UN_eq ~> SUP_def, and image_def
452 INF_subset ~> INF_superset_mono [OF _ order_refl]
454 More consistent and comprehensive names:
456 INTER_eq_Inter_image ~> INF_def
457 UNION_eq_Union_image ~> SUP_def
461 INF_leI2 ~> INF_lower2
462 le_INFI ~> INF_greatest
464 le_SUPI2 ~> SUP_upper2
466 INFI_bool_eq ~> INF_bool_eq
467 SUPR_bool_eq ~> SUP_bool_eq
468 INFI_apply ~> INF_apply
469 SUPR_apply ~> SUP_apply
470 INTER_def ~> INTER_eq
471 UNION_def ~> UNION_eq
475 * Renamed theory Complete_Lattice to Complete_Lattices.
478 * Theory Complete_Lattices: lemmas Inf_eq_top_iff, INF_eq_top_iff,
479 INF_image, Inf_insert, INF_top, Inf_top_conv, INF_top_conv, SUP_bot,
480 Sup_bot_conv, SUP_bot_conv, Sup_eq_top_iff, SUP_eq_top_iff, SUP_image,
481 Sup_insert are now declared as [simp]. INCOMPATIBILITY.
483 * Theory Lattice: lemmas compl_inf_bot, compl_le_comp_iff,
484 compl_sup_top, inf_idem, inf_left_idem, inf_sup_absorb, sup_idem,
485 sup_inf_absob, sup_left_idem are now declared as [simp]. Minor
488 * Added syntactic classes "inf" and "sup" for the respective
489 constants. INCOMPATIBILITY: Changes in the argument order of the
490 (mostly internal) locale predicates for some derived classes.
492 * Theorem collections ball_simps and bex_simps do not contain theorems
493 referring to UNION any longer; these have been moved to collection
494 UN_ball_bex_simps. INCOMPATIBILITY.
496 * Theory Archimedean_Field: floor now is defined as parameter of a
497 separate type class floor_ceiling.
499 * Theory Finite_Set: more coherent development of fold_set locales:
501 locale fun_left_comm ~> locale comp_fun_commute
502 locale fun_left_comm_idem ~> locale comp_fun_idem
504 Both use point-free characterization; interpretation proofs may need
505 adjustment. INCOMPATIBILITY.
507 * Theory Limits: Type "'a net" has been renamed to "'a filter", in
508 accordance with standard mathematical terminology. INCOMPATIBILITY.
510 * Theory Complex_Main: The locale interpretations for the
511 bounded_linear and bounded_bilinear locales have been removed, in
512 order to reduce the number of duplicate lemmas. Users must use the
513 original names for distributivity theorems, potential INCOMPATIBILITY.
515 divide.add ~> add_divide_distrib
516 divide.diff ~> diff_divide_distrib
517 divide.setsum ~> setsum_divide_distrib
518 mult.add_right ~> right_distrib
519 mult.diff_right ~> right_diff_distrib
520 mult_right.setsum ~> setsum_right_distrib
521 mult_left.diff ~> left_diff_distrib
523 * Theory Complex_Main: Several redundant theorems have been removed or
524 replaced by more general versions. INCOMPATIBILITY.
526 real_diff_def ~> minus_real_def
527 real_divide_def ~> divide_real_def
528 real_less_def ~> less_le
529 real_abs_def ~> abs_real_def
530 real_sgn_def ~> sgn_real_def
531 real_mult_commute ~> mult_commute
532 real_mult_assoc ~> mult_assoc
533 real_mult_1 ~> mult_1_left
534 real_add_mult_distrib ~> left_distrib
535 real_zero_not_eq_one ~> zero_neq_one
536 real_mult_inverse_left ~> left_inverse
537 INVERSE_ZERO ~> inverse_zero
538 real_le_refl ~> order_refl
539 real_le_antisym ~> order_antisym
540 real_le_trans ~> order_trans
541 real_le_linear ~> linear
542 real_le_eq_diff ~> le_iff_diff_le_0
543 real_add_left_mono ~> add_left_mono
544 real_mult_order ~> mult_pos_pos
545 real_mult_less_mono2 ~> mult_strict_left_mono
546 real_of_int_real_of_nat ~> real_of_int_of_nat_eq
547 real_0_le_divide_iff ~> zero_le_divide_iff
548 realpow_two_disj ~> power2_eq_iff
549 real_squared_diff_one_factored ~> square_diff_one_factored
550 realpow_two_diff ~> square_diff_square_factored
551 reals_complete2 ~> complete_real
552 real_sum_squared_expand ~> power2_sum
553 exp_ln_eq ~> ln_unique
555 expi_zero ~> exp_zero
556 lemma_DERIV_subst ~> DERIV_cong
557 LIMSEQ_Zfun_iff ~> tendsto_Zfun_iff
558 LIMSEQ_const ~> tendsto_const
559 LIMSEQ_norm ~> tendsto_norm
560 LIMSEQ_add ~> tendsto_add
561 LIMSEQ_minus ~> tendsto_minus
562 LIMSEQ_minus_cancel ~> tendsto_minus_cancel
563 LIMSEQ_diff ~> tendsto_diff
564 bounded_linear.LIMSEQ ~> bounded_linear.tendsto
565 bounded_bilinear.LIMSEQ ~> bounded_bilinear.tendsto
566 LIMSEQ_mult ~> tendsto_mult
567 LIMSEQ_inverse ~> tendsto_inverse
568 LIMSEQ_divide ~> tendsto_divide
569 LIMSEQ_pow ~> tendsto_power
570 LIMSEQ_setsum ~> tendsto_setsum
571 LIMSEQ_setprod ~> tendsto_setprod
572 LIMSEQ_norm_zero ~> tendsto_norm_zero_iff
573 LIMSEQ_rabs_zero ~> tendsto_rabs_zero_iff
574 LIMSEQ_imp_rabs ~> tendsto_rabs
575 LIMSEQ_add_minus ~> tendsto_add [OF _ tendsto_minus]
576 LIMSEQ_add_const ~> tendsto_add [OF _ tendsto_const]
577 LIMSEQ_diff_const ~> tendsto_diff [OF _ tendsto_const]
578 LIMSEQ_Complex ~> tendsto_Complex
579 LIM_ident ~> tendsto_ident_at
580 LIM_const ~> tendsto_const
581 LIM_add ~> tendsto_add
582 LIM_add_zero ~> tendsto_add_zero
583 LIM_minus ~> tendsto_minus
584 LIM_diff ~> tendsto_diff
585 LIM_norm ~> tendsto_norm
586 LIM_norm_zero ~> tendsto_norm_zero
587 LIM_norm_zero_cancel ~> tendsto_norm_zero_cancel
588 LIM_norm_zero_iff ~> tendsto_norm_zero_iff
589 LIM_rabs ~> tendsto_rabs
590 LIM_rabs_zero ~> tendsto_rabs_zero
591 LIM_rabs_zero_cancel ~> tendsto_rabs_zero_cancel
592 LIM_rabs_zero_iff ~> tendsto_rabs_zero_iff
593 LIM_compose ~> tendsto_compose
594 LIM_mult ~> tendsto_mult
595 LIM_scaleR ~> tendsto_scaleR
596 LIM_of_real ~> tendsto_of_real
597 LIM_power ~> tendsto_power
598 LIM_inverse ~> tendsto_inverse
599 LIM_sgn ~> tendsto_sgn
600 isCont_LIM_compose ~> isCont_tendsto_compose
601 bounded_linear.LIM ~> bounded_linear.tendsto
602 bounded_linear.LIM_zero ~> bounded_linear.tendsto_zero
603 bounded_bilinear.LIM ~> bounded_bilinear.tendsto
604 bounded_bilinear.LIM_prod_zero ~> bounded_bilinear.tendsto_zero
605 bounded_bilinear.LIM_left_zero ~> bounded_bilinear.tendsto_left_zero
606 bounded_bilinear.LIM_right_zero ~> bounded_bilinear.tendsto_right_zero
607 LIM_inverse_fun ~> tendsto_inverse [OF tendsto_ident_at]
609 * Theory Complex_Main: The definition of infinite series was
610 generalized. Now it is defined on the type class {topological_space,
611 comm_monoid_add}. Hence it is useable also for extended real numbers.
613 * Theory Complex_Main: The complex exponential function "expi" is now
614 a type-constrained abbreviation for "exp :: complex => complex"; thus
615 several polymorphic lemmas about "exp" are now applicable to "expi".
619 - Theory Library/Code_Char_ord provides native ordering of
620 characters in the target language.
622 - Commands code_module and code_library are legacy, use export_code
625 - Method "evaluation" is legacy, use method "eval" instead.
627 - Legacy evaluator "SML" is deactivated by default. May be
628 reactivated by the following theory command:
630 setup {* Value.add_evaluator ("SML", Codegen.eval_term) *}
632 * Declare ext [intro] by default. Rare INCOMPATIBILITY.
634 * New proof method "induction" that gives induction hypotheses the
635 name "IH", thus distinguishing them from further hypotheses that come
636 from rule induction. The latter are still called "hyps". Method
637 "induction" is a thin wrapper around "induct" and follows the same
640 * Method "fastsimp" has been renamed to "fastforce", but "fastsimp" is
641 still available as a legacy feature for some time.
644 - Added "need" and "total_consts" options.
645 - Reintroduced "show_skolems" option by popular demand.
646 - Renamed attribute: nitpick_def ~> nitpick_unfold.
650 - Use quasi-sound (and efficient) translations by default.
651 - Added support for the following provers: E-ToFoF, LEO-II,
652 Satallax, SNARK, Waldmeister, and Z3 with TPTP syntax.
653 - Automatically preplay and minimize proofs before showing them if
654 this can be done within reasonable time.
655 - sledgehammer available_provers ~> sledgehammer supported_provers.
657 - Added "preplay_timeout", "slicing", "type_enc", "sound",
658 "max_mono_iters", and "max_new_mono_instances" options.
659 - Removed "explicit_apply" and "full_types" options as well as "Full
660 Types" Proof General menu item. INCOMPATIBILITY.
663 - Removed "metisF" -- use "metis" instead. INCOMPATIBILITY.
664 - Obsoleted "metisFT" -- use "metis (full_types)" instead.
668 - Renamed 'try_methods' and added "simp:", "intro:", "dest:", and
669 "elim:" options. INCOMPATIBILITY.
670 - Introduced 'try' that not only runs 'try_methods' but also
671 'solve_direct', 'sledgehammer', 'quickcheck', and 'nitpick'.
674 - Added "eval" option to evaluate terms for the found counterexample
675 (currently only supported by the default (exhaustive) tester).
676 - Added post-processing of terms to obtain readable counterexamples
677 (currently only supported by the default (exhaustive) tester).
678 - New counterexample generator quickcheck[narrowing] enables
679 narrowing-based testing. Requires the Glasgow Haskell compiler
680 with its installation location defined in the Isabelle settings
681 environment as ISABELLE_GHC.
682 - Removed quickcheck tester "SML" based on the SML code generator
683 (formly in HOL/Library).
685 * Function package: discontinued option "tailrec". INCOMPATIBILITY,
686 use 'partial_function' instead.
688 * Theory Library/Extended_Reals replaces now the positive extended
689 reals found in probability theory. This file is extended by
690 Multivariate_Analysis/Extended_Real_Limits.
692 * Theory Library/Old_Recdef: old 'recdef' package has been moved here,
693 from where it must be imported explicitly if it is really required.
696 * Theory Library/Wfrec: well-founded recursion combinator "wfrec" has
697 been moved here. INCOMPATIBILITY.
699 * Theory Library/Saturated provides type of numbers with saturated
702 * Theory Library/Product_Lattice defines a pointwise ordering for the
703 product type 'a * 'b, and provides instance proofs for various order
704 and lattice type classes.
706 * Theory Library/Countable now provides the "countable_datatype" proof
707 method for proving "countable" class instances for datatypes.
709 * Theory Library/Cset_Monad allows do notation for computable sets
710 (cset) via the generic monad ad-hoc overloading facility.
712 * Library: Theories of common data structures are split into theories
713 for implementation, an invariant-ensuring type, and connection to an
714 abstract type. INCOMPATIBILITY.
716 - RBT is split into RBT and RBT_Mapping.
717 - AssocList is split and renamed into AList and AList_Mapping.
718 - DList is split into DList_Impl, DList, and DList_Cset.
719 - Cset is split into Cset and List_Cset.
721 * Theory Library/Nat_Infinity has been renamed to
722 Library/Extended_Nat, with name changes of the following types and
725 type inat ~> type enat
727 Infty ~> infinity (overloaded)
731 Every theorem name containing "inat", "Fin", "Infty", or "iSuc" has
732 been renamed accordingly. INCOMPATIBILITY.
734 * Session Multivariate_Analysis: The euclidean_space type class now
735 fixes a constant "Basis :: 'a set" consisting of the standard
736 orthonormal basis for the type. Users now have the option of
737 quantifying over this set instead of using the "basis" function, e.g.
738 "ALL x:Basis. P x" vs "ALL i<DIM('a). P (basis i)".
740 * Session Multivariate_Analysis: Type "('a, 'b) cart" has been renamed
741 to "('a, 'b) vec" (the syntax "'a ^ 'b" remains unaffected). Constants
742 "Cart_nth" and "Cart_lambda" have been respectively renamed to
743 "vec_nth" and "vec_lambda"; theorems mentioning those names have
744 changed to match. Definition theorems for overloaded constants now use
745 the standard "foo_vec_def" naming scheme. A few other theorems have
746 been renamed as follows (INCOMPATIBILITY):
748 Cart_eq ~> vec_eq_iff
749 dist_nth_le_cart ~> dist_vec_nth_le
750 tendsto_vector ~> vec_tendstoI
751 Cauchy_vector ~> vec_CauchyI
753 * Session Multivariate_Analysis: Several duplicate theorems have been
754 removed, and other theorems have been renamed or replaced with more
755 general versions. INCOMPATIBILITY.
757 finite_choice ~> finite_set_choice
758 eventually_conjI ~> eventually_conj
759 eventually_and ~> eventually_conj_iff
760 eventually_false ~> eventually_False
761 setsum_norm ~> norm_setsum
762 Lim_sequentially ~> LIMSEQ_def
763 Lim_ident_at ~> LIM_ident
764 Lim_const ~> tendsto_const
765 Lim_cmul ~> tendsto_scaleR [OF tendsto_const]
766 Lim_neg ~> tendsto_minus
767 Lim_add ~> tendsto_add
768 Lim_sub ~> tendsto_diff
769 Lim_mul ~> tendsto_scaleR
770 Lim_vmul ~> tendsto_scaleR [OF _ tendsto_const]
771 Lim_null_norm ~> tendsto_norm_zero_iff [symmetric]
772 Lim_linear ~> bounded_linear.tendsto
773 Lim_component ~> tendsto_euclidean_component
774 Lim_component_cart ~> tendsto_vec_nth
775 Lim_inner ~> tendsto_inner [OF tendsto_const]
776 dot_lsum ~> inner_setsum_left
777 dot_rsum ~> inner_setsum_right
778 continuous_cmul ~> continuous_scaleR [OF continuous_const]
779 continuous_neg ~> continuous_minus
780 continuous_sub ~> continuous_diff
781 continuous_vmul ~> continuous_scaleR [OF _ continuous_const]
782 continuous_mul ~> continuous_scaleR
783 continuous_inv ~> continuous_inverse
784 continuous_at_within_inv ~> continuous_at_within_inverse
785 continuous_at_inv ~> continuous_at_inverse
786 continuous_at_norm ~> continuous_norm [OF continuous_at_id]
787 continuous_at_infnorm ~> continuous_infnorm [OF continuous_at_id]
788 continuous_at_component ~> continuous_component [OF continuous_at_id]
789 continuous_on_neg ~> continuous_on_minus
790 continuous_on_sub ~> continuous_on_diff
791 continuous_on_cmul ~> continuous_on_scaleR [OF continuous_on_const]
792 continuous_on_vmul ~> continuous_on_scaleR [OF _ continuous_on_const]
793 continuous_on_mul ~> continuous_on_scaleR
794 continuous_on_mul_real ~> continuous_on_mult
795 continuous_on_inner ~> continuous_on_inner [OF continuous_on_const]
796 continuous_on_norm ~> continuous_on_norm [OF continuous_on_id]
797 continuous_on_inverse ~> continuous_on_inv
798 uniformly_continuous_on_neg ~> uniformly_continuous_on_minus
799 uniformly_continuous_on_sub ~> uniformly_continuous_on_diff
800 subset_interior ~> interior_mono
801 subset_closure ~> closure_mono
802 closure_univ ~> closure_UNIV
803 real_arch_lt ~> reals_Archimedean2
804 real_arch ~> reals_Archimedean3
805 real_abs_norm ~> abs_norm_cancel
806 real_abs_sub_norm ~> norm_triangle_ineq3
807 norm_cauchy_schwarz_abs ~> Cauchy_Schwarz_ineq2
809 * Session HOL-Probability:
810 - Caratheodory's extension lemma is now proved for ring_of_sets.
811 - Infinite products of probability measures are now available.
812 - Sigma closure is independent, if the generator is independent
813 - Use extended reals instead of positive extended
814 reals. INCOMPATIBILITY.
816 * Session HOLCF: Discontinued legacy theorem names, INCOMPATIBILITY.
818 expand_fun_below ~> fun_below_iff
819 below_fun_ext ~> fun_belowI
820 expand_cfun_eq ~> cfun_eq_iff
822 expand_cfun_below ~> cfun_below_iff
823 below_cfun_ext ~> cfun_belowI
824 monofun_fun_fun ~> fun_belowD
825 monofun_fun_arg ~> monofunE
826 monofun_lub_fun ~> adm_monofun [THEN admD]
827 cont_lub_fun ~> adm_cont [THEN admD]
828 cont2cont_Rep_CFun ~> cont2cont_APP
829 cont_Rep_CFun_app ~> cont_APP_app
830 cont_Rep_CFun_app_app ~> cont_APP_app_app
831 cont_cfun_fun ~> cont_Rep_cfun1 [THEN contE]
832 cont_cfun_arg ~> cont_Rep_cfun2 [THEN contE]
833 contlub_cfun ~> lub_APP [symmetric]
834 contlub_LAM ~> lub_LAM [symmetric]
837 lift_distinct1 ~> lift.distinct(1)
838 lift_distinct2 ~> lift.distinct(2)
839 Def_not_UU ~> lift.distinct(2)
840 Def_inject ~> lift.inject
841 below_UU_iff ~> below_bottom_iff
842 eq_UU_iff ~> eq_bottom_iff
845 *** Document preparation ***
847 * Antiquotation @{rail} layouts railroad syntax diagrams, see also
848 isar-ref manual, both for description and actual application of the
851 * Antiquotation @{value} evaluates the given term and presents its
854 * Antiquotations: term style "isub" provides ad-hoc conversion of
855 variables x1, y23 into subscripted form x\<^isub>1,
858 * Predefined LaTeX macros for Isabelle symbols \<bind> and \<then>
859 (e.g. see ~~/src/HOL/Library/Monad_Syntax.thy).
861 * Localized \isabellestyle switch can be used within blocks or groups
864 \isabellestyle{it} %preferred default
865 {\isabellestylett @{text "typewriter stuff"}}
867 * Discontinued special treatment of hard tabulators. Implicit
868 tab-width is now defined as 1. Potential INCOMPATIBILITY for visual
874 * The inner syntax of sort/type/term/prop supports inlined YXML
875 representations within quoted string tokens. By encoding logical
876 entities via Term_XML (in ML or Scala) concrete syntax can be
877 bypassed, which is particularly useful for producing bits of text
878 under external program control.
880 * Antiquotations for ML and document preparation are managed as theory
881 data, which requires explicit setup.
883 * Isabelle_Process.is_active allows tools to check if the official
884 process wrapper is running (Isabelle/Scala/jEdit) or the old TTY loop
885 (better known as Proof General).
887 * Structure Proof_Context follows standard naming scheme. Old
888 ProofContext is still available for some time as legacy alias.
890 * Structure Timing provides various operations for timing; supersedes
891 former start_timing/end_timing etc.
893 * Path.print is the official way to show file-system paths to users
894 (including quotes etc.).
896 * Inner syntax: identifiers in parse trees of generic categories
897 "logic", "aprop", "idt" etc. carry position information (disguised as
898 type constraints). Occasional INCOMPATIBILITY with non-compliant
899 translations that choke on unexpected type constraints. Positions can
900 be stripped in ML translations via Syntax.strip_positions /
901 Syntax.strip_positions_ast, or via the syntax constant
902 "_strip_positions" within parse trees. As last resort, positions can
903 be disabled via the configuration option Syntax.positions, which is
904 called "syntax_positions" in Isar attribute syntax.
906 * Discontinued special status of various ML structures that contribute
907 to structure Syntax (Ast, Lexicon, Mixfix, Parser, Printer etc.): less
908 pervasive content, no inclusion in structure Syntax. INCOMPATIBILITY,
909 refer directly to Ast.Constant, Lexicon.is_identifier,
910 Syntax_Trans.mk_binder_tr etc.
912 * Typed print translation: discontinued show_sorts argument, which is
913 already available via context of "advanced" translation.
915 * Refined PARALLEL_GOALS tactical: degrades gracefully for schematic
916 goal states; body tactic needs to address all subgoals uniformly.
918 * Slightly more special eq_list/eq_set, with shortcut involving
919 pointer equality (assumes that eq relation is reflexive).
921 * Classical tactics use proper Proof.context instead of historic types
922 claset/clasimpset. Old-style declarations like addIs, addEs, addDs
923 operate directly on Proof.context. Raw type claset retains its use as
924 snapshot of the classical context, which can be recovered via
925 (put_claset HOL_cs) etc. Type clasimpset has been discontinued.
926 INCOMPATIBILITY, classical tactics and derived proof methods require
927 proper Proof.context.
932 * Discontinued support for Poly/ML 5.2, which was the last version
933 without proper multithreading and TimeLimit implementation.
935 * Discontinued old lib/scripts/polyml-platform, which has been
936 obsolete since Isabelle2009-2.
938 * Various optional external tools are referenced more robustly and
939 uniformly by explicit Isabelle settings as follows:
941 ISABELLE_CSDP (formerly CSDP_EXE)
942 ISABELLE_GHC (formerly EXEC_GHC or GHC_PATH)
943 ISABELLE_OCAML (formerly EXEC_OCAML)
944 ISABELLE_SWIPL (formerly EXEC_SWIPL)
945 ISABELLE_YAP (formerly EXEC_YAP)
947 Note that automated detection from the file-system or search path has
948 been discontinued. INCOMPATIBILITY.
950 * Scala layer provides JVM method invocation service for static
951 methods of type (String)String, see Invoke_Scala.method in ML. For
954 Invoke_Scala.method "java.lang.System.getProperty" "java.home"
956 Together with YXML.string_of_body/parse_body and XML.Encode/Decode
957 this allows to pass structured values between ML and Scala.
959 * The IsabelleText fonts includes some further glyphs to support the
960 Prover IDE. Potential INCOMPATIBILITY: users who happen to have
961 installed a local copy (which is normally *not* required) need to
962 delete or update it from ~~/lib/fonts/.
966 New in Isabelle2011 (January 2011)
967 ----------------------------------
971 * Experimental Prover IDE based on Isabelle/Scala and jEdit (see
972 src/Tools/jEdit). This also serves as IDE for Isabelle/ML, with
973 useful tooltips and hyperlinks produced from its static analysis. The
974 bundled component provides an executable Isabelle tool that can be run
977 Isabelle2011/bin/isabelle jedit
979 * Significantly improved Isabelle/Isar implementation manual.
981 * System settings: ISABELLE_HOME_USER now includes ISABELLE_IDENTIFIER
982 (and thus refers to something like $HOME/.isabelle/Isabelle2011),
983 while the default heap location within that directory lacks that extra
984 suffix. This isolates multiple Isabelle installations from each
985 other, avoiding problems with old settings in new versions.
986 INCOMPATIBILITY, need to copy/upgrade old user settings manually.
988 * Source files are always encoded as UTF-8, instead of old-fashioned
989 ISO-Latin-1. INCOMPATIBILITY. Isabelle LaTeX documents might require
990 the following package declarations:
992 \usepackage[utf8]{inputenc}
993 \usepackage{textcomp}
995 * Explicit treatment of UTF-8 sequences as Isabelle symbols, such that
996 a Unicode character is treated as a single symbol, not a sequence of
997 non-ASCII bytes as before. Since Isabelle/ML string literals may
998 contain symbols without further backslash escapes, Unicode can now be
999 used here as well. Recall that Symbol.explode in ML provides a
1000 consistent view on symbols, while raw explode (or String.explode)
1001 merely give a byte-oriented representation.
1003 * Theory loader: source files are primarily located via the master
1004 directory of each theory node (where the .thy file itself resides).
1005 The global load path is still partially available as legacy feature.
1006 Minor INCOMPATIBILITY due to subtle change in file lookup: use
1007 explicit paths, relatively to the theory.
1009 * Special treatment of ML file names has been discontinued.
1010 Historically, optional extensions .ML or .sml were added on demand --
1011 at the cost of clarity of file dependencies. Recall that Isabelle/ML
1012 files exclusively use the .ML extension. Minor INCOMPATIBILTY.
1014 * Various options that affect pretty printing etc. are now properly
1015 handled within the context via configuration options, instead of
1016 unsynchronized references or print modes. There are both ML Config.T
1017 entities and Isar declaration attributes to access these.
1019 ML (Config.T) Isar (attribute)
1021 eta_contract eta_contract
1022 show_brackets show_brackets
1023 show_sorts show_sorts
1024 show_types show_types
1025 show_question_marks show_question_marks
1026 show_consts show_consts
1027 show_abbrevs show_abbrevs
1029 Syntax.ast_trace syntax_ast_trace
1030 Syntax.ast_stat syntax_ast_stat
1031 Syntax.ambiguity_level syntax_ambiguity_level
1033 Goal_Display.goals_limit goals_limit
1034 Goal_Display.show_main_goal show_main_goal
1036 Method.rule_trace rule_trace
1038 Thy_Output.display thy_output_display
1039 Thy_Output.quotes thy_output_quotes
1040 Thy_Output.indent thy_output_indent
1041 Thy_Output.source thy_output_source
1042 Thy_Output.break thy_output_break
1044 Note that corresponding "..._default" references in ML may only be
1045 changed globally at the ROOT session setup, but *not* within a theory.
1046 The option "show_abbrevs" supersedes the former print mode
1047 "no_abbrevs" with inverted meaning.
1049 * More systematic naming of some configuration options.
1052 trace_simp ~> simp_trace
1053 debug_simp ~> simp_debug
1055 * Support for real valued configuration options, using simplistic
1056 floating-point notation that coincides with the inner syntax for
1059 * Support for real valued preferences (with approximative PGIP type):
1060 front-ends need to accept "pgint" values in float notation.
1063 * The IsabelleText font now includes Cyrillic, Hebrew, Arabic from
1066 * Discontinued support for Poly/ML 5.0 and 5.1 versions.
1071 * Command 'type_synonym' (with single argument) replaces somewhat
1072 outdated 'types', which is still available as legacy feature for some
1075 * Command 'nonterminal' (with 'and' separated list of arguments)
1076 replaces somewhat outdated 'nonterminals'. INCOMPATIBILITY.
1078 * Command 'notepad' replaces former 'example_proof' for
1079 experimentation in Isar without any result. INCOMPATIBILITY.
1081 * Locale interpretation commands 'interpret' and 'sublocale' accept
1082 lists of equations to map definitions in a locale to appropriate
1083 entities in the context of the interpretation. The 'interpretation'
1084 command already provided this functionality.
1086 * Diagnostic command 'print_dependencies' prints the locale instances
1087 that would be activated if the specified expression was interpreted in
1088 the current context. Variant "print_dependencies!" assumes a context
1089 without interpretations.
1091 * Diagnostic command 'print_interps' prints interpretations in proofs
1092 in addition to interpretations in theories.
1094 * Discontinued obsolete 'global' and 'local' commands to manipulate
1095 the theory name space. Rare INCOMPATIBILITY. The ML functions
1096 Sign.root_path and Sign.local_path may be applied directly where this
1097 feature is still required for historical reasons.
1099 * Discontinued obsolete 'constdefs' command. INCOMPATIBILITY, use
1100 'definition' instead.
1102 * The "prems" fact, which refers to the accidental collection of
1103 foundational premises in the context, is now explicitly marked as
1104 legacy feature and will be discontinued soon. Consider using "assms"
1105 of the head statement or reference facts by explicit names.
1107 * Document antiquotations @{class} and @{type} print classes and type
1110 * Document antiquotation @{file} checks file/directory entries within
1111 the local file system.
1116 * Coercive subtyping: functions can be declared as coercions and type
1117 inference will add them as necessary upon input of a term. Theory
1118 Complex_Main declares real :: nat => real and real :: int => real as
1119 coercions. A coercion function f is declared like this:
1121 declare [[coercion f]]
1123 To lift coercions through type constructors (e.g. from nat => real to
1124 nat list => real list), map functions can be declared, e.g.
1126 declare [[coercion_map map]]
1128 Currently coercion inference is activated only in theories including
1129 real numbers, i.e. descendants of Complex_Main. This is controlled by
1130 the configuration option "coercion_enabled", e.g. it can be enabled in
1131 other theories like this:
1133 declare [[coercion_enabled]]
1135 * Command 'partial_function' provides basic support for recursive
1136 function definitions over complete partial orders. Concrete instances
1137 are provided for i) the option type, ii) tail recursion on arbitrary
1138 types, and iii) the heap monad of Imperative_HOL. See
1139 src/HOL/ex/Fundefs.thy and src/HOL/Imperative_HOL/ex/Linked_Lists.thy
1142 * Function package: f.psimps rules are no longer implicitly declared
1143 as [simp]. INCOMPATIBILITY.
1145 * Datatype package: theorems generated for executable equality (class
1146 "eq") carry proper names and are treated as default code equations.
1148 * Inductive package: now offers command 'inductive_simps' to
1149 automatically derive instantiated and simplified equations for
1150 inductive predicates, similar to 'inductive_cases'.
1152 * Command 'enriched_type' allows to register properties of the
1153 functorial structure of types.
1155 * Improved infrastructure for term evaluation using code generator
1156 techniques, in particular static evaluation conversions.
1158 * Code generator: Scala (2.8 or higher) has been added to the target
1161 * Code generator: globbing constant expressions "*" and "Theory.*"
1162 have been replaced by the more idiomatic "_" and "Theory._".
1165 * Code generator: export_code without explicit file declaration prints
1166 to standard output. INCOMPATIBILITY.
1168 * Code generator: do not print function definitions for case
1169 combinators any longer.
1171 * Code generator: simplification with rules determined with
1172 src/Tools/Code/code_simp.ML and method "code_simp".
1174 * Code generator for records: more idiomatic representation of record
1175 types. Warning: records are not covered by ancient SML code
1176 generation any longer. INCOMPATIBILITY. In cases of need, a suitable
1177 rep_datatype declaration helps to succeed then:
1181 rep_datatype foo_ext ...
1183 * Records: logical foundation type for records does not carry a
1184 '_type' suffix any longer (obsolete due to authentic syntax).
1187 * Quickcheck now by default uses exhaustive testing instead of random
1188 testing. Random testing can be invoked by "quickcheck [random]",
1189 exhaustive testing by "quickcheck [exhaustive]".
1191 * Quickcheck instantiates polymorphic types with small finite
1192 datatypes by default. This enables a simple execution mechanism to
1193 handle quantifiers and function equality over the finite datatypes.
1195 * Quickcheck random generator has been renamed from "code" to
1196 "random". INCOMPATIBILITY.
1198 * Quickcheck now has a configurable time limit which is set to 30
1199 seconds by default. This can be changed by adding [timeout = n] to the
1200 quickcheck command. The time limit for Auto Quickcheck is still set
1203 * Quickcheck in locales considers interpretations of that locale for
1204 counter example search.
1207 - Added "smt" and "remote_smt" provers based on the "smt" proof
1208 method. See the Sledgehammer manual for details ("isabelle doc
1211 sledgehammer atp_info ~> sledgehammer running_provers
1212 sledgehammer atp_kill ~> sledgehammer kill_provers
1213 sledgehammer available_atps ~> sledgehammer available_provers
1216 sledgehammer [atps = ...] ~> sledgehammer [provers = ...]
1217 sledgehammer [atp = ...] ~> sledgehammer [prover = ...]
1218 sledgehammer [timeout = 77 s] ~> sledgehammer [timeout = 77]
1219 (and "ms" and "min" are no longer supported)
1224 nitpick [timeout = 77 s] ~> nitpick [timeout = 77]
1225 nitpick [tac_timeout = 777 ms] ~> nitpick [tac_timeout = 0.777]
1227 - Added support for partial quotient types.
1228 - Added local versions of the "Nitpick.register_xxx" functions.
1229 - Added "whack" option.
1230 - Allow registration of quotient types as codatatypes.
1231 - Improved "merge_type_vars" option to merge more types.
1232 - Removed unsound "fast_descrs" option.
1233 - Added custom symmetry breaking for datatypes, making it possible to reach
1234 higher cardinalities.
1235 - Prevent the expansion of too large definitions.
1237 * Proof methods "metis" and "meson" now have configuration options
1238 "meson_trace", "metis_trace", and "metis_verbose" that can be enabled
1239 to diagnose these tools. E.g.
1241 using [[metis_trace = true]]
1243 * Auto Solve: Renamed "Auto Solve Direct". The tool is now available
1244 manually as command 'solve_direct'.
1246 * The default SMT solver Z3 must be enabled explicitly (due to
1247 licensing issues) by setting the environment variable
1248 Z3_NON_COMMERCIAL in etc/settings of the component, for example. For
1249 commercial applications, the SMT solver CVC3 is provided as fall-back;
1250 changing the SMT solver is done via the configuration option
1253 * Remote SMT solvers need to be referred to by the "remote_" prefix,
1254 i.e. "remote_cvc3" and "remote_z3".
1256 * Added basic SMT support for datatypes, records, and typedefs using
1257 the oracle mode (no proofs). Direct support of pairs has been dropped
1258 in exchange (pass theorems fst_conv snd_conv pair_collapse to the SMT
1259 support for a similar behavior). Minor INCOMPATIBILITY.
1261 * Changed SMT configuration options:
1263 z3_proofs ~> smt_oracle (with inverted meaning)
1264 z3_trace_assms ~> smt_trace_used_facts
1277 * Boogie output files (.b2i files) need to be declared in the theory
1280 * Simplification procedure "list_to_set_comprehension" rewrites list
1281 comprehensions applied to List.set to set comprehensions. Occasional
1282 INCOMPATIBILITY, may be deactivated like this:
1284 declare [[simproc del: list_to_set_comprehension]]
1286 * Removed old version of primrec package. INCOMPATIBILITY.
1288 * Removed simplifier congruence rule of "prod_case", as has for long
1289 been the case with "split". INCOMPATIBILITY.
1291 * String.literal is a type, but not a datatype. INCOMPATIBILITY.
1293 * Removed [split_format ... and ... and ...] version of
1294 [split_format]. Potential INCOMPATIBILITY.
1296 * Predicate "sorted" now defined inductively, with nice induction
1297 rules. INCOMPATIBILITY: former sorted.simps now named sorted_simps.
1299 * Constant "contents" renamed to "the_elem", to free the generic name
1300 contents for other uses. INCOMPATIBILITY.
1302 * Renamed class eq and constant eq (for code generation) to class
1303 equal and constant equal, plus renaming of related facts and various
1304 tuning. INCOMPATIBILITY.
1306 * Dropped type classes mult_mono and mult_mono1. INCOMPATIBILITY.
1308 * Removed output syntax "'a ~=> 'b" for "'a => 'b option".
1311 * Renamed theory Fset to Cset, type Fset.fset to Cset.set, in order to
1312 avoid confusion with finite sets. INCOMPATIBILITY.
1314 * Abandoned locales equiv, congruent and congruent2 for equivalence
1315 relations. INCOMPATIBILITY: use equivI rather than equiv_intro (same
1318 * Some previously unqualified names have been qualified:
1325 Trueprop ~> HOL.Trueprop
1330 op --> ~> HOL.implies
1342 Pair ~> Product_Type.Pair
1343 fst ~> Product_Type.fst
1344 snd ~> Product_Type.snd
1345 curry ~> Product_Type.curry
1347 Collect ~> Set.Collect
1351 * More canonical naming convention for some fundamental definitions:
1353 bot_bool_eq ~> bot_bool_def
1354 top_bool_eq ~> top_bool_def
1355 inf_bool_eq ~> inf_bool_def
1356 sup_bool_eq ~> sup_bool_def
1357 bot_fun_eq ~> bot_fun_def
1358 top_fun_eq ~> top_fun_def
1359 inf_fun_eq ~> inf_fun_def
1360 sup_fun_eq ~> sup_fun_def
1364 * More stylized fact names:
1366 expand_fun_eq ~> fun_eq_iff
1367 expand_set_eq ~> set_eq_iff
1369 nat_number ~> eval_nat_numeral
1373 * Refactoring of code-generation specific operations in theory List:
1379 mem_iff ~> member_def
1380 null_empty ~> null_def
1382 INCOMPATIBILITY. Note that these were not supposed to be used
1383 regularly unless for striking reasons; their main purpose was code
1386 Various operations from the Haskell prelude are used for generating
1389 * Term "bij f" is now an abbreviation of "bij_betw f UNIV UNIV". Term
1390 "surj f" is now an abbreviation of "range f = UNIV". The theorems
1391 bij_def and surj_def are unchanged. INCOMPATIBILITY.
1393 * Abolished some non-alphabetic type names: "prod" and "sum" replace
1394 "*" and "+" respectively. INCOMPATIBILITY.
1396 * Name "Plus" of disjoint sum operator "<+>" is now hidden. Write
1397 "Sum_Type.Plus" instead.
1399 * Constant "split" has been merged with constant "prod_case"; names of
1400 ML functions, facts etc. involving split have been retained so far,
1401 though. INCOMPATIBILITY.
1403 * Dropped old infix syntax "_ mem _" for List.member; use "_ : set _"
1404 instead. INCOMPATIBILITY.
1406 * Removed lemma "Option.is_none_none" which duplicates "is_none_def".
1409 * Former theory Library/Enum is now part of the HOL-Main image.
1410 INCOMPATIBILITY: all constants of the Enum theory now have to be
1411 referred to by its qualified name.
1414 nlists ~> Enum.nlists
1415 product ~> Enum.product
1417 * Theory Library/Monad_Syntax provides do-syntax for monad types.
1418 Syntax in Library/State_Monad has been changed to avoid ambiguities.
1421 * Theory Library/SetsAndFunctions has been split into
1422 Library/Function_Algebras and Library/Set_Algebras; canonical names
1423 for instance definitions for functions; various improvements.
1426 * Theory Library/Multiset provides stable quicksort implementation of
1429 * Theory Library/Multiset: renamed empty_idemp ~> empty_neutral.
1432 * Session Multivariate_Analysis: introduced a type class for euclidean
1433 space. Most theorems are now stated in terms of euclidean spaces
1434 instead of finite cartesian products.
1437 real ^ 'n ~> 'a::real_vector
1438 ~> 'a::euclidean_space
1439 ~> 'a::ordered_euclidean_space
1440 (depends on your needs)
1444 \<chi> x. _ ~> \<chi>\<chi> x. _
1447 Also note that the indices are now natural numbers and not from some
1448 finite type. Finite cartesian products of euclidean spaces, products
1449 of euclidean spaces the real and complex numbers are instantiated to
1450 be euclidean_spaces. INCOMPATIBILITY.
1452 * Session Probability: introduced pextreal as positive extended real
1453 numbers. Use pextreal as value for measures. Introduce the
1454 Radon-Nikodym derivative, product spaces and Fubini's theorem for
1455 arbitrary sigma finite measures. Introduces Lebesgue measure based on
1456 the integral in Multivariate Analysis. INCOMPATIBILITY.
1458 * Session Imperative_HOL: revamped, corrected dozens of inadequacies.
1461 * Session SPARK (with image HOL-SPARK) provides commands to load and
1462 prove verification conditions generated by the SPARK Ada program
1463 verifier. See also src/HOL/SPARK and src/HOL/SPARK/Examples.
1468 * Theorems for additive ring operations (locale abelian_monoid and
1469 descendants) are generated by interpretation from their multiplicative
1470 counterparts. Names (in particular theorem names) have the mandatory
1471 qualifier 'add'. Previous theorem names are redeclared for
1474 * Structure "int_ring" is now an abbreviation (previously a
1475 definition). This fits more natural with advanced interpretations.
1480 * The domain package now runs in definitional mode by default: The
1481 former command 'new_domain' is now called 'domain'. To use the domain
1482 package in its original axiomatic mode, use 'domain (unsafe)'.
1485 * The new class "domain" is now the default sort. Class "predomain"
1486 is an unpointed version of "domain". Theories can be updated by
1487 replacing sort annotations as shown below. INCOMPATIBILITY.
1489 'a::type ~> 'a::countable
1490 'a::cpo ~> 'a::predomain
1491 'a::pcpo ~> 'a::domain
1493 * The old type class "rep" has been superseded by class "domain".
1494 Accordingly, users of the definitional package must remove any
1495 "default_sort rep" declarations. INCOMPATIBILITY.
1497 * The domain package (definitional mode) now supports unpointed
1498 predomain argument types, as long as they are marked 'lazy'. (Strict
1499 arguments must be in class "domain".) For example, the following
1500 domain definition now works:
1502 domain natlist = nil | cons (lazy "nat discr") (lazy "natlist")
1504 * Theory HOLCF/Library/HOL_Cpo provides cpo and predomain class
1505 instances for types from main HOL: bool, nat, int, char, 'a + 'b,
1506 'a option, and 'a list. Additionally, it configures fixrec and the
1507 domain package to work with these types. For example:
1509 fixrec isInl :: "('a + 'b) u -> tr"
1510 where "isInl$(up$(Inl x)) = TT" | "isInl$(up$(Inr y)) = FF"
1512 domain V = VFun (lazy "V -> V") | VCon (lazy "nat") (lazy "V list")
1514 * The "(permissive)" option of fixrec has been replaced with a
1515 per-equation "(unchecked)" option. See
1516 src/HOL/HOLCF/Tutorial/Fixrec_ex.thy for examples. INCOMPATIBILITY.
1518 * The "bifinite" class no longer fixes a constant "approx"; the class
1519 now just asserts that such a function exists. INCOMPATIBILITY.
1521 * Former type "alg_defl" has been renamed to "defl". HOLCF no longer
1522 defines an embedding of type 'a defl into udom by default; instances
1523 of "bifinite" and "domain" classes are available in
1524 src/HOL/HOLCF/Library/Defl_Bifinite.thy.
1526 * The syntax "REP('a)" has been replaced with "DEFL('a)".
1528 * The predicate "directed" has been removed. INCOMPATIBILITY.
1530 * The type class "finite_po" has been removed. INCOMPATIBILITY.
1532 * The function "cprod_map" has been renamed to "prod_map".
1535 * The monadic bind operator on each powerdomain has new binder syntax
1536 similar to sets, e.g. "\<Union>\<sharp>x\<in>xs. t" represents
1537 "upper_bind\<cdot>xs\<cdot>(\<Lambda> x. t)".
1539 * The infix syntax for binary union on each powerdomain has changed
1540 from e.g. "+\<sharp>" to "\<union>\<sharp>", for consistency with set
1541 syntax. INCOMPATIBILITY.
1543 * The constant "UU" has been renamed to "bottom". The syntax "UU" is
1544 still supported as an input translation.
1546 * Renamed some theorems (the original names are also still available).
1548 expand_fun_below ~> fun_below_iff
1549 below_fun_ext ~> fun_belowI
1550 expand_cfun_eq ~> cfun_eq_iff
1551 ext_cfun ~> cfun_eqI
1552 expand_cfun_below ~> cfun_below_iff
1553 below_cfun_ext ~> cfun_belowI
1554 cont2cont_Rep_CFun ~> cont2cont_APP
1556 * The Abs and Rep functions for various types have changed names.
1557 Related theorem names have also changed to match. INCOMPATIBILITY.
1559 Rep_CFun ~> Rep_cfun
1560 Abs_CFun ~> Abs_cfun
1561 Rep_Sprod ~> Rep_sprod
1562 Abs_Sprod ~> Abs_sprod
1563 Rep_Ssum ~> Rep_ssum
1564 Abs_Ssum ~> Abs_ssum
1566 * Lemmas with names of the form *_defined_iff or *_strict_iff have
1567 been renamed to *_bottom_iff. INCOMPATIBILITY.
1569 * Various changes to bisimulation/coinduction with domain package:
1571 - Definitions of "bisim" constants no longer mention definedness.
1572 - With mutual recursion, "bisim" predicate is now curried.
1573 - With mutual recursion, each type gets a separate coind theorem.
1574 - Variable names in bisim_def and coinduct rules have changed.
1578 * Case combinators generated by the domain package for type "foo" are
1579 now named "foo_case" instead of "foo_when". INCOMPATIBILITY.
1581 * Several theorems have been renamed to more accurately reflect the
1582 names of constants and types involved. INCOMPATIBILITY.
1584 thelub_const ~> lub_const
1585 lub_const ~> is_lub_const
1587 is_lub_lub ~> is_lubD2
1589 unique_lub ~> is_lub_unique
1590 is_ub_lub ~> is_lub_rangeD1
1591 lub_bin_chain ~> is_lub_bin_chain
1592 lub_fun ~> is_lub_fun
1593 thelub_fun ~> lub_fun
1594 thelub_cfun ~> lub_cfun
1595 thelub_Pair ~> lub_Pair
1596 lub_cprod ~> is_lub_prod
1597 thelub_cprod ~> lub_prod
1598 minimal_cprod ~> minimal_prod
1599 inst_cprod_pcpo ~> inst_prod_pcpo
1601 compact_UU ~> compact_bottom
1602 deflation_UU ~> deflation_bottom
1603 finite_deflation_UU ~> finite_deflation_bottom
1605 * Many legacy theorem names have been discontinued. INCOMPATIBILITY.
1607 sq_ord_less_eq_trans ~> below_eq_trans
1608 sq_ord_eq_less_trans ~> eq_below_trans
1609 refl_less ~> below_refl
1610 trans_less ~> below_trans
1611 antisym_less ~> below_antisym
1612 antisym_less_inverse ~> po_eq_conv [THEN iffD1]
1613 box_less ~> box_below
1614 rev_trans_less ~> rev_below_trans
1615 not_less2not_eq ~> not_below2not_eq
1616 less_UU_iff ~> below_UU_iff
1617 flat_less_iff ~> flat_below_iff
1618 adm_less ~> adm_below
1619 adm_not_less ~> adm_not_below
1620 adm_compact_not_less ~> adm_compact_not_below
1621 less_fun_def ~> below_fun_def
1622 expand_fun_less ~> fun_below_iff
1623 less_fun_ext ~> fun_belowI
1624 less_discr_def ~> below_discr_def
1625 discr_less_eq ~> discr_below_eq
1626 less_unit_def ~> below_unit_def
1627 less_cprod_def ~> below_prod_def
1628 prod_lessI ~> prod_belowI
1629 Pair_less_iff ~> Pair_below_iff
1630 fst_less_iff ~> fst_below_iff
1631 snd_less_iff ~> snd_below_iff
1632 expand_cfun_less ~> cfun_below_iff
1633 less_cfun_ext ~> cfun_belowI
1634 injection_less ~> injection_below
1635 less_up_def ~> below_up_def
1636 not_Iup_less ~> not_Iup_below
1637 Iup_less ~> Iup_below
1639 Def_inject_less_eq ~> Def_below_Def
1640 Def_less_is_eq ~> Def_below_iff
1641 spair_less_iff ~> spair_below_iff
1642 less_sprod ~> below_sprod
1643 spair_less ~> spair_below
1644 sfst_less_iff ~> sfst_below_iff
1645 ssnd_less_iff ~> ssnd_below_iff
1646 fix_least_less ~> fix_least_below
1647 dist_less_one ~> dist_below_one
1648 less_ONE ~> below_ONE
1649 ONE_less_iff ~> ONE_below_iff
1650 less_sinlD ~> below_sinlD
1651 less_sinrD ~> below_sinrD
1656 * All constant names are now qualified internally and use proper
1657 identifiers, e.g. "IFOL.eq" instead of "op =". INCOMPATIBILITY.
1662 * Antiquotation @{assert} inlines a function bool -> unit that raises
1663 Fail if the argument is false. Due to inlining the source position of
1664 failed assertions is included in the error output.
1666 * Discontinued antiquotation @{theory_ref}, which is obsolete since ML
1667 text is in practice always evaluated with a stable theory checkpoint.
1668 Minor INCOMPATIBILITY, use (Theory.check_thy @{theory}) instead.
1670 * Antiquotation @{theory A} refers to theory A from the ancestry of
1671 the current context, not any accidental theory loader state as before.
1672 Potential INCOMPATIBILITY, subtle change in semantics.
1674 * Syntax.pretty_priority (default 0) configures the required priority
1675 of pretty-printed output and thus affects insertion of parentheses.
1677 * Syntax.default_root (default "any") configures the inner syntax
1678 category (nonterminal symbol) for parsing of terms.
1680 * Former exception Library.UnequalLengths now coincides with
1681 ListPair.UnequalLengths.
1683 * Renamed structure MetaSimplifier to Raw_Simplifier. Note that the
1684 main functionality is provided by structure Simplifier.
1686 * Renamed raw "explode" function to "raw_explode" to emphasize its
1687 meaning. Note that internally to Isabelle, Symbol.explode is used in
1688 almost all situations.
1690 * Discontinued obsolete function sys_error and exception SYS_ERROR.
1691 See implementation manual for further details on exceptions in
1694 * Renamed setmp_noncritical to Unsynchronized.setmp to emphasize its
1697 * Renamed structure PureThy to Pure_Thy and moved most of its
1698 operations to structure Global_Theory, to emphasize that this is
1699 rarely-used global-only stuff.
1701 * Discontinued Output.debug. Minor INCOMPATIBILITY, use plain writeln
1702 instead (or tracing for high-volume output).
1704 * Configuration option show_question_marks only affects regular pretty
1705 printing of types and terms, not raw Term.string_of_vname.
1707 * ML_Context.thm and ML_Context.thms are no longer pervasive. Rare
1708 INCOMPATIBILITY, superseded by static antiquotations @{thm} and
1709 @{thms} for most purposes.
1711 * ML structure Unsynchronized is never opened, not even in Isar
1712 interaction mode as before. Old Unsynchronized.set etc. have been
1713 discontinued -- use plain := instead. This should be *rare* anyway,
1714 since modern tools always work via official context data, notably
1715 configuration options.
1717 * Parallel and asynchronous execution requires special care concerning
1718 interrupts. Structure Exn provides some convenience functions that
1719 avoid working directly with raw Interrupt. User code must not absorb
1720 interrupts -- intermediate handling (for cleanup etc.) needs to be
1721 followed by re-raising of the original exception. Another common
1722 source of mistakes are "handle _" patterns, which make the meaning of
1723 the program subject to physical effects of the environment.
1727 New in Isabelle2009-2 (June 2010)
1728 ---------------------------------
1732 * Authentic syntax for *all* logical entities (type classes, type
1733 constructors, term constants): provides simple and robust
1734 correspondence between formal entities and concrete syntax. Within
1735 the parse tree / AST representations, "constants" are decorated by
1736 their category (class, type, const) and spelled out explicitly with
1737 their full internal name.
1739 Substantial INCOMPATIBILITY concerning low-level syntax declarations
1740 and translations (translation rules and translation functions in ML).
1741 Some hints on upgrading:
1743 - Many existing uses of 'syntax' and 'translations' can be replaced
1744 by more modern 'type_notation', 'notation' and 'abbreviation',
1745 which are independent of this issue.
1747 - 'translations' require markup within the AST; the term syntax
1748 provides the following special forms:
1750 CONST c -- produces syntax version of constant c from context
1751 XCONST c -- literally c, checked as constant from context
1752 c -- literally c, if declared by 'syntax'
1754 Plain identifiers are treated as AST variables -- occasionally the
1755 system indicates accidental variables via the error "rhs contains
1758 Type classes and type constructors are marked according to their
1759 concrete syntax. Some old translations rules need to be written
1760 for the "type" category, using type constructor application
1761 instead of pseudo-term application of the default category
1764 - 'parse_translation' etc. in ML may use the following
1767 @{class_syntax c} -- type class c within parse tree / AST
1768 @{term_syntax c} -- type constructor c within parse tree / AST
1769 @{const_syntax c} -- ML version of "CONST c" above
1770 @{syntax_const c} -- literally c (checked wrt. 'syntax' declarations)
1772 - Literal types within 'typed_print_translations', i.e. those *not*
1773 represented as pseudo-terms are represented verbatim. Use @{class
1774 c} or @{type_name c} here instead of the above syntax
1777 Note that old non-authentic syntax was based on unqualified base
1778 names, so all of the above "constant" names would coincide. Recall
1779 that 'print_syntax' and ML_command "set Syntax.trace_ast" help to
1780 diagnose syntax problems.
1782 * Type constructors admit general mixfix syntax, not just infix.
1784 * Concrete syntax may be attached to local entities without a proof
1785 body, too. This works via regular mixfix annotations for 'fix',
1786 'def', 'obtain' etc. or via the explicit 'write' command, which is
1787 similar to the 'notation' command in theory specifications.
1789 * Discontinued unnamed infix syntax (legacy feature for many years) --
1790 need to specify constant name and syntax separately. Internal ML
1791 datatype constructors have been renamed from InfixName to Infix etc.
1792 Minor INCOMPATIBILITY.
1794 * Schematic theorem statements need to be explicitly markup as such,
1795 via commands 'schematic_lemma', 'schematic_theorem',
1796 'schematic_corollary'. Thus the relevance of the proof is made
1797 syntactically clear, which impacts performance in a parallel or
1798 asynchronous interactive environment. Minor INCOMPATIBILITY.
1800 * Use of cumulative prems via "!" in some proof methods has been
1801 discontinued (old legacy feature).
1803 * References 'trace_simp' and 'debug_simp' have been replaced by
1804 configuration options stored in the context. Enabling tracing (the
1805 case of debugging is similar) in proofs works via
1807 using [[trace_simp = true]]
1809 Tracing is then active for all invocations of the simplifier in
1810 subsequent goal refinement steps. Tracing may also still be enabled or
1811 disabled via the ProofGeneral settings menu.
1813 * Separate commands 'hide_class', 'hide_type', 'hide_const',
1814 'hide_fact' replace the former 'hide' KIND command. Minor
1817 * Improved parallelism of proof term normalization: usedir -p2 -q0 is
1818 more efficient than combinations with -q1 or -q2.
1823 * Proofterms record type-class reasoning explicitly, using the
1824 "unconstrain" operation internally. This eliminates all sort
1825 constraints from a theorem and proof, introducing explicit
1826 OFCLASS-premises. On the proof term level, this operation is
1827 automatically applied at theorem boundaries, such that closed proofs
1828 are always free of sort constraints. INCOMPATIBILITY for tools that
1829 inspect proof terms.
1831 * Local theory specifications may depend on extra type variables that
1832 are not present in the result type -- arguments TYPE('a) :: 'a itself
1833 are added internally. For example:
1835 definition unitary :: bool where "unitary = (ALL (x::'a) y. x = y)"
1837 * Predicates of locales introduced by classes carry a mandatory
1838 "class" prefix. INCOMPATIBILITY.
1840 * Vacuous class specifications observe default sort. INCOMPATIBILITY.
1842 * Old 'axclass' command has been discontinued. INCOMPATIBILITY, use
1845 * Command 'code_reflect' allows to incorporate generated ML code into
1846 runtime environment; replaces immature code_datatype antiquotation.
1849 * Code generator: simple concept for abstract datatypes obeying
1852 * Code generator: details of internal data cache have no impact on the
1853 user space functionality any longer.
1855 * Methods "unfold_locales" and "intro_locales" ignore non-locale
1856 subgoals. This is more appropriate for interpretations with 'where'.
1859 * Command 'example_proof' opens an empty proof body. This allows to
1860 experiment with Isar, without producing any persistent result.
1862 * Commands 'type_notation' and 'no_type_notation' declare type syntax
1863 within a local theory context, with explicit checking of the
1864 constructors involved (in contrast to the raw 'syntax' versions).
1866 * Commands 'types' and 'typedecl' now work within a local theory
1867 context -- without introducing dependencies on parameters or
1868 assumptions, which is not possible in Isabelle/Pure.
1870 * Command 'defaultsort' has been renamed to 'default_sort', it works
1871 within a local theory context. Minor INCOMPATIBILITY.
1876 * Command 'typedef' now works within a local theory context -- without
1877 introducing dependencies on parameters or assumptions, which is not
1878 possible in Isabelle/Pure/HOL. Note that the logical environment may
1879 contain multiple interpretations of local typedefs (with different
1880 non-emptiness proofs), even in a global theory context.
1882 * New package for quotient types. Commands 'quotient_type' and
1883 'quotient_definition' may be used for defining types and constants by
1884 quotient constructions. An example is the type of integers created by
1885 quotienting pairs of natural numbers:
1888 intrel :: "(nat * nat) => (nat * nat) => bool"
1890 "intrel (x, y) (u, v) = (x + v = u + y)"
1892 quotient_type int = "nat * nat" / intrel
1893 by (auto simp add: equivp_def expand_fun_eq)
1896 "0::int" is "(0::nat, 0::nat)"
1898 The method "lifting" can be used to lift of theorems from the
1899 underlying "raw" type to the quotient type. The example
1900 src/HOL/Quotient_Examples/FSet.thy includes such a quotient
1901 construction and provides a reasoning infrastructure for finite sets.
1903 * Renamed Library/Quotient.thy to Library/Quotient_Type.thy to avoid
1904 clash with new theory Quotient in Main HOL.
1906 * Moved the SMT binding into the main HOL session, eliminating
1907 separate HOL-SMT session.
1909 * List membership infix mem operation is only an input abbreviation.
1912 * Theory Library/Word.thy has been removed. Use library Word/Word.thy
1913 for future developements; former Library/Word.thy is still present in
1914 the AFP entry RSAPPS.
1916 * Theorem Int.int_induct renamed to Int.int_of_nat_induct and is no
1917 longer shadowed. INCOMPATIBILITY.
1919 * Dropped theorem duplicate comp_arith; use semiring_norm instead.
1922 * Dropped theorem RealPow.real_sq_order; use power2_le_imp_le instead.
1925 * Dropped normalizing_semiring etc; use the facts in semiring classes
1926 instead. INCOMPATIBILITY.
1928 * Dropped several real-specific versions of lemmas about floor and
1929 ceiling; use the generic lemmas from theory "Archimedean_Field"
1930 instead. INCOMPATIBILITY.
1932 floor_number_of_eq ~> floor_number_of
1933 le_floor_eq_number_of ~> number_of_le_floor
1934 le_floor_eq_zero ~> zero_le_floor
1935 le_floor_eq_one ~> one_le_floor
1936 floor_less_eq_number_of ~> floor_less_number_of
1937 floor_less_eq_zero ~> floor_less_zero
1938 floor_less_eq_one ~> floor_less_one
1939 less_floor_eq_number_of ~> number_of_less_floor
1940 less_floor_eq_zero ~> zero_less_floor
1941 less_floor_eq_one ~> one_less_floor
1942 floor_le_eq_number_of ~> floor_le_number_of
1943 floor_le_eq_zero ~> floor_le_zero
1944 floor_le_eq_one ~> floor_le_one
1945 floor_subtract_number_of ~> floor_diff_number_of
1946 floor_subtract_one ~> floor_diff_one
1947 ceiling_number_of_eq ~> ceiling_number_of
1948 ceiling_le_eq_number_of ~> ceiling_le_number_of
1949 ceiling_le_zero_eq ~> ceiling_le_zero
1950 ceiling_le_eq_one ~> ceiling_le_one
1951 less_ceiling_eq_number_of ~> number_of_less_ceiling
1952 less_ceiling_eq_zero ~> zero_less_ceiling
1953 less_ceiling_eq_one ~> one_less_ceiling
1954 ceiling_less_eq_number_of ~> ceiling_less_number_of
1955 ceiling_less_eq_zero ~> ceiling_less_zero
1956 ceiling_less_eq_one ~> ceiling_less_one
1957 le_ceiling_eq_number_of ~> number_of_le_ceiling
1958 le_ceiling_eq_zero ~> zero_le_ceiling
1959 le_ceiling_eq_one ~> one_le_ceiling
1960 ceiling_subtract_number_of ~> ceiling_diff_number_of
1961 ceiling_subtract_one ~> ceiling_diff_one
1963 * Theory "Finite_Set": various folding_XXX locales facilitate the
1964 application of the various fold combinators on finite sets.
1966 * Library theory "RBT" renamed to "RBT_Impl"; new library theory "RBT"
1967 provides abstract red-black tree type which is backed by "RBT_Impl" as
1968 implementation. INCOMPATIBILTY.
1970 * Theory Library/Coinductive_List has been removed -- superseded by
1971 AFP/thys/Coinductive.
1973 * Theory PReal, including the type "preal" and related operations, has
1974 been removed. INCOMPATIBILITY.
1976 * Real: new development using Cauchy Sequences.
1978 * Split off theory "Big_Operators" containing setsum, setprod,
1979 Inf_fin, Sup_fin, Min, Max from theory Finite_Set. INCOMPATIBILITY.
1981 * Theory "Rational" renamed to "Rat", for consistency with "Nat",
1982 "Int" etc. INCOMPATIBILITY.
1984 * Constant Rat.normalize needs to be qualified. INCOMPATIBILITY.
1986 * New set of rules "ac_simps" provides combined assoc / commute
1987 rewrites for all interpretations of the appropriate generic locales.
1989 * Renamed theory "OrderedGroup" to "Groups" and split theory
1990 "Ring_and_Field" into theories "Rings" and "Fields"; for more
1991 appropriate and more consistent names suitable for name prefixes
1992 within the HOL theories. INCOMPATIBILITY.
1994 * Some generic constants have been put to appropriate theories:
1995 - less_eq, less: Orderings
1996 - zero, one, plus, minus, uminus, times, abs, sgn: Groups
1997 - inverse, divide: Rings
2000 * More consistent naming of type classes involving orderings (and
2003 lower_semilattice ~> semilattice_inf
2004 upper_semilattice ~> semilattice_sup
2006 dense_linear_order ~> dense_linorder
2008 pordered_ab_group_add ~> ordered_ab_group_add
2009 pordered_ab_group_add_abs ~> ordered_ab_group_add_abs
2010 pordered_ab_semigroup_add ~> ordered_ab_semigroup_add
2011 pordered_ab_semigroup_add_imp_le ~> ordered_ab_semigroup_add_imp_le
2012 pordered_cancel_ab_semigroup_add ~> ordered_cancel_ab_semigroup_add
2013 pordered_cancel_comm_semiring ~> ordered_cancel_comm_semiring
2014 pordered_cancel_semiring ~> ordered_cancel_semiring
2015 pordered_comm_monoid_add ~> ordered_comm_monoid_add
2016 pordered_comm_ring ~> ordered_comm_ring
2017 pordered_comm_semiring ~> ordered_comm_semiring
2018 pordered_ring ~> ordered_ring
2019 pordered_ring_abs ~> ordered_ring_abs
2020 pordered_semiring ~> ordered_semiring
2022 ordered_ab_group_add ~> linordered_ab_group_add
2023 ordered_ab_semigroup_add ~> linordered_ab_semigroup_add
2024 ordered_cancel_ab_semigroup_add ~> linordered_cancel_ab_semigroup_add
2025 ordered_comm_semiring_strict ~> linordered_comm_semiring_strict
2026 ordered_field ~> linordered_field
2027 ordered_field_no_lb ~> linordered_field_no_lb
2028 ordered_field_no_ub ~> linordered_field_no_ub
2029 ordered_field_dense_linear_order ~> dense_linordered_field
2030 ordered_idom ~> linordered_idom
2031 ordered_ring ~> linordered_ring
2032 ordered_ring_le_cancel_factor ~> linordered_ring_le_cancel_factor
2033 ordered_ring_less_cancel_factor ~> linordered_ring_less_cancel_factor
2034 ordered_ring_strict ~> linordered_ring_strict
2035 ordered_semidom ~> linordered_semidom
2036 ordered_semiring ~> linordered_semiring
2037 ordered_semiring_1 ~> linordered_semiring_1
2038 ordered_semiring_1_strict ~> linordered_semiring_1_strict
2039 ordered_semiring_strict ~> linordered_semiring_strict
2041 The following slightly odd type classes have been moved to a
2042 separate theory Library/Lattice_Algebras:
2044 lordered_ab_group_add ~> lattice_ab_group_add
2045 lordered_ab_group_add_abs ~> lattice_ab_group_add_abs
2046 lordered_ab_group_add_meet ~> semilattice_inf_ab_group_add
2047 lordered_ab_group_add_join ~> semilattice_sup_ab_group_add
2048 lordered_ring ~> lattice_ring
2052 * Refined field classes:
2053 - classes division_ring_inverse_zero, field_inverse_zero,
2054 linordered_field_inverse_zero include rule inverse 0 = 0 --
2055 subsumes former division_by_zero class;
2056 - numerous lemmas have been ported from field to division_ring.
2059 * Refined algebra theorem collections:
2060 - dropped theorem group group_simps, use algebra_simps instead;
2061 - dropped theorem group ring_simps, use field_simps instead;
2062 - proper theorem collection field_simps subsumes former theorem
2063 groups field_eq_simps and field_simps;
2064 - dropped lemma eq_minus_self_iff which is a duplicate for
2068 * Theory Finite_Set and List: some lemmas have been generalized from
2071 fun_left_comm_idem_inter ~> fun_left_comm_idem_inf
2072 fun_left_comm_idem_union ~> fun_left_comm_idem_sup
2073 inter_Inter_fold_inter ~> inf_Inf_fold_inf
2074 union_Union_fold_union ~> sup_Sup_fold_sup
2075 Inter_fold_inter ~> Inf_fold_inf
2076 Union_fold_union ~> Sup_fold_sup
2077 inter_INTER_fold_inter ~> inf_INFI_fold_inf
2078 union_UNION_fold_union ~> sup_SUPR_fold_sup
2079 INTER_fold_inter ~> INFI_fold_inf
2080 UNION_fold_union ~> SUPR_fold_sup
2082 * Theory "Complete_Lattice": lemmas top_def and bot_def have been
2083 replaced by the more convenient lemmas Inf_empty and Sup_empty.
2084 Dropped lemmas Inf_insert_simp and Sup_insert_simp, which are subsumed
2085 by Inf_insert and Sup_insert. Lemmas Inf_UNIV and Sup_UNIV replace
2086 former Inf_Univ and Sup_Univ. Lemmas inf_top_right and sup_bot_right
2087 subsume inf_top and sup_bot respectively. INCOMPATIBILITY.
2089 * Reorganized theory Multiset: swapped notation of pointwise and
2092 - pointwise ordering is instance of class order with standard syntax
2094 - multiset ordering has syntax <=# and <#; partial order properties
2095 are provided by means of interpretation with prefix
2097 - less duplication, less historical organization of sections,
2098 conversion from associations lists to multisets, rudimentary code
2100 - use insert_DiffM2 [symmetric] instead of elem_imp_eq_diff_union,
2105 multiset_eq_conv_count_eq ~> multiset_ext_iff
2106 multi_count_ext ~> multiset_ext
2107 diff_union_inverse2 ~> diff_union_cancelR
2111 * Theory Permutation: replaced local "remove" by List.remove1.
2113 * Code generation: ML and OCaml code is decorated with signatures.
2115 * Theory List: added transpose.
2117 * Library/Nat_Bijection.thy is a collection of bijective functions
2118 between nat and other types, which supersedes the older libraries
2119 Library/Nat_Int_Bij.thy and HOLCF/NatIso.thy. INCOMPATIBILITY.
2122 Nat_Int_Bij.nat2_to_nat ~> prod_encode
2123 Nat_Int_Bij.nat_to_nat2 ~> prod_decode
2124 Nat_Int_Bij.int_to_nat_bij ~> int_encode
2125 Nat_Int_Bij.nat_to_int_bij ~> int_decode
2126 Countable.pair_encode ~> prod_encode
2127 NatIso.prod2nat ~> prod_encode
2128 NatIso.nat2prod ~> prod_decode
2129 NatIso.sum2nat ~> sum_encode
2130 NatIso.nat2sum ~> sum_decode
2131 NatIso.list2nat ~> list_encode
2132 NatIso.nat2list ~> list_decode
2133 NatIso.set2nat ~> set_encode
2134 NatIso.nat2set ~> set_decode
2137 Nat_Int_Bij.bij_nat_to_int_bij ~> bij_int_decode
2138 Nat_Int_Bij.nat2_to_nat_inj ~> inj_prod_encode
2139 Nat_Int_Bij.nat2_to_nat_surj ~> surj_prod_encode
2140 Nat_Int_Bij.nat_to_nat2_inj ~> inj_prod_decode
2141 Nat_Int_Bij.nat_to_nat2_surj ~> surj_prod_decode
2142 Nat_Int_Bij.i2n_n2i_id ~> int_encode_inverse
2143 Nat_Int_Bij.n2i_i2n_id ~> int_decode_inverse
2144 Nat_Int_Bij.surj_nat_to_int_bij ~> surj_int_encode
2145 Nat_Int_Bij.surj_int_to_nat_bij ~> surj_int_decode
2146 Nat_Int_Bij.inj_nat_to_int_bij ~> inj_int_encode
2147 Nat_Int_Bij.inj_int_to_nat_bij ~> inj_int_decode
2148 Nat_Int_Bij.bij_nat_to_int_bij ~> bij_int_encode
2149 Nat_Int_Bij.bij_int_to_nat_bij ~> bij_int_decode
2152 - Renamed ATP commands:
2153 atp_info ~> sledgehammer running_atps
2154 atp_kill ~> sledgehammer kill_atps
2155 atp_messages ~> sledgehammer messages
2156 atp_minimize ~> sledgehammer minimize
2157 print_atps ~> sledgehammer available_atps
2159 - Added user's manual ("isabelle doc sledgehammer").
2160 - Added option syntax and "sledgehammer_params" to customize
2161 Sledgehammer's behavior. See the manual for details.
2162 - Modified the Isar proof reconstruction code so that it produces
2163 direct proofs rather than proofs by contradiction. (This feature
2164 is still experimental.)
2165 - Made Isar proof reconstruction work for SPASS, remote ATPs, and in
2167 - Added support for TPTP syntax for SPASS via the "spass_tptp" ATP.
2170 - Added and implemented "binary_ints" and "bits" options.
2171 - Added "std" option and implemented support for nonstandard models.
2172 - Added and implemented "finitize" option to improve the precision
2173 of infinite datatypes based on a monotonicity analysis.
2174 - Added support for quotient types.
2175 - Added support for "specification" and "ax_specification"
2177 - Added support for local definitions (for "function" and
2178 "termination" proofs).
2179 - Added support for term postprocessors.
2180 - Optimized "Multiset.multiset" and "FinFun.finfun".
2181 - Improved efficiency of "destroy_constrs" optimization.
2182 - Fixed soundness bugs related to "destroy_constrs" optimization and
2184 - Fixed soundness bug related to higher-order constructors.
2185 - Fixed soundness bug when "full_descrs" is enabled.
2186 - Improved precision of set constructs.
2187 - Added "atoms" option.
2188 - Added cache to speed up repeated Kodkod invocations on the same
2190 - Renamed "MiniSatJNI", "zChaffJNI", "BerkMinAlloy", and
2191 "SAT4JLight" to "MiniSat_JNI", "zChaff_JNI", "BerkMin_Alloy", and
2192 "SAT4J_Light". INCOMPATIBILITY.
2193 - Removed "skolemize", "uncurry", "sym_break", "flatten_prop",
2194 "sharing_depth", and "show_skolems" options. INCOMPATIBILITY.
2195 - Removed "nitpick_intro" attribute. INCOMPATIBILITY.
2197 * Method "induct" now takes instantiations of the form t, where t is not
2198 a variable, as a shorthand for "x == t", where x is a fresh variable.
2199 If this is not intended, t has to be enclosed in parentheses.
2200 By default, the equalities generated by definitional instantiations
2201 are pre-simplified, which may cause parameters of inductive cases
2202 to disappear, or may even delete some of the inductive cases.
2203 Use "induct (no_simp)" instead of "induct" to restore the old
2204 behaviour. The (no_simp) option is also understood by the "cases"
2205 and "nominal_induct" methods, which now perform pre-simplification, too.
2211 * Variable names in lemmas generated by the domain package have
2212 changed; the naming scheme is now consistent with the HOL datatype
2213 package. Some proof scripts may be affected, INCOMPATIBILITY.
2215 * The domain package no longer defines the function "foo_copy" for
2216 recursive domain "foo". The reach lemma is now stated directly in
2217 terms of "foo_take". Lemmas and proofs that mention "foo_copy" must
2218 be reformulated in terms of "foo_take", INCOMPATIBILITY.
2220 * Most definedness lemmas generated by the domain package (previously
2221 of the form "x ~= UU ==> foo$x ~= UU") now have an if-and-only-if form
2222 like "foo$x = UU <-> x = UU", which works better as a simp rule.
2223 Proofs that used definedness lemmas as intro rules may break,
2224 potential INCOMPATIBILITY.
2226 * Induction and casedist rules generated by the domain package now
2227 declare proper case_names (one called "bottom", and one named for each
2228 constructor). INCOMPATIBILITY.
2230 * For mutually-recursive domains, separate "reach" and "take_lemma"
2231 rules are generated for each domain, INCOMPATIBILITY.
2233 foo_bar.reach ~> foo.reach bar.reach
2234 foo_bar.take_lemmas ~> foo.take_lemma bar.take_lemma
2236 * Some lemmas generated by the domain package have been renamed for
2237 consistency with the datatype package, INCOMPATIBILITY.
2239 foo.ind ~> foo.induct
2240 foo.finite_ind ~> foo.finite_induct
2241 foo.coind ~> foo.coinduct
2242 foo.casedist ~> foo.exhaust
2243 foo.exhaust ~> foo.nchotomy
2245 * For consistency with other definition packages, the fixrec package
2246 now generates qualified theorem names, INCOMPATIBILITY.
2248 foo_simps ~> foo.simps
2249 foo_unfold ~> foo.unfold
2250 foo_induct ~> foo.induct
2252 * The "fixrec_simp" attribute has been removed. The "fixrec_simp"
2253 method and internal fixrec proofs now use the default simpset instead.
2256 * The "contlub" predicate has been removed. Proof scripts should use
2257 lemma contI2 in place of monocontlub2cont, INCOMPATIBILITY.
2259 * The "admw" predicate has been removed, INCOMPATIBILITY.
2261 * The constants cpair, cfst, and csnd have been removed in favor of
2262 Pair, fst, and snd from Isabelle/HOL, INCOMPATIBILITY.
2267 * Antiquotations for basic formal entities:
2269 @{class NAME} -- type class
2270 @{class_syntax NAME} -- syntax representation of the above
2272 @{type_name NAME} -- logical type
2273 @{type_abbrev NAME} -- type abbreviation
2274 @{nonterminal NAME} -- type of concrete syntactic category
2275 @{type_syntax NAME} -- syntax representation of any of the above
2277 @{const_name NAME} -- logical constant (INCOMPATIBILITY)
2278 @{const_abbrev NAME} -- abbreviated constant
2279 @{const_syntax NAME} -- syntax representation of any of the above
2281 * Antiquotation @{syntax_const NAME} ensures that NAME refers to a raw
2282 syntax constant (cf. 'syntax' command).
2284 * Antiquotation @{make_string} inlines a function to print arbitrary
2285 values similar to the ML toplevel. The result is compiler dependent
2286 and may fall back on "?" in certain situations.
2288 * Diagnostic commands 'ML_val' and 'ML_command' may refer to
2289 antiquotations @{Isar.state} and @{Isar.goal}. This replaces impure
2290 Isar.state() and Isar.goal(), which belong to the old TTY loop and do
2291 not work with the asynchronous Isar document model.
2293 * Configuration options now admit dynamic default values, depending on
2294 the context or even global references.
2296 * SHA1.digest digests strings according to SHA-1 (see RFC 3174). It
2297 uses an efficient external library if available (for Poly/ML).
2299 * Renamed some important ML structures, while keeping the old names
2300 for some time as aliases within the structure Legacy:
2302 OuterKeyword ~> Keyword
2305 OuterSyntax ~> Outer_Syntax
2306 PrintMode ~> Print_Mode
2307 SpecParse ~> Parse_Spec
2310 ThyOutput ~> Thy_Output
2311 TypeInfer ~> Type_Infer
2313 Note that "open Legacy" simplifies porting of sources, but forgetting
2314 to remove it again will complicate porting again in the future.
2316 * Most operations that refer to a global context are named
2317 accordingly, e.g. Simplifier.global_context or
2318 ProofContext.init_global. There are some situations where a global
2319 context actually works, but under normal circumstances one needs to
2320 pass the proper local context through the code!
2322 * Discontinued old TheoryDataFun with its copy/init operation -- data
2323 needs to be pure. Functor Theory_Data_PP retains the traditional
2324 Pretty.pp argument to merge, which is absent in the standard
2325 Theory_Data version.
2327 * Sorts.certify_sort and derived "cert" operations for types and terms
2328 no longer minimize sorts. Thus certification at the boundary of the
2329 inference kernel becomes invariant under addition of class relations,
2330 which is an important monotonicity principle. Sorts are now minimized
2331 in the syntax layer only, at the boundary between the end-user and the
2332 system. Subtle INCOMPATIBILITY, may have to use Sign.minimize_sort
2333 explicitly in rare situations.
2335 * Renamed old-style Drule.standard to Drule.export_without_context, to
2336 emphasize that this is in no way a standard operation.
2339 * Subgoal.FOCUS (and variants): resulting goal state is normalized as
2340 usual for resolution. Rare INCOMPATIBILITY.
2342 * Renamed varify/unvarify operations to varify_global/unvarify_global
2343 to emphasize that these only work in a global situation (which is
2346 * Curried take and drop in library.ML; negative length is interpreted
2347 as infinity (as in chop). Subtle INCOMPATIBILITY.
2349 * Proof terms: type substitutions on proof constants now use canonical
2350 order of type variables. INCOMPATIBILITY for tools working with proof
2353 * Raw axioms/defs may no longer carry sort constraints, and raw defs
2354 may no longer carry premises. User-level specifications are
2355 transformed accordingly by Thm.add_axiom/add_def.
2360 * Discontinued special HOL_USEDIR_OPTIONS for the main HOL image;
2361 ISABELLE_USEDIR_OPTIONS applies uniformly to all sessions. Note that
2362 proof terms are enabled unconditionally in the new HOL-Proofs image.
2364 * Discontinued old ISABELLE and ISATOOL environment settings (legacy
2365 feature since Isabelle2009). Use ISABELLE_PROCESS and ISABELLE_TOOL,
2368 * Old lib/scripts/polyml-platform is superseded by the
2369 ISABELLE_PLATFORM setting variable, which defaults to the 32 bit
2370 variant, even on a 64 bit machine. The following example setting
2371 prefers 64 bit if available:
2373 ML_PLATFORM="${ISABELLE_PLATFORM64:-$ISABELLE_PLATFORM}"
2375 * The preliminary Isabelle/jEdit application demonstrates the emerging
2376 Isabelle/Scala layer for advanced prover interaction and integration.
2377 See src/Tools/jEdit or "isabelle jedit" provided by the properly built
2380 * "IsabelleText" is a Unicode font derived from Bitstream Vera Mono
2381 and Bluesky TeX fonts. It provides the usual Isabelle symbols,
2382 similar to the default assignment of the document preparation system
2383 (cf. isabellesym.sty). The Isabelle/Scala class Isabelle_System
2384 provides some operations for direct access to the font without asking
2385 the user for manual installation.
2389 New in Isabelle2009-1 (December 2009)
2390 -------------------------------------
2394 * Discontinued old form of "escaped symbols" such as \\<forall>. Only
2395 one backslash should be used, even in ML sources.
2400 * Locale interpretation propagates mixins along the locale hierarchy.
2401 The currently only available mixins are the equations used to map
2402 local definitions to terms of the target domain of an interpretation.
2404 * Reactivated diagnostic command 'print_interps'. Use "print_interps
2405 loc" to print all interpretations of locale "loc" in the theory.
2406 Interpretations in proofs are not shown.
2408 * Thoroughly revised locales tutorial. New section on conditional
2411 * On instantiation of classes, remaining undefined class parameters
2412 are formally declared. INCOMPATIBILITY.
2415 *** Document preparation ***
2417 * New generalized style concept for printing terms: @{foo (style) ...}
2418 instead of @{foo_style style ...} (old form is still retained for
2419 backward compatibility). Styles can be also applied for
2420 antiquotations prop, term_type and typeof.
2425 * New proof method "smt" for a combination of first-order logic with
2426 equality, linear and nonlinear (natural/integer/real) arithmetic, and
2427 fixed-size bitvectors; there is also basic support for higher-order
2428 features (esp. lambda abstractions). It is an incomplete decision
2429 procedure based on external SMT solvers using the oracle mechanism;
2430 for the SMT solver Z3, this method is proof-producing. Certificates
2431 are provided to avoid calling the external solvers solely for
2432 re-checking proofs. Due to a remote SMT service there is no need for
2433 installing SMT solvers locally. See src/HOL/SMT.
2435 * New commands to load and prove verification conditions generated by
2436 the Boogie program verifier or derived systems (e.g. the Verifying C
2437 Compiler (VCC) or Spec#). See src/HOL/Boogie.
2439 * New counterexample generator tool 'nitpick' based on the Kodkod
2440 relational model finder. See src/HOL/Tools/Nitpick and
2441 src/HOL/Nitpick_Examples.
2443 * New commands 'code_pred' and 'values' to invoke the predicate
2444 compiler and to enumerate values of inductive predicates.
2446 * A tabled implementation of the reflexive transitive closure.
2448 * New implementation of quickcheck uses generic code generator;
2449 default generators are provided for all suitable HOL types, records
2450 and datatypes. Old quickcheck can be re-activated importing theory
2451 Library/SML_Quickcheck.
2453 * New testing tool Mirabelle for automated proof tools. Applies
2454 several tools and tactics like sledgehammer, metis, or quickcheck, to
2455 every proof step in a theory. To be used in batch mode via the
2456 "mirabelle" utility.
2458 * New proof method "sos" (sum of squares) for nonlinear real
2459 arithmetic (originally due to John Harison). It requires theory
2460 Library/Sum_Of_Squares. It is not a complete decision procedure but
2461 works well in practice on quantifier-free real arithmetic with +, -,
2462 *, ^, =, <= and <, i.e. boolean combinations of equalities and
2463 inequalities between polynomials. It makes use of external
2464 semidefinite programming solvers. Method "sos" generates a
2465 certificate that can be pasted into the proof thus avoiding the need
2466 to call an external tool every time the proof is checked. See
2467 src/HOL/Library/Sum_Of_Squares.
2469 * New method "linarith" invokes existing linear arithmetic decision
2472 * New command 'atp_minimal' reduces result produced by Sledgehammer.
2474 * New Sledgehammer option "Full Types" in Proof General settings menu.
2475 Causes full type information to be output to the ATPs. This slows
2476 ATPs down considerably but eliminates a source of unsound "proofs"
2479 * New method "metisFT": A version of metis that uses full type
2480 information in order to avoid failures of proof reconstruction.
2482 * New evaluator "approximate" approximates an real valued term using
2483 the same method as the approximation method.
2485 * Method "approximate" now supports arithmetic expressions as
2486 boundaries of intervals and implements interval splitting and Taylor
2489 * ML antiquotation @{code_datatype} inserts definition of a datatype
2490 generated by the code generator; e.g. see src/HOL/Predicate.thy.
2492 * New theory SupInf of the supremum and infimum operators for sets of
2495 * New theory Probability, which contains a development of measure
2496 theory, eventually leading to Lebesgue integration and probability.
2498 * Extended Multivariate Analysis to include derivation and Brouwer's
2501 * Reorganization of number theory, INCOMPATIBILITY:
2502 - new number theory development for nat and int, in theories Divides
2503 and GCD as well as in new session Number_Theory
2504 - some constants and facts now suffixed with _nat and _int
2506 - former session NumberTheory now named Old_Number_Theory, including
2507 theories Legacy_GCD and Primes (prefer Number_Theory if possible)
2508 - moved theory Pocklington from src/HOL/Library to
2509 src/HOL/Old_Number_Theory
2511 * Theory GCD includes functions Gcd/GCD and Lcm/LCM for the gcd and
2512 lcm of finite and infinite sets. It is shown that they form a complete
2515 * Class semiring_div requires superclass no_zero_divisors and proof of
2516 div_mult_mult1; theorems div_mult_mult1, div_mult_mult2,
2517 div_mult_mult1_if, div_mult_mult1 and div_mult_mult2 have been
2518 generalized to class semiring_div, subsuming former theorems
2519 zdiv_zmult_zmult1, zdiv_zmult_zmult1_if, zdiv_zmult_zmult1 and
2520 zdiv_zmult_zmult2. div_mult_mult1 is now [simp] by default.
2523 * Refinements to lattice classes and sets:
2524 - less default intro/elim rules in locale variant, more default
2525 intro/elim rules in class variant: more uniformity
2526 - lemma ge_sup_conv renamed to le_sup_iff, in accordance with
2528 - dropped lemma alias inf_ACI for inf_aci (same for sup_ACI and
2530 - renamed ACI to inf_sup_aci
2531 - new class "boolean_algebra"
2532 - class "complete_lattice" moved to separate theory
2533 "Complete_Lattice"; corresponding constants (and abbreviations)
2534 renamed and with authentic syntax:
2535 Set.Inf ~> Complete_Lattice.Inf
2536 Set.Sup ~> Complete_Lattice.Sup
2537 Set.INFI ~> Complete_Lattice.INFI
2538 Set.SUPR ~> Complete_Lattice.SUPR
2539 Set.Inter ~> Complete_Lattice.Inter
2540 Set.Union ~> Complete_Lattice.Union
2541 Set.INTER ~> Complete_Lattice.INTER
2542 Set.UNION ~> Complete_Lattice.UNION
2543 - authentic syntax for
2546 - mere abbreviations:
2549 Set.inter (for inf, formerly Set.Int)
2550 Set.union (for sup, formerly Set.Un)
2551 Complete_Lattice.Inter (for Inf)
2552 Complete_Lattice.Union (for Sup)
2553 Complete_Lattice.INTER (for INFI)
2554 Complete_Lattice.UNION (for SUPR)
2555 - object-logic definitions as far as appropriate
2557 INCOMPATIBILITY. Care is required when theorems Int_subset_iff or
2558 Un_subset_iff are explicitly deleted as default simp rules; then also
2559 their lattice counterparts le_inf_iff and le_sup_iff have to be
2560 deleted to achieve the desired effect.
2562 * Rules inf_absorb1, inf_absorb2, sup_absorb1, sup_absorb2 are no simp
2563 rules by default any longer; the same applies to min_max.inf_absorb1
2564 etc. INCOMPATIBILITY.
2566 * Rules sup_Int_eq and sup_Un_eq are no longer declared as
2567 pred_set_conv by default. INCOMPATIBILITY.
2569 * Power operations on relations and functions are now one dedicated
2570 constant "compow" with infix syntax "^^". Power operation on
2571 multiplicative monoids retains syntax "^" and is now defined generic
2572 in class power. INCOMPATIBILITY.
2574 * Relation composition "R O S" now has a more standard argument order:
2575 "R O S = {(x, z). EX y. (x, y) : R & (y, z) : S}". INCOMPATIBILITY,
2576 rewrite propositions with "S O R" --> "R O S". Proofs may occasionally
2577 break, since the O_assoc rule was not rewritten like this. Fix using
2578 O_assoc[symmetric]. The same applies to the curried version "R OO S".
2580 * Function "Inv" is renamed to "inv_into" and function "inv" is now an
2581 abbreviation for "inv_into UNIV". Lemmas are renamed accordingly.
2584 * Most rules produced by inductive and datatype package have mandatory
2585 prefixes. INCOMPATIBILITY.
2587 * Changed "DERIV_intros" to a dynamic fact, which can be augmented by
2588 the attribute of the same name. Each of the theorems in the list
2589 DERIV_intros assumes composition with an additional function and
2590 matches a variable to the derivative, which has to be solved by the
2591 Simplifier. Hence (auto intro!: DERIV_intros) computes the derivative
2592 of most elementary terms. Former Maclauren.DERIV_tac and
2593 Maclauren.deriv_tac should be replaced by (auto intro!: DERIV_intros).
2596 * Code generator attributes follow the usual underscore convention:
2597 code_unfold replaces code unfold
2598 code_post replaces code post
2603 sizechange -> size_change
2604 induct_scheme -> induction_schema
2607 * Discontinued abbreviation "arbitrary" of constant "undefined".
2608 INCOMPATIBILITY, use "undefined" directly.
2611 Suc_eq_add_numeral_1 -> Suc_eq_plus1
2612 Suc_eq_add_numeral_1_left -> Suc_eq_plus1_left
2613 Suc_plus1 -> Suc_eq_plus1
2614 *anti_sym -> *antisym*
2615 vector_less_eq_def -> vector_le_def
2618 * Added theorem List.map_map as [simp]. Removed List.map_compose.
2621 * Removed predicate "M hassize n" (<--> card M = n & finite M).
2627 * Theory Representable defines a class "rep" of domains that are
2628 representable (via an ep-pair) in the universal domain type "udom".
2629 Instances are provided for all type constructors defined in HOLCF.
2631 * The 'new_domain' command is a purely definitional version of the
2632 domain package, for representable domains. Syntax is identical to the
2633 old domain package. The 'new_domain' package also supports indirect
2634 recursion using previously-defined type constructors. See
2635 src/HOLCF/ex/New_Domain.thy for examples.
2637 * Method "fixrec_simp" unfolds one step of a fixrec-defined constant
2638 on the left-hand side of an equation, and then performs
2639 simplification. Rewriting is done using rules declared with the
2640 "fixrec_simp" attribute. The "fixrec_simp" method is intended as a
2641 replacement for "fixpat"; see src/HOLCF/ex/Fixrec_ex.thy for examples.
2643 * The pattern-match compiler in 'fixrec' can now handle constructors
2644 with HOL function types. Pattern-match combinators for the Pair
2645 constructor are pre-configured.
2647 * The 'fixrec' package now produces better fixed-point induction rules
2648 for mutually-recursive definitions: Induction rules have conclusions
2649 of the form "P foo bar" instead of "P <foo, bar>".
2651 * The constant "sq_le" (with infix syntax "<<" or "\<sqsubseteq>") has
2652 been renamed to "below". The name "below" now replaces "less" in many
2653 theorem names. (Legacy theorem names using "less" are still supported
2656 * The 'fixrec' package now supports "bottom patterns". Bottom
2657 patterns can be used to generate strictness rules, or to make
2658 functions more strict (much like the bang-patterns supported by the
2659 Glasgow Haskell Compiler). See src/HOLCF/ex/Fixrec_ex.thy for
2665 * Support for Poly/ML 5.3.0, with improved reporting of compiler
2666 errors and run-time exceptions, including detailed source positions.
2668 * Structure Name_Space (formerly NameSpace) now manages uniquely
2669 identified entries, with some additional information such as source
2670 position, logical grouping etc.
2672 * Theory and context data is now introduced by the simplified and
2673 modernized functors Theory_Data, Proof_Data, Generic_Data. Data needs
2674 to be pure, but the old TheoryDataFun for mutable data (with explicit
2675 copy operation) is still available for some time.
2677 * Structure Synchronized (cf. src/Pure/Concurrent/synchronized.ML)
2678 provides a high-level programming interface to synchronized state
2679 variables with atomic update. This works via pure function
2680 application within a critical section -- its runtime should be as
2681 short as possible; beware of deadlocks if critical code is nested,
2682 either directly or indirectly via other synchronized variables!
2684 * Structure Unsynchronized (cf. src/Pure/ML-Systems/unsynchronized.ML)
2685 wraps raw ML references, explicitly indicating their non-thread-safe
2686 behaviour. The Isar toplevel keeps this structure open, to
2687 accommodate Proof General as well as quick and dirty interactive
2688 experiments with references.
2690 * PARALLEL_CHOICE and PARALLEL_GOALS provide basic support for
2691 parallel tactical reasoning.
2693 * Tacticals Subgoal.FOCUS, Subgoal.FOCUS_PREMS, Subgoal.FOCUS_PARAMS
2694 are similar to SUBPROOF, but are slightly more flexible: only the
2695 specified parts of the subgoal are imported into the context, and the
2696 body tactic may introduce new subgoals and schematic variables.
2698 * Old tactical METAHYPS, which does not observe the proof context, has
2699 been renamed to Old_Goals.METAHYPS and awaits deletion. Use SUBPROOF
2700 or Subgoal.FOCUS etc.
2702 * Renamed functor TableFun to Table, and GraphFun to Graph. (Since
2703 functors have their own ML name space there is no point to mark them
2704 separately.) Minor INCOMPATIBILITY.
2706 * Renamed NamedThmsFun to Named_Thms. INCOMPATIBILITY.
2708 * Renamed several structures FooBar to Foo_Bar. Occasional,
2711 * Operations of structure Skip_Proof no longer require quick_and_dirty
2712 mode, which avoids critical setmp.
2714 * Eliminated old Attrib.add_attributes, Method.add_methods and related
2715 combinators for "args". INCOMPATIBILITY, need to use simplified
2716 Attrib/Method.setup introduced in Isabelle2009.
2718 * Proper context for simpset_of, claset_of, clasimpset_of. May fall
2719 back on global_simpset_of, global_claset_of, global_clasimpset_of as
2720 last resort. INCOMPATIBILITY.
2722 * Display.pretty_thm now requires a proper context (cf. former
2723 ProofContext.pretty_thm). May fall back on Display.pretty_thm_global
2724 or even Display.pretty_thm_without_context as last resort.
2727 * Discontinued Display.pretty_ctyp/cterm etc. INCOMPATIBILITY, use
2728 Syntax.pretty_typ/term directly, preferably with proper context
2729 instead of global theory.
2734 * Further fine tuning of parallel proof checking, scales up to 8 cores
2735 (max. speedup factor 5.0). See also Goal.parallel_proofs in ML and
2738 * Support for additional "Isabelle components" via etc/components, see
2739 also the system manual.
2741 * The isabelle makeall tool now operates on all components with
2742 IsaMakefile, not just hardwired "logics".
2744 * Removed "compress" option from isabelle-process and isabelle usedir;
2745 this is always enabled.
2747 * Discontinued support for Poly/ML 4.x versions.
2749 * Isabelle tool "wwwfind" provides web interface for 'find_theorems'
2750 on a given logic image. This requires the lighttpd webserver and is
2751 currently supported on Linux only.
2755 New in Isabelle2009 (April 2009)
2756 --------------------------------
2760 * Simplified main Isabelle executables, with less surprises on
2761 case-insensitive file-systems (such as Mac OS).
2763 - The main Isabelle tool wrapper is now called "isabelle" instead of
2766 - The former "isabelle" alias for "isabelle-process" has been
2767 removed (should rarely occur to regular users).
2769 - The former "isabelle-interface" and its alias "Isabelle" have been
2770 removed (interfaces are now regular Isabelle tools).
2772 Within scripts and make files, the Isabelle environment variables
2773 ISABELLE_TOOL and ISABELLE_PROCESS replace old ISATOOL and ISABELLE,
2774 respectively. (The latter are still available as legacy feature.)
2776 The old isabelle-interface wrapper could react in confusing ways if
2777 the interface was uninstalled or changed otherwise. Individual
2778 interface tool configuration is now more explicit, see also the
2779 Isabelle system manual. In particular, Proof General is now available
2780 via "isabelle emacs".
2782 INCOMPATIBILITY, need to adapt derivative scripts. Users may need to
2783 purge installed copies of Isabelle executables and re-run "isabelle
2784 install -p ...", or use symlinks.
2786 * The default for ISABELLE_HOME_USER is now ~/.isabelle instead of the
2787 old ~/isabelle, which was slightly non-standard and apt to cause
2788 surprises on case-insensitive file-systems (such as Mac OS).
2790 INCOMPATIBILITY, need to move existing ~/isabelle/etc,
2791 ~/isabelle/heaps, ~/isabelle/browser_info to the new place. Special
2792 care is required when using older releases of Isabelle. Note that
2793 ISABELLE_HOME_USER can be changed in Isabelle/etc/settings of any
2794 Isabelle distribution, in order to use the new ~/.isabelle uniformly.
2796 * Proofs of fully specified statements are run in parallel on
2797 multi-core systems. A speedup factor of 2.5 to 3.2 can be expected on
2798 a regular 4-core machine, if the initial heap space is made reasonably
2799 large (cf. Poly/ML option -H). (Requires Poly/ML 5.2.1 or later.)
2801 * The main reference manuals ("isar-ref", "implementation", and
2802 "system") have been updated and extended. Formally checked references
2803 as hyperlinks are now available uniformly.
2808 * Complete re-implementation of locales. INCOMPATIBILITY in several
2809 respects. The most important changes are listed below. See the
2810 Tutorial on Locales ("locales" manual) for details.
2812 - In locale expressions, instantiation replaces renaming. Parameters
2813 must be declared in a for clause. To aid compatibility with previous
2814 parameter inheritance, in locale declarations, parameters that are not
2815 'touched' (instantiation position "_" or omitted) are implicitly added
2816 with their syntax at the beginning of the for clause.
2818 - Syntax from abbreviations and definitions in locales is available in
2819 locale expressions and context elements. The latter is particularly
2820 useful in locale declarations.
2822 - More flexible mechanisms to qualify names generated by locale
2823 expressions. Qualifiers (prefixes) may be specified in locale
2824 expressions, and can be marked as mandatory (syntax: "name!:") or
2825 optional (syntax "name?:"). The default depends for plain "name:"
2826 depends on the situation where a locale expression is used: in
2827 commands 'locale' and 'sublocale' prefixes are optional, in
2828 'interpretation' and 'interpret' prefixes are mandatory. The old
2829 implicit qualifiers derived from the parameter names of a locale are
2830 no longer generated.
2832 - Command "sublocale l < e" replaces "interpretation l < e". The
2833 instantiation clause in "interpretation" and "interpret" (square
2834 brackets) is no longer available. Use locale expressions.
2836 - When converting proof scripts, mandatory qualifiers in
2837 'interpretation' and 'interpret' should be retained by default, even
2838 if this is an INCOMPATIBILITY compared to former behavior. In the
2839 worst case, use the "name?:" form for non-mandatory ones. Qualifiers
2840 in locale expressions range over a single locale instance only.
2842 - Dropped locale element "includes". This is a major INCOMPATIBILITY.
2843 In existing theorem specifications replace the includes element by the
2844 respective context elements of the included locale, omitting those
2845 that are already present in the theorem specification. Multiple
2846 assume elements of a locale should be replaced by a single one
2847 involving the locale predicate. In the proof body, declarations (most
2848 notably theorems) may be regained by interpreting the respective
2849 locales in the proof context as required (command "interpret").
2851 If using "includes" in replacement of a target solely because the
2852 parameter types in the theorem are not as general as in the target,
2853 consider declaring a new locale with additional type constraints on
2854 the parameters (context element "constrains").
2856 - Discontinued "locale (open)". INCOMPATIBILITY.
2858 - Locale interpretation commands no longer attempt to simplify goal.
2859 INCOMPATIBILITY: in rare situations the generated goal differs. Use
2860 methods intro_locales and unfold_locales to clarify.
2862 - Locale interpretation commands no longer accept interpretation
2863 attributes. INCOMPATIBILITY.
2865 * Class declaration: so-called "base sort" must not be given in import
2866 list any longer, but is inferred from the specification. Particularly
2873 class foo = type + ...
2875 * Class target: global versions of theorems stemming do not carry a
2876 parameter prefix any longer. INCOMPATIBILITY.
2878 * Class 'instance' command no longer accepts attached definitions.
2879 INCOMPATIBILITY, use proper 'instantiation' target instead.
2881 * Recovered hiding of consts, which was accidentally broken in
2882 Isabelle2007. Potential INCOMPATIBILITY, ``hide const c'' really
2883 makes c inaccessible; consider using ``hide (open) const c'' instead.
2885 * Slightly more coherent Pure syntax, with updated documentation in
2886 isar-ref manual. Removed locales meta_term_syntax and
2887 meta_conjunction_syntax: TERM and &&& (formerly &&) are now permanent,
2888 INCOMPATIBILITY in rare situations. Note that &&& should not be used
2889 directly in regular applications.
2891 * There is a new syntactic category "float_const" for signed decimal
2892 fractions (e.g. 123.45 or -123.45).
2894 * Removed exotic 'token_translation' command. INCOMPATIBILITY, use ML
2895 interface with 'setup' command instead.
2897 * Command 'local_setup' is similar to 'setup', but operates on a local
2900 * The 'axiomatization' command now only works within a global theory
2901 context. INCOMPATIBILITY.
2903 * Goal-directed proof now enforces strict proof irrelevance wrt. sort
2904 hypotheses. Sorts required in the course of reasoning need to be
2905 covered by the constraints in the initial statement, completed by the
2906 type instance information of the background theory. Non-trivial sort
2907 hypotheses, which rarely occur in practice, may be specified via
2908 vacuous propositions of the form SORT_CONSTRAINT('a::c). For example:
2910 lemma assumes "SORT_CONSTRAINT('a::empty)" shows False ...
2912 The result contains an implicit sort hypotheses as before --
2913 SORT_CONSTRAINT premises are eliminated as part of the canonical rule
2916 * Generalized Isar history, with support for linear undo, direct state
2919 * Changed defaults for unify configuration options:
2921 unify_trace_bound = 50 (formerly 25)
2922 unify_search_bound = 60 (formerly 30)
2924 * Different bookkeeping for code equations (INCOMPATIBILITY):
2926 a) On theory merge, the last set of code equations for a particular
2927 constant is taken (in accordance with the policy applied by other
2928 parts of the code generator framework).
2930 b) Code equations stemming from explicit declarations (e.g. code
2931 attribute) gain priority over default code equations stemming
2932 from definition, primrec, fun etc.
2934 * Keyword 'code_exception' now named 'code_abort'. INCOMPATIBILITY.
2936 * Unified theorem tables for both code generators. Thus [code
2937 func] has disappeared and only [code] remains. INCOMPATIBILITY.
2939 * Command 'find_consts' searches for constants based on type and name
2942 find_consts "_ => bool"
2944 By default, matching is against subtypes, but it may be restricted to
2945 the whole type. Searching by name is possible. Multiple queries are
2946 conjunctive and queries may be negated by prefixing them with a
2949 find_consts strict: "_ => bool" name: "Int" -"int => int"
2951 * New 'find_theorems' criterion "solves" matches theorems that
2952 directly solve the current goal (modulo higher-order unification).
2954 * Auto solve feature for main theorem statements: whenever a new goal
2955 is stated, "find_theorems solves" is called; any theorems that could
2956 solve the lemma directly are listed as part of the goal state.
2957 Cf. associated options in Proof General Isabelle settings menu,
2958 enabled by default, with reasonable timeout for pathological cases of
2959 higher-order unification.
2962 *** Document preparation ***
2964 * Antiquotation @{lemma} now imitates a regular terminal proof,
2965 demanding keyword 'by' and supporting the full method expression
2966 syntax just like the Isar command 'by'.
2971 * Integrated main parts of former image HOL-Complex with HOL. Entry
2972 points Main and Complex_Main remain as before.
2974 * Logic image HOL-Plain provides a minimal HOL with the most important
2975 tools available (inductive, datatype, primrec, ...). This facilitates
2976 experimentation and tool development. Note that user applications
2977 (and library theories) should never refer to anything below theory
2980 * Logic image HOL-Main stops at theory Main, and thus facilitates
2981 experimentation due to shorter build times.
2983 * Logic image HOL-NSA contains theories of nonstandard analysis which
2984 were previously part of former HOL-Complex. Entry point Hyperreal
2985 remains valid, but theories formerly using Complex_Main should now use
2986 new entry point Hypercomplex.
2988 * Generic ATP manager for Sledgehammer, based on ML threads instead of
2989 Posix processes. Avoids potentially expensive forking of the ML
2990 process. New thread-based implementation also works on non-Unix
2991 platforms (Cygwin). Provers are no longer hardwired, but defined
2992 within the theory via plain ML wrapper functions. Basic Sledgehammer
2993 commands are covered in the isar-ref manual.
2995 * Wrapper scripts for remote SystemOnTPTP service allows to use
2996 sledgehammer without local ATP installation (Vampire etc.). Other
2997 provers may be included via suitable ML wrappers, see also
2998 src/HOL/ATP_Linkup.thy.
3000 * ATP selection (E/Vampire/Spass) is now via Proof General's settings
3003 * The metis method no longer fails because the theorem is too trivial
3004 (contains the empty clause).
3006 * The metis method now fails in the usual manner, rather than raising
3007 an exception, if it determines that it cannot prove the theorem.
3009 * Method "coherent" implements a prover for coherent logic (see also
3010 src/Tools/coherent.ML).
3012 * Constants "undefined" and "default" replace "arbitrary". Usually
3013 "undefined" is the right choice to replace "arbitrary", though
3014 logically there is no difference. INCOMPATIBILITY.
3016 * Command "value" now integrates different evaluation mechanisms. The
3017 result of the first successful evaluation mechanism is printed. In
3018 square brackets a particular named evaluation mechanisms may be
3019 specified (currently, [SML], [code] or [nbe]). See further
3020 src/HOL/ex/Eval_Examples.thy.
3022 * Normalization by evaluation now allows non-leftlinear equations.
3023 Declare with attribute [code nbe].
3025 * Methods "case_tac" and "induct_tac" now refer to the very same rules
3026 as the structured Isar versions "cases" and "induct", cf. the
3027 corresponding "cases" and "induct" attributes. Mutual induction rules
3028 are now presented as a list of individual projections
3029 (e.g. foo_bar.inducts for types foo and bar); the old format with
3030 explicit HOL conjunction is no longer supported. INCOMPATIBILITY, in
3031 rare situations a different rule is selected --- notably nested tuple
3032 elimination instead of former prod.exhaust: use explicit (case_tac t
3033 rule: prod.exhaust) here.
3035 * Attributes "cases", "induct", "coinduct" support "del" option.
3037 * Removed fact "case_split_thm", which duplicates "case_split".
3039 * The option datatype has been moved to a new theory Option. Renamed
3040 option_map to Option.map, and o2s to Option.set, INCOMPATIBILITY.
3042 * New predicate "strict_mono" classifies strict functions on partial
3043 orders. With strict functions on linear orders, reasoning about
3044 (in)equalities is facilitated by theorems "strict_mono_eq",
3045 "strict_mono_less_eq" and "strict_mono_less".
3047 * Some set operations are now proper qualified constants with
3048 authentic syntax. INCOMPATIBILITY:
3059 * Class complete_lattice with operations Inf, Sup, INFI, SUPR now in
3062 * Auxiliary class "itself" has disappeared -- classes without any
3063 parameter are treated as expected by the 'class' command.
3065 * Leibnitz's Series for Pi and the arcus tangens and logarithm series.
3067 * Common decision procedures (Cooper, MIR, Ferrack, Approximation,
3068 Dense_Linear_Order) are now in directory HOL/Decision_Procs.
3070 * Theory src/HOL/Decision_Procs/Approximation provides the new proof
3071 method "approximation". It proves formulas on real values by using
3072 interval arithmetic. In the formulas are also the transcendental
3073 functions sin, cos, tan, atan, ln, exp and the constant pi are
3074 allowed. For examples see
3075 src/HOL/Descision_Procs/ex/Approximation_Ex.thy.
3077 * Theory "Reflection" now resides in HOL/Library.
3079 * Entry point to Word library now simply named "Word".
3082 * Made source layout more coherent with logical distribution
3085 src/HOL/Library/RType.thy ~> src/HOL/Typerep.thy
3086 src/HOL/Library/Code_Message.thy ~> src/HOL/
3087 src/HOL/Library/GCD.thy ~> src/HOL/
3088 src/HOL/Library/Order_Relation.thy ~> src/HOL/
3089 src/HOL/Library/Parity.thy ~> src/HOL/
3090 src/HOL/Library/Univ_Poly.thy ~> src/HOL/
3091 src/HOL/Real/ContNotDenum.thy ~> src/HOL/Library/
3092 src/HOL/Real/Lubs.thy ~> src/HOL/
3093 src/HOL/Real/PReal.thy ~> src/HOL/
3094 src/HOL/Real/Rational.thy ~> src/HOL/
3095 src/HOL/Real/RComplete.thy ~> src/HOL/
3096 src/HOL/Real/RealDef.thy ~> src/HOL/
3097 src/HOL/Real/RealPow.thy ~> src/HOL/
3098 src/HOL/Real/Real.thy ~> src/HOL/
3099 src/HOL/Complex/Complex_Main.thy ~> src/HOL/
3100 src/HOL/Complex/Complex.thy ~> src/HOL/
3101 src/HOL/Complex/FrechetDeriv.thy ~> src/HOL/Library/
3102 src/HOL/Complex/Fundamental_Theorem_Algebra.thy ~> src/HOL/Library/
3103 src/HOL/Hyperreal/Deriv.thy ~> src/HOL/
3104 src/HOL/Hyperreal/Fact.thy ~> src/HOL/
3105 src/HOL/Hyperreal/Integration.thy ~> src/HOL/
3106 src/HOL/Hyperreal/Lim.thy ~> src/HOL/
3107 src/HOL/Hyperreal/Ln.thy ~> src/HOL/
3108 src/HOL/Hyperreal/Log.thy ~> src/HOL/
3109 src/HOL/Hyperreal/MacLaurin.thy ~> src/HOL/
3110 src/HOL/Hyperreal/NthRoot.thy ~> src/HOL/
3111 src/HOL/Hyperreal/Series.thy ~> src/HOL/
3112 src/HOL/Hyperreal/SEQ.thy ~> src/HOL/
3113 src/HOL/Hyperreal/Taylor.thy ~> src/HOL/
3114 src/HOL/Hyperreal/Transcendental.thy ~> src/HOL/
3115 src/HOL/Real/Float ~> src/HOL/Library/
3116 src/HOL/Real/HahnBanach ~> src/HOL/HahnBanach
3117 src/HOL/Real/RealVector.thy ~> src/HOL/
3119 src/HOL/arith_data.ML ~> src/HOL/Tools
3120 src/HOL/hologic.ML ~> src/HOL/Tools
3121 src/HOL/simpdata.ML ~> src/HOL/Tools
3122 src/HOL/int_arith1.ML ~> src/HOL/Tools/int_arith.ML
3123 src/HOL/int_factor_simprocs.ML ~> src/HOL/Tools
3124 src/HOL/nat_simprocs.ML ~> src/HOL/Tools
3125 src/HOL/Real/float_arith.ML ~> src/HOL/Tools
3126 src/HOL/Real/float_syntax.ML ~> src/HOL/Tools
3127 src/HOL/Real/rat_arith.ML ~> src/HOL/Tools
3128 src/HOL/Real/real_arith.ML ~> src/HOL/Tools
3130 src/HOL/Library/Array.thy ~> src/HOL/Imperative_HOL
3131 src/HOL/Library/Heap_Monad.thy ~> src/HOL/Imperative_HOL
3132 src/HOL/Library/Heap.thy ~> src/HOL/Imperative_HOL
3133 src/HOL/Library/Imperative_HOL.thy ~> src/HOL/Imperative_HOL
3134 src/HOL/Library/Ref.thy ~> src/HOL/Imperative_HOL
3135 src/HOL/Library/Relational.thy ~> src/HOL/Imperative_HOL
3137 * If methods "eval" and "evaluation" encounter a structured proof
3138 state with !!/==>, only the conclusion is evaluated to True (if
3139 possible), avoiding strange error messages.
3141 * Method "sizechange" automates termination proofs using (a
3142 modification of) the size-change principle. Requires SAT solver. See
3143 src/HOL/ex/Termination.thy for examples.
3145 * Simplifier: simproc for let expressions now unfolds if bound
3146 variable occurs at most once in let expression body. INCOMPATIBILITY.
3148 * Method "arith": Linear arithmetic now ignores all inequalities when
3149 fast_arith_neq_limit is exceeded, instead of giving up entirely.
3151 * New attribute "arith" for facts that should always be used
3152 automatically by arithmetic. It is intended to be used locally in
3155 assumes [arith]: "x > 0"
3157 Global usage is discouraged because of possible performance impact.
3159 * New classes "top" and "bot" with corresponding operations "top" and
3160 "bot" in theory Orderings; instantiation of class "complete_lattice"
3161 requires instantiation of classes "top" and "bot". INCOMPATIBILITY.
3163 * Changed definition lemma "less_fun_def" in order to provide an
3164 instance for preorders on functions; use lemma "less_le" instead.
3167 * Theory Orderings: class "wellorder" moved here, with explicit
3168 induction rule "less_induct" as assumption. For instantiation of
3169 "wellorder" by means of predicate "wf", use rule wf_wellorderI.
3172 * Theory Orderings: added class "preorder" as superclass of "order".
3173 INCOMPATIBILITY: Instantiation proofs for order, linorder
3174 etc. slightly changed. Some theorems named order_class.* now named
3177 * Theory Relation: renamed "refl" to "refl_on", "reflexive" to "refl,
3180 * Theory Finite_Set: added a new fold combinator of type
3182 ('a => 'b => 'b) => 'b => 'a set => 'b
3184 Occasionally this is more convenient than the old fold combinator
3185 which is now defined in terms of the new one and renamed to
3188 * Theories Ring_and_Field and OrderedGroup: The lemmas "group_simps"
3189 and "ring_simps" have been replaced by "algebra_simps" (which can be
3190 extended with further lemmas!). At the moment both still exist but
3191 the former will disappear at some point.
3193 * Theory Power: Lemma power_Suc is now declared as a simp rule in
3194 class recpower. Type-specific simp rules for various recpower types
3195 have been removed. INCOMPATIBILITY, rename old lemmas as follows:
3197 rat_power_0 -> power_0
3198 rat_power_Suc -> power_Suc
3199 realpow_0 -> power_0
3200 realpow_Suc -> power_Suc
3201 complexpow_0 -> power_0
3202 complexpow_Suc -> power_Suc
3203 power_poly_0 -> power_0
3204 power_poly_Suc -> power_Suc
3206 * Theories Ring_and_Field and Divides: Definition of "op dvd" has been
3207 moved to separate class dvd in Ring_and_Field; a couple of lemmas on
3208 dvd has been generalized to class comm_semiring_1. Likewise a bunch
3209 of lemmas from Divides has been generalized from nat to class
3210 semiring_div. INCOMPATIBILITY. This involves the following theorem
3211 renames resulting from duplicate elimination:
3213 dvd_def_mod ~> dvd_eq_mod_eq_0
3214 zero_dvd_iff ~> dvd_0_left_iff
3215 dvd_0 ~> dvd_0_right
3216 DIVISION_BY_ZERO_DIV ~> div_by_0
3217 DIVISION_BY_ZERO_MOD ~> mod_by_0
3218 mult_div ~> div_mult_self2_is_id
3219 mult_mod ~> mod_mult_self2_is_0
3221 * Theory IntDiv: removed many lemmas that are instances of class-based
3222 generalizations (from Divides and Ring_and_Field). INCOMPATIBILITY,
3223 rename old lemmas as follows:
3225 dvd_diff -> nat_dvd_diff
3226 dvd_zminus_iff -> dvd_minus_iff
3227 mod_add1_eq -> mod_add_eq
3228 mod_mult1_eq -> mod_mult_right_eq
3229 mod_mult1_eq' -> mod_mult_left_eq
3230 mod_mult_distrib_mod -> mod_mult_eq
3231 nat_mod_add_left_eq -> mod_add_left_eq
3232 nat_mod_add_right_eq -> mod_add_right_eq
3233 nat_mod_div_trivial -> mod_div_trivial
3234 nat_mod_mod_trivial -> mod_mod_trivial
3235 zdiv_zadd_self1 -> div_add_self1
3236 zdiv_zadd_self2 -> div_add_self2
3237 zdiv_zmult_self1 -> div_mult_self2_is_id
3238 zdiv_zmult_self2 -> div_mult_self1_is_id
3239 zdvd_triv_left -> dvd_triv_left
3240 zdvd_triv_right -> dvd_triv_right
3241 zdvd_zmult_cancel_disj -> dvd_mult_cancel_left
3242 zmod_eq0_zdvd_iff -> dvd_eq_mod_eq_0[symmetric]
3243 zmod_zadd_left_eq -> mod_add_left_eq
3244 zmod_zadd_right_eq -> mod_add_right_eq
3245 zmod_zadd_self1 -> mod_add_self1
3246 zmod_zadd_self2 -> mod_add_self2
3247 zmod_zadd1_eq -> mod_add_eq
3248 zmod_zdiff1_eq -> mod_diff_eq
3249 zmod_zdvd_zmod -> mod_mod_cancel
3250 zmod_zmod_cancel -> mod_mod_cancel
3251 zmod_zmult_self1 -> mod_mult_self2_is_0
3252 zmod_zmult_self2 -> mod_mult_self1_is_0
3255 zdvd_abs1 -> abs_dvd_iff
3256 zdvd_abs2 -> dvd_abs_iff
3257 zdvd_refl -> dvd_refl
3258 zdvd_trans -> dvd_trans
3259 zdvd_zadd -> dvd_add
3260 zdvd_zdiff -> dvd_diff
3261 zdvd_zminus_iff -> dvd_minus_iff
3262 zdvd_zminus2_iff -> minus_dvd_iff
3263 zdvd_zmultD -> dvd_mult_right
3264 zdvd_zmultD2 -> dvd_mult_left
3265 zdvd_zmult_mono -> mult_dvd_mono
3266 zdvd_0_right -> dvd_0_right
3267 zdvd_0_left -> dvd_0_left_iff
3268 zdvd_1_left -> one_dvd
3269 zminus_dvd_iff -> minus_dvd_iff
3271 * Theory Rational: 'Fract k 0' now equals '0'. INCOMPATIBILITY.
3273 * The real numbers offer decimal input syntax: 12.34 is translated
3274 into 1234/10^2. This translation is not reversed upon output.
3276 * Theory Library/Polynomial defines an abstract type 'a poly of
3277 univariate polynomials with coefficients of type 'a. In addition to
3278 the standard ring operations, it also supports div and mod. Code
3279 generation is also supported, using list-style constructors.
3281 * Theory Library/Inner_Product defines a class of real_inner for real
3282 inner product spaces, with an overloaded operation inner :: 'a => 'a
3283 => real. Class real_inner is a subclass of real_normed_vector from
3286 * Theory Library/Product_Vector provides instances for the product
3287 type 'a * 'b of several classes from RealVector and Inner_Product.
3288 Definitions of addition, subtraction, scalar multiplication, norms,
3289 and inner products are included.
3291 * Theory Library/Bit defines the field "bit" of integers modulo 2. In
3292 addition to the field operations, numerals and case syntax are also
3295 * Theory Library/Diagonalize provides constructive version of Cantor's
3296 first diagonalization argument.
3298 * Theory Library/GCD: Curried operations gcd, lcm (for nat) and zgcd,
3299 zlcm (for int); carried together from various gcd/lcm developements in
3300 the HOL Distribution. Constants zgcd and zlcm replace former igcd and
3301 ilcm; corresponding theorems renamed accordingly. INCOMPATIBILITY,
3302 may recover tupled syntax as follows:
3304 hide (open) const gcd
3305 abbreviation gcd where
3306 "gcd == (%(a, b). GCD.gcd a b)"
3308 GCD.gcd ("gcd '(_, _')")
3310 The same works for lcm, zgcd, zlcm.
3312 * Theory Library/Nat_Infinity: added addition, numeral syntax and more
3313 instantiations for algebraic structures. Removed some duplicate
3314 theorems. Changes in simp rules. INCOMPATIBILITY.
3316 * ML antiquotation @{code} takes a constant as argument and generates
3317 corresponding code in background and inserts name of the corresponding
3318 resulting ML value/function/datatype constructor binding in place.
3319 All occurrences of @{code} with a single ML block are generated
3320 simultaneously. Provides a generic and safe interface for
3321 instrumentalizing code generation. See
3322 src/HOL/Decision_Procs/Ferrack.thy for a more ambitious application.
3323 In future you ought to refrain from ad-hoc compiling generated SML
3324 code on the ML toplevel. Note that (for technical reasons) @{code}
3325 cannot refer to constants for which user-defined serializations are
3326 set. Refer to the corresponding ML counterpart directly in that
3329 * Command 'rep_datatype': instead of theorem names the command now
3330 takes a list of terms denoting the constructors of the type to be
3331 represented as datatype. The characteristic theorems have to be
3332 proven. INCOMPATIBILITY. Also observe that the following theorems
3333 have disappeared in favour of existing ones:
3335 unit_induct ~> unit.induct
3336 prod_induct ~> prod.induct
3337 sum_induct ~> sum.induct
3338 Suc_Suc_eq ~> nat.inject
3339 Suc_not_Zero Zero_not_Suc ~> nat.distinct
3344 * New locales for orders and lattices where the equivalence relation
3345 is not restricted to equality. INCOMPATIBILITY: all order and lattice
3346 locales use a record structure with field eq for the equivalence.
3348 * New theory of factorial domains.
3350 * Units_l_inv and Units_r_inv are now simp rules by default.
3351 INCOMPATIBILITY. Simplifier proof that require deletion of l_inv
3352 and/or r_inv will now also require deletion of these lemmas.
3354 * Renamed the following theorems, INCOMPATIBILITY:
3356 UpperD ~> Upper_memD
3357 LowerD ~> Lower_memD
3358 least_carrier ~> least_closed
3359 greatest_carrier ~> greatest_closed
3360 greatest_Lower_above ~> greatest_Lower_below
3361 one_zero ~> carrier_one_zero
3362 one_not_zero ~> carrier_one_not_zero (collision with assumption)
3367 * Nominal datatypes can now contain type-variables.
3369 * Commands 'nominal_inductive' and 'equivariance' work with local
3372 * Nominal primrec can now works with local theory targets and its
3373 specification syntax now conforms to the general format as seen in
3376 * Method "perm_simp" honours the standard simplifier attributes
3377 (no_asm), (no_asm_use) etc.
3379 * The new predicate #* is defined like freshness, except that on the
3380 left hand side can be a set or list of atoms.
3382 * Experimental command 'nominal_inductive2' derives strong induction
3383 principles for inductive definitions. In contrast to
3384 'nominal_inductive', which can only deal with a fixed number of
3385 binders, it can deal with arbitrary expressions standing for sets of
3386 atoms to be avoided. The only inductive definition we have at the
3387 moment that needs this generalisation is the typing rule for Lets in
3390 Gamma |- t1 : T1 (x,close Gamma T1)::Gamma |- t2 : T2 x#Gamma
3391 -----------------------------------------------------------------
3392 Gamma |- Let x be t1 in t2 : T2
3394 In this rule one wants to avoid all the binders that are introduced by
3395 "close Gamma T1". We are looking for other examples where this
3396 feature might be useful. Please let us know.
3401 * Reimplemented the simplification procedure for proving continuity
3402 subgoals. The new simproc is extensible; users can declare additional
3403 continuity introduction rules with the attribute [cont2cont].
3405 * The continuity simproc now uses a different introduction rule for
3406 solving continuity subgoals on terms with lambda abstractions. In
3407 some rare cases the new simproc may fail to solve subgoals that the
3408 old one could solve, and "simp add: cont2cont_LAM" may be necessary.
3409 Potential INCOMPATIBILITY.
3411 * Command 'fixrec': specification syntax now conforms to the general
3412 format as seen in 'inductive' etc. See src/HOLCF/ex/Fixrec_ex.thy for
3413 examples. INCOMPATIBILITY.
3418 * Proof of Zorn's Lemma for partial orders.
3423 * Multithreading for Poly/ML 5.1/5.2 is no longer supported, only for
3424 Poly/ML 5.2.1 or later. Important note: the TimeLimit facility
3425 depends on multithreading, so timouts will not work before Poly/ML
3428 * High-level support for concurrent ML programming, see
3429 src/Pure/Cuncurrent. The data-oriented model of "future values" is
3430 particularly convenient to organize independent functional
3431 computations. The concept of "synchronized variables" provides a
3432 higher-order interface for components with shared state, avoiding the
3433 delicate details of mutexes and condition variables. (Requires
3434 Poly/ML 5.2.1 or later.)
3436 * ML bindings produced via Isar commands are stored within the Isar
3437 context (theory or proof). Consequently, commands like 'use' and 'ML'
3438 become thread-safe and work with undo as expected (concerning
3439 top-level bindings, not side-effects on global references).
3440 INCOMPATIBILITY, need to provide proper Isar context when invoking the
3441 compiler at runtime; really global bindings need to be given outside a
3442 theory. (Requires Poly/ML 5.2 or later.)
3444 * Command 'ML_prf' is analogous to 'ML' but works within a proof
3445 context. Top-level ML bindings are stored within the proof context in
3446 a purely sequential fashion, disregarding the nested proof structure.
3447 ML bindings introduced by 'ML_prf' are discarded at the end of the
3448 proof. (Requires Poly/ML 5.2 or later.)
3450 * Simplified ML attribute and method setup, cf. functions Attrib.setup
3451 and Method.setup, as well as Isar commands 'attribute_setup' and
3452 'method_setup'. INCOMPATIBILITY for 'method_setup', need to simplify
3453 existing code accordingly, or use plain 'setup' together with old
3456 * Simplified ML oracle interface Thm.add_oracle promotes 'a -> cterm
3457 to 'a -> thm, while results are always tagged with an authentic oracle
3458 name. The Isar command 'oracle' is now polymorphic, no argument type
3459 is specified. INCOMPATIBILITY, need to simplify existing oracle code
3460 accordingly. Note that extra performance may be gained by producing
3461 the cterm carefully, avoiding slow Thm.cterm_of.
3463 * Simplified interface for defining document antiquotations via
3464 ThyOutput.antiquotation, ThyOutput.output, and optionally
3465 ThyOutput.maybe_pretty_source. INCOMPATIBILITY, need to simplify user
3466 antiquotations accordingly, see src/Pure/Thy/thy_output.ML for common
3469 * More systematic treatment of long names, abstract name bindings, and
3470 name space operations. Basic operations on qualified names have been
3471 move from structure NameSpace to Long_Name, e.g. Long_Name.base_name,
3472 Long_Name.append. Old type bstring has been mostly replaced by
3473 abstract type binding (see structure Binding), which supports precise
3474 qualification by packages and local theory targets, as well as proper
3475 tracking of source positions. INCOMPATIBILITY, need to wrap old
3476 bstring values into Binding.name, or better pass through abstract
3477 bindings everywhere. See further src/Pure/General/long_name.ML,
3478 src/Pure/General/binding.ML and src/Pure/General/name_space.ML
3480 * Result facts (from PureThy.note_thms, ProofContext.note_thms,
3481 LocalTheory.note etc.) now refer to the *full* internal name, not the
3482 bstring as before. INCOMPATIBILITY, not detected by ML type-checking!
3484 * Disposed old type and term read functions (Sign.read_def_typ,
3485 Sign.read_typ, Sign.read_def_terms, Sign.read_term,
3486 Thm.read_def_cterms, Thm.read_cterm etc.). INCOMPATIBILITY, should
3487 use regular Syntax.read_typ, Syntax.read_term, Syntax.read_typ_global,
3488 Syntax.read_term_global etc.; see also OldGoals.read_term as last
3489 resort for legacy applications.
3491 * Disposed old declarations, tactics, tactic combinators that refer to
3492 the simpset or claset of an implicit theory (such as Addsimps,
3493 Simp_tac, SIMPSET). INCOMPATIBILITY, should use @{simpset} etc. in
3494 embedded ML text, or local_simpset_of with a proper context passed as
3495 explicit runtime argument.
3497 * Rules and tactics that read instantiations (read_instantiate,
3498 res_inst_tac, thin_tac, subgoal_tac etc.) now demand a proper proof
3499 context, which is required for parsing and type-checking. Moreover,
3500 the variables are specified as plain indexnames, not string encodings
3501 thereof. INCOMPATIBILITY.
3503 * Generic Toplevel.add_hook interface allows to analyze the result of
3504 transactions. E.g. see src/Pure/ProofGeneral/proof_general_pgip.ML
3505 for theorem dependency output of transactions resulting in a new
3508 * ML antiquotations: block-structured compilation context indicated by
3509 \<lbrace> ... \<rbrace>; additional antiquotation forms:
3511 @{binding name} - basic name binding
3512 @{let ?pat = term} - term abbreviation (HO matching)
3513 @{note name = fact} - fact abbreviation
3514 @{thm fact} - singleton fact (with attributes)
3515 @{thms fact} - general fact (with attributes)
3516 @{lemma prop by method} - singleton goal
3517 @{lemma prop by meth1 meth2} - singleton goal
3518 @{lemma prop1 ... propN by method} - general goal
3519 @{lemma prop1 ... propN by meth1 meth2} - general goal
3520 @{lemma (open) ...} - open derivation
3525 * The Isabelle "emacs" tool provides a specific interface to invoke
3526 Proof General / Emacs, with more explicit failure if that is not
3527 installed (the old isabelle-interface script silently falls back on
3528 isabelle-process). The PROOFGENERAL_HOME setting determines the
3529 installation location of the Proof General distribution.
3531 * Isabelle/lib/classes/Pure.jar provides basic support to integrate
3532 the Isabelle process into a JVM/Scala application. See
3533 Isabelle/lib/jedit/plugin for a minimal example. (The obsolete Java
3534 process wrapper has been discontinued.)
3536 * Added homegrown Isabelle font with unicode layout, see lib/fonts.
3538 * Various status messages (with exact source position information) are
3539 emitted, if proper markup print mode is enabled. This allows
3540 user-interface components to provide detailed feedback on internal
3545 New in Isabelle2008 (June 2008)
3546 -------------------------------
3550 * The Isabelle/Isar Reference Manual (isar-ref) has been reorganized
3551 and updated, with formally checked references as hyperlinks.
3553 * Theory loader: use_thy (and similar operations) no longer set the
3554 implicit ML context, which was occasionally hard to predict and in
3555 conflict with concurrency. INCOMPATIBILITY, use ML within Isar which
3556 provides a proper context already.
3558 * Theory loader: old-style ML proof scripts being *attached* to a thy
3559 file are no longer supported. INCOMPATIBILITY, regular 'uses' and
3560 'use' within a theory file will do the job.
3562 * Name space merge now observes canonical order, i.e. the second space
3563 is inserted into the first one, while existing entries in the first
3564 space take precedence. INCOMPATIBILITY in rare situations, may try to
3565 swap theory imports.
3567 * Syntax: symbol \<chi> is now considered a letter. Potential
3568 INCOMPATIBILITY in identifier syntax etc.
3570 * Outer syntax: string tokens no longer admit escaped white space,
3571 which was an accidental (undocumented) feature. INCOMPATIBILITY, use
3572 white space without escapes.
3574 * Outer syntax: string tokens may contain arbitrary character codes
3575 specified via 3 decimal digits (as in SML). E.g. "foo\095bar" for
3581 * Context-dependent token translations. Default setup reverts locally
3582 fixed variables, and adds hilite markup for undeclared frees.
3584 * Unused theorems can be found using the new command 'unused_thms'.
3585 There are three ways of invoking it:
3588 Only finds unused theorems in the current theory.
3590 (2) unused_thms thy_1 ... thy_n -
3591 Finds unused theorems in the current theory and all of its ancestors,
3592 excluding the theories thy_1 ... thy_n and all of their ancestors.
3594 (3) unused_thms thy_1 ... thy_n - thy'_1 ... thy'_m
3595 Finds unused theorems in the theories thy'_1 ... thy'_m and all of
3596 their ancestors, excluding the theories thy_1 ... thy_n and all of
3599 In order to increase the readability of the list produced by
3600 unused_thms, theorems that have been created by a particular instance
3601 of a theory command such as 'inductive' or 'function' are considered
3602 to belong to the same "group", meaning that if at least one theorem in
3603 this group is used, the other theorems in the same group are no longer
3604 reported as unused. Moreover, if all theorems in the group are
3605 unused, only one theorem in the group is displayed.
3607 Note that proof objects have to be switched on in order for
3608 unused_thms to work properly (i.e. !proofs must be >= 1, which is
3609 usually the case when using Proof General with the default settings).
3611 * Authentic naming of facts disallows ad-hoc overwriting of previous
3612 theorems within the same name space. INCOMPATIBILITY, need to remove
3613 duplicate fact bindings, or even accidental fact duplications. Note
3614 that tools may maintain dynamically scoped facts systematically, using
3615 PureThy.add_thms_dynamic.
3617 * Command 'hide' now allows to hide from "fact" name space as well.
3619 * Eliminated destructive theorem database, simpset, claset, and
3620 clasimpset. Potential INCOMPATIBILITY, really need to observe linear
3621 update of theories within ML code.
3623 * Eliminated theory ProtoPure and CPure, leaving just one Pure theory.
3624 INCOMPATIBILITY, object-logics depending on former Pure require
3625 additional setup PureThy.old_appl_syntax_setup; object-logics
3626 depending on former CPure need to refer to Pure.
3628 * Commands 'use' and 'ML' are now purely functional, operating on
3629 theory/local_theory. Removed former 'ML_setup' (on theory), use 'ML'
3630 instead. Added 'ML_val' as mere diagnostic replacement for 'ML'.
3633 * Command 'setup': discontinued implicit version with ML reference.
3635 * Instantiation target allows for simultaneous specification of class
3636 instance operations together with an instantiation proof.
3637 Type-checking phase allows to refer to class operations uniformly.
3638 See src/HOL/Complex/Complex.thy for an Isar example and
3639 src/HOL/Library/Eval.thy for an ML example.
3641 * Indexing of literal facts: be more serious about including only
3642 facts from the visible specification/proof context, but not the
3643 background context (locale etc.). Affects `prop` notation and method
3644 "fact". INCOMPATIBILITY: need to name facts explicitly in rare
3647 * Method "cases", "induct", "coinduct": removed obsolete/undocumented
3648 "(open)" option, which used to expose internal bound variables to the
3651 * Isar statements: removed obsolete case "rule_context".
3652 INCOMPATIBILITY, better use explicit fixes/assumes.
3654 * Locale proofs: default proof step now includes 'unfold_locales';
3655 hence 'proof' without argument may be used to unfold locale
3659 *** Document preparation ***
3661 * Simplified pdfsetup.sty: color/hyperref is used unconditionally for
3662 both pdf and dvi (hyperlinks usually work in xdvi as well); removed
3663 obsolete thumbpdf setup (contemporary PDF viewers do this on the
3664 spot); renamed link color from "darkblue" to "linkcolor" (default
3665 value unchanged, can be redefined via \definecolor); no longer sets
3666 "a4paper" option (unnecessary or even intrusive).
3668 * Antiquotation @{lemma A method} proves proposition A by the given
3669 method (either a method name or a method name plus (optional) method
3670 arguments in parentheses) and prints A just like @{prop A}.
3675 * New primrec package. Specification syntax conforms in style to
3676 definition/function/.... No separate induction rule is provided. The
3677 "primrec" command distinguishes old-style and new-style specifications
3678 by syntax. The former primrec package is now named OldPrimrecPackage.
3679 When adjusting theories, beware: constants stemming from new-style
3680 primrec specifications have authentic syntax.
3682 * Metis prover is now an order of magnitude faster, and also works
3683 with multithreading.
3685 * Metis: the maximum number of clauses that can be produced from a
3686 theorem is now given by the attribute max_clauses. Theorems that
3687 exceed this number are ignored, with a warning printed.
3689 * Sledgehammer no longer produces structured proofs by default. To
3690 enable, declare [[sledgehammer_full = true]]. Attributes
3691 reconstruction_modulus, reconstruction_sorts renamed
3692 sledgehammer_modulus, sledgehammer_sorts. INCOMPATIBILITY.
3694 * Method "induct_scheme" derives user-specified induction rules
3695 from well-founded induction and completeness of patterns. This factors
3696 out some operations that are done internally by the function package
3697 and makes them available separately. See
3698 src/HOL/ex/Induction_Scheme.thy for examples.
3700 * More flexible generation of measure functions for termination
3701 proofs: Measure functions can be declared by proving a rule of the
3702 form "is_measure f" and giving it the [measure_function] attribute.
3703 The "is_measure" predicate is logically meaningless (always true), and
3704 just guides the heuristic. To find suitable measure functions, the
3705 termination prover sets up the goal "is_measure ?f" of the appropriate
3706 type and generates all solutions by prolog-style backwards proof using
3709 This setup also deals with rules like
3711 "is_measure f ==> is_measure (list_size f)"
3713 which accommodates nested datatypes that recurse through lists.
3714 Similar rules are predeclared for products and option types.
3716 * Turned the type of sets "'a set" into an abbreviation for "'a => bool"
3720 - Definitions of overloaded constants on sets have to be replaced by
3721 definitions on => and bool.
3723 - Some definitions of overloaded operators on sets can now be proved
3724 using the definitions of the operators on => and bool. Therefore,
3725 the following theorems have been renamed:
3727 subset_def -> subset_eq
3728 psubset_def -> psubset_eq
3729 set_diff_def -> set_diff_eq
3730 Compl_def -> Compl_eq
3731 Sup_set_def -> Sup_set_eq
3732 Inf_set_def -> Inf_set_eq
3733 sup_set_def -> sup_set_eq
3734 inf_set_def -> inf_set_eq
3736 - Due to the incompleteness of the HO unification algorithm, some
3737 rules such as subst may require manual instantiation, if some of
3738 the unknowns in the rule is a set.
3740 - Higher order unification and forward proofs:
3743 have "P (S::'a set)" <...>
3744 then have "EX S. P S" ..
3746 no longer works (due to the incompleteness of the HO unification
3747 algorithm) and must be replaced by the pattern
3754 - Calculational reasoning with subst (or similar rules):
3757 have "P (S::'a set)" <...>
3758 also have "S = T" <...>
3759 finally have "P T" .
3761 no longer works (for similar reasons as the previous example) and
3762 must be replaced by something like
3764 have "P (S::'a set)" <...>
3765 moreover have "S = T" <...>
3766 ultimately have "P T" by simp
3768 - Tactics or packages written in ML code:
3769 Code performing pattern matching on types via
3771 Type ("set", [T]) => ...
3773 must be rewritten. Moreover, functions like strip_type or
3774 binder_types no longer return the right value when applied to a
3777 T1 => ... => Tn => U => bool
3781 T1 => ... => Tn => U set
3783 * Merged theories Wellfounded_Recursion, Accessible_Part and
3784 Wellfounded_Relations to theory Wellfounded.
3786 * Explicit class "eq" for executable equality. INCOMPATIBILITY.
3788 * Class finite no longer treats UNIV as class parameter. Use class
3789 enum from theory Library/Enum instead to achieve a similar effect.
3792 * Theory List: rule list_induct2 now has explicitly named cases "Nil"
3793 and "Cons". INCOMPATIBILITY.
3795 * HOL (and FOL): renamed variables in rules imp_elim and swap.
3796 Potential INCOMPATIBILITY.
3798 * Theory Product_Type: duplicated lemmas split_Pair_apply and
3799 injective_fst_snd removed, use split_eta and prod_eqI instead.
3800 Renamed upd_fst to apfst and upd_snd to apsnd. INCOMPATIBILITY.
3802 * Theory Nat: removed redundant lemmas that merely duplicate lemmas of
3803 the same name in theory Orderings:
3813 Renamed less_imp_le to less_imp_le_nat, and less_irrefl to
3814 less_irrefl_nat. Potential INCOMPATIBILITY due to more general types
3815 and different variable names.
3817 * Library/Option_ord.thy: Canonical order on option type.
3819 * Library/RBT.thy: Red-black trees, an efficient implementation of
3822 * Library/Countable.thy: Type class for countable types.
3824 * Theory Int: The representation of numerals has changed. The infix
3825 operator BIT and the bit datatype with constructors B0 and B1 have
3826 disappeared. INCOMPATIBILITY, use "Int.Bit0 x" and "Int.Bit1 y" in
3827 place of "x BIT bit.B0" and "y BIT bit.B1", respectively. Theorems
3828 involving BIT, B0, or B1 have been renamed with "Bit0" or "Bit1"
3831 * Theory Nat: definition of <= and < on natural numbers no longer
3832 depend on well-founded relations. INCOMPATIBILITY. Definitions
3833 le_def and less_def have disappeared. Consider lemmas not_less
3834 [symmetric, where ?'a = nat] and less_eq [symmetric] instead.
3836 * Theory Finite_Set: locales ACf, ACe, ACIf, ACIfSL and ACIfSLlin
3837 (whose purpose mainly is for various fold_set functionals) have been
3838 abandoned in favor of the existing algebraic classes
3839 ab_semigroup_mult, comm_monoid_mult, ab_semigroup_idem_mult,
3840 lower_semilattice (resp. upper_semilattice) and linorder.
3843 * Theory Transitive_Closure: induct and cases rules now declare proper
3844 case_names ("base" and "step"). INCOMPATIBILITY.
3846 * Theorem Inductive.lfp_ordinal_induct generalized to complete
3847 lattices. The form set-specific version is available as
3848 Inductive.lfp_ordinal_induct_set.
3850 * Renamed theorems "power.simps" to "power_int.simps".
3853 * Class semiring_div provides basic abstract properties of semirings
3854 with division and modulo operations. Subsumes former class dvd_mod.
3856 * Merged theories IntDef, Numeral and IntArith into unified theory
3857 Int. INCOMPATIBILITY.
3859 * Theory Library/Code_Index: type "index" now represents natural
3860 numbers rather than integers. INCOMPATIBILITY.
3862 * New class "uminus" with operation "uminus" (split of from class
3863 "minus" which now only has operation "minus", binary).
3866 * Constants "card", "internal_split", "option_map" now with authentic
3867 syntax. INCOMPATIBILITY.
3869 * Definitions subset_def, psubset_def, set_diff_def, Compl_def,
3870 le_bool_def, less_bool_def, le_fun_def, less_fun_def, inf_bool_def,
3871 sup_bool_def, Inf_bool_def, Sup_bool_def, inf_fun_def, sup_fun_def,
3872 Inf_fun_def, Sup_fun_def, inf_set_def, sup_set_def, Inf_set_def,
3873 Sup_set_def, le_def, less_def, option_map_def now with object
3874 equality. INCOMPATIBILITY.
3876 * Records. Removed K_record, and replaced it by pure lambda term
3877 %x. c. The simplifier setup is now more robust against eta expansion.
3878 INCOMPATIBILITY: in cases explicitly referring to K_record.
3880 * Library/Multiset: {#a, b, c#} abbreviates {#a#} + {#b#} + {#c#}.
3882 * Library/ListVector: new theory of arithmetic vector operations.
3884 * Library/Order_Relation: new theory of various orderings as sets of
3885 pairs. Defines preorders, partial orders, linear orders and
3886 well-orders on sets and on types.
3891 * Renamed some theories to allow to loading both ZF and HOL in the
3894 Datatype -> Datatype_ZF
3895 Inductive -> Inductive_ZF
3902 INCOMPATIBILITY: ZF theories that import individual theories below
3903 Main might need to be adapted. Regular theory Main is still
3904 available, as trivial extension of Main_ZF.
3909 * ML within Isar: antiquotation @{const name} or @{const
3910 name(typargs)} produces statically-checked Const term.
3912 * Functor NamedThmsFun: data is available to the user as dynamic fact
3913 (of the same name). Removed obsolete print command.
3915 * Removed obsolete "use_legacy_bindings" function.
3917 * The ``print mode'' is now a thread-local value derived from a global
3918 template (the former print_mode reference), thus access becomes
3919 non-critical. The global print_mode reference is for session
3920 management only; user-code should use print_mode_value,
3921 print_mode_active, PrintMode.setmp etc. INCOMPATIBILITY.
3923 * Functions system/system_out provide a robust way to invoke external
3924 shell commands, with propagation of interrupts (requires Poly/ML
3925 5.2.1). Do not use OS.Process.system etc. from the basis library!
3930 * Default settings: PROOFGENERAL_OPTIONS no longer impose xemacs ---
3931 in accordance with Proof General 3.7, which prefers GNU emacs.
3933 * isatool tty runs Isabelle process with plain tty interaction;
3934 optional line editor may be specified via ISABELLE_LINE_EDITOR
3935 setting, the default settings attempt to locate "ledit" and "rlwrap".
3937 * isatool browser now works with Cygwin as well, using general
3938 "javapath" function defined in Isabelle process environment.
3940 * YXML notation provides a simple and efficient alternative to
3941 standard XML transfer syntax. See src/Pure/General/yxml.ML and
3942 isatool yxml as described in the Isabelle system manual.
3944 * JVM class isabelle.IsabelleProcess (located in Isabelle/lib/classes)
3945 provides general wrapper for managing an Isabelle process in a robust
3946 fashion, with ``cooked'' output from stdin/stderr.
3948 * Rudimentary Isabelle plugin for jEdit (see Isabelle/lib/jedit),
3949 based on Isabelle/JVM process wrapper (see Isabelle/lib/classes).
3951 * Removed obsolete THIS_IS_ISABELLE_BUILD feature. NB: the documented
3952 way of changing the user's settings is via
3953 ISABELLE_HOME_USER/etc/settings, which is a fully featured bash
3956 * Multithreading.max_threads := 0 refers to the number of actual CPU
3957 cores of the underlying machine, which is a good starting point for
3958 optimal performance tuning. The corresponding usedir option -M allows
3959 "max" as an alias for "0". WARNING: does not work on certain versions
3960 of Mac OS (with Poly/ML 5.1).
3962 * isabelle-process: non-ML sessions are run with "nice", to reduce the
3963 adverse effect of Isabelle flooding interactive front-ends (notably
3964 ProofGeneral / XEmacs).
3968 New in Isabelle2007 (November 2007)
3969 -----------------------------------
3973 * More uniform information about legacy features, notably a
3974 warning/error of "Legacy feature: ...", depending on the state of the
3975 tolerate_legacy_features flag (default true). FUTURE INCOMPATIBILITY:
3976 legacy features will disappear eventually.
3978 * Theory syntax: the header format ``theory A = B + C:'' has been
3979 discontinued in favour of ``theory A imports B C begin''. Use isatool
3980 fixheaders to convert existing theory files. INCOMPATIBILITY.
3982 * Theory syntax: the old non-Isar theory file format has been
3983 discontinued altogether. Note that ML proof scripts may still be used
3984 with Isar theories; migration is usually quite simple with the ML
3985 function use_legacy_bindings. INCOMPATIBILITY.
3987 * Theory syntax: some popular names (e.g. 'class', 'declaration',
3988 'fun', 'help', 'if') are now keywords. INCOMPATIBILITY, use double
3991 * Theory loader: be more serious about observing the static theory
3992 header specifications (including optional directories), but not the
3993 accidental file locations of previously successful loads. The strict
3994 update policy of former update_thy is now already performed by
3995 use_thy, so the former has been removed; use_thys updates several
3996 theories simultaneously, just as 'imports' within a theory header
3997 specification, but without merging the results. Potential
3998 INCOMPATIBILITY: may need to refine theory headers and commands
3999 ROOT.ML which depend on load order.
4001 * Theory loader: optional support for content-based file
4002 identification, instead of the traditional scheme of full physical
4003 path plus date stamp; configured by the ISABELLE_FILE_IDENT setting
4004 (cf. the system manual). The new scheme allows to work with
4005 non-finished theories in persistent session images, such that source
4006 files may be moved later on without requiring reloads.
4008 * Theory loader: old-style ML proof scripts being *attached* to a thy
4009 file (with the same base name as the theory) are considered a legacy
4010 feature, which will disappear eventually. Even now, the theory loader
4011 no longer maintains dependencies on such files.
4013 * Syntax: the scope for resolving ambiguities via type-inference is
4014 now limited to individual terms, instead of whole simultaneous
4015 specifications as before. This greatly reduces the complexity of the
4016 syntax module and improves flexibility by separating parsing and
4017 type-checking. INCOMPATIBILITY: additional type-constraints (explicit
4018 'fixes' etc.) are required in rare situations.
4020 * Syntax: constants introduced by new-style packages ('definition',
4021 'abbreviation' etc.) are passed through the syntax module in
4022 ``authentic mode''. This means that associated mixfix annotations
4023 really stick to such constants, independently of potential name space
4024 ambiguities introduced later on. INCOMPATIBILITY: constants in parse
4025 trees are represented slightly differently, may need to adapt syntax
4026 translations accordingly. Use CONST marker in 'translations' and
4027 @{const_syntax} antiquotation in 'parse_translation' etc.
4029 * Legacy goal package: reduced interface to the bare minimum required
4030 to keep existing proof scripts running. Most other user-level
4031 functions are now part of the OldGoals structure, which is *not* open
4032 by default (consider isatool expandshort before open OldGoals).
4033 Removed top_sg, prin, printyp, pprint_term/typ altogether, because
4034 these tend to cause confusion about the actual goal (!) context being
4035 used here, which is not necessarily the same as the_context().
4037 * Command 'find_theorems': supports "*" wild-card in "name:"
4038 criterion; "with_dups" option. Certain ProofGeneral versions might
4039 support a specific search form (see ProofGeneral/CHANGES).
4041 * The ``prems limit'' option (cf. ProofContext.prems_limit) is now -1
4042 by default, which means that "prems" (and also "fixed variables") are
4043 suppressed from proof state output. Note that the ProofGeneral
4044 settings mechanism allows to change and save options persistently, but
4045 older versions of Isabelle will fail to start up if a negative prems
4048 * Local theory targets may be specified by non-nested blocks of
4049 ``context/locale/class ... begin'' followed by ``end''. The body may
4050 contain definitions, theorems etc., including any derived mechanism
4051 that has been implemented on top of these primitives. This concept
4052 generalizes the existing ``theorem (in ...)'' towards more versatility
4055 * Proof General interface: proper undo of final 'end' command;
4056 discontinued Isabelle/classic mode (ML proof scripts).
4059 *** Document preparation ***
4061 * Added antiquotation @{theory name} which prints the given name,
4062 after checking that it refers to a valid ancestor theory in the
4065 * Added antiquotations @{ML_type text} and @{ML_struct text} which
4066 check the given source text as ML type/structure, printing verbatim.
4068 * Added antiquotation @{abbrev "c args"} which prints the abbreviation
4069 "c args == rhs" given in the current context. (Any number of
4070 arguments may be given on the LHS.)
4075 * The 'class' package offers a combination of axclass and locale to
4076 achieve Haskell-like type classes in Isabelle. Definitions and
4077 theorems within a class context produce both relative results (with
4078 implicit parameters according to the locale context), and polymorphic
4079 constants with qualified polymorphism (according to the class
4080 context). Within the body context of a 'class' target, a separate
4081 syntax layer ("user space type system") takes care of converting
4082 between global polymorphic consts and internal locale representation.
4083 See src/HOL/ex/Classpackage.thy for examples (as well as main HOL).
4084 "isatool doc classes" provides a tutorial.
4086 * Generic code generator framework allows to generate executable
4087 code for ML and Haskell (including Isabelle classes). A short usage
4090 internal compilation:
4091 export_code <list of constants (term syntax)> in SML
4092 writing SML code to a file:
4093 export_code <list of constants (term syntax)> in SML <filename>
4094 writing OCaml code to a file:
4095 export_code <list of constants (term syntax)> in OCaml <filename>
4096 writing Haskell code to a bunch of files:
4097 export_code <list of constants (term syntax)> in Haskell <filename>
4099 evaluating closed propositions to True/False using code generation:
4102 Reasonable default setup of framework in HOL.
4104 Theorem attributs for selecting and transforming function equations theorems:
4106 [code fun]: select a theorem as function equation for a specific constant
4107 [code fun del]: deselect a theorem as function equation for a specific constant
4108 [code inline]: select an equation theorem for unfolding (inlining) in place
4109 [code inline del]: deselect an equation theorem for unfolding (inlining) in place
4111 User-defined serializations (target in {SML, OCaml, Haskell}):
4113 code_const <and-list of constants (term syntax)>
4114 {(target) <and-list of const target syntax>}+
4116 code_type <and-list of type constructors>
4117 {(target) <and-list of type target syntax>}+
4119 code_instance <and-list of instances>
4121 where instance ::= <type constructor> :: <class>
4123 code_class <and_list of classes>
4124 {(target) <and-list of class target syntax>}+
4125 where class target syntax ::= <class name> {where {<classop> == <target syntax>}+}?
4127 code_instance and code_class only are effective to target Haskell.
4129 For example usage see src/HOL/ex/Codegenerator.thy and
4130 src/HOL/ex/Codegenerator_Pretty.thy. A separate tutorial on code
4131 generation from Isabelle/HOL theories is available via "isatool doc
4134 * Code generator: consts in 'consts_code' Isar commands are now
4135 referred to by usual term syntax (including optional type
4138 * Command 'no_translations' removes translation rules from theory
4141 * Overloaded definitions are now actually checked for acyclic
4142 dependencies. The overloading scheme is slightly more general than
4143 that of Haskell98, although Isabelle does not demand an exact
4144 correspondence to type class and instance declarations.
4145 INCOMPATIBILITY, use ``defs (unchecked overloaded)'' to admit more
4146 exotic versions of overloading -- at the discretion of the user!
4148 Polymorphic constants are represented via type arguments, i.e. the
4149 instantiation that matches an instance against the most general
4150 declaration given in the signature. For example, with the declaration
4151 c :: 'a => 'a => 'a, an instance c :: nat => nat => nat is represented
4152 as c(nat). Overloading is essentially simultaneous structural
4153 recursion over such type arguments. Incomplete specification patterns
4154 impose global constraints on all occurrences, e.g. c('a * 'a) on the
4155 LHS means that more general c('a * 'b) will be disallowed on any RHS.
4156 Command 'print_theory' outputs the normalized system of recursive
4157 equations, see section "definitions".
4159 * Configuration options are maintained within the theory or proof
4160 context (with name and type bool/int/string), providing a very simple
4161 interface to a poor-man's version of general context data. Tools may
4162 declare options in ML (e.g. using Attrib.config_int) and then refer to
4163 these values using Config.get etc. Users may change options via an
4164 associated attribute of the same name. This form of context
4165 declaration works particularly well with commands 'declare' or
4166 'using', for example ``declare [[foo = 42]]''. Thus it has become
4167 very easy to avoid global references, which would not observe Isar
4168 toplevel undo/redo and fail to work with multithreading.
4170 Various global ML references of Pure and HOL have been turned into
4171 configuration options:
4173 Unify.search_bound unify_search_bound
4174 Unify.trace_bound unify_trace_bound
4175 Unify.trace_simp unify_trace_simp
4176 Unify.trace_types unify_trace_types
4177 Simplifier.simp_depth_limit simp_depth_limit
4178 Blast.depth_limit blast_depth_limit
4179 DatatypeProp.dtK datatype_distinctness_limit
4180 fast_arith_neq_limit fast_arith_neq_limit
4181 fast_arith_split_limit fast_arith_split_limit
4183 * Named collections of theorems may be easily installed as context
4184 data using the functor NamedThmsFun (see also
4185 src/Pure/Tools/named_thms.ML). The user may add or delete facts via
4186 attributes; there is also a toplevel print command. This facility is
4187 just a common case of general context data, which is the preferred way
4188 for anything more complex than just a list of facts in canonical
4191 * Isar: command 'declaration' augments a local theory by generic
4192 declaration functions written in ML. This enables arbitrary content
4193 being added to the context, depending on a morphism that tells the
4194 difference of the original declaration context wrt. the application
4195 context encountered later on.
4197 * Isar: proper interfaces for simplification procedures. Command
4198 'simproc_setup' declares named simprocs (with match patterns, and body
4199 text in ML). Attribute "simproc" adds/deletes simprocs in the current
4200 context. ML antiquotation @{simproc name} retrieves named simprocs.
4202 * Isar: an extra pair of brackets around attribute declarations
4203 abbreviates a theorem reference involving an internal dummy fact,
4204 which will be ignored later --- only the effect of the attribute on
4205 the background context will persist. This form of in-place
4206 declarations is particularly useful with commands like 'declare' and
4207 'using', for example ``have A using [[simproc a]] by simp''.
4209 * Isar: method "assumption" (and implicit closing of subproofs) now
4210 takes simple non-atomic goal assumptions into account: after applying
4211 an assumption as a rule the resulting subgoals are solved by atomic
4212 assumption steps. This is particularly useful to finish 'obtain'
4213 goals, such as "!!x. (!!x. P x ==> thesis) ==> P x ==> thesis",
4214 without referring to the original premise "!!x. P x ==> thesis" in the
4215 Isar proof context. POTENTIAL INCOMPATIBILITY: method "assumption" is
4218 * Isar: implicit use of prems from the Isar proof context is
4219 considered a legacy feature. Common applications like ``have A .''
4220 may be replaced by ``have A by fact'' or ``note `A`''. In general,
4221 referencing facts explicitly here improves readability and
4222 maintainability of proof texts.
4224 * Isar: improper proof element 'guess' is like 'obtain', but derives
4225 the obtained context from the course of reasoning! For example:
4227 assume "EX x y. A x & B y" -- "any previous fact"
4228 then guess x and y by clarify
4230 This technique is potentially adventurous, depending on the facts and
4231 proof tools being involved here.
4233 * Isar: known facts from the proof context may be specified as literal
4234 propositions, using ASCII back-quote syntax. This works wherever
4235 named facts used to be allowed so far, in proof commands, proof
4236 methods, attributes etc. Literal facts are retrieved from the context
4237 according to unification of type and term parameters. For example,
4238 provided that "A" and "A ==> B" and "!!x. P x ==> Q x" are known
4239 theorems in the current context, then these are valid literal facts:
4240 `A` and `A ==> B` and `!!x. P x ==> Q x" as well as `P a ==> Q a` etc.
4242 There is also a proof method "fact" which does the same composition
4243 for explicit goal states, e.g. the following proof texts coincide with
4244 certain special cases of literal facts:
4246 have "A" by fact == note `A`
4247 have "A ==> B" by fact == note `A ==> B`
4248 have "!!x. P x ==> Q x" by fact == note `!!x. P x ==> Q x`
4249 have "P a ==> Q a" by fact == note `P a ==> Q a`
4251 * Isar: ":" (colon) is no longer a symbolic identifier character in
4252 outer syntax. Thus symbolic identifiers may be used without
4253 additional white space in declarations like this: ``assume *: A''.
4255 * Isar: 'print_facts' prints all local facts of the current context,
4256 both named and unnamed ones.
4258 * Isar: 'def' now admits simultaneous definitions, e.g.:
4260 def x == "t" and y == "u"
4262 * Isar: added command 'unfolding', which is structurally similar to
4263 'using', but affects both the goal state and facts by unfolding given
4264 rewrite rules. Thus many occurrences of the 'unfold' method or
4265 'unfolded' attribute may be replaced by first-class proof text.
4267 * Isar: methods 'unfold' / 'fold', attributes 'unfolded' / 'folded',
4268 and command 'unfolding' now all support object-level equalities
4269 (potentially conditional). The underlying notion of rewrite rule is
4270 analogous to the 'rule_format' attribute, but *not* that of the
4271 Simplifier (which is usually more generous).
4273 * Isar: the new attribute [rotated n] (default n = 1) rotates the
4274 premises of a theorem by n. Useful in conjunction with drule.
4276 * Isar: the goal restriction operator [N] (default N = 1) evaluates a
4277 method expression within a sandbox consisting of the first N
4278 sub-goals, which need to exist. For example, ``simp_all [3]''
4279 simplifies the first three sub-goals, while (rule foo, simp_all)[]
4280 simplifies all new goals that emerge from applying rule foo to the
4281 originally first one.
4283 * Isar: schematic goals are no longer restricted to higher-order
4284 patterns; e.g. ``lemma "?P(?x)" by (rule TrueI)'' now works as
4287 * Isar: the conclusion of a long theorem statement is now either
4288 'shows' (a simultaneous conjunction, as before), or 'obtains'
4289 (essentially a disjunction of cases with local parameters and
4290 assumptions). The latter allows to express general elimination rules
4291 adequately; in this notation common elimination rules look like this:
4293 lemma exE: -- "EX x. P x ==> (!!x. P x ==> thesis) ==> thesis"
4295 obtains x where "P x"
4297 lemma conjE: -- "A & B ==> (A ==> B ==> thesis) ==> thesis"
4301 lemma disjE: -- "A | B ==> (A ==> thesis) ==> (B ==> thesis) ==> thesis"
4307 The subsequent classical rules even refer to the formal "thesis"
4310 lemma classical: -- "(~ thesis ==> thesis) ==> thesis"
4313 lemma Peirce's_Law: -- "((thesis ==> something) ==> thesis) ==> thesis"
4314 obtains "thesis ==> something"
4316 The actual proof of an 'obtains' statement is analogous to that of the
4317 Isar proof element 'obtain', only that there may be several cases.
4318 Optional case names may be specified in parentheses; these will be
4319 available both in the present proof and as annotations in the
4320 resulting rule, for later use with the 'cases' method (cf. attribute
4323 * Isar: the assumptions of a long theorem statement are available as
4324 "assms" fact in the proof context. This is more appropriate than the
4325 (historical) "prems", which refers to all assumptions of the current
4326 context, including those from the target locale, proof body etc.
4328 * Isar: 'print_statement' prints theorems from the current theory or
4329 proof context in long statement form, according to the syntax of a
4332 * Isar: 'obtain' takes an optional case name for the local context
4333 introduction rule (default "that").
4335 * Isar: removed obsolete 'concl is' patterns. INCOMPATIBILITY, use
4336 explicit (is "_ ==> ?foo") in the rare cases where this still happens
4339 * Pure: syntax "CONST name" produces a fully internalized constant
4340 according to the current context. This is particularly useful for
4341 syntax translations that should refer to internal constant
4342 representations independently of name spaces.
4344 * Pure: syntax constant for foo (binder "FOO ") is called "foo_binder"
4345 instead of "FOO ". This allows multiple binder declarations to coexist
4346 in the same context. INCOMPATIBILITY.
4348 * Isar/locales: 'notation' provides a robust interface to the 'syntax'
4349 primitive that also works in a locale context (both for constants and
4350 fixed variables). Type declaration and internal syntactic representation
4351 of given constants retrieved from the context. Likewise, the
4352 'no_notation' command allows to remove given syntax annotations from the
4355 * Isar/locales: new derived specification elements 'axiomatization',
4356 'definition', 'abbreviation', which support type-inference, admit
4357 object-level specifications (equality, equivalence). See also the
4358 isar-ref manual. Examples:
4361 eq (infix "===" 50) where
4362 eq_refl: "x === x" and eq_subst: "x === y ==> P x ==> P y"
4364 definition "f x y = x + y + 1"
4365 definition g where "g x = f x x"
4368 neq (infix "=!=" 50) where
4369 "x =!= y == ~ (x === y)"
4371 These specifications may be also used in a locale context. Then the
4372 constants being introduced depend on certain fixed parameters, and the
4373 constant name is qualified by the locale base name. An internal
4374 abbreviation takes care for convenient input and output, making the
4375 parameters implicit and using the original short name. See also
4376 src/HOL/ex/Abstract_NAT.thy for an example of deriving polymorphic
4377 entities from a monomorphic theory.
4379 Presently, abbreviations are only available 'in' a target locale, but
4380 not inherited by general import expressions. Also note that
4381 'abbreviation' may be used as a type-safe replacement for 'syntax' +
4382 'translations' in common applications. The "no_abbrevs" print mode
4383 prevents folding of abbreviations in term output.
4385 Concrete syntax is attached to specified constants in internal form,
4386 independently of name spaces. The parse tree representation is
4387 slightly different -- use 'notation' instead of raw 'syntax', and
4388 'translations' with explicit "CONST" markup to accommodate this.
4390 * Pure/Isar: unified syntax for new-style specification mechanisms
4391 (e.g. 'definition', 'abbreviation', or 'inductive' in HOL) admits
4392 full type inference and dummy patterns ("_"). For example:
4394 definition "K x _ = x"
4396 inductive conj for A B
4397 where "A ==> B ==> conj A B"
4399 * Pure: command 'print_abbrevs' prints all constant abbreviations of
4400 the current context. Print mode "no_abbrevs" prevents inversion of
4401 abbreviations on output.
4403 * Isar/locales: improved parameter handling: use of locales "var" and
4404 "struct" no longer necessary; - parameter renamings are no longer
4405 required to be injective. For example, this allows to define
4406 endomorphisms as locale endom = homom mult mult h.
4408 * Isar/locales: changed the way locales with predicates are defined.
4409 Instead of accumulating the specification, the imported expression is
4410 now an interpretation. INCOMPATIBILITY: different normal form of
4411 locale expressions. In particular, in interpretations of locales with
4412 predicates, goals repesenting already interpreted fragments are not
4413 removed automatically. Use methods `intro_locales' and
4414 `unfold_locales'; see below.
4416 * Isar/locales: new methods `intro_locales' and `unfold_locales'
4417 provide backward reasoning on locales predicates. The methods are
4418 aware of interpretations and discharge corresponding goals.
4419 `intro_locales' is less aggressive then `unfold_locales' and does not
4420 unfold predicates to assumptions.
4422 * Isar/locales: the order in which locale fragments are accumulated
4423 has changed. This enables to override declarations from fragments due
4424 to interpretations -- for example, unwanted simp rules.
4426 * Isar/locales: interpretation in theories and proof contexts has been
4427 extended. One may now specify (and prove) equations, which are
4428 unfolded in interpreted theorems. This is useful for replacing
4429 defined concepts (constants depending on locale parameters) by
4430 concepts already existing in the target context. Example:
4432 interpretation partial_order ["op <= :: [int, int] => bool"]
4433 where "partial_order.less (op <=) (x::int) y = (x < y)"
4435 Typically, the constant `partial_order.less' is created by a
4436 definition specification element in the context of locale
4439 * Method "induct": improved internal context management to support
4440 local fixes and defines on-the-fly. Thus explicit meta-level
4441 connectives !! and ==> are rarely required anymore in inductive goals
4442 (using object-logic connectives for this purpose has been long
4443 obsolete anyway). Common proof patterns are explained in
4444 src/HOL/Induct/Common_Patterns.thy, see also
4445 src/HOL/Isar_examples/Puzzle.thy and src/HOL/Lambda for realistic
4448 * Method "induct": improved handling of simultaneous goals. Instead of
4449 introducing object-level conjunction, the statement is now split into
4450 several conclusions, while the corresponding symbolic cases are nested
4451 accordingly. INCOMPATIBILITY, proofs need to be structured explicitly,
4452 see src/HOL/Induct/Common_Patterns.thy, for example.
4454 * Method "induct": mutual induction rules are now specified as a list
4455 of rule sharing the same induction cases. HOL packages usually provide
4456 foo_bar.inducts for mutually defined items foo and bar (e.g. inductive
4457 predicates/sets or datatypes). INCOMPATIBILITY, users need to specify
4458 mutual induction rules differently, i.e. like this:
4460 (induct rule: foo_bar.inducts)
4461 (induct set: foo bar)
4462 (induct pred: foo bar)
4463 (induct type: foo bar)
4465 The ML function ProjectRule.projections turns old-style rules into the
4468 * Method "coinduct": dual of induction, see
4469 src/HOL/Library/Coinductive_List.thy for various examples.
4471 * Method "cases", "induct", "coinduct": the ``(open)'' option is
4472 considered a legacy feature.
4474 * Attribute "symmetric" produces result with standardized schematic
4475 variables (index 0). Potential INCOMPATIBILITY.
4477 * Simplifier: by default the simplifier trace only shows top level
4478 rewrites now. That is, trace_simp_depth_limit is set to 1 by
4479 default. Thus there is less danger of being flooded by the trace. The
4480 trace indicates where parts have been suppressed.
4482 * Provers/classical: removed obsolete classical version of elim_format
4483 attribute; classical elim/dest rules are now treated uniformly when
4484 manipulating the claset.
4486 * Provers/classical: stricter checks to ensure that supplied intro,
4487 dest and elim rules are well-formed; dest and elim rules must have at
4490 * Provers/classical: attributes dest/elim/intro take an optional
4491 weight argument for the rule (just as the Pure versions). Weights are
4492 ignored by automated tools, but determine the search order of single
4495 * Syntax: input syntax now supports dummy variable binding "%_. b",
4496 where the body does not mention the bound variable. Note that dummy
4497 patterns implicitly depend on their context of bounds, which makes
4498 "{_. _}" match any set comprehension as expected. Potential
4499 INCOMPATIBILITY -- parse translations need to cope with syntactic
4500 constant "_idtdummy" in the binding position.
4502 * Syntax: removed obsolete syntactic constant "_K" and its associated
4503 parse translation. INCOMPATIBILITY -- use dummy abstraction instead,
4504 for example "A -> B" => "Pi A (%_. B)".
4506 * Pure: 'class_deps' command visualizes the subclass relation, using
4507 the graph browser tool.
4509 * Pure: 'print_theory' now suppresses certain internal declarations by
4510 default; use '!' option for full details.
4515 * Method "metis" proves goals by applying the Metis general-purpose
4516 resolution prover (see also http://gilith.com/software/metis/).
4517 Examples are in the directory MetisExamples. WARNING: the
4518 Isabelle/HOL-Metis integration does not yet work properly with
4521 * Command 'sledgehammer' invokes external automatic theorem provers as
4522 background processes. It generates calls to the "metis" method if
4523 successful. These can be pasted into the proof. Users do not have to
4524 wait for the automatic provers to return. WARNING: does not really
4525 work with multi-threading.
4527 * New "auto_quickcheck" feature tests outermost goal statements for
4528 potential counter-examples. Controlled by ML references
4529 auto_quickcheck (default true) and auto_quickcheck_time_limit (default
4530 5000 milliseconds). Fails silently if statements is outside of
4531 executable fragment, or any other codgenerator problem occurs.
4533 * New constant "undefined" with axiom "undefined x = undefined".
4535 * Added class "HOL.eq", allowing for code generation with polymorphic
4538 * Some renaming of class constants due to canonical name prefixing in
4539 the new 'class' package:
4541 HOL.abs ~> HOL.abs_class.abs
4542 HOL.divide ~> HOL.divide_class.divide
4543 0 ~> HOL.zero_class.zero
4544 1 ~> HOL.one_class.one
4545 op + ~> HOL.plus_class.plus
4546 op - ~> HOL.minus_class.minus
4547 uminus ~> HOL.minus_class.uminus
4548 op * ~> HOL.times_class.times
4549 op < ~> HOL.ord_class.less
4550 op <= > HOL.ord_class.less_eq
4551 Nat.power ~> Power.power_class.power
4552 Nat.size ~> Nat.size_class.size
4553 Numeral.number_of ~> Numeral.number_class.number_of
4554 FixedPoint.Inf ~> Lattices.complete_lattice_class.Inf
4555 FixedPoint.Sup ~> Lattices.complete_lattice_class.Sup
4556 Orderings.min ~> Orderings.ord_class.min
4557 Orderings.max ~> Orderings.ord_class.max
4558 Divides.op div ~> Divides.div_class.div
4559 Divides.op mod ~> Divides.div_class.mod
4560 Divides.op dvd ~> Divides.div_class.dvd
4562 INCOMPATIBILITY. Adaptions may be required in the following cases:
4564 a) User-defined constants using any of the names "plus", "minus",
4565 "times", "less" or "less_eq". The standard syntax translations for
4566 "+", "-" and "*" may go wrong. INCOMPATIBILITY: use more specific
4569 b) Variables named "plus", "minus", "times", "less", "less_eq"
4570 INCOMPATIBILITY: use more specific names.
4572 c) Permutative equations (e.g. "a + b = b + a")
4573 Since the change of names also changes the order of terms, permutative
4574 rewrite rules may get applied in a different order. Experience shows
4575 that this is rarely the case (only two adaptions in the whole Isabelle
4576 distribution). INCOMPATIBILITY: rewrite proofs
4578 d) ML code directly refering to constant names
4579 This in general only affects hand-written proof tactics, simprocs and
4580 so on. INCOMPATIBILITY: grep your sourcecode and replace names.
4581 Consider using @{const_name} antiquotation.
4583 * New class "default" with associated constant "default".
4585 * Function "sgn" is now overloaded and available on int, real, complex
4586 (and other numeric types), using class "sgn". Two possible defs of
4587 sgn are given as equational assumptions in the classes sgn_if and
4588 sgn_div_norm; ordered_idom now also inherits from sgn_if.
4591 * Locale "partial_order" now unified with class "order" (cf. theory
4592 Orderings), added parameter "less". INCOMPATIBILITY.
4594 * Renamings in classes "order" and "linorder": facts "refl", "trans" and
4595 "cases" to "order_refl", "order_trans" and "linorder_cases", to avoid
4596 clashes with HOL "refl" and "trans". INCOMPATIBILITY.
4598 * Classes "order" and "linorder": potential INCOMPATIBILITY due to
4599 changed order of proof goals in instance proofs.
4601 * The transitivity reasoner for partial and linear orders is set up
4602 for classes "order" and "linorder". Instances of the reasoner are available
4603 in all contexts importing or interpreting the corresponding locales.
4604 Method "order" invokes the reasoner separately; the reasoner
4605 is also integrated with the Simplifier as a solver. Diagnostic
4606 command 'print_orders' shows the available instances of the reasoner
4607 in the current context.
4609 * Localized monotonicity predicate in theory "Orderings"; integrated
4610 lemmas max_of_mono and min_of_mono with this predicate.
4613 * Formulation of theorem "dense" changed slightly due to integration
4614 with new class dense_linear_order.
4616 * Uniform lattice theory development in HOL.
4618 constants "meet" and "join" now named "inf" and "sup"
4619 constant "Meet" now named "Inf"
4621 classes "meet_semilorder" and "join_semilorder" now named
4622 "lower_semilattice" and "upper_semilattice"
4623 class "lorder" now named "lattice"
4624 class "comp_lat" now named "complete_lattice"
4626 Instantiation of lattice classes allows explicit definitions
4627 for "inf" and "sup" operations (or "Inf" and "Sup" for complete lattices).
4629 INCOMPATIBILITY. Theorem renames:
4631 meet_left_le ~> inf_le1
4632 meet_right_le ~> inf_le2
4633 join_left_le ~> sup_ge1
4634 join_right_le ~> sup_ge2
4635 meet_join_le ~> inf_sup_ord
4638 le_meet ~> le_inf_iff
4639 le_join ~> ge_sup_conv
4640 meet_idempotent ~> inf_idem
4641 join_idempotent ~> sup_idem
4642 meet_comm ~> inf_commute
4643 join_comm ~> sup_commute
4644 meet_leI1 ~> le_infI1
4645 meet_leI2 ~> le_infI2
4646 le_joinI1 ~> le_supI1
4647 le_joinI2 ~> le_supI2
4648 meet_assoc ~> inf_assoc
4649 join_assoc ~> sup_assoc
4650 meet_left_comm ~> inf_left_commute
4651 meet_left_idempotent ~> inf_left_idem
4652 join_left_comm ~> sup_left_commute
4653 join_left_idempotent ~> sup_left_idem
4656 le_def_meet ~> le_iff_inf
4657 le_def_join ~> le_iff_sup
4658 join_absorp2 ~> sup_absorb2
4659 join_absorp1 ~> sup_absorb1
4660 meet_absorp1 ~> inf_absorb1
4661 meet_absorp2 ~> inf_absorb2
4662 meet_join_absorp ~> inf_sup_absorb
4663 join_meet_absorp ~> sup_inf_absorb
4664 distrib_join_le ~> distrib_sup_le
4665 distrib_meet_le ~> distrib_inf_le
4667 add_meet_distrib_left ~> add_inf_distrib_left
4668 add_join_distrib_left ~> add_sup_distrib_left
4669 is_join_neg_meet ~> is_join_neg_inf
4670 is_meet_neg_join ~> is_meet_neg_sup
4671 add_meet_distrib_right ~> add_inf_distrib_right
4672 add_join_distrib_right ~> add_sup_distrib_right
4673 add_meet_join_distribs ~> add_sup_inf_distribs
4674 join_eq_neg_meet ~> sup_eq_neg_inf
4675 meet_eq_neg_join ~> inf_eq_neg_sup
4676 add_eq_meet_join ~> add_eq_inf_sup
4677 meet_0_imp_0 ~> inf_0_imp_0
4678 join_0_imp_0 ~> sup_0_imp_0
4679 meet_0_eq_0 ~> inf_0_eq_0
4680 join_0_eq_0 ~> sup_0_eq_0
4681 neg_meet_eq_join ~> neg_inf_eq_sup
4682 neg_join_eq_meet ~> neg_sup_eq_inf
4683 join_eq_if ~> sup_eq_if
4685 mono_meet ~> mono_inf
4686 mono_join ~> mono_sup
4687 meet_bool_eq ~> inf_bool_eq
4688 join_bool_eq ~> sup_bool_eq
4689 meet_fun_eq ~> inf_fun_eq
4690 join_fun_eq ~> sup_fun_eq
4691 meet_set_eq ~> inf_set_eq
4692 join_set_eq ~> sup_set_eq
4693 meet1_iff ~> inf1_iff
4694 meet2_iff ~> inf2_iff
4703 join1_iff ~> sup1_iff
4704 join2_iff ~> sup2_iff
4714 is_meet_Meet ~> is_meet_Inf
4715 Meet_bool_def ~> Inf_bool_def
4716 Meet_fun_def ~> Inf_fun_def
4717 Meet_greatest ~> Inf_greatest
4718 Meet_lower ~> Inf_lower
4719 Meet_set_def ~> Inf_set_def
4722 Sup_bool_eq ~> Sup_bool_def
4723 Sup_fun_eq ~> Sup_fun_def
4724 Sup_set_eq ~> Sup_set_def
4726 listsp_meetI ~> listsp_infI
4727 listsp_meet_eq ~> listsp_inf_eq
4732 * Added syntactic class "size"; overloaded constant "size" now has
4733 type "'a::size ==> bool"
4735 * Internal reorganisation of `size' of datatypes: size theorems
4736 "foo.size" are no longer subsumed by "foo.simps" (but are still
4737 simplification rules by default!); theorems "prod.size" now named
4740 * Class "div" now inherits from class "times" rather than "type".
4743 * HOL/Finite_Set: "name-space" locales Lattice, Distrib_lattice,
4744 Linorder etc. have disappeared; operations defined in terms of
4745 fold_set now are named Inf_fin, Sup_fin. INCOMPATIBILITY.
4747 * HOL/Nat: neq0_conv no longer declared as iff. INCOMPATIBILITY.
4749 * HOL-Word: New extensive library and type for generic, fixed size
4750 machine words, with arithemtic, bit-wise, shifting and rotating
4751 operations, reflection into int, nat, and bool lists, automation for
4752 linear arithmetic (by automatic reflection into nat or int), including
4753 lemmas on overflow and monotonicity. Instantiated to all appropriate
4754 arithmetic type classes, supporting automatic simplification of
4755 numerals on all operations.
4757 * Library/Boolean_Algebra: locales for abstract boolean algebras.
4759 * Library/Numeral_Type: numbers as types, e.g. TYPE(32).
4761 * Code generator library theories:
4762 - Code_Integer represents HOL integers by big integer literals in target
4764 - Code_Char represents HOL characters by character literals in target
4766 - Code_Char_chr like Code_Char, but also offers treatment of character
4767 codes; includes Code_Integer.
4768 - Executable_Set allows to generate code for finite sets using lists.
4769 - Executable_Rat implements rational numbers as triples (sign, enumerator,
4771 - Executable_Real implements a subset of real numbers, namly those
4772 representable by rational numbers.
4773 - Efficient_Nat implements natural numbers by integers, which in general will
4774 result in higher efficency; pattern matching with 0/Suc is eliminated;
4775 includes Code_Integer.
4776 - Code_Index provides an additional datatype index which is mapped to
4777 target-language built-in integers.
4778 - Code_Message provides an additional datatype message_string which is isomorphic to
4779 strings; messages are mapped to target-language strings.
4781 * New package for inductive predicates
4783 An n-ary predicate p with m parameters z_1, ..., z_m can now be defined via
4786 p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
4787 for z_1 :: U_1 and ... and z_n :: U_m
4789 rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
4792 with full support for type-inference, rather than
4794 consts s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
4796 abbreviation p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
4797 where "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
4799 inductive "s z_1 ... z_m"
4801 rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
4804 For backward compatibility, there is a wrapper allowing inductive
4805 sets to be defined with the new package via
4808 s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
4809 for z_1 :: U_1 and ... and z_n :: U_m
4811 rule_1: "... ==> (t_1_1, ..., t_1_n) : s z_1 ... z_m"
4817 s :: "U_1 => ... => U_m => (T_1 * ... * T_n) set"
4818 and p :: "U_1 => ... => U_m => T_1 => ... => T_n => bool"
4819 for z_1 :: U_1 and ... and z_n :: U_m
4821 "p z_1 ... z_m x_1 ... x_n == (x_1, ..., x_n) : s z_1 ... z_m"
4822 | rule_1: "... ==> p z_1 ... z_m t_1_1 ... t_1_n"
4825 if the additional syntax "p ..." is required.
4827 Numerous examples can be found in the subdirectories src/HOL/Auth,
4828 src/HOL/Bali, src/HOL/Induct, and src/HOL/MicroJava.
4832 - Since declaration and definition of inductive sets or predicates
4833 is no longer separated, abbreviations involving the newly
4834 introduced sets or predicates must be specified together with the
4835 introduction rules after the 'where' keyword (see above), rather
4836 than before the actual inductive definition.
4838 - The variables in induction and elimination rules are now
4839 quantified in the order of their occurrence in the introduction
4840 rules, rather than in alphabetical order. Since this may break
4841 some proofs, these proofs either have to be repaired, e.g. by
4842 reordering the variables a_i_1 ... a_i_{k_i} in Isar 'case'
4843 statements of the form
4845 case (rule_i a_i_1 ... a_i_{k_i})
4847 or the old order of quantification has to be restored by explicitly adding
4848 meta-level quantifiers in the introduction rules, i.e.
4850 | rule_i: "!!a_i_1 ... a_i_{k_i}. ... ==> p z_1 ... z_m t_i_1 ... t_i_n"
4852 - The format of the elimination rules is now
4854 p z_1 ... z_m x_1 ... x_n ==>
4855 (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
4860 (x_1, ..., x_n) : s z_1 ... z_m ==>
4861 (!!a_1_1 ... a_1_{k_1}. x_1 = t_1_1 ==> ... ==> x_n = t_1_n ==> ... ==> P)
4864 for sets rather than
4866 x : s z_1 ... z_m ==>
4867 (!!a_1_1 ... a_1_{k_1}. x = (t_1_1, ..., t_1_n) ==> ... ==> P)
4870 This may require terms in goals to be expanded to n-tuples
4871 (e.g. using case_tac or simplification with the split_paired_all
4872 rule) before the above elimination rule is applicable.
4874 - The elimination or case analysis rules for (mutually) inductive
4875 sets or predicates are now called "p_1.cases" ... "p_k.cases". The
4876 list of rules "p_1_..._p_k.elims" is no longer available.
4878 * New package "function"/"fun" for general recursive functions,
4879 supporting mutual and nested recursion, definitions in local contexts,
4880 more general pattern matching and partiality. See HOL/ex/Fundefs.thy
4881 for small examples, and the separate tutorial on the function
4882 package. The old recdef "package" is still available as before, but
4883 users are encouraged to use the new package.
4885 * Method "lexicographic_order" automatically synthesizes termination
4886 relations as lexicographic combinations of size measures.
4888 * Case-expressions allow arbitrary constructor-patterns (including
4889 "_") and take their order into account, like in functional
4890 programming. Internally, this is translated into nested
4891 case-expressions; missing cases are added and mapped to the predefined
4892 constant "undefined". In complicated cases printing may no longer show
4893 the original input but the internal form. Lambda-abstractions allow
4894 the same form of pattern matching: "% pat1 => e1 | ..." is an
4895 abbreviation for "%x. case x of pat1 => e1 | ..." where x is a new
4898 * IntDef: The constant "int :: nat => int" has been removed; now "int"
4899 is an abbreviation for "of_nat :: nat => int". The simplification
4900 rules for "of_nat" have been changed to work like "int" did
4901 previously. Potential INCOMPATIBILITY:
4902 - "of_nat (Suc m)" simplifies to "1 + of_nat m" instead of "of_nat m + 1"
4903 - of_nat_diff and of_nat_mult are no longer default simp rules
4905 * Method "algebra" solves polynomial equations over (semi)rings using
4906 Groebner bases. The (semi)ring structure is defined by locales and the
4907 tool setup depends on that generic context. Installing the method for
4908 a specific type involves instantiating the locale and possibly adding
4909 declarations for computation on the coefficients. The method is
4910 already instantiated for natural numbers and for the axiomatic class
4911 of idoms with numerals. See also the paper by Chaieb and Wenzel at
4912 CALCULEMUS 2007 for the general principles underlying this
4913 architecture of context-aware proof-tools.
4915 * Method "ferrack" implements quantifier elimination over
4916 special-purpose dense linear orders using locales (analogous to
4917 "algebra"). The method is already installed for class
4918 {ordered_field,recpower,number_ring} which subsumes real, hyperreal,
4921 * Former constant "List.op @" now named "List.append". Use ML
4922 antiquotations @{const_name List.append} or @{term " ... @ ... "} to
4923 circumvent possible incompatibilities when working on ML level.
4925 * primrec: missing cases mapped to "undefined" instead of "arbitrary".
4927 * New function listsum :: 'a list => 'a for arbitrary monoids.
4928 Special syntax: "SUM x <- xs. f x" (and latex variants)
4930 * New syntax for Haskell-like list comprehension (input only), eg.
4931 [(x,y). x <- xs, y <- ys, x ~= y], see also src/HOL/List.thy.
4933 * The special syntax for function "filter" has changed from [x :
4934 xs. P] to [x <- xs. P] to avoid an ambiguity caused by list
4935 comprehension syntax, and for uniformity. INCOMPATIBILITY.
4937 * [a..b] is now defined for arbitrary linear orders. It used to be
4938 defined on nat only, as an abbreviation for [a..<Suc b]
4941 * Renamed lemma "set_take_whileD" to "set_takeWhileD".
4943 * New functions "sorted" and "sort" in src/HOL/List.thy.
4945 * New lemma collection field_simps (an extension of ring_simps) for
4946 manipulating (in)equations involving division. Multiplies with all
4947 denominators that can be proved to be non-zero (in equations) or
4948 positive/negative (in inequations).
4950 * Lemma collections ring_eq_simps, group_eq_simps and ring_distrib
4951 have been improved and renamed to ring_simps, group_simps and
4952 ring_distribs. Removed lemmas field_xyz in theory Ring_and_Field
4953 because they were subsumed by lemmas xyz. INCOMPATIBILITY.
4955 * Theory Library/Commutative_Ring: switched from recdef to function
4956 package; constants add, mul, pow now curried. Infix syntax for
4957 algebraic operations.
4959 * Dropped redundant lemma def_imp_eq in favor of meta_eq_to_obj_eq.
4962 * Dropped redundant lemma if_def2 in favor of if_bool_eq_conj.
4965 * HOL/records: generalised field-update to take a function on the
4966 field rather than the new value: r(|A := x|) is translated to A_update
4967 (K x) r The K-combinator that is internally used is called K_record.
4968 INCOMPATIBILITY: Usage of the plain update functions has to be
4971 * Class "semiring_0" now contains annihilation axioms x * 0 = 0 and 0
4972 * x = 0, which are required for a semiring. Richer structures do not
4973 inherit from semiring_0 anymore, because this property is a theorem
4974 there, not an axiom. INCOMPATIBILITY: In instances of semiring_0,
4975 there is more to prove, but this is mostly trivial.
4977 * Class "recpower" is generalized to arbitrary monoids, not just
4978 commutative semirings. INCOMPATIBILITY: may need to incorporate
4979 commutativity or semiring properties additionally.
4981 * Constant "List.list_all2" in List.thy now uses authentic syntax.
4982 INCOMPATIBILITY: translations containing list_all2 may go wrong,
4983 better use 'abbreviation'.
4985 * Renamed constant "List.op mem" to "List.member". INCOMPATIBILITY.
4987 * Numeral syntax: type 'bin' which was a mere type copy of 'int' has
4988 been abandoned in favour of plain 'int'. INCOMPATIBILITY --
4989 significant changes for setting up numeral syntax for types:
4990 - New constants Numeral.pred and Numeral.succ instead
4991 of former Numeral.bin_pred and Numeral.bin_succ.
4992 - Use integer operations instead of bin_add, bin_mult and so on.
4993 - Numeral simplification theorems named Numeral.numeral_simps instead of Bin_simps.
4994 - ML structure Bin_Simprocs now named Int_Numeral_Base_Simprocs.
4996 See src/HOL/Integ/IntArith.thy for an example setup.
4998 * Command 'normal_form' computes the normal form of a term that may
4999 contain free variables. For example ``normal_form "rev [a, b, c]"''
5000 produces ``[b, c, a]'' (without proof). This command is suitable for
5001 heavy-duty computations because the functions are compiled to ML
5002 first. Correspondingly, a method "normalization" is provided. See
5003 further src/HOL/ex/NormalForm.thy and src/Tools/nbe.ML.
5005 * Alternative iff syntax "A <-> B" for equality on bool (with priority
5006 25 like -->); output depends on the "iff" print_mode, the default is
5007 "A = B" (with priority 50).
5009 * Relations less (<) and less_eq (<=) are also available on type bool.
5010 Modified syntax to disallow nesting without explicit parentheses,
5011 e.g. "(x < y) < z" or "x < (y < z)", but NOT "x < y < z". Potential
5014 * "LEAST x:A. P" expands to "LEAST x. x:A & P" (input only).
5016 * Relation composition operator "op O" now has precedence 75 and binds
5017 stronger than union and intersection. INCOMPATIBILITY.
5019 * The old set interval syntax "{m..n(}" (and relatives) has been
5020 removed. Use "{m..<n}" (and relatives) instead.
5022 * In the context of the assumption "~(s = t)" the Simplifier rewrites
5023 "t = s" to False (by simproc "neq"). INCOMPATIBILITY, consider using
5024 ``declare [[simproc del: neq]]''.
5026 * Simplifier: "m dvd n" where m and n are numbers is evaluated to
5029 * Theorem Cons_eq_map_conv no longer declared as "simp".
5031 * Theorem setsum_mult renamed to setsum_right_distrib.
5033 * Prefer ex1I over ex_ex1I in single-step reasoning, e.g. by the
5036 * Reimplemented methods "sat" and "satx", with several improvements:
5037 goals no longer need to be stated as "<prems> ==> False", equivalences
5038 (i.e. "=" on type bool) are handled, variable names of the form
5039 "lit_<n>" are no longer reserved, significant speedup.
5041 * Methods "sat" and "satx" can now replay MiniSat proof traces.
5042 zChaff is still supported as well.
5044 * 'inductive' and 'datatype': provide projections of mutual rules,
5045 bundled as foo_bar.inducts;
5047 * Library: moved theories Parity, GCD, Binomial, Infinite_Set to
5050 * Library: moved theory Accessible_Part to main HOL.
5052 * Library: added theory Coinductive_List of potentially infinite lists
5053 as greatest fixed-point.
5055 * Library: added theory AssocList which implements (finite) maps as
5058 * Method "evaluation" solves goals (i.e. a boolean expression)
5059 efficiently by compiling it to ML. The goal is "proved" (via an
5060 oracle) if it evaluates to True.
5062 * Linear arithmetic now splits certain operators (e.g. min, max, abs)
5063 also when invoked by the simplifier. This results in the Simplifier
5064 being more powerful on arithmetic goals. INCOMPATIBILITY.
5065 Configuration option fast_arith_split_limit=0 recovers the old
5068 * Support for hex (0x20) and binary (0b1001) numerals.
5070 * New method: reify eqs (t), where eqs are equations for an
5071 interpretation I :: 'a list => 'b => 'c and t::'c is an optional
5072 parameter, computes a term s::'b and a list xs::'a list and proves the
5073 theorem I xs s = t. This is also known as reification or quoting. The
5074 resulting theorem is applied to the subgoal to substitute t with I xs
5075 s. If t is omitted, the subgoal itself is reified.
5077 * New method: reflection corr_thm eqs (t). The parameters eqs and (t)
5078 are as explained above. corr_thm is a theorem for I vs (f t) = I vs t,
5079 where f is supposed to be a computable function (in the sense of code
5080 generattion). The method uses reify to compute s and xs as above then
5081 applies corr_thm and uses normalization by evaluation to "prove" f s =
5082 r and finally gets the theorem t = r, which is again applied to the
5083 subgoal. An Example is available in src/HOL/ex/ReflectionEx.thy.
5085 * Reflection: Automatic reification now handels binding, an example is
5086 available in src/HOL/ex/ReflectionEx.thy
5088 * HOL-Statespace: ``State Spaces: The Locale Way'' introduces a
5089 command 'statespace' that is similar to 'record', but introduces an
5090 abstract specification based on the locale infrastructure instead of
5091 HOL types. This leads to extra flexibility in composing state spaces,
5092 in particular multiple inheritance and renaming of components.
5097 * Hyperreal: Functions root and sqrt are now defined on negative real
5098 inputs so that root n (- x) = - root n x and sqrt (- x) = - sqrt x.
5099 Nonnegativity side conditions have been removed from many lemmas, so
5100 that more subgoals may now be solved by simplification; potential
5103 * Real: new type classes formalize real normed vector spaces and
5104 algebras, using new overloaded constants scaleR :: real => 'a => 'a
5105 and norm :: 'a => real.
5107 * Real: constant of_real :: real => 'a::real_algebra_1 injects from
5108 reals into other types. The overloaded constant Reals :: 'a set is now
5109 defined as range of_real; potential INCOMPATIBILITY.
5111 * Real: proper support for ML code generation, including 'quickcheck'.
5112 Reals are implemented as arbitrary precision rationals.
5114 * Hyperreal: Several constants that previously worked only for the
5115 reals have been generalized, so they now work over arbitrary vector
5116 spaces. Type annotations may need to be added in some cases; potential
5119 Infinitesimal :: ('a::real_normed_vector) star set
5120 HFinite :: ('a::real_normed_vector) star set
5121 HInfinite :: ('a::real_normed_vector) star set
5122 approx :: ('a::real_normed_vector) star => 'a star => bool
5123 monad :: ('a::real_normed_vector) star => 'a star set
5124 galaxy :: ('a::real_normed_vector) star => 'a star set
5125 (NS)LIMSEQ :: [nat => 'a::real_normed_vector, 'a] => bool
5126 (NS)convergent :: (nat => 'a::real_normed_vector) => bool
5127 (NS)Bseq :: (nat => 'a::real_normed_vector) => bool
5128 (NS)Cauchy :: (nat => 'a::real_normed_vector) => bool
5129 (NS)LIM :: ['a::real_normed_vector => 'b::real_normed_vector, 'a, 'b] => bool
5130 is(NS)Cont :: ['a::real_normed_vector => 'b::real_normed_vector, 'a] => bool
5131 deriv :: ['a::real_normed_field => 'a, 'a, 'a] => bool
5132 sgn :: 'a::real_normed_vector => 'a
5133 exp :: 'a::{recpower,real_normed_field,banach} => 'a
5135 * Complex: Some complex-specific constants are now abbreviations for
5136 overloaded ones: complex_of_real = of_real, cmod = norm, hcmod =
5137 hnorm. Other constants have been entirely removed in favor of the
5138 polymorphic versions (INCOMPATIBILITY):
5142 HInfinite <-- CInfinite
5143 Infinitesimal <-- CInfinitesimal
5146 (NS)LIM <-- (NS)CLIM, (NS)CRLIM
5147 is(NS)Cont <-- is(NS)Contc, is(NS)contCR
5148 (ns)deriv <-- (ns)cderiv
5153 * Formalisation of ideals and the quotient construction over rings.
5155 * Order and lattice theory no longer based on records.
5158 * Renamed lemmas least_carrier -> least_closed and greatest_carrier ->
5159 greatest_closed. INCOMPATIBILITY.
5161 * Method algebra is now set up via an attribute. For examples see
5162 Ring.thy. INCOMPATIBILITY: the method is now weaker on combinations
5163 of algebraic structures.
5165 * Renamed theory CRing to Ring.
5170 * Substantial, yet incomplete support for nominal datatypes (binding
5171 structures) based on HOL-Nominal logic. See src/HOL/Nominal and
5172 src/HOL/Nominal/Examples. Prospective users should consult
5173 http://isabelle.in.tum.de/nominal/
5178 * ML basics: just one true type int, which coincides with IntInf.int
5181 * ML within Isar: antiquotations allow to embed statically-checked
5182 formal entities in the source, referring to the context available at
5183 compile-time. For example:
5185 ML {* @{sort "{zero,one}"} *}
5186 ML {* @{typ "'a => 'b"} *}
5187 ML {* @{term "%x. x"} *}
5188 ML {* @{prop "x == y"} *}
5189 ML {* @{ctyp "'a => 'b"} *}
5190 ML {* @{cterm "%x. x"} *}
5191 ML {* @{cprop "x == y"} *}
5192 ML {* @{thm asm_rl} *}
5193 ML {* @{thms asm_rl} *}
5194 ML {* @{type_name c} *}
5195 ML {* @{type_syntax c} *}
5196 ML {* @{const_name c} *}
5197 ML {* @{const_syntax c} *}
5200 ML {* @{theory Pure} *}
5201 ML {* @{theory_ref} *}
5202 ML {* @{theory_ref Pure} *}
5205 ML {* @{clasimpset} *}
5207 The same works for sources being ``used'' within an Isar context.
5209 * ML in Isar: improved error reporting; extra verbosity with
5210 ML_Context.trace enabled.
5212 * Pure/General/table.ML: the join operations now works via exceptions
5213 DUP/SAME instead of type option. This is simpler in simple cases, and
5214 admits slightly more efficient complex applications.
5216 * Pure: 'advanced' translation functions (parse_translation etc.) now
5217 use Context.generic instead of just theory.
5219 * Pure: datatype Context.generic joins theory/Proof.context and
5220 provides some facilities for code that works in either kind of
5221 context, notably GenericDataFun for uniform theory and proof data.
5223 * Pure: simplified internal attribute type, which is now always
5224 Context.generic * thm -> Context.generic * thm. Global (theory) vs.
5225 local (Proof.context) attributes have been discontinued, while
5226 minimizing code duplication. Thm.rule_attribute and
5227 Thm.declaration_attribute build canonical attributes; see also structure
5228 Context for further operations on Context.generic, notably
5229 GenericDataFun. INCOMPATIBILITY, need to adapt attribute type
5230 declarations and definitions.
5232 * Context data interfaces (Theory/Proof/GenericDataFun): removed
5233 name/print, uninitialized data defaults to ad-hoc copy of empty value,
5234 init only required for impure data. INCOMPATIBILITY: empty really need
5235 to be empty (no dependencies on theory content!)
5237 * Pure/kernel: consts certification ignores sort constraints given in
5238 signature declarations. (This information is not relevant to the
5239 logic, but only for type inference.) SIGNIFICANT INTERNAL CHANGE,
5240 potential INCOMPATIBILITY.
5242 * Pure: axiomatic type classes are now purely definitional, with
5243 explicit proofs of class axioms and super class relations performed
5244 internally. See Pure/axclass.ML for the main internal interfaces --
5245 notably AxClass.define_class supercedes AxClass.add_axclass, and
5246 AxClass.axiomatize_class/classrel/arity supersede
5247 Sign.add_classes/classrel/arities.
5249 * Pure/Isar: Args/Attrib parsers operate on Context.generic --
5250 global/local versions on theory vs. Proof.context have been
5251 discontinued; Attrib.syntax and Method.syntax have been adapted
5252 accordingly. INCOMPATIBILITY, need to adapt parser expressions for
5253 attributes, methods, etc.
5255 * Pure: several functions of signature "... -> theory -> theory * ..."
5256 have been reoriented to "... -> theory -> ... * theory" in order to
5257 allow natural usage in combination with the ||>, ||>>, |-> and
5258 fold_map combinators.
5260 * Pure: official theorem names (closed derivations) and additional
5261 comments (tags) are now strictly separate. Name hints -- which are
5262 maintained as tags -- may be attached any time without affecting the
5265 * Pure: primitive rule lift_rule now takes goal cterm instead of an
5266 actual goal state (thm). Use Thm.lift_rule (Thm.cprem_of st i) to
5267 achieve the old behaviour.
5269 * Pure: the "Goal" constant is now called "prop", supporting a
5270 slightly more general idea of ``protecting'' meta-level rule
5273 * Pure: Logic.(un)varify only works in a global context, which is now
5274 enforced instead of silently assumed. INCOMPATIBILITY, may use
5275 Logic.legacy_(un)varify as temporary workaround.
5277 * Pure: structure Name provides scalable operations for generating
5278 internal variable names, notably Name.variants etc. This replaces
5279 some popular functions from term.ML:
5281 Term.variant -> Name.variant
5282 Term.variantlist -> Name.variant_list
5283 Term.invent_names -> Name.invent_list
5285 Note that low-level renaming rarely occurs in new code -- operations
5286 from structure Variable are used instead (see below).
5288 * Pure: structure Variable provides fundamental operations for proper
5289 treatment of fixed/schematic variables in a context. For example,
5290 Variable.import introduces fixes for schematics of given facts and
5291 Variable.export reverses the effect (up to renaming) -- this replaces
5292 various freeze_thaw operations.
5294 * Pure: structure Goal provides simple interfaces for
5295 init/conclude/finish and tactical prove operations (replacing former
5296 Tactic.prove). Goal.prove is the canonical way to prove results
5297 within a given context; Goal.prove_global is a degraded version for
5298 theory level goals, including a global Drule.standard. Note that
5299 OldGoals.prove_goalw_cterm has long been obsolete, since it is
5300 ill-behaved in a local proof context (e.g. with local fixes/assumes or
5301 in a locale context).
5303 * Pure/Syntax: generic interfaces for parsing (Syntax.parse_term etc.)
5304 and type checking (Syntax.check_term etc.), with common combinations
5305 (Syntax.read_term etc.). These supersede former Sign.read_term etc.
5306 which are considered legacy and await removal.
5308 * Pure/Syntax: generic interfaces for type unchecking
5309 (Syntax.uncheck_terms etc.) and unparsing (Syntax.unparse_term etc.),
5310 with common combinations (Syntax.pretty_term, Syntax.string_of_term
5311 etc.). Former Sign.pretty_term, Sign.string_of_term etc. are still
5312 available for convenience, but refer to the very same operations using
5313 a mere theory instead of a full context.
5315 * Isar: simplified treatment of user-level errors, using exception
5316 ERROR of string uniformly. Function error now merely raises ERROR,
5317 without any side effect on output channels. The Isar toplevel takes
5318 care of proper display of ERROR exceptions. ML code may use plain
5319 handle/can/try; cat_error may be used to concatenate errors like this:
5321 ... handle ERROR msg => cat_error msg "..."
5323 Toplevel ML code (run directly or through the Isar toplevel) may be
5324 embedded into the Isar toplevel with exception display/debug like
5327 Isar.toplevel (fn () => ...)
5329 INCOMPATIBILITY, removed special transform_error facilities, removed
5330 obsolete variants of user-level exceptions (ERROR_MESSAGE,
5331 Context.PROOF, ProofContext.CONTEXT, Proof.STATE, ProofHistory.FAIL)
5332 -- use plain ERROR instead.
5334 * Isar: theory setup now has type (theory -> theory), instead of a
5335 list. INCOMPATIBILITY, may use #> to compose setup functions.
5337 * Isar: ML toplevel pretty printer for type Proof.context, subject to
5338 ProofContext.debug/verbose flags.
5340 * Isar: Toplevel.theory_to_proof admits transactions that modify the
5341 theory before entering a proof state. Transactions now always see a
5342 quasi-functional intermediate checkpoint, both in interactive and
5345 * Isar: simplified interfaces for outer syntax. Renamed
5346 OuterSyntax.add_keywords to OuterSyntax.keywords. Removed
5347 OuterSyntax.add_parsers -- this functionality is now included in
5348 OuterSyntax.command etc. INCOMPATIBILITY.
5350 * Simplifier: the simpset of a running simplification process now
5351 contains a proof context (cf. Simplifier.the_context), which is the
5352 very context that the initial simpset has been retrieved from (by
5353 simpset_of/local_simpset_of). Consequently, all plug-in components
5354 (solver, looper etc.) may depend on arbitrary proof data.
5356 * Simplifier.inherit_context inherits the proof context (plus the
5357 local bounds) of the current simplification process; any simproc
5358 etc. that calls the Simplifier recursively should do this! Removed
5359 former Simplifier.inherit_bounds, which is already included here --
5360 INCOMPATIBILITY. Tools based on low-level rewriting may even have to
5361 specify an explicit context using Simplifier.context/theory_context.
5363 * Simplifier/Classical Reasoner: more abstract interfaces
5364 change_simpset/claset for modifying the simpset/claset reference of a
5365 theory; raw versions simpset/claset_ref etc. have been discontinued --
5368 * Provers: more generic wrt. syntax of object-logics, avoid hardwired
5374 * settings: the default heap location within ISABELLE_HOME_USER now
5375 includes ISABELLE_IDENTIFIER. This simplifies use of multiple
5376 Isabelle installations.
5378 * isabelle-process: option -S (secure mode) disables some critical
5379 operations, notably runtime compilation and evaluation of ML source
5382 * Basic Isabelle mode for jEdit, see Isabelle/lib/jedit/.
5384 * Support for parallel execution, using native multicore support of
5385 Poly/ML 5.1. The theory loader exploits parallelism when processing
5386 independent theories, according to the given theory header
5387 specifications. The maximum number of worker threads is specified via
5388 usedir option -M or the "max-threads" setting in Proof General. A
5389 speedup factor of 1.5--3.5 can be expected on a 4-core machine, and up
5390 to 6 on a 8-core machine. User-code needs to observe certain
5391 guidelines for thread-safe programming, see appendix A in the Isar
5392 Implementation manual.
5396 New in Isabelle2005 (October 2005)
5397 ----------------------------------
5401 * Theory headers: the new header syntax for Isar theories is
5404 imports <theory1> ... <theoryN>
5405 uses <file1> ... <fileM>
5408 where the 'uses' part is optional. The previous syntax
5410 theory <name> = <theory1> + ... + <theoryN>:
5412 will disappear in the next release. Use isatool fixheaders to convert
5413 existing theory files. Note that there is no change in ancient
5414 non-Isar theories now, but these will disappear soon.
5416 * Theory loader: parent theories can now also be referred to via
5417 relative and absolute paths.
5419 * Command 'find_theorems' searches for a list of criteria instead of a
5420 list of constants. Known criteria are: intro, elim, dest, name:string,
5421 simp:term, and any term. Criteria can be preceded by '-' to select
5422 theorems that do not match. Intro, elim, dest select theorems that
5423 match the current goal, name:s selects theorems whose fully qualified
5424 name contain s, and simp:term selects all simplification rules whose
5425 lhs match term. Any other term is interpreted as pattern and selects
5426 all theorems matching the pattern. Available in ProofGeneral under
5427 'ProofGeneral -> Find Theorems' or C-c C-f. Example:
5429 C-c C-f (100) "(_::nat) + _ + _" intro -name: "HOL."
5431 prints the last 100 theorems matching the pattern "(_::nat) + _ + _",
5432 matching the current goal as introduction rule and not having "HOL."
5433 in their name (i.e. not being defined in theory HOL).
5435 * Command 'thms_containing' has been discontinued in favour of
5436 'find_theorems'; INCOMPATIBILITY.
5438 * Communication with Proof General is now 8bit clean, which means that
5439 Unicode text in UTF-8 encoding may be used within theory texts (both
5440 formal and informal parts). Cf. option -U of the Isabelle Proof
5441 General interface. Here are some simple examples (cf. src/HOL/ex):
5443 http://isabelle.in.tum.de/library/HOL/ex/Hebrew.html
5444 http://isabelle.in.tum.de/library/HOL/ex/Chinese.html
5446 * Improved efficiency of the Simplifier and, to a lesser degree, the
5447 Classical Reasoner. Typical big applications run around 2 times
5451 *** Document preparation ***
5453 * Commands 'display_drafts' and 'print_drafts' perform simple output
5454 of raw sources. Only those symbols that do not require additional
5455 LaTeX packages (depending on comments in isabellesym.sty) are
5456 displayed properly, everything else is left verbatim. isatool display
5457 and isatool print are used as front ends (these are subject to the
5458 DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively).
5460 * Command tags control specific markup of certain regions of text,
5461 notably folding and hiding. Predefined tags include "theory" (for
5462 theory begin and end), "proof" for proof commands, and "ML" for
5463 commands involving ML code; the additional tags "visible" and
5464 "invisible" are unused by default. Users may give explicit tag
5465 specifications in the text, e.g. ''by %invisible (auto)''. The
5466 interpretation of tags is determined by the LaTeX job during document
5467 preparation: see option -V of isatool usedir, or options -n and -t of
5468 isatool document, or even the LaTeX macros \isakeeptag, \isafoldtag,
5471 Several document versions may be produced at the same time via isatool
5472 usedir (the generated index.html will link all of them). Typical
5473 specifications include ''-V document=theory,proof,ML'' to present
5474 theory/proof/ML parts faithfully, ''-V outline=/proof,/ML'' to fold
5475 proof and ML commands, and ''-V mutilated=-theory,-proof,-ML'' to omit
5476 these parts without any formal replacement text. The Isabelle site
5477 default settings produce ''document'' and ''outline'' versions as
5480 * Several new antiquotations:
5482 @{term_type term} prints a term with its type annotated;
5484 @{typeof term} prints the type of a term;
5486 @{const const} is the same as @{term const}, but checks that the
5487 argument is a known logical constant;
5489 @{term_style style term} and @{thm_style style thm} print a term or
5490 theorem applying a "style" to it
5494 Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of
5495 definitions, equations, inequations etc., 'concl' printing only the
5496 conclusion of a meta-logical statement theorem, and 'prem1' .. 'prem19'
5497 to print the specified premise. TermStyle.add_style provides an ML
5498 interface for introducing further styles. See also the "LaTeX Sugar"
5499 document practical applications. The ML antiquotation prints
5500 type-checked ML expressions verbatim.
5502 * Markup commands 'chapter', 'section', 'subsection', 'subsubsection',
5503 and 'text' support optional locale specification '(in loc)', which
5504 specifies the default context for interpreting antiquotations. For
5505 example: 'text (in lattice) {* @{thm inf_assoc}*}'.
5507 * Option 'locale=NAME' of antiquotations specifies an alternative
5508 context interpreting the subsequent argument. For example: @{thm
5509 [locale=lattice] inf_assoc}.
5511 * Proper output of proof terms (@{prf ...} and @{full_prf ...}) within
5514 * Proper output of antiquotations for theory commands involving a
5515 proof context (such as 'locale' or 'theorem (in loc) ...').
5517 * Delimiters of outer tokens (string etc.) now produce separate LaTeX
5518 macros (\isachardoublequoteopen, isachardoublequoteclose etc.).
5520 * isatool usedir: new option -C (default true) controls whether option
5521 -D should include a copy of the original document directory; -C false
5522 prevents unwanted effects such as copying of administrative CVS data.
5527 * Considerably improved version of 'constdefs' command. Now performs
5528 automatic type-inference of declared constants; additional support for
5529 local structure declarations (cf. locales and HOL records), see also
5530 isar-ref manual. Potential INCOMPATIBILITY: need to observe strictly
5531 sequential dependencies of definitions within a single 'constdefs'
5532 section; moreover, the declared name needs to be an identifier. If
5533 all fails, consider to fall back on 'consts' and 'defs' separately.
5535 * Improved indexed syntax and implicit structures. First of all,
5536 indexed syntax provides a notational device for subscripted
5537 application, using the new syntax \<^bsub>term\<^esub> for arbitrary
5538 expressions. Secondly, in a local context with structure
5539 declarations, number indexes \<^sub>n or the empty index (default
5540 number 1) refer to a certain fixed variable implicitly; option
5541 show_structs controls printing of implicit structures. Typical
5542 applications of these concepts involve record types and locales.
5544 * New command 'no_syntax' removes grammar declarations (and
5545 translations) resulting from the given syntax specification, which is
5546 interpreted in the same manner as for the 'syntax' command.
5548 * 'Advanced' translation functions (parse_translation etc.) may depend
5549 on the signature of the theory context being presently used for
5550 parsing/printing, see also isar-ref manual.
5552 * Improved 'oracle' command provides a type-safe interface to turn an
5553 ML expression of type theory -> T -> term into a primitive rule of
5554 type theory -> T -> thm (i.e. the functionality of Thm.invoke_oracle
5555 is already included here); see also FOL/ex/IffExample.thy;
5558 * axclass: name space prefix for class "c" is now "c_class" (was "c"
5559 before); "cI" is no longer bound, use "c.intro" instead.
5560 INCOMPATIBILITY. This change avoids clashes of fact bindings for
5561 axclasses vs. locales.
5563 * Improved internal renaming of symbolic identifiers -- attach primes
5564 instead of base 26 numbers.
5566 * New flag show_question_marks controls printing of leading question
5567 marks in schematic variable names.
5569 * In schematic variable names, *any* symbol following \<^isub> or
5570 \<^isup> is now treated as part of the base name. For example, the
5571 following works without printing of awkward ".0" indexes:
5573 lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1"
5576 * Inner syntax includes (*(*nested*) comments*).
5578 * Pretty printer now supports unbreakable blocks, specified in mixfix
5579 annotations as "(00...)".
5581 * Clear separation of logical types and nonterminals, where the latter
5582 may only occur in 'syntax' specifications or type abbreviations.
5583 Before that distinction was only partially implemented via type class
5584 "logic" vs. "{}". Potential INCOMPATIBILITY in rare cases of improper
5585 use of 'types'/'consts' instead of 'nonterminals'/'syntax'. Some very
5586 exotic syntax specifications may require further adaption
5587 (e.g. Cube/Cube.thy).
5589 * Removed obsolete type class "logic", use the top sort {} instead.
5590 Note that non-logical types should be declared as 'nonterminals'
5591 rather than 'types'. INCOMPATIBILITY for new object-logic
5594 * Attributes 'induct' and 'cases': type or set names may now be
5595 locally fixed variables as well.
5597 * Simplifier: can now control the depth to which conditional rewriting
5598 is traced via the PG menu Isabelle -> Settings -> Trace Simp Depth
5601 * Simplifier: simplification procedures may now take the current
5602 simpset into account (cf. Simplifier.simproc(_i) / mk_simproc
5603 interface), which is very useful for calling the Simplifier
5604 recursively. Minor INCOMPATIBILITY: the 'prems' argument of simprocs
5605 is gone -- use prems_of_ss on the simpset instead. Moreover, the
5606 low-level mk_simproc no longer applies Logic.varify internally, to
5607 allow for use in a context of fixed variables.
5609 * thin_tac now works even if the assumption being deleted contains !!
5610 or ==>. More generally, erule now works even if the major premise of
5611 the elimination rule contains !! or ==>.
5613 * Method 'rules' has been renamed to 'iprover'. INCOMPATIBILITY.
5615 * Reorganized bootstrapping of the Pure theories; CPure is now derived
5616 from Pure, which contains all common declarations already. Both
5617 theories are defined via plain Isabelle/Isar .thy files.
5618 INCOMPATIBILITY: elements of CPure (such as the CPure.intro /
5619 CPure.elim / CPure.dest attributes) now appear in the Pure name space;
5620 use isatool fixcpure to adapt your theory and ML sources.
5622 * New syntax 'name(i-j, i-, i, ...)' for referring to specific
5623 selections of theorems in named facts via index ranges.
5625 * 'print_theorems': in theory mode, really print the difference
5626 wrt. the last state (works for interactive theory development only),
5627 in proof mode print all local facts (cf. 'print_facts');
5629 * 'hide': option '(open)' hides only base names.
5631 * More efficient treatment of intermediate checkpoints in interactive
5634 * Code generator is now invoked via code_module (incremental code
5635 generation) and code_library (modular code generation, ML structures
5636 for each theory). INCOMPATIBILITY: new keywords 'file' and 'contains'
5637 must be quoted when used as identifiers.
5639 * New 'value' command for reading, evaluating and printing terms using
5640 the code generator. INCOMPATIBILITY: command keyword 'value' must be
5641 quoted when used as identifier.
5646 * New commands for the interpretation of locale expressions in
5647 theories (1), locales (2) and proof contexts (3). These generate
5648 proof obligations from the expression specification. After the
5649 obligations have been discharged, theorems of the expression are added
5650 to the theory, target locale or proof context. The synopsis of the
5651 commands is a follows:
5653 (1) interpretation expr inst
5654 (2) interpretation target < expr
5655 (3) interpret expr inst
5657 Interpretation in theories and proof contexts require a parameter
5658 instantiation of terms from the current context. This is applied to
5659 specifications and theorems of the interpreted expression.
5660 Interpretation in locales only permits parameter renaming through the
5661 locale expression. Interpretation is smart in that interpretations
5662 that are active already do not occur in proof obligations, neither are
5663 instantiated theorems stored in duplicate. Use 'print_interps' to
5664 inspect active interpretations of a particular locale. For details,
5665 see the Isar Reference manual. Examples can be found in
5666 HOL/Finite_Set.thy and HOL/Algebra/UnivPoly.thy.
5668 INCOMPATIBILITY: former 'instantiate' has been withdrawn, use
5669 'interpret' instead.
5671 * New context element 'constrains' for adding type constraints to
5674 * Context expressions: renaming of parameters with syntax
5677 * Locale declaration: 'includes' disallowed.
5679 * Proper static binding of attribute syntax -- i.e. types / terms /
5680 facts mentioned as arguments are always those of the locale definition
5681 context, independently of the context of later invocations. Moreover,
5682 locale operations (renaming and type / term instantiation) are applied
5683 to attribute arguments as expected.
5685 INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of
5686 actual attributes; rare situations may require Attrib.attribute to
5687 embed those attributes into Attrib.src that lack concrete syntax.
5688 Attribute implementations need to cooperate properly with the static
5689 binding mechanism. Basic parsers Args.XXX_typ/term/prop and
5690 Attrib.XXX_thm etc. already do the right thing without further
5691 intervention. Only unusual applications -- such as "where" or "of"
5692 (cf. src/Pure/Isar/attrib.ML), which process arguments depending both
5693 on the context and the facts involved -- may have to assign parsed
5694 values to argument tokens explicitly.
5696 * Changed parameter management in theorem generation for long goal
5697 statements with 'includes'. INCOMPATIBILITY: produces a different
5698 theorem statement in rare situations.
5700 * Locale inspection command 'print_locale' omits notes elements. Use
5701 'print_locale!' to have them included in the output.
5706 * Provers/hypsubst.ML: improved version of the subst method, for
5707 single-step rewriting: it now works in bound variable contexts. New is
5708 'subst (asm)', for rewriting an assumption. INCOMPATIBILITY: may
5709 rewrite a different subterm than the original subst method, which is
5710 still available as 'simplesubst'.
5712 * Provers/quasi.ML: new transitivity reasoners for transitivity only
5715 * Provers/trancl.ML: new transitivity reasoner for transitive and
5716 reflexive-transitive closure of relations.
5718 * Provers/blast.ML: new reference depth_limit to make blast's depth
5719 limit (previously hard-coded with a value of 20) user-definable.
5721 * Provers/simplifier.ML has been moved to Pure, where Simplifier.setup
5722 is peformed already. Object-logics merely need to finish their
5723 initial simpset configuration as before. INCOMPATIBILITY.
5728 * Symbolic syntax of Hilbert Choice Operator is now as follows:
5731 "_Eps" :: "[pttrn, bool] => 'a" ("(3\<some>_./ _)" [0, 10] 10)
5733 The symbol \<some> is displayed as the alternative epsilon of LaTeX
5734 and x-symbol; use option '-m epsilon' to get it actually printed.
5735 Moreover, the mathematically important symbolic identifier \<epsilon>
5736 becomes available as variable, constant etc. INCOMPATIBILITY,
5738 * "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x".
5739 Similarly for all quantifiers: "ALL x > y" etc. The x-symbol for >=
5740 is \<ge>. New transitivity rules have been added to HOL/Orderings.thy to
5741 support corresponding Isar calculations.
5743 * "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>"
5746 * theory SetInterval: changed the syntax for open intervals:
5755 The old syntax is still supported but will disappear in the next
5756 release. For conversion use the following Emacs search and replace
5757 patterns (these are not perfect but work quite well):
5759 {)\([^\.]*\)\.\. -> {\1<\.\.}
5760 \.\.\([^(}]*\)(} -> \.\.<\1}
5762 * Theory Commutative_Ring (in Library): method comm_ring for proving
5763 equalities in commutative rings; method 'algebra' provides a generic
5766 * Theory Finite_Set: changed the syntax for 'setsum', summation over
5767 finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is
5768 now either "SUM x:A. e" or "\<Sum>x \<in> A. e". The bound variable can
5771 Some new syntax forms are available:
5773 "\<Sum>x | P. e" for "setsum (%x. e) {x. P}"
5774 "\<Sum>x = a..b. e" for "setsum (%x. e) {a..b}"
5775 "\<Sum>x = a..<b. e" for "setsum (%x. e) {a..<b}"
5776 "\<Sum>x < k. e" for "setsum (%x. e) {..<k}"
5778 The latter form "\<Sum>x < k. e" used to be based on a separate
5779 function "Summation", which has been discontinued.
5781 * theory Finite_Set: in structured induction proofs, the insert case
5782 is now 'case (insert x F)' instead of the old counterintuitive 'case
5785 * The 'refute' command has been extended to support a much larger
5786 fragment of HOL, including axiomatic type classes, constdefs and
5787 typedefs, inductive datatypes and recursion.
5789 * New tactics 'sat' and 'satx' to prove propositional tautologies.
5790 Requires zChaff with proof generation to be installed. See
5791 HOL/ex/SAT_Examples.thy for examples.
5793 * Datatype induction via method 'induct' now preserves the name of the
5794 induction variable. For example, when proving P(xs::'a list) by
5795 induction on xs, the induction step is now P(xs) ==> P(a#xs) rather
5796 than P(list) ==> P(a#list) as previously. Potential INCOMPATIBILITY
5797 in unstructured proof scripts.
5799 * Reworked implementation of records. Improved scalability for
5800 records with many fields, avoiding performance problems for type
5801 inference. Records are no longer composed of nested field types, but
5802 of nested extension types. Therefore the record type only grows linear
5803 in the number of extensions and not in the number of fields. The
5804 top-level (users) view on records is preserved. Potential
5805 INCOMPATIBILITY only in strange cases, where the theory depends on the
5806 old record representation. The type generated for a record is called
5807 <record_name>_ext_type.
5809 Flag record_quick_and_dirty_sensitive can be enabled to skip the
5810 proofs triggered by a record definition or a simproc (if
5811 quick_and_dirty is enabled). Definitions of large records can take
5814 New simproc record_upd_simproc for simplification of multiple record
5815 updates enabled by default. Moreover, trivial updates are also
5816 removed: r(|x := x r|) = r. INCOMPATIBILITY: old proofs break
5817 occasionally, since simplification is more powerful by default.
5819 * typedef: proper support for polymorphic sets, which contain extra
5820 type-variables in the term.
5822 * Simplifier: automatically reasons about transitivity chains
5823 involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics
5824 provided by Provers/trancl.ML as additional solvers. INCOMPATIBILITY:
5825 old proofs break occasionally as simplification may now solve more
5826 goals than previously.
5828 * Simplifier: converts x <= y into x = y if assumption y <= x is
5829 present. Works for all partial orders (class "order"), in particular
5830 numbers and sets. For linear orders (e.g. numbers) it treats ~ x < y
5833 * Simplifier: new simproc for "let x = a in f x". If a is a free or
5834 bound variable or a constant then the let is unfolded. Otherwise
5835 first a is simplified to b, and then f b is simplified to g. If
5836 possible we abstract b from g arriving at "let x = b in h x",
5837 otherwise we unfold the let and arrive at g. The simproc can be
5838 enabled/disabled by the reference use_let_simproc. Potential
5839 INCOMPATIBILITY since simplification is more powerful by default.
5841 * Classical reasoning: the meson method now accepts theorems as arguments.
5843 * Prover support: pre-release of the Isabelle-ATP linkup, which runs background
5844 jobs to provide advice on the provability of subgoals.
5846 * Theory OrderedGroup and Ring_and_Field: various additions and
5847 improvements to faciliate calculations involving equalities and
5850 The following theorems have been eliminated or modified
5853 abs_eq now named abs_of_nonneg
5854 abs_of_ge_0 now named abs_of_nonneg
5855 abs_minus_eq now named abs_of_nonpos
5856 imp_abs_id now named abs_of_nonneg
5857 imp_abs_neg_id now named abs_of_nonpos
5858 mult_pos now named mult_pos_pos
5859 mult_pos_le now named mult_nonneg_nonneg
5860 mult_pos_neg_le now named mult_nonneg_nonpos
5861 mult_pos_neg2_le now named mult_nonneg_nonpos2
5862 mult_neg now named mult_neg_neg
5863 mult_neg_le now named mult_nonpos_nonpos
5865 * The following lemmas in Ring_and_Field have been added to the simplifier:
5868 not_square_less_zero
5870 The following lemmas have been deleted from Real/RealPow:
5880 * Theory Parity: added rules for simplifying exponents.
5884 The following theorems have been eliminated or modified
5887 list_all_Nil now named list_all.simps(1)
5888 list_all_Cons now named list_all.simps(2)
5889 list_all_conv now named list_all_iff
5890 set_mem_eq now named mem_iff
5892 * Theories SetsAndFunctions and BigO (see HOL/Library) support
5893 asymptotic "big O" calculations. See the notes in BigO.thy.
5898 * Theory RealDef: better support for embedding natural numbers and
5899 integers in the reals.
5901 The following theorems have been eliminated or modified
5904 exp_ge_add_one_self now requires no hypotheses
5905 real_of_int_add reversed direction of equality (use [symmetric])
5906 real_of_int_minus reversed direction of equality (use [symmetric])
5907 real_of_int_diff reversed direction of equality (use [symmetric])
5908 real_of_int_mult reversed direction of equality (use [symmetric])
5910 * Theory RComplete: expanded support for floor and ceiling functions.
5912 * Theory Ln is new, with properties of the natural logarithm
5914 * Hyperreal: There is a new type constructor "star" for making
5915 nonstandard types. The old type names are now type synonyms:
5919 hcomplex = complex star
5921 * Hyperreal: Many groups of similarly-defined constants have been
5922 replaced by polymorphic versions (INCOMPATIBILITY):
5924 star_of <-- hypreal_of_real, hypnat_of_nat, hcomplex_of_complex
5926 starset <-- starsetNat, starsetC
5927 *s* <-- *sNat*, *sc*
5928 starset_n <-- starsetNat_n, starsetC_n
5929 *sn* <-- *sNatn*, *scn*
5930 InternalSets <-- InternalNatSets, InternalCSets
5932 starfun <-- starfun{Nat,Nat2,C,RC,CR}
5933 *f* <-- *fNat*, *fNat2*, *fc*, *fRc*, *fcR*
5934 starfun_n <-- starfun{Nat,Nat2,C,RC,CR}_n
5935 *fn* <-- *fNatn*, *fNat2n*, *fcn*, *fRcn*, *fcRn*
5936 InternalFuns <-- InternalNatFuns, InternalNatFuns2, Internal{C,RC,CR}Funs
5938 * Hyperreal: Many type-specific theorems have been removed in favor of
5939 theorems specific to various axiomatic type classes (INCOMPATIBILITY):
5941 add_commute <-- {hypreal,hypnat,hcomplex}_add_commute
5942 add_assoc <-- {hypreal,hypnat,hcomplex}_add_assocs
5943 OrderedGroup.add_0 <-- {hypreal,hypnat,hcomplex}_add_zero_left
5944 OrderedGroup.add_0_right <-- {hypreal,hcomplex}_add_zero_right
5945 right_minus <-- hypreal_add_minus
5946 left_minus <-- {hypreal,hcomplex}_add_minus_left
5947 mult_commute <-- {hypreal,hypnat,hcomplex}_mult_commute
5948 mult_assoc <-- {hypreal,hypnat,hcomplex}_mult_assoc
5949 mult_1_left <-- {hypreal,hypnat}_mult_1, hcomplex_mult_one_left
5950 mult_1_right <-- hcomplex_mult_one_right
5951 mult_zero_left <-- hcomplex_mult_zero_left
5952 left_distrib <-- {hypreal,hypnat,hcomplex}_add_mult_distrib
5953 right_distrib <-- hypnat_add_mult_distrib2
5954 zero_neq_one <-- {hypreal,hypnat,hcomplex}_zero_not_eq_one
5955 right_inverse <-- hypreal_mult_inverse
5956 left_inverse <-- hypreal_mult_inverse_left, hcomplex_mult_inv_left
5957 order_refl <-- {hypreal,hypnat}_le_refl
5958 order_trans <-- {hypreal,hypnat}_le_trans
5959 order_antisym <-- {hypreal,hypnat}_le_anti_sym
5960 order_less_le <-- {hypreal,hypnat}_less_le
5961 linorder_linear <-- {hypreal,hypnat}_le_linear
5962 add_left_mono <-- {hypreal,hypnat}_add_left_mono
5963 mult_strict_left_mono <-- {hypreal,hypnat}_mult_less_mono2
5964 add_nonneg_nonneg <-- hypreal_le_add_order
5966 * Hyperreal: Separate theorems having to do with type-specific
5967 versions of constants have been merged into theorems that apply to the
5968 new polymorphic constants (INCOMPATIBILITY):
5970 STAR_UNIV_set <-- {STAR_real,NatStar_real,STARC_complex}_set
5971 STAR_empty_set <-- {STAR,NatStar,STARC}_empty_set
5972 STAR_Un <-- {STAR,NatStar,STARC}_Un
5973 STAR_Int <-- {STAR,NatStar,STARC}_Int
5974 STAR_Compl <-- {STAR,NatStar,STARC}_Compl
5975 STAR_subset <-- {STAR,NatStar,STARC}_subset
5976 STAR_mem <-- {STAR,NatStar,STARC}_mem
5977 STAR_mem_Compl <-- {STAR,STARC}_mem_Compl
5978 STAR_diff <-- {STAR,STARC}_diff
5979 STAR_star_of_image_subset <-- {STAR_hypreal_of_real, NatStar_hypreal_of_real,
5980 STARC_hcomplex_of_complex}_image_subset
5981 starset_n_Un <-- starset{Nat,C}_n_Un
5982 starset_n_Int <-- starset{Nat,C}_n_Int
5983 starset_n_Compl <-- starset{Nat,C}_n_Compl
5984 starset_n_diff <-- starset{Nat,C}_n_diff
5985 InternalSets_Un <-- Internal{Nat,C}Sets_Un
5986 InternalSets_Int <-- Internal{Nat,C}Sets_Int
5987 InternalSets_Compl <-- Internal{Nat,C}Sets_Compl
5988 InternalSets_diff <-- Internal{Nat,C}Sets_diff
5989 InternalSets_UNIV_diff <-- Internal{Nat,C}Sets_UNIV_diff
5990 InternalSets_starset_n <-- Internal{Nat,C}Sets_starset{Nat,C}_n
5991 starset_starset_n_eq <-- starset{Nat,C}_starset{Nat,C}_n_eq
5992 starset_n_starset <-- starset{Nat,C}_n_starset{Nat,C}
5993 starfun_n_starfun <-- starfun{Nat,Nat2,C,RC,CR}_n_starfun{Nat,Nat2,C,RC,CR}
5994 starfun <-- starfun{Nat,Nat2,C,RC,CR}
5995 starfun_mult <-- starfun{Nat,Nat2,C,RC,CR}_mult
5996 starfun_add <-- starfun{Nat,Nat2,C,RC,CR}_add
5997 starfun_minus <-- starfun{Nat,Nat2,C,RC,CR}_minus
5998 starfun_diff <-- starfun{C,RC,CR}_diff
5999 starfun_o <-- starfun{NatNat2,Nat2,_stafunNat,C,C_starfunRC,_starfunCR}_o
6000 starfun_o2 <-- starfun{NatNat2,_stafunNat,C,C_starfunRC,_starfunCR}_o2
6001 starfun_const_fun <-- starfun{Nat,Nat2,C,RC,CR}_const_fun
6002 starfun_inverse <-- starfun{Nat,C,RC,CR}_inverse
6003 starfun_eq <-- starfun{Nat,Nat2,C,RC,CR}_eq
6004 starfun_eq_iff <-- starfun{C,RC,CR}_eq_iff
6005 starfun_Id <-- starfunC_Id
6006 starfun_approx <-- starfun{Nat,CR}_approx
6007 starfun_capprox <-- starfun{C,RC}_capprox
6008 starfun_abs <-- starfunNat_rabs
6009 starfun_lambda_cancel <-- starfun{C,CR,RC}_lambda_cancel
6010 starfun_lambda_cancel2 <-- starfun{C,CR,RC}_lambda_cancel2
6011 starfun_mult_HFinite_approx <-- starfunCR_mult_HFinite_capprox
6012 starfun_mult_CFinite_capprox <-- starfun{C,RC}_mult_CFinite_capprox
6013 starfun_add_capprox <-- starfun{C,RC}_add_capprox
6014 starfun_add_approx <-- starfunCR_add_approx
6015 starfun_inverse_inverse <-- starfunC_inverse_inverse
6016 starfun_divide <-- starfun{C,CR,RC}_divide
6017 starfun_n <-- starfun{Nat,C}_n
6018 starfun_n_mult <-- starfun{Nat,C}_n_mult
6019 starfun_n_add <-- starfun{Nat,C}_n_add
6020 starfun_n_add_minus <-- starfunNat_n_add_minus
6021 starfun_n_const_fun <-- starfun{Nat,C}_n_const_fun
6022 starfun_n_minus <-- starfun{Nat,C}_n_minus
6023 starfun_n_eq <-- starfun{Nat,C}_n_eq
6025 star_n_add <-- {hypreal,hypnat,hcomplex}_add
6026 star_n_minus <-- {hypreal,hcomplex}_minus
6027 star_n_diff <-- {hypreal,hcomplex}_diff
6028 star_n_mult <-- {hypreal,hcomplex}_mult
6029 star_n_inverse <-- {hypreal,hcomplex}_inverse
6030 star_n_le <-- {hypreal,hypnat}_le
6031 star_n_less <-- {hypreal,hypnat}_less
6032 star_n_zero_num <-- {hypreal,hypnat,hcomplex}_zero_num
6033 star_n_one_num <-- {hypreal,hypnat,hcomplex}_one_num
6034 star_n_abs <-- hypreal_hrabs
6035 star_n_divide <-- hcomplex_divide
6037 star_of_add <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_add
6038 star_of_minus <-- {hypreal_of_real,hcomplex_of_complex}_minus
6039 star_of_diff <-- hypreal_of_real_diff
6040 star_of_mult <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_mult
6041 star_of_one <-- {hypreal_of_real,hcomplex_of_complex}_one
6042 star_of_zero <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_zero
6043 star_of_le <-- {hypreal_of_real,hypnat_of_nat}_le_iff
6044 star_of_less <-- {hypreal_of_real,hypnat_of_nat}_less_iff
6045 star_of_eq <-- {hypreal_of_real,hypnat_of_nat,hcomplex_of_complex}_eq_iff
6046 star_of_inverse <-- {hypreal_of_real,hcomplex_of_complex}_inverse
6047 star_of_divide <-- {hypreal_of_real,hcomplex_of_complex}_divide
6048 star_of_of_nat <-- {hypreal_of_real,hcomplex_of_complex}_of_nat
6049 star_of_of_int <-- {hypreal_of_real,hcomplex_of_complex}_of_int
6050 star_of_number_of <-- {hypreal,hcomplex}_number_of
6051 star_of_number_less <-- number_of_less_hypreal_of_real_iff
6052 star_of_number_le <-- number_of_le_hypreal_of_real_iff
6053 star_of_eq_number <-- hypreal_of_real_eq_number_of_iff
6054 star_of_less_number <-- hypreal_of_real_less_number_of_iff
6055 star_of_le_number <-- hypreal_of_real_le_number_of_iff
6056 star_of_power <-- hypreal_of_real_power
6057 star_of_eq_0 <-- hcomplex_of_complex_zero_iff
6059 * Hyperreal: new method "transfer" that implements the transfer
6060 principle of nonstandard analysis. With a subgoal that mentions
6061 nonstandard types like "'a star", the command "apply transfer"
6062 replaces it with an equivalent one that mentions only standard types.
6063 To be successful, all free variables must have standard types; non-
6064 standard variables must have explicit universal quantifiers.
6066 * Hyperreal: A theory of Taylor series.
6071 * Discontinued special version of 'constdefs' (which used to support
6072 continuous functions) in favor of the general Pure one with full
6075 * New simplification procedure for solving continuity conditions; it
6076 is much faster on terms with many nested lambda abstractions (cubic
6077 instead of exponential time).
6079 * New syntax for domain package: selector names are now optional.
6080 Parentheses should be omitted unless argument is lazy, for example:
6082 domain 'a stream = cons "'a" (lazy "'a stream")
6084 * New command 'fixrec' for defining recursive functions with pattern
6085 matching; defining multiple functions with mutual recursion is also
6086 supported. Patterns may include the constants cpair, spair, up, sinl,
6087 sinr, or any data constructor defined by the domain package. The given
6088 equations are proven as rewrite rules. See HOLCF/ex/Fixrec_ex.thy for
6089 syntax and examples.
6091 * New commands 'cpodef' and 'pcpodef' for defining predicate subtypes
6092 of cpo and pcpo types. Syntax is exactly like the 'typedef' command,
6093 but the proof obligation additionally includes an admissibility
6094 requirement. The packages generate instances of class cpo or pcpo,
6095 with continuity and strictness theorems for Rep and Abs.
6097 * HOLCF: Many theorems have been renamed according to a more standard naming
6098 scheme (INCOMPATIBILITY):
6100 foo_inject: "foo$x = foo$y ==> x = y"
6101 foo_eq: "(foo$x = foo$y) = (x = y)"
6102 foo_less: "(foo$x << foo$y) = (x << y)"
6103 foo_strict: "foo$UU = UU"
6104 foo_defined: "... ==> foo$x ~= UU"
6105 foo_defined_iff: "(foo$x = UU) = (x = UU)"
6110 * ZF/ex: theories Group and Ring provide examples in abstract algebra,
6111 including the First Isomorphism Theorem (on quotienting by the kernel
6114 * ZF/Simplifier: install second copy of type solver that actually
6115 makes use of TC rules declared to Isar proof contexts (or locales);
6116 the old version is still required for ML proof scripts.
6121 * Converted to Isar theory format; use locales instead of axiomatic
6127 * Pure/library.ML: added ##>, ##>>, #>> -- higher-order counterparts
6130 * Pure/library.ML no longer defines its own option datatype, but uses
6131 that of the SML basis, which has constructors NONE and SOME instead of
6132 None and Some, as well as exception Option.Option instead of OPTION.
6133 The functions the, if_none, is_some, is_none have been adapted
6134 accordingly, while Option.map replaces apsome.
6136 * Pure/library.ML: the exception LIST has been given up in favour of
6137 the standard exceptions Empty and Subscript, as well as
6138 Library.UnequalLengths. Function like Library.hd and Library.tl are
6139 superceded by the standard hd and tl functions etc.
6141 A number of basic list functions are no longer exported to the ML
6142 toplevel, as they are variants of predefined functions. The following
6143 suggests how one can translate existing code:
6145 rev_append xs ys = List.revAppend (xs, ys)
6146 nth_elem (i, xs) = List.nth (xs, i)
6147 last_elem xs = List.last xs
6148 flat xss = List.concat xss
6149 seq fs = List.app fs
6150 partition P xs = List.partition P xs
6151 mapfilter f xs = List.mapPartial f xs
6153 * Pure/library.ML: several combinators for linear functional
6154 transformations, notably reverse application and composition:
6157 (x, y) |-> f f #-> g
6159 * Pure/library.ML: introduced/changed precedence of infix operators:
6161 infix 1 |> |-> ||> ||>> |>> |>>> #> #->;
6163 infix 3 o oo ooo oooo;
6164 infix 4 ~~ upto downto;
6166 Maybe INCOMPATIBILITY when any of those is used in conjunction with other
6169 * Pure/library.ML: natural list combinators fold, fold_rev, and
6170 fold_map support linear functional transformations and nesting. For
6173 fold f [x1, ..., xN] y =
6174 y |> f x1 |> ... |> f xN
6176 (fold o fold) f [xs1, ..., xsN] y =
6177 y |> fold f xs1 |> ... |> fold f xsN
6179 fold f [x1, ..., xN] =
6182 (fold o fold) f [xs1, ..., xsN] =
6183 fold f xs1 #> ... #> fold f xsN
6185 * Pure/library.ML: the following selectors on type 'a option are
6188 the: 'a option -> 'a (*partial*)
6189 these: 'a option -> 'a where 'a = 'b list
6190 the_default: 'a -> 'a option -> 'a
6191 the_list: 'a option -> 'a list
6193 * Pure/General: structure AList (cf. Pure/General/alist.ML) provides
6194 basic operations for association lists, following natural argument
6195 order; moreover the explicit equality predicate passed here avoids
6196 potentially expensive polymorphic runtime equality checks.
6197 The old functions may be expressed as follows:
6199 assoc = uncurry (AList.lookup (op =))
6200 assocs = these oo AList.lookup (op =)
6201 overwrite = uncurry (AList.update (op =)) o swap
6203 * Pure/General: structure AList (cf. Pure/General/alist.ML) provides
6205 val make: ('a -> 'b) -> 'a list -> ('a * 'b) list
6206 val find: ('a * 'b -> bool) -> ('c * 'b) list -> 'a -> 'c list
6208 replacing make_keylist and keyfilter (occassionally used)
6211 make_keylist = AList.make
6212 keyfilter = AList.find (op =)
6214 * eq_fst and eq_snd now take explicit equality parameter, thus
6215 avoiding eqtypes. Naive rewrites:
6217 eq_fst = eq_fst (op =)
6218 eq_snd = eq_snd (op =)
6220 * Removed deprecated apl and apr (rarely used).
6223 apl (n, op) =>>= curry op n
6224 apr (op, m) =>>= fn n => op (n, m)
6226 * Pure/General: structure OrdList (cf. Pure/General/ord_list.ML)
6227 provides a reasonably efficient light-weight implementation of sets as
6230 * Pure/General: generic tables (cf. Pure/General/table.ML) provide a
6231 few new operations; existing lookup and update are now curried to
6232 follow natural argument order (for use with fold etc.);
6233 INCOMPATIBILITY, use (uncurry Symtab.lookup) etc. as last resort.
6235 * Pure/General: output via the Isabelle channels of
6236 writeln/warning/error etc. is now passed through Output.output, with a
6237 hook for arbitrary transformations depending on the print_mode
6238 (cf. Output.add_mode -- the first active mode that provides a output
6239 function wins). Already formatted output may be embedded into further
6240 text via Output.raw; the result of Pretty.string_of/str_of and derived
6241 functions (string_of_term/cterm/thm etc.) is already marked raw to
6242 accommodate easy composition of diagnostic messages etc. Programmers
6243 rarely need to care about Output.output or Output.raw at all, with
6244 some notable exceptions: Output.output is required when bypassing the
6245 standard channels (writeln etc.), or in token translations to produce
6246 properly formatted results; Output.raw is required when capturing
6247 already output material that will eventually be presented to the user
6248 a second time. For the default print mode, both Output.output and
6249 Output.raw have no effect.
6251 * Pure/General: Output.time_accumulator NAME creates an operator ('a
6252 -> 'b) -> 'a -> 'b to measure runtime and count invocations; the
6253 cumulative results are displayed at the end of a batch session.
6255 * Pure/General: File.sysify_path and File.quote_sysify path have been
6256 replaced by File.platform_path and File.shell_path (with appropriate
6257 hooks). This provides a clean interface for unusual systems where the
6258 internal and external process view of file names are different.
6260 * Pure: more efficient orders for basic syntactic entities: added
6261 fast_string_ord, fast_indexname_ord, fast_term_ord; changed sort_ord
6262 and typ_ord to use fast_string_ord and fast_indexname_ord (term_ord is
6263 NOT affected); structures Symtab, Vartab, Typtab, Termtab use the fast
6264 orders now -- potential INCOMPATIBILITY for code that depends on a
6265 particular order for Symtab.keys, Symtab.dest, etc. (consider using
6266 Library.sort_strings on result).
6268 * Pure/term.ML: combinators fold_atyps, fold_aterms, fold_term_types,
6269 fold_types traverse types/terms from left to right, observing natural
6270 argument order. Supercedes previous foldl_XXX versions, add_frees,
6271 add_vars etc. have been adapted as well: INCOMPATIBILITY.
6273 * Pure: name spaces have been refined, with significant changes of the
6274 internal interfaces -- INCOMPATIBILITY. Renamed cond_extern(_table)
6275 to extern(_table). The plain name entry path is superceded by a
6276 general 'naming' context, which also includes the 'policy' to produce
6277 a fully qualified name and external accesses of a fully qualified
6278 name; NameSpace.extend is superceded by context dependent
6279 Sign.declare_name. Several theory and proof context operations modify
6280 the naming context. Especially note Theory.restore_naming and
6281 ProofContext.restore_naming to get back to a sane state; note that
6282 Theory.add_path is no longer sufficient to recover from
6283 Theory.absolute_path in particular.
6285 * Pure: new flags short_names (default false) and unique_names
6286 (default true) for controlling output of qualified names. If
6287 short_names is set, names are printed unqualified. If unique_names is
6288 reset, the name prefix is reduced to the minimum required to achieve
6289 the original result when interning again, even if there is an overlap
6290 with earlier declarations.
6292 * Pure/TheoryDataFun: change of the argument structure; 'prep_ext' is
6293 now 'extend', and 'merge' gets an additional Pretty.pp argument
6294 (useful for printing error messages). INCOMPATIBILITY.
6296 * Pure: major reorganization of the theory context. Type Sign.sg and
6297 Theory.theory are now identified, referring to the universal
6298 Context.theory (see Pure/context.ML). Actual signature and theory
6299 content is managed as theory data. The old code and interfaces were
6300 spread over many files and structures; the new arrangement introduces
6301 considerable INCOMPATIBILITY to gain more clarity:
6303 Context -- theory management operations (name, identity, inclusion,
6304 parents, ancestors, merge, etc.), plus generic theory data;
6306 Sign -- logical signature and syntax operations (declaring consts,
6307 types, etc.), plus certify/read for common entities;
6309 Theory -- logical theory operations (stating axioms, definitions,
6310 oracles), plus a copy of logical signature operations (consts,
6311 types, etc.); also a few basic management operations (Theory.copy,
6314 The most basic sign_of operations (Theory.sign_of, Thm.sign_of_thm
6315 etc.) as well as the sign field in Thm.rep_thm etc. have been retained
6316 for convenience -- they merely return the theory.
6318 * Pure: type Type.tsig is superceded by theory in most interfaces.
6320 * Pure: the Isar proof context type is already defined early in Pure
6321 as Context.proof (note that ProofContext.context and Proof.context are
6322 aliases, where the latter is the preferred name). This enables other
6323 Isabelle components to refer to that type even before Isar is present.
6325 * Pure/sign/theory: discontinued named name spaces (i.e. classK,
6326 typeK, constK, axiomK, oracleK), but provide explicit operations for
6327 any of these kinds. For example, Sign.intern typeK is now
6328 Sign.intern_type, Theory.hide_space Sign.typeK is now
6329 Theory.hide_types. Also note that former
6330 Theory.hide_classes/types/consts are now
6331 Theory.hide_classes_i/types_i/consts_i, while the non '_i' versions
6332 internalize their arguments! INCOMPATIBILITY.
6334 * Pure: get_thm interface (of PureThy and ProofContext) expects
6335 datatype thmref (with constructors Name and NameSelection) instead of
6336 plain string -- INCOMPATIBILITY;
6338 * Pure: cases produced by proof methods specify options, where NONE
6339 means to remove case bindings -- INCOMPATIBILITY in
6342 * Pure: the following operations retrieve axioms or theorems from a
6343 theory node or theory hierarchy, respectively:
6345 Theory.axioms_of: theory -> (string * term) list
6346 Theory.all_axioms_of: theory -> (string * term) list
6347 PureThy.thms_of: theory -> (string * thm) list
6348 PureThy.all_thms_of: theory -> (string * thm) list
6350 * Pure: print_tac now outputs the goal through the trace channel.
6352 * Isar toplevel: improved diagnostics, mostly for Poly/ML only.
6353 Reference Toplevel.debug (default false) controls detailed printing
6354 and tracing of low-level exceptions; Toplevel.profiling (default 0)
6355 controls execution profiling -- set to 1 for time and 2 for space
6356 (both increase the runtime).
6358 * Isar session: The initial use of ROOT.ML is now always timed,
6359 i.e. the log will show the actual process times, in contrast to the
6360 elapsed wall-clock time that the outer shell wrapper produces.
6362 * Simplifier: improved handling of bound variables (nameless
6363 representation, avoid allocating new strings). Simprocs that invoke
6364 the Simplifier recursively should use Simplifier.inherit_bounds to
6365 avoid local name clashes. Failure to do so produces warnings
6366 "Simplifier: renamed bound variable ..."; set Simplifier.debug_bounds
6367 for further details.
6369 * ML functions legacy_bindings and use_legacy_bindings produce ML fact
6370 bindings for all theorems stored within a given theory; this may help
6371 in porting non-Isar theories to Isar ones, while keeping ML proof
6372 scripts for the time being.
6374 * ML operator HTML.with_charset specifies the charset begin used for
6375 generated HTML files. For example:
6377 HTML.with_charset "utf-8" use_thy "Hebrew";
6378 HTML.with_charset "utf-8" use_thy "Chinese";
6383 * Allow symlinks to all proper Isabelle executables (Isabelle,
6384 isabelle, isatool etc.).
6386 * ISABELLE_DOC_FORMAT setting specifies preferred document format (for
6387 isatool doc, isatool mkdir, display_drafts etc.).
6389 * isatool usedir: option -f allows specification of the ML file to be
6390 used by Isabelle; default is ROOT.ML.
6392 * New isatool version outputs the version identifier of the Isabelle
6393 distribution being used.
6395 * HOL: new isatool dimacs2hol converts files in DIMACS CNF format
6396 (containing Boolean satisfiability problems) into Isabelle/HOL
6401 New in Isabelle2004 (April 2004)
6402 --------------------------------
6406 * Provers/order.ML: new efficient reasoner for partial and linear orders.
6407 Replaces linorder.ML.
6409 * Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic
6410 (\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler
6411 (\<a>...\<z>), are now considered normal letters, and can therefore
6412 be used anywhere where an ASCII letter (a...zA...Z) has until
6413 now. COMPATIBILITY: This obviously changes the parsing of some
6414 terms, especially where a symbol has been used as a binder, say
6415 '\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed
6416 as an identifier. Fix it by inserting a space around former
6417 symbols. Call 'isatool fixgreek' to try to fix parsing errors in
6418 existing theory and ML files.
6420 * Pure: Macintosh and Windows line-breaks are now allowed in theory files.
6422 * Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now
6423 allowed in identifiers. Similar to Greek letters \<^isub> is now considered
6424 a normal (but invisible) letter. For multiple letter subscripts repeat
6425 \<^isub> like this: x\<^isub>1\<^isub>2.
6427 * Pure: There are now sub-/superscripts that can span more than one
6428 character. Text between \<^bsub> and \<^esub> is set in subscript in
6429 ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in
6430 superscript. The new control characters are not identifier parts.
6432 * Pure: Control-symbols of the form \<^raw:...> will literally print the
6433 content of "..." to the latex file instead of \isacntrl... . The "..."
6434 may consist of any printable characters excluding the end bracket >.
6436 * Pure: Using new Isar command "finalconsts" (or the ML functions
6437 Theory.add_finals or Theory.add_finals_i) it is now possible to
6438 declare constants "final", which prevents their being given a definition
6439 later. It is useful for constants whose behaviour is fixed axiomatically
6440 rather than definitionally, such as the meta-logic connectives.
6442 * Pure: 'instance' now handles general arities with general sorts
6443 (i.e. intersections of classes),
6445 * Presentation: generated HTML now uses a CSS style sheet to make layout
6446 (somewhat) independent of content. It is copied from lib/html/isabelle.css.
6447 It can be changed to alter the colors/layout of generated pages.
6452 * Tactic emulation methods rule_tac, erule_tac, drule_tac, frule_tac,
6453 cut_tac, subgoal_tac and thin_tac:
6454 - Now understand static (Isar) contexts. As a consequence, users of Isar
6455 locales are no longer forced to write Isar proof scripts.
6456 For details see Isar Reference Manual, paragraph 4.3.2: Further tactic
6458 - INCOMPATIBILITY: names of variables to be instantiated may no
6459 longer be enclosed in quotes. Instead, precede variable name with `?'.
6460 This is consistent with the instantiation attribute "where".
6462 * Attributes "where" and "of":
6463 - Now take type variables of instantiated theorem into account when reading
6464 the instantiation string. This fixes a bug that caused instantiated
6465 theorems to have too special types in some circumstances.
6466 - "where" permits explicit instantiations of type variables.
6468 * Calculation commands "moreover" and "also" no longer interfere with
6469 current facts ("this"), admitting arbitrary combinations with "then"
6473 - Goal statements involving the context element "includes" no longer
6474 generate theorems with internal delta predicates (those ending on
6475 "_axioms") in the premise.
6476 Resolve particular premise with <locale>.intro to obtain old form.
6477 - Fixed bug in type inference ("unify_frozen") that prevented mix of target
6478 specification and "includes" elements in goal statement.
6479 - Rule sets <locale>.intro and <locale>.axioms no longer declared as
6480 [intro?] and [elim?] (respectively) by default.
6481 - Experimental command for instantiation of locales in proof contexts:
6482 instantiate <label>[<attrs>]: <loc>
6483 Instantiates locale <loc> and adds all its theorems to the current context
6484 taking into account their attributes. Label and attrs are optional
6485 modifiers, like in theorem declarations. If present, names of
6486 instantiated theorems are qualified with <label>, and the attributes
6487 <attrs> are applied after any attributes these theorems might have already.
6488 If the locale has assumptions, a chained fact of the form
6489 "<loc> t1 ... tn" is expected from which instantiations of the parameters
6490 are derived. The command does not support old-style locales declared
6491 with "locale (open)".
6492 A few (very simple) examples can be found in FOL/ex/LocaleInst.thy.
6494 * HOL: Tactic emulation methods induct_tac and case_tac understand static
6500 * Proof import: new image HOL4 contains the imported library from
6501 the HOL4 system with about 2500 theorems. It is imported by
6502 replaying proof terms produced by HOL4 in Isabelle. The HOL4 image
6503 can be used like any other Isabelle image. See
6504 HOL/Import/HOL/README for more information.
6507 - Much improved handling of linear and partial orders.
6508 Reasoners for linear and partial orders are set up for type classes
6509 "linorder" and "order" respectively, and are added to the default simpset
6510 as solvers. This means that the simplifier can build transitivity chains
6511 to solve goals from the assumptions.
6512 - INCOMPATIBILITY: old proofs break occasionally. Typically, applications
6513 of blast or auto after simplification become unnecessary because the goal
6514 is solved by simplification already.
6516 * Numerics: new theory Ring_and_Field contains over 250 basic numerical laws,
6517 all proved in axiomatic type classes for semirings, rings and fields.
6520 - Numeric types (nat, int, and in HOL-Complex rat, real, complex, etc.) are
6521 now formalized using the Ring_and_Field theory mentioned above.
6522 - INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently
6523 than before, because now they are set up once in a generic manner.
6524 - INCOMPATIBILITY: many type-specific arithmetic laws have gone.
6525 Look for the general versions in Ring_and_Field (and Power if they concern
6528 * Type "rat" of the rational numbers is now available in HOL-Complex.
6531 - Record types are now by default printed with their type abbreviation
6532 instead of the list of all field types. This can be configured via
6533 the reference "print_record_type_abbr".
6534 - Simproc "record_upd_simproc" for simplification of multiple updates added
6535 (not enabled by default).
6536 - Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp.
6537 EX x. x = sel r to True (not enabled by default).
6538 - Tactic "record_split_simp_tac" to split and simplify records added.
6540 * 'specification' command added, allowing for definition by
6541 specification. There is also an 'ax_specification' command that
6542 introduces the new constants axiomatically.
6544 * arith(_tac) is now able to generate counterexamples for reals as well.
6546 * HOL-Algebra: new locale "ring" for non-commutative rings.
6548 * HOL-ex: InductiveInvariant_examples illustrates advanced recursive function
6549 definitions, thanks to Sava Krsti\'{c} and John Matthews.
6551 * HOL-Matrix: a first theory for matrices in HOL with an application of
6552 matrix theory to linear programming.
6554 * Unions and Intersections:
6555 The latex output syntax of UN and INT has been changed
6556 from "\Union x \in A. B" to "\Union_{x \in A} B"
6557 i.e. the index formulae has become a subscript.
6558 Similarly for "\Union x. B", and for \Inter instead of \Union.
6560 * Unions and Intersections over Intervals:
6561 There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is
6562 also an x-symbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A"
6563 like in normal math, and corresponding versions for < and for intersection.
6565 * HOL/List: Ordering "lexico" is renamed "lenlex" and the standard
6566 lexicographic dictonary ordering has been added as "lexord".
6568 * ML: the legacy theory structures Int and List have been removed. They had
6569 conflicted with ML Basis Library structures having the same names.
6571 * 'refute' command added to search for (finite) countermodels. Only works
6572 for a fragment of HOL. The installation of an external SAT solver is
6573 highly recommended. See "HOL/Refute.thy" for details.
6575 * 'quickcheck' command: Allows to find counterexamples by evaluating
6576 formulae under an assignment of free variables to random values.
6577 In contrast to 'refute', it can deal with inductive datatypes,
6578 but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy"
6584 * Streams now come with concatenation and are part of the HOLCF image
6588 New in Isabelle2003 (May 2003)
6589 ------------------------------
6593 * Provers/simplifier:
6595 - Completely reimplemented method simp (ML: Asm_full_simp_tac):
6596 Assumptions are now subject to complete mutual simplification,
6597 not just from left to right. The simplifier now preserves
6598 the order of assumptions.
6600 Potential INCOMPATIBILITY:
6602 -- simp sometimes diverges where the old version did
6603 not, e.g. invoking simp on the goal
6605 [| P (f x); y = x; f x = f y |] ==> Q
6607 now gives rise to the infinite reduction sequence
6609 P(f x) --(f x = f y)--> P(f y) --(y = x)--> P(f x) --(f x = f y)--> ...
6611 Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this
6614 -- Tactics combining classical reasoner and simplification (such as auto)
6615 are also affected by this change, because many of them rely on
6616 simp. They may sometimes diverge as well or yield a different numbers
6617 of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto
6618 in case of problems. Sometimes subsequent calls to the classical
6619 reasoner will fail because a preceeding call to the simplifier too
6620 eagerly simplified the goal, e.g. deleted redundant premises.
6622 - The simplifier trace now shows the names of the applied rewrite rules
6624 - You can limit the number of recursive invocations of the simplifier
6625 during conditional rewriting (where the simplifie tries to solve the
6626 conditions before applying the rewrite rule):
6627 ML "simp_depth_limit := n"
6628 where n is an integer. Thus you can force termination where previously
6629 the simplifier would diverge.
6631 - Accepts free variables as head terms in congruence rules. Useful in Isar.
6633 - No longer aborts on failed congruence proof. Instead, the
6634 congruence is ignored.
6636 * Pure: New generic framework for extracting programs from constructive
6637 proofs. See HOL/Extraction.thy for an example instantiation, as well
6638 as HOL/Extraction for some case studies.
6640 * Pure: The main goal of the proof state is no longer shown by default, only
6641 the subgoals. This behaviour is controlled by a new flag.
6642 PG menu: Isabelle/Isar -> Settings -> Show Main Goal
6643 (ML: Proof.show_main_goal).
6645 * Pure: You can find all matching introduction rules for subgoal 1, i.e. all
6646 rules whose conclusion matches subgoal 1:
6647 PG menu: Isabelle/Isar -> Show me -> matching rules
6648 The rules are ordered by how closely they match the subgoal.
6649 In particular, rules that solve a subgoal outright are displayed first
6650 (or rather last, the way they are printed).
6651 (ML: ProofGeneral.print_intros())
6653 * Pure: New flag trace_unify_fail causes unification to print
6654 diagnostic information (PG: in trace buffer) when it fails. This is
6655 useful for figuring out why single step proofs like rule, erule or
6658 * Pure: Locale specifications now produce predicate definitions
6659 according to the body of text (covering assumptions modulo local
6660 definitions); predicate "loc_axioms" covers newly introduced text,
6661 while "loc" is cumulative wrt. all included locale expressions; the
6662 latter view is presented only on export into the global theory
6663 context; potential INCOMPATIBILITY, use "(open)" option to fall back
6664 on the old view without predicates;
6666 * Pure: predefined locales "var" and "struct" are useful for sharing
6667 parameters (as in CASL, for example); just specify something like
6668 ``var x + var y + struct M'' as import;
6670 * Pure: improved thms_containing: proper indexing of facts instead of
6671 raw theorems; check validity of results wrt. current name space;
6672 include local facts of proof configuration (also covers active
6673 locales), cover fixed variables in index; may use "_" in term
6674 specification; an optional limit for the number of printed facts may
6675 be given (the default is 40);
6677 * Pure: disallow duplicate fact bindings within new-style theory files
6680 * Provers: improved induct method: assumptions introduced by case
6681 "foo" are split into "foo.hyps" (from the rule) and "foo.prems" (from
6682 the goal statement); "foo" still refers to all facts collectively;
6684 * Provers: the function blast.overloaded has been removed: all constants
6685 are regarded as potentially overloaded, which improves robustness in exchange
6686 for slight decrease in efficiency;
6688 * Provers/linorder: New generic prover for transitivity reasoning over
6689 linear orders. Note: this prover is not efficient!
6691 * Isar: preview of problems to finish 'show' now produce an error
6692 rather than just a warning (in interactive mode);
6699 - Produces a counter example if it cannot prove a goal.
6700 Note that the counter example may be spurious if the goal is not a formula
6701 of quantifier-free linear arithmetic.
6702 In ProofGeneral the counter example appears in the trace buffer.
6704 - Knows about div k and mod k where k is a numeral of type nat or int.
6706 - Calls full Presburger arithmetic (by Amine Chaieb) if quantifier-free
6707 linear arithmetic fails. This takes account of quantifiers and divisibility.
6708 Presburger arithmetic can also be called explicitly via presburger(_tac).
6710 * simp's arithmetic capabilities have been enhanced a bit: it now
6711 takes ~= in premises into account (by performing a case split);
6713 * simp reduces "m*(n div m) + n mod m" to n, even if the two summands
6714 are distributed over a sum of terms;
6716 * New tactic "trans_tac" and method "trans" instantiate
6717 Provers/linorder.ML for axclasses "order" and "linorder" (predicates
6720 * function INCOMPATIBILITIES: Pi-sets have been redefined and moved from main
6721 HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp";
6723 * 'typedef' command has new option "open" to suppress the set
6726 * functions Min and Max on finite sets have been introduced (theory
6729 * attribute [symmetric] now works for relations as well; it turns
6730 (x,y) : R^-1 into (y,x) : R, and vice versa;
6732 * induct over a !!-quantified statement (say !!x1..xn):
6733 each "case" automatically performs "fix x1 .. xn" with exactly those names.
6735 * Map: `empty' is no longer a constant but a syntactic abbreviation for
6736 %x. None. Warning: empty_def now refers to the previously hidden definition
6739 * Algebra: formalization of classical algebra. Intended as base for
6740 any algebraic development in Isabelle. Currently covers group theory
6741 (up to Sylow's theorem) and ring theory (Universal Property of
6742 Univariate Polynomials). Contributions welcome;
6744 * GroupTheory: deleted, since its material has been moved to Algebra;
6746 * Complex: new directory of the complex numbers with numeric constants,
6747 nonstandard complex numbers, and some complex analysis, standard and
6748 nonstandard (Jacques Fleuriot);
6750 * HOL-Complex: new image for analysis, replacing HOL-Real and HOL-Hyperreal;
6752 * Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques
6755 * Real/HahnBanach: updated and adapted to locales;
6757 * NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad,
6760 * UNITY: added the Meier-Sanders theory of progress sets;
6762 * MicroJava: bytecode verifier and lightweight bytecode verifier
6763 as abstract algorithms, instantiated to the JVM;
6765 * Bali: Java source language formalization. Type system, operational
6766 semantics, axiomatic semantics. Supported language features:
6767 classes, interfaces, objects,virtual methods, static methods,
6768 static/instance fields, arrays, access modifiers, definite
6769 assignment, exceptions.
6774 * ZF/Constructible: consistency proof for AC (Gdel's constructible
6777 * Main ZF: virtually all theories converted to new-style format;
6782 * Pure: Tactic.prove provides sane interface for internal proofs;
6783 omits the infamous "standard" operation, so this is more appropriate
6784 than prove_goalw_cterm in many situations (e.g. in simprocs);
6786 * Pure: improved error reporting of simprocs;
6788 * Provers: Simplifier.simproc(_i) provides sane interface for setting
6792 *** Document preparation ***
6794 * uses \par instead of \\ for line breaks in theory text. This may
6795 shift some page breaks in large documents. To get the old behaviour
6796 use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex.
6798 * minimized dependencies of isabelle.sty and isabellesym.sty on
6801 * \<euro> now needs package babel/greek instead of marvosym (which
6804 * normal size for \<zero>...\<nine> (uses \mathbf instead of
6809 New in Isabelle2002 (March 2002)
6810 --------------------------------
6812 *** Document preparation ***
6814 * greatly simplified document preparation setup, including more
6815 graceful interpretation of isatool usedir -i/-d/-D options, and more
6816 instructive isatool mkdir; users should basically be able to get
6817 started with "isatool mkdir HOL Test && isatool make"; alternatively,
6818 users may run a separate document processing stage manually like this:
6819 "isatool usedir -D output HOL Test && isatool document Test/output";
6821 * theory dependency graph may now be incorporated into documents;
6822 isatool usedir -g true will produce session_graph.eps/.pdf for use
6823 with \includegraphics of LaTeX;
6825 * proper spacing of consecutive markup elements, especially text
6826 blocks after section headings;
6828 * support bold style (for single symbols only), input syntax is like
6829 this: "\<^bold>\<alpha>" or "\<^bold>A";
6831 * \<bullet> is now output as bold \cdot by default, which looks much
6832 better in printed text;
6834 * added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
6835 note that these symbols are currently unavailable in Proof General /
6836 X-Symbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>;
6838 * isatool latex no longer depends on changed TEXINPUTS, instead
6839 isatool document copies the Isabelle style files to the target
6845 * Pure/Provers: improved proof by cases and induction;
6846 - 'case' command admits impromptu naming of parameters (such as
6848 - 'induct' method divinates rule instantiation from the inductive
6849 claim; no longer requires excessive ?P bindings for proper
6850 instantiation of cases;
6851 - 'induct' method properly enumerates all possibilities of set/type
6852 rules; as a consequence facts may be also passed through *type*
6853 rules without further ado;
6854 - 'induct' method now derives symbolic cases from the *rulified*
6855 rule (before it used to rulify cases stemming from the internal
6856 atomized version); this means that the context of a non-atomic
6857 statement becomes is included in the hypothesis, avoiding the
6858 slightly cumbersome show "PROP ?case" form;
6859 - 'induct' may now use elim-style induction rules without chaining
6860 facts, using ``missing'' premises from the goal state; this allows
6861 rules stemming from inductive sets to be applied in unstructured
6862 scripts, while still benefitting from proper handling of non-atomic
6863 statements; NB: major inductive premises need to be put first, all
6864 the rest of the goal is passed through the induction;
6865 - 'induct' proper support for mutual induction involving non-atomic
6866 rule statements (uses the new concept of simultaneous goals, see
6868 - append all possible rule selections, but only use the first
6869 success (no backtracking);
6870 - removed obsolete "(simplified)" and "(stripped)" options of methods;
6871 - undeclared rule case names default to numbers 1, 2, 3, ...;
6872 - added 'print_induct_rules' (covered by help item in recent Proof
6874 - moved induct/cases attributes to Pure, methods to Provers;
6875 - generic method setup instantiated for FOL and HOL;
6877 * Pure: support multiple simultaneous goal statements, for example
6878 "have a: A and b: B" (same for 'theorem' etc.); being a pure
6879 meta-level mechanism, this acts as if several individual goals had
6880 been stated separately; in particular common proof methods need to be
6881 repeated in order to cover all claims; note that a single elimination
6882 step is *not* sufficient to establish the two conjunctions, so this
6885 assume "A & B" then have A and B .. (*".." fails*)
6887 better use "obtain" in situations as above; alternative refer to
6888 multi-step methods like 'auto', 'simp_all', 'blast+' etc.;
6890 * Pure: proper integration with ``locales''; unlike the original
6891 version by Florian Kammller, Isar locales package high-level proof
6892 contexts rather than raw logical ones (e.g. we admit to include
6893 attributes everywhere); operations on locales include merge and
6894 rename; support for implicit arguments (``structures''); simultaneous
6895 type-inference over imports and text; see also HOL/ex/Locales.thy for
6898 * Pure: the following commands have been ``localized'', supporting a
6899 target locale specification "(in name)": 'lemma', 'theorem',
6900 'corollary', 'lemmas', 'theorems', 'declare'; the results will be
6901 stored both within the locale and at the theory level (exported and
6902 qualified by the locale name);
6904 * Pure: theory goals may now be specified in ``long'' form, with
6905 ad-hoc contexts consisting of arbitrary locale elements. for example
6906 ``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and
6907 definitions may be given, too); the result is a meta-level rule with
6908 the context elements being discharged in the obvious way;
6910 * Pure: new proof command 'using' allows to augment currently used
6911 facts after a goal statement ('using' is syntactically analogous to
6912 'apply', but acts on the goal's facts only); this allows chained facts
6913 to be separated into parts given before and after a claim, as in
6914 ``from a and b have C using d and e <proof>'';
6916 * Pure: renamed "antecedent" case to "rule_context";
6918 * Pure: new 'judgment' command records explicit information about the
6919 object-logic embedding (used by several tools internally); no longer
6920 use hard-wired "Trueprop";
6922 * Pure: added 'corollary' command;
6924 * Pure: fixed 'token_translation' command;
6926 * Pure: removed obsolete 'exported' attribute;
6928 * Pure: dummy pattern "_" in is/let is now automatically lifted over
6929 bound variables: "ALL x. P x --> Q x" (is "ALL x. _ --> ?C x")
6930 supersedes more cumbersome ... (is "ALL x. _ x --> ?C x");
6932 * Pure: method 'atomize' presents local goal premises as object-level
6933 statements (atomic meta-level propositions); setup controlled via
6934 rewrite rules declarations of 'atomize' attribute; example
6935 application: 'induct' method with proper rule statements in improper
6938 * Pure: emulation of instantiation tactics (rule_tac, cut_tac, etc.)
6939 now consider the syntactic context of assumptions, giving a better
6940 chance to get type-inference of the arguments right (this is
6941 especially important for locales);
6943 * Pure: "sorry" no longer requires quick_and_dirty in interactive
6946 * Pure/obtain: the formal conclusion "thesis", being marked as
6947 ``internal'', may no longer be reference directly in the text;
6948 potential INCOMPATIBILITY, may need to use "?thesis" in rare
6951 * Pure: generic 'sym' attribute which declares a rule both as pure
6952 'elim?' and for the 'symmetric' operation;
6954 * Pure: marginal comments ``--'' may now occur just anywhere in the
6955 text; the fixed correlation with particular command syntax has been
6958 * Pure: new method 'rules' is particularly well-suited for proof
6959 search in intuitionistic logic; a bit slower than 'blast' or 'fast',
6960 but often produces more compact proof terms with less detours;
6962 * Pure/Provers/classical: simplified integration with pure rule
6963 attributes and methods; the classical "intro?/elim?/dest?"
6964 declarations coincide with the pure ones; the "rule" method no longer
6965 includes classically swapped intros; "intro" and "elim" methods no
6966 longer pick rules from the context; also got rid of ML declarations
6967 AddXIs/AddXEs/AddXDs; all of this has some potential for
6970 * Provers/classical: attribute 'swapped' produces classical inversions
6971 of introduction rules;
6973 * Provers/simplifier: 'simplified' attribute may refer to explicit
6974 rules instead of full simplifier context; 'iff' attribute handles
6977 * HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
6979 * HOL: 'recdef' now fails on unfinished automated proofs, use
6980 "(permissive)" option to recover old behavior;
6982 * HOL: 'inductive' no longer features separate (collective) attributes
6983 for 'intros' (was found too confusing);
6985 * HOL: properly declared induction rules less_induct and
6991 * HOL: moved over to sane numeral syntax; the new policy is as
6994 - 0 and 1 are polymorphic constants, which are defined on any
6995 numeric type (nat, int, real etc.);
6997 - 2, 3, 4, ... and -1, -2, -3, ... are polymorphic numerals, based
6998 binary representation internally;
7000 - type nat has special constructor Suc, and generally prefers Suc 0
7001 over 1::nat and Suc (Suc 0) over 2::nat;
7003 This change may cause significant problems of INCOMPATIBILITY; here
7004 are some hints on converting existing sources:
7006 - due to the new "num" token, "-0" and "-1" etc. are now atomic
7007 entities, so expressions involving "-" (unary or binary minus) need
7008 to be spaced properly;
7010 - existing occurrences of "1" may need to be constraint "1::nat" or
7011 even replaced by Suc 0; similar for old "2";
7013 - replace "#nnn" by "nnn", and "#-nnn" by "-nnn";
7015 - remove all special provisions on numerals in proofs;
7017 * HOL: simp rules nat_number expand numerals on nat to Suc/0
7018 representation (depends on bin_arith_simps in the default context);
7020 * HOL: symbolic syntax for x^2 (numeral 2);
7022 * HOL: the class of all HOL types is now called "type" rather than
7023 "term"; INCOMPATIBILITY, need to adapt references to this type class
7024 in axclass/classes, instance/arities, and (usually rare) occurrences
7025 in typings (of consts etc.); internally the class is called
7026 "HOL.type", ML programs should refer to HOLogic.typeS;
7028 * HOL/record package improvements:
7029 - new derived operations "fields" to build a partial record section,
7030 "extend" to promote a fixed record to a record scheme, and
7031 "truncate" for the reverse; cf. theorems "xxx.defs", which are *not*
7032 declared as simp by default;
7033 - shared operations ("more", "fields", etc.) now need to be always
7034 qualified) --- potential INCOMPATIBILITY;
7035 - removed "make_scheme" operations (use "make" with "extend") --
7037 - removed "more" class (simply use "term") -- INCOMPATIBILITY;
7038 - provides cases/induct rules for use with corresponding Isar
7039 methods (for concrete records, record schemes, concrete more
7040 parts, and schematic more parts -- in that order);
7041 - internal definitions directly based on a light-weight abstract
7042 theory of product types over typedef rather than datatype;
7044 * HOL: generic code generator for generating executable ML code from
7045 specifications; specific support for HOL constructs such as inductive
7046 datatypes and sets, as well as recursive functions; can be invoked
7047 via 'generate_code' theory section;
7049 * HOL: canonical cases/induct rules for n-tuples (n = 3..7);
7051 * HOL: consolidated and renamed several theories. In particular:
7052 Ord.thy has been absorbed into HOL.thy
7053 String.thy has been absorbed into List.thy
7055 * HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
7056 (beware of argument permutation!);
7058 * HOL: linorder_less_split superseded by linorder_cases;
7060 * HOL/List: "nodups" renamed to "distinct";
7062 * HOL: added "The" definite description operator; move Hilbert's "Eps"
7063 to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES:
7064 - Ex_def has changed, now need to use some_eq_ex
7066 * HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so
7067 in this (rare) case use:
7069 delSWrapper "split_all_tac"
7070 addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac)
7072 * HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS
7075 * HOL: introduced f^n = f o ... o f; warning: due to the limits of
7076 Isabelle's type classes, ^ on functions and relations has too general
7077 a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be
7078 necessary to attach explicit type constraints;
7080 * HOL/Relation: the prefix name of the infix "O" has been changed from
7081 "comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been
7082 renamed accordingly (eg "compI" -> "rel_compI").
7084 * HOL: syntax translations now work properly with numerals and records
7087 * HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
7088 of "lam" -- INCOMPATIBILITY;
7090 * HOL: got rid of some global declarations (potential INCOMPATIBILITY
7091 for ML tools): const "()" renamed "Product_Type.Unity", type "unit"
7092 renamed "Product_Type.unit";
7094 * HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl
7096 * HOL: removed obsolete theorem "optionE" (use "option.exhaust", or
7097 the "cases" method);
7099 * HOL/GroupTheory: group theory examples including Sylow's theorem (by
7102 * HOL/IMP: updated and converted to new-style theory format; several
7103 parts turned into readable document, with proper Isar proof texts and
7104 some explanations (by Gerwin Klein);
7106 * HOL-Real: added Complex_Numbers (by Gertrud Bauer);
7108 * HOL-Hyperreal is now a logic image;
7113 * Isar: consts/constdefs supports mixfix syntax for continuous
7116 * Isar: domain package adapted to new-style theory format, e.g. see
7119 * theory Lift: proper use of rep_datatype lift instead of ML hacks --
7120 potential INCOMPATIBILITY; now use plain induct_tac instead of former
7121 lift.induct_tac, always use UU instead of Undef;
7123 * HOLCF/IMP: updated and converted to new-style theory;
7128 * Isar: proper integration of logic-specific tools and packages,
7129 including theory commands '(co)inductive', '(co)datatype',
7130 'rep_datatype', 'inductive_cases', as well as methods 'ind_cases',
7131 'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC');
7133 * theory Main no longer includes AC; for the Axiom of Choice, base
7134 your theory on Main_ZFC;
7136 * the integer library now covers quotients and remainders, with many
7137 laws relating division to addition, multiplication, etc.;
7139 * ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a
7140 typeless version of the formalism;
7142 * ZF/AC, Coind, IMP, Resid: updated and converted to new-style theory
7145 * ZF/Induct: new directory for examples of inductive definitions,
7146 including theory Multiset for multiset orderings; converted to
7147 new-style theory format;
7149 * ZF: many new theorems about lists, ordinals, etc.;
7154 * Pure/kernel: meta-level proof terms (by Stefan Berghofer); reference
7155 variable proof controls level of detail: 0 = no proofs (only oracle
7156 dependencies), 1 = lemma dependencies, 2 = compact proof terms; see
7157 also ref manual for further ML interfaces;
7159 * Pure/axclass: removed obsolete ML interface
7160 goal_subclass/goal_arity;
7162 * Pure/syntax: new token syntax "num" for plain numerals (without "#"
7163 of "xnum"); potential INCOMPATIBILITY, since -0, -1 etc. are now
7164 separate tokens, so expressions involving minus need to be spaced
7167 * Pure/syntax: support non-oriented infixes, using keyword "infix"
7168 rather than "infixl" or "infixr";
7170 * Pure/syntax: concrete syntax for dummy type variables admits genuine
7171 sort constraint specifications in type inference; e.g. "x::_::foo"
7172 ensures that the type of "x" is of sort "foo" (but not necessarily a
7175 * Pure/syntax: print modes "type_brackets" and "no_type_brackets"
7176 control output of nested => (types); the default behavior is
7179 * Pure/syntax: builtin parse translation for "_constify" turns valued
7180 tokens into AST constants;
7182 * Pure/syntax: prefer later declarations of translations and print
7183 translation functions; potential INCOMPATIBILITY: need to reverse
7184 multiple declarations for same syntax element constant;
7186 * Pure/show_hyps reset by default (in accordance to existing Isar
7189 * Provers/classical: renamed addaltern to addafter, addSaltern to
7192 * Provers/clasimp: ``iff'' declarations now handle conditional rules
7195 * system: tested support for MacOS X; should be able to get Isabelle +
7196 Proof General to work in a plain Terminal after installing Poly/ML
7197 (e.g. from the Isabelle distribution area) and GNU bash alone
7198 (e.g. from http://www.apple.com); full X11, XEmacs and X-Symbol
7199 support requires further installations, e.g. from
7200 http://fink.sourceforge.net/);
7202 * system: support Poly/ML 4.1.1 (able to manage larger heaps);
7204 * system: reduced base memory usage by Poly/ML (approx. 20 MB instead
7205 of 40 MB), cf. ML_OPTIONS;
7207 * system: Proof General keywords specification is now part of the
7208 Isabelle distribution (see etc/isar-keywords.el);
7210 * system: support for persistent Proof General sessions (refrain from
7211 outdating all loaded theories on startup); user may create writable
7212 logic images like this: ``isabelle -q HOL Test'';
7214 * system: smart selection of Isabelle process versus Isabelle
7215 interface, accommodates case-insensitive file systems (e.g. HFS+); may
7216 run both "isabelle" and "Isabelle" even if file names are badly
7217 damaged (executable inspects the case of the first letter of its own
7218 name); added separate "isabelle-process" and "isabelle-interface";
7220 * system: refrain from any attempt at filtering input streams; no
7221 longer support ``8bit'' encoding of old isabelle font, instead proper
7222 iso-latin characters may now be used; the related isatools
7223 "symbolinput" and "nonascii" have disappeared as well;
7225 * system: removed old "xterm" interface (the print modes "xterm" and
7226 "xterm_color" are still available for direct use in a suitable
7231 New in Isabelle99-2 (February 2001)
7232 -----------------------------------
7234 *** Overview of INCOMPATIBILITIES ***
7236 * HOL: please note that theories in the Library and elsewhere often use the
7237 new-style (Isar) format; to refer to their theorems in an ML script you must
7238 bind them to ML identifers by e.g. val thm_name = thm "thm_name";
7240 * HOL: inductive package no longer splits induction rule aggressively,
7241 but only as far as specified by the introductions given; the old
7242 format may be recovered via ML function complete_split_rule or attribute
7243 'split_rule (complete)';
7245 * HOL: induct renamed to lfp_induct, lfp_Tarski to lfp_unfold,
7246 gfp_Tarski to gfp_unfold;
7248 * HOL: contrapos, contrapos2 renamed to contrapos_nn, contrapos_pp;
7250 * HOL: infix "dvd" now has priority 50 rather than 70 (because it is a
7251 relation); infix "^^" has been renamed "``"; infix "``" has been
7252 renamed "`"; "univalent" has been renamed "single_valued";
7254 * HOL/Real: "rinv" and "hrinv" replaced by overloaded "inverse"
7257 * HOLCF: infix "`" has been renamed "$"; the symbol syntax is \<cdot>;
7259 * Isar: 'obtain' no longer declares "that" fact as simp/intro;
7261 * Isar/HOL: method 'induct' now handles non-atomic goals; as a
7262 consequence, it is no longer monotonic wrt. the local goal context
7263 (which is now passed through the inductive cases);
7265 * Document preparation: renamed standard symbols \<ll> to \<lless> and
7266 \<gg> to \<ggreater>;
7269 *** Document preparation ***
7271 * \isabellestyle{NAME} selects version of Isabelle output (currently
7272 available: are "it" for near math-mode best-style output, "sl" for
7273 slanted text style, and "tt" for plain type-writer; if no
7274 \isabellestyle command is given, output is according to slanted
7277 * support sub/super scripts (for single symbols only), input syntax is
7278 like this: "A\<^sup>*" or "A\<^sup>\<star>";
7280 * some more standard symbols; see Appendix A of the system manual for
7281 the complete list of symbols defined in isabellesym.sty;
7283 * improved isabelle style files; more abstract symbol implementation
7284 (should now use \isamath{...} and \isatext{...} in custom symbol
7287 * antiquotation @{goals} and @{subgoals} for output of *dynamic* goals
7288 state; Note that presentation of goal states does not conform to
7289 actual human-readable proof documents. Please do not include goal
7290 states into document output unless you really know what you are doing!
7292 * proper indentation of antiquoted output with proportional LaTeX
7295 * no_document ML operator temporarily disables LaTeX document
7298 * isatool unsymbolize tunes sources for plain ASCII communication;
7303 * Pure: Isar now suffers initial goal statements to contain unbound
7304 schematic variables (this does not conform to actual readable proof
7305 documents, due to unpredictable outcome and non-compositional proof
7306 checking); users who know what they are doing may use schematic goals
7307 for Prolog-style synthesis of proven results;
7309 * Pure: assumption method (an implicit finishing) now handles actual
7312 * Pure: improved 'obtain' --- moved to Pure, insert "that" into
7313 initial goal, declare "that" only as Pure intro (only for single
7314 steps); the "that" rule assumption may now be involved in implicit
7315 finishing, thus ".." becomes a feasible for trivial obtains;
7317 * Pure: default proof step now includes 'intro_classes'; thus trivial
7318 instance proofs may be performed by "..";
7320 * Pure: ?thesis / ?this / "..." now work for pure meta-level
7323 * Pure: more robust selection of calculational rules;
7325 * Pure: the builtin notion of 'finished' goal now includes the ==-refl
7326 rule (as well as the assumption rule);
7328 * Pure: 'thm_deps' command visualizes dependencies of theorems and
7329 lemmas, using the graph browser tool;
7331 * Pure: predict failure of "show" in interactive mode;
7333 * Pure: 'thms_containing' now takes actual terms as arguments;
7335 * HOL: improved method 'induct' --- now handles non-atomic goals
7336 (potential INCOMPATIBILITY); tuned error handling;
7338 * HOL: cases and induct rules now provide explicit hints about the
7339 number of facts to be consumed (0 for "type" and 1 for "set" rules);
7340 any remaining facts are inserted into the goal verbatim;
7342 * HOL: local contexts (aka cases) may now contain term bindings as
7343 well; the 'cases' and 'induct' methods new provide a ?case binding for
7344 the result to be shown in each case;
7346 * HOL: added 'recdef_tc' command;
7348 * isatool convert assists in eliminating legacy ML scripts;
7353 * HOL/Library: a collection of generic theories to be used together
7354 with main HOL; the theory loader path already includes this directory
7355 by default; the following existing theories have been moved here:
7356 HOL/Induct/Multiset, HOL/Induct/Acc (as Accessible_Part), HOL/While
7357 (as While_Combinator), HOL/Lex/Prefix (as List_Prefix);
7359 * HOL/Unix: "Some aspects of Unix file-system security", a typical
7360 modelling and verification task performed in Isabelle/HOL +
7361 Isabelle/Isar + Isabelle document preparation (by Markus Wenzel).
7363 * HOL/Algebra: special summation operator SUM no longer exists, it has
7364 been replaced by setsum; infix 'assoc' now has priority 50 (like
7365 'dvd'); axiom 'one_not_zero' has been moved from axclass 'ring' to
7366 'domain', this makes the theory consistent with mathematical
7369 * HOL basics: added overloaded operations "inverse" and "divide"
7370 (infix "/"), syntax for generic "abs" operation, generic summation
7373 * HOL/typedef: simplified package, provide more useful rules (see also
7376 * HOL/datatype: induction rule for arbitrarily branching datatypes is
7377 now expressed as a proper nested rule (old-style tactic scripts may
7378 require atomize_strip_tac to cope with non-atomic premises);
7380 * HOL: renamed theory "Prod" to "Product_Type", renamed "split" rule
7381 to "split_conv" (old name still available for compatibility);
7383 * HOL: improved concrete syntax for strings (e.g. allows translation
7384 rules with string literals);
7386 * HOL-Real-Hyperreal: this extends HOL-Real with the hyperreals
7387 and Fleuriot's mechanization of analysis, including the transcendental
7388 functions for the reals;
7390 * HOL/Real, HOL/Hyperreal: improved arithmetic simplification;
7395 * CTT: x-symbol support for Pi, Sigma, -->, : (membership); note that
7396 "lam" is displayed as TWO lambda-symbols
7398 * CTT: theory Main now available, containing everything (that is, Bool
7404 * Pure: the Simplifier has been implemented properly as a derived rule
7405 outside of the actual kernel (at last!); the overall performance
7406 penalty in practical applications is about 50%, while reliability of
7407 the Isabelle inference kernel has been greatly improved;
7409 * print modes "brackets" and "no_brackets" control output of nested =>
7410 (types) and ==> (props); the default behaviour is "brackets";
7412 * Provers: fast_tac (and friends) now handle actual object-logic rules
7413 as assumptions as well;
7415 * system: support Poly/ML 4.0;
7417 * system: isatool install handles KDE version 1 or 2;
7421 New in Isabelle99-1 (October 2000)
7422 ----------------------------------
7424 *** Overview of INCOMPATIBILITIES ***
7426 * HOL: simplification of natural numbers is much changed; to partly
7427 recover the old behaviour (e.g. to prevent n+n rewriting to #2*n)
7428 issue the following ML commands:
7430 Delsimprocs Nat_Numeral_Simprocs.cancel_numerals;
7431 Delsimprocs [Nat_Numeral_Simprocs.combine_numerals];
7433 * HOL: simplification no longer dives into case-expressions; this is
7434 controlled by "t.weak_case_cong" for each datatype t;
7436 * HOL: nat_less_induct renamed to less_induct;
7438 * HOL: systematic renaming of the SOME (Eps) rules, may use isatool
7439 fixsome to patch .thy and .ML sources automatically;
7441 select_equality -> some_equality
7442 select_eq_Ex -> some_eq_ex
7443 selectI2EX -> someI2_ex
7446 select1_equality -> some1_equality
7447 Eps_sym_eq -> some_sym_eq_trivial
7448 Eps_eq -> some_eq_trivial
7450 * HOL: exhaust_tac on datatypes superceded by new generic case_tac;
7452 * HOL: removed obsolete theorem binding expand_if (refer to split_if
7455 * HOL: the recursion equations generated by 'recdef' are now called
7456 f.simps instead of f.rules;
7458 * HOL: qed_spec_mp now also handles bounded ALL as well;
7460 * HOL: 0 is now overloaded, so the type constraint ":: nat" may
7461 sometimes be needed;
7463 * HOL: the constant for "f``x" is now "image" rather than "op ``";
7465 * HOL: the constant for "f-``x" is now "vimage" rather than "op -``";
7467 * HOL: the disjoint sum is now "<+>" instead of "Plus"; the cartesian
7468 product is now "<*>" instead of "Times"; the lexicographic product is
7469 now "<*lex*>" instead of "**";
7471 * HOL: theory Sexp is now in HOL/Induct examples (it used to be part
7472 of main HOL, but was unused); better use HOL's datatype package;
7474 * HOL: removed "symbols" syntax for constant "override" of theory Map;
7475 the old syntax may be recovered as follows:
7478 override :: "('a ~=> 'b) => ('a ~=> 'b) => ('a ~=> 'b)"
7479 (infixl "\\<oplus>" 100)
7481 * HOL/Real: "rabs" replaced by overloaded "abs" function;
7483 * HOL/ML: even fewer consts are declared as global (see theories Ord,
7484 Lfp, Gfp, WF); this only affects ML packages that refer to const names
7487 * HOL and ZF: syntax for quotienting wrt an equivalence relation
7488 changed from A/r to A//r;
7490 * ZF: new treatment of arithmetic (nat & int) may break some old
7493 * Isar: renamed some attributes (RS -> THEN, simplify -> simplified,
7494 rulify -> rule_format, elimify -> elim_format, ...);
7496 * Isar/Provers: intro/elim/dest attributes changed; renamed
7497 intro/intro!/intro!! flags to intro!/intro/intro? (in most cases, one
7498 should have to change intro!! to intro? only); replaced "delrule" by
7501 * Isar/HOL: renamed "intrs" to "intros" in inductive definitions;
7503 * Provers: strengthened force_tac by using new first_best_tac;
7505 * LaTeX document preparation: several changes of isabelle.sty (see
7509 *** Document preparation ***
7511 * formal comments (text blocks etc.) in new-style theories may now
7512 contain antiquotations of thm/prop/term/typ/text to be presented
7513 according to latex print mode; concrete syntax is like this:
7514 @{term[show_types] "f(x) = a + x"};
7516 * isatool mkdir provides easy setup of Isabelle session directories,
7517 including proper document sources;
7519 * generated LaTeX sources are now deleted after successful run
7520 (isatool document -c); may retain a copy somewhere else via -D option
7523 * isatool usedir -D now lets isatool latex -o sty update the Isabelle
7524 style files, achieving self-contained LaTeX sources and simplifying
7527 * old-style theories now produce (crude) LaTeX output as well;
7529 * browser info session directories are now self-contained (may be put
7530 on WWW server seperately); improved graphs of nested sessions; removed
7531 graph for 'all sessions';
7533 * several improvements in isabelle style files; \isabellestyle{it}
7534 produces fake math mode output; \isamarkupheader is now \section by
7535 default; see lib/texinputs/isabelle.sty etc.;
7540 * Isar/Pure: local results and corresponding term bindings are now
7541 subject to Hindley-Milner polymorphism (similar to ML); this
7542 accommodates incremental type-inference very nicely;
7544 * Isar/Pure: new derived language element 'obtain' supports
7545 generalized existence reasoning;
7547 * Isar/Pure: new calculational elements 'moreover' and 'ultimately'
7548 support accumulation of results, without applying any rules yet;
7549 useful to collect intermediate results without explicit name
7550 references, and for use with transitivity rules with more than 2
7553 * Isar/Pure: scalable support for case-analysis type proofs: new
7554 'case' language element refers to local contexts symbolically, as
7555 produced by certain proof methods; internally, case names are attached
7556 to theorems as "tags";
7558 * Isar/Pure: theory command 'hide' removes declarations from
7559 class/type/const name spaces;
7561 * Isar/Pure: theory command 'defs' supports option "(overloaded)" to
7562 indicate potential overloading;
7564 * Isar/Pure: changed syntax of local blocks from {{ }} to { };
7566 * Isar/Pure: syntax of sorts made 'inner', i.e. have to write
7567 "{a,b,c}" instead of {a,b,c};
7569 * Isar/Pure now provides its own version of intro/elim/dest
7570 attributes; useful for building new logics, but beware of confusion
7571 with the version in Provers/classical;
7573 * Isar/Pure: the local context of (non-atomic) goals is provided via
7574 case name 'antecedent';
7576 * Isar/Pure: removed obsolete 'transfer' attribute (transfer of thms
7577 to the current context is now done automatically);
7579 * Isar/Pure: theory command 'method_setup' provides a simple interface
7580 for definining proof methods in ML;
7582 * Isar/Provers: intro/elim/dest attributes changed; renamed
7583 intro/intro!/intro!! flags to intro!/intro/intro? (INCOMPATIBILITY, in
7584 most cases, one should have to change intro!! to intro? only);
7585 replaced "delrule" by "rule del";
7587 * Isar/Provers: new 'hypsubst' method, plain 'subst' method and
7588 'symmetric' attribute (the latter supercedes [RS sym]);
7590 * Isar/Provers: splitter support (via 'split' attribute and 'simp'
7591 method modifier); 'simp' method: 'only:' modifier removes loopers as
7592 well (including splits);
7594 * Isar/Provers: Simplifier and Classical methods now support all kind
7595 of modifiers used in the past, including 'cong', 'iff', etc.
7597 * Isar/Provers: added 'fastsimp' and 'clarsimp' methods (combination
7598 of Simplifier and Classical reasoner);
7600 * Isar/HOL: new proof method 'cases' and improved version of 'induct'
7601 now support named cases; major packages (inductive, datatype, primrec,
7602 recdef) support case names and properly name parameters;
7604 * Isar/HOL: new transitivity rules for substitution in inequalities --
7605 monotonicity conditions are extracted to be proven at end of
7608 * Isar/HOL: removed 'case_split' thm binding, should use 'cases' proof
7611 * Isar/HOL: removed old expand_if = split_if; theorems if_splits =
7612 split_if split_if_asm; datatype package provides theorems foo.splits =
7613 foo.split foo.split_asm for each datatype;
7615 * Isar/HOL: tuned inductive package, rename "intrs" to "intros"
7616 (potential INCOMPATIBILITY), emulation of mk_cases feature for proof
7617 scripts: new 'inductive_cases' command and 'ind_cases' method; (Note:
7618 use "(cases (simplified))" method in proper proof texts);
7620 * Isar/HOL: added global 'arith_split' attribute for 'arith' method;
7622 * Isar: names of theorems etc. may be natural numbers as well;
7624 * Isar: 'pr' command: optional arguments for goals_limit and
7625 ProofContext.prems_limit; no longer prints theory contexts, but only
7628 * Isar: diagnostic commands 'pr', 'thm', 'prop', 'term', 'typ' admit
7629 additional print modes to be specified; e.g. "pr(latex)" will print
7630 proof state according to the Isabelle LaTeX style;
7632 * Isar: improved support for emulating tactic scripts, including proof
7633 methods 'rule_tac' etc., 'cut_tac', 'thin_tac', 'subgoal_tac',
7634 'rename_tac', 'rotate_tac', 'tactic', and 'case_tac' / 'induct_tac'
7635 (for HOL datatypes);
7637 * Isar: simplified (more robust) goal selection of proof methods: 1st
7638 goal, all goals, or explicit goal specifier (tactic emulation); thus
7639 'proof method scripts' have to be in depth-first order;
7641 * Isar: tuned 'let' syntax: replaced 'as' keyword by 'and';
7643 * Isar: removed 'help' command, which hasn't been too helpful anyway;
7644 should instead use individual commands for printing items
7645 (print_commands, print_methods etc.);
7647 * Isar: added 'nothing' --- the empty list of theorems;
7652 * HOL/MicroJava: formalization of a fragment of Java, together with a
7653 corresponding virtual machine and a specification of its bytecode
7654 verifier and a lightweight bytecode verifier, including proofs of
7655 type-safety; by Gerwin Klein, Tobias Nipkow, David von Oheimb, and
7656 Cornelia Pusch (see also the homepage of project Bali at
7657 http://isabelle.in.tum.de/Bali/);
7659 * HOL/Algebra: new theory of rings and univariate polynomials, by
7662 * HOL/NumberTheory: fundamental Theorem of Arithmetic, Chinese
7663 Remainder Theorem, Fermat/Euler Theorem, Wilson's Theorem, by Thomas M
7666 * HOL/Lattice: fundamental concepts of lattice theory and order
7667 structures, including duals, properties of bounds versus algebraic
7668 laws, lattice operations versus set-theoretic ones, the Knaster-Tarski
7669 Theorem for complete lattices etc.; may also serve as a demonstration
7670 for abstract algebraic reasoning using axiomatic type classes, and
7671 mathematics-style proof in Isabelle/Isar; by Markus Wenzel;
7673 * HOL/Prolog: a (bare-bones) implementation of Lambda-Prolog, by David
7676 * HOL/IMPP: extension of IMP with local variables and mutually
7677 recursive procedures, by David von Oheimb;
7679 * HOL/Lambda: converted into new-style theory and document;
7681 * HOL/ex/Multiquote: example of multiple nested quotations and
7682 anti-quotations -- basically a generalized version of de-Bruijn
7683 representation; very useful in avoiding lifting of operations;
7685 * HOL/record: added general record equality rule to simpset; fixed
7686 select-update simplification procedure to handle extended records as
7687 well; admit "r" as field name;
7689 * HOL: 0 is now overloaded over the new sort "zero", allowing its use with
7690 other numeric types and also as the identity of groups, rings, etc.;
7692 * HOL: new axclass plus_ac0 for addition with the AC-laws and 0 as identity.
7693 Types nat and int belong to this axclass;
7695 * HOL: greatly improved simplification involving numerals of type nat, int, real:
7696 (i + #8 + j) = Suc k simplifies to #7 + (i + j) = k
7697 i*j + k + j*#3*i simplifies to #4*(i*j) + k
7698 two terms #m*u and #n*u are replaced by #(m+n)*u
7699 (where #m, #n and u can implicitly be 1; this is simproc combine_numerals)
7700 and the term/formula #m*u+x ~~ #n*u+y simplifies simplifies to #(m-n)+x ~~ y
7701 or x ~~ #(n-m)+y, where ~~ is one of = < <= or - (simproc cancel_numerals);
7703 * HOL: meson_tac is available (previously in ex/meson.ML); it is a
7704 powerful prover for predicate logic but knows nothing of clasets; see
7705 ex/mesontest.ML and ex/mesontest2.ML for example applications;
7707 * HOL: new version of "case_tac" subsumes both boolean case split and
7708 "exhaust_tac" on datatypes; INCOMPATIBILITY: exhaust_tac no longer
7709 exists, may define val exhaust_tac = case_tac for ad-hoc portability;
7711 * HOL: simplification no longer dives into case-expressions: only the
7712 selector expression is simplified, but not the remaining arms; to
7713 enable full simplification of case-expressions for datatype t, you may
7714 remove t.weak_case_cong from the simpset, either globally (Delcongs
7715 [thm"t.weak_case_cong"];) or locally (delcongs [...]).
7717 * HOL/recdef: the recursion equations generated by 'recdef' for
7718 function 'f' are now called f.simps instead of f.rules; if all
7719 termination conditions are proved automatically, these simplification
7720 rules are added to the simpset, as in primrec; rules may be named
7721 individually as well, resulting in a separate list of theorems for
7724 * HOL/While is a new theory that provides a while-combinator. It
7725 permits the definition of tail-recursive functions without the
7726 provision of a termination measure. The latter is necessary once the
7727 invariant proof rule for while is applied.
7729 * HOL: new (overloaded) notation for the set of elements below/above
7730 some element: {..u}, {..u(}, {l..}, {)l..}. See theory SetInterval.
7732 * HOL: theorems impI, allI, ballI bound as "strip";
7734 * HOL: new tactic induct_thm_tac: thm -> string -> int -> tactic
7735 induct_tac th "x1 ... xn" expects th to have a conclusion of the form
7736 P v1 ... vn and abbreviates res_inst_tac [("v1","x1"),...,("vn","xn")] th;
7738 * HOL/Real: "rabs" replaced by overloaded "abs" function;
7740 * HOL: theory Sexp now in HOL/Induct examples (it used to be part of
7741 main HOL, but was unused);
7743 * HOL: fewer consts declared as global (e.g. have to refer to
7744 "Lfp.lfp" instead of "lfp" internally; affects ML packages only);
7746 * HOL: tuned AST representation of nested pairs, avoiding bogus output
7747 in case of overlap with user translations (e.g. judgements over
7748 tuples); (note that the underlying logical represenation is still
7754 * ZF: simplification automatically cancels common terms in arithmetic
7755 expressions over nat and int;
7757 * ZF: new treatment of nat to minimize type-checking: all operators
7758 coerce their operands to a natural number using the function natify,
7759 making the algebraic laws unconditional;
7761 * ZF: as above, for int: operators coerce their operands to an integer
7762 using the function intify;
7764 * ZF: the integer library now contains many of the usual laws for the
7765 orderings, including $<=, and monotonicity laws for $+ and $*;
7767 * ZF: new example ZF/ex/NatSum to demonstrate integer arithmetic
7770 * FOL and ZF: AddIffs now available, giving theorems of the form P<->Q
7771 to the simplifier and classical reasoner simultaneously;
7776 * Provers: blast_tac now handles actual object-logic rules as
7777 assumptions; note that auto_tac uses blast_tac internally as well;
7779 * Provers: new functions rulify/rulify_no_asm: thm -> thm for turning
7780 outer -->/All/Ball into ==>/!!; qed_spec_mp now uses rulify_no_asm;
7782 * Provers: delrules now handles destruct rules as well (no longer need
7783 explicit make_elim);
7785 * Provers: Blast_tac now warns of and ignores "weak elimination rules" e.g.
7786 [| inj ?f; ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
7787 use instead the strong form,
7788 [| inj ?f; ~ ?W ==> ?f ?x = ?f ?y; ?x = ?y ==> ?W |] ==> ?W
7789 in HOL, FOL and ZF the function cla_make_elim will create such rules
7790 from destruct-rules;
7792 * Provers: Simplifier.easy_setup provides a fast path to basic
7793 Simplifier setup for new object-logics;
7795 * Pure: AST translation rules no longer require constant head on LHS;
7797 * Pure: improved name spaces: ambiguous output is qualified; support
7798 for hiding of names;
7800 * system: smart setup of canonical ML_HOME, ISABELLE_INTERFACE, and
7801 XSYMBOL_HOME; no longer need to do manual configuration in most
7804 * system: compression of ML heaps images may now be controlled via -c
7805 option of isabelle and isatool usedir (currently only observed by
7808 * system: isatool installfonts may handle X-Symbol fonts as well (very
7809 useful for remote X11);
7811 * system: provide TAGS file for Isabelle sources;
7813 * ML: infix 'OF' is a version of 'MRS' with more appropriate argument
7816 * ML: renamed flags Syntax.trace_norm_ast to Syntax.trace_ast; global
7817 timing flag supersedes proof_timing and Toplevel.trace;
7819 * ML: new combinators |>> and |>>> for incremental transformations
7820 with secondary results (e.g. certain theory extensions):
7822 * ML: PureThy.add_defs gets additional argument to indicate potential
7823 overloading (usually false);
7825 * ML: PureThy.add_thms/add_axioms/add_defs now return theorems as
7830 New in Isabelle99 (October 1999)
7831 --------------------------------
7833 *** Overview of INCOMPATIBILITIES (see below for more details) ***
7835 * HOL: The THEN and ELSE parts of conditional expressions (if P then x else y)
7836 are no longer simplified. (This allows the simplifier to unfold recursive
7837 functional programs.) To restore the old behaviour, declare
7839 Delcongs [if_weak_cong];
7841 * HOL: Removed the obsolete syntax "Compl A"; use -A for set
7844 * HOL: the predicate "inj" is now defined by translation to "inj_on";
7846 * HOL/datatype: mutual_induct_tac no longer exists --
7847 use induct_tac "x_1 ... x_n" instead of mutual_induct_tac ["x_1", ..., "x_n"]
7849 * HOL/typedef: fixed type inference for representing set; type
7850 arguments now have to occur explicitly on the rhs as type constraints;
7852 * ZF: The con_defs part of an inductive definition may no longer refer
7853 to constants declared in the same theory;
7855 * HOL, ZF: the function mk_cases, generated by the inductive
7856 definition package, has lost an argument. To simplify its result, it
7857 uses the default simpset instead of a supplied list of theorems.
7859 * HOL/List: the constructors of type list are now Nil and Cons;
7861 * Simplifier: the type of the infix ML functions
7862 setSSolver addSSolver setSolver addSolver
7863 is now simpset * solver -> simpset where `solver' is a new abstract type
7864 for packaging solvers. A solver is created via
7865 mk_solver: string -> (thm list -> int -> tactic) -> solver
7866 where the string argument is only a comment.
7871 * Provers/Arith/fast_lin_arith.ML contains a functor for creating a
7872 decision procedure for linear arithmetic. Currently it is used for
7873 types `nat', `int', and `real' in HOL (see below); it can, should and
7874 will be instantiated for other types and logics as well.
7876 * The simplifier now accepts rewrite rules with flexible heads, eg
7877 hom ?f ==> ?f(?x+?y) = ?f ?x + ?f ?y
7878 They are applied like any rule with a non-pattern lhs, i.e. by first-order
7884 * New Isabelle/Isar subsystem provides an alternative to traditional
7885 tactical theorem proving; together with the ProofGeneral/isar user
7886 interface it offers an interactive environment for developing human
7887 readable proof documents (Isar == Intelligible semi-automated
7888 reasoning); for further information see isatool doc isar-ref,
7889 src/HOL/Isar_examples and http://isabelle.in.tum.de/Isar/
7891 * improved and simplified presentation of theories: better HTML markup
7892 (including colors), graph views in several sizes; isatool usedir now
7893 provides a proper interface for user theories (via -P option); actual
7894 document preparation based on (PDF)LaTeX is available as well (for
7895 new-style theories only); see isatool doc system for more information;
7897 * native support for Proof General, both for classic Isabelle and
7900 * ML function thm_deps visualizes dependencies of theorems and lemmas,
7901 using the graph browser tool;
7903 * Isabelle manuals now also available as PDF;
7905 * theory loader rewritten from scratch (may not be fully
7906 bug-compatible); old loadpath variable has been replaced by show_path,
7907 add_path, del_path, reset_path functions; new operations such as
7908 update_thy, touch_thy, remove_thy, use/update_thy_only (see also
7911 * improved isatool install: option -k creates KDE application icon,
7912 option -p DIR installs standalone binaries;
7914 * added ML_PLATFORM setting (useful for cross-platform installations);
7915 more robust handling of platform specific ML images for SML/NJ;
7917 * the settings environment is now statically scoped, i.e. it is never
7918 created again in sub-processes invoked from isabelle, isatool, or
7921 * path element specification '~~' refers to '$ISABELLE_HOME';
7923 * in locales, the "assumes" and "defines" parts may be omitted if
7926 * new print_mode "xsymbols" for extended symbol support (e.g. genuine
7929 * new print_mode "HTML";
7931 * new flag show_tags controls display of tags of theorems (which are
7932 basically just comments that may be attached by some tools);
7934 * Isamode 2.6 requires patch to accomodate change of Isabelle font
7935 mode and goal output format:
7937 diff -r Isamode-2.6/elisp/isa-load.el Isamode/elisp/isa-load.el
7939 < (list (isa-getenv "ISABELLE") "-msymbols" logic-name)
7941 > (list (isa-getenv "ISABELLE") "-misabelle_font" "-msymbols" logic-name)
7942 diff -r Isabelle-2.6/elisp/isa-proofstate.el Isamode/elisp/isa-proofstate.el
7944 < (defconst proofstate-proofstart-regexp "^Level [0-9]+$"
7946 > (defconst proofstate-proofstart-regexp "^Level [0-9]+"
7948 * function bind_thms stores lists of theorems (cf. bind_thm);
7950 * new shorthand tactics ftac, eatac, datac, fatac;
7952 * qed (and friends) now accept "" as result name; in that case the
7953 theorem is not stored, but proper checks and presentation of the
7956 * theorem database now also indexes constants "Trueprop", "all",
7957 "==>", "=="; thus thms_containing, findI etc. may retrieve more rules;
7962 ** HOL arithmetic **
7964 * There are now decision procedures for linear arithmetic over nat and
7967 1. arith_tac copes with arbitrary formulae involving `=', `<', `<=',
7968 `+', `-', `Suc', `min', `max' and numerical constants; other subterms
7969 are treated as atomic; subformulae not involving type `nat' or `int'
7970 are ignored; quantified subformulae are ignored unless they are
7971 positive universal or negative existential. The tactic has to be
7972 invoked by hand and can be a little bit slow. In particular, the
7973 running time is exponential in the number of occurrences of `min' and
7974 `max', and `-' on `nat'.
7976 2. fast_arith_tac is a cut-down version of arith_tac: it only takes
7977 (negated) (in)equalities among the premises and the conclusion into
7978 account (i.e. no compound formulae) and does not know about `min' and
7979 `max', and `-' on `nat'. It is fast and is used automatically by the
7982 NB: At the moment, these decision procedures do not cope with mixed
7983 nat/int formulae where the two parts interact, such as `m < n ==>
7986 * HOL/Numeral provides a generic theory of numerals (encoded
7987 efficiently as bit strings); setup for types nat/int/real is in place;
7988 INCOMPATIBILITY: since numeral syntax is now polymorphic, rather than
7989 int, existing theories and proof scripts may require a few additional
7992 * integer division and remainder can now be performed on constant
7995 * many properties of integer multiplication, division and remainder
7998 * An interface to the Stanford Validity Checker (SVC) is available through the
7999 tactic svc_tac. Propositional tautologies and theorems of linear arithmetic
8000 are proved automatically. SVC must be installed separately, and its results
8001 must be TAKEN ON TRUST (Isabelle does not check the proofs, but tags any
8002 invocation of the underlying oracle). For SVC see
8003 http://verify.stanford.edu/SVC
8005 * IsaMakefile: the HOL-Real target now builds an actual image;
8010 * HOL/Real/HahnBanach: the Hahn-Banach theorem for real vector spaces
8011 (in Isabelle/Isar) -- by Gertrud Bauer;
8013 * HOL/BCV: generic model of bytecode verification, i.e. data-flow
8014 analysis for assembly languages with subtypes;
8016 * HOL/TLA (Lamport's Temporal Logic of Actions): major reorganization
8017 -- avoids syntactic ambiguities and treats state, transition, and
8018 temporal levels more uniformly; introduces INCOMPATIBILITIES due to
8019 changed syntax and (many) tactics;
8021 * HOL/inductive: Now also handles more general introduction rules such
8022 as "ALL y. (y, x) : r --> y : acc r ==> x : acc r"; monotonicity
8023 theorems are now maintained within the theory (maintained via the
8026 * HOL/datatype: Now also handles arbitrarily branching datatypes
8027 (using function types) such as
8029 datatype 'a tree = Atom 'a | Branch "nat => 'a tree"
8031 * HOL/record: record_simproc (part of the default simpset) takes care
8032 of selectors applied to updated records; record_split_tac is no longer
8033 part of the default claset; update_defs may now be removed from the
8034 simpset in many cases; COMPATIBILITY: old behavior achieved by
8036 claset_ref () := claset() addSWrapper record_split_wrapper;
8037 Delsimprocs [record_simproc]
8039 * HOL/typedef: fixed type inference for representing set; type
8040 arguments now have to occur explicitly on the rhs as type constraints;
8042 * HOL/recdef (TFL): 'congs' syntax now expects comma separated list of theorem
8043 names rather than an ML expression;
8045 * HOL/defer_recdef (TFL): like recdef but the well-founded relation can be
8046 supplied later. Program schemes can be defined, such as
8047 "While B C s = (if B s then While B C (C s) else s)"
8048 where the well-founded relation can be chosen after B and C have been given.
8050 * HOL/List: the constructors of type list are now Nil and Cons;
8051 INCOMPATIBILITY: while [] and infix # syntax is still there, of
8052 course, ML tools referring to List.list.op # etc. have to be adapted;
8054 * HOL_quantifiers flag superseded by "HOL" print mode, which is
8055 disabled by default; run isabelle with option -m HOL to get back to
8056 the original Gordon/HOL-style output;
8058 * HOL/Ord.thy: new bounded quantifier syntax (input only): ALL x<y. P,
8059 ALL x<=y. P, EX x<y. P, EX x<=y. P;
8061 * HOL basic syntax simplified (more orthogonal): all variants of
8062 All/Ex now support plain / symbolic / HOL notation; plain syntax for
8063 Eps operator is provided as well: "SOME x. P[x]";
8065 * HOL/Sum.thy: sum_case has been moved to HOL/Datatype;
8067 * HOL/Univ.thy: infix syntax <*>, <+>, <**>, <+> eliminated and made
8068 thus available for user theories;
8070 * HOLCF/IOA/Sequents: renamed 'Cons' to 'Consq' to avoid clash with
8071 HOL/List; hardly an INCOMPATIBILITY since '>>' syntax is used all the
8074 * HOL: new tactic smp_tac: int -> int -> tactic, which applies spec
8075 several times and then mp;
8080 * the notation <<...>> is now available as a notation for sequences of
8083 * the simplifier is now installed
8085 * the axiom system has been generalized (thanks to Soren Heilmann)
8087 * the classical reasoner now has a default rule database
8092 * new primrec section allows primitive recursive functions to be given
8093 directly (as in HOL) over datatypes and the natural numbers;
8095 * new tactics induct_tac and exhaust_tac for induction (or case
8096 analysis) over datatypes and the natural numbers;
8098 * the datatype declaration of type T now defines the recursor T_rec;
8100 * simplification automatically does freeness reasoning for datatype
8103 * automatic type-inference, with AddTCs command to insert new
8104 type-checking rules;
8106 * datatype introduction rules are now added as Safe Introduction rules
8109 * the syntax "if P then x else y" is now available in addition to
8113 *** Internal programming interfaces ***
8115 * tuned simplifier trace output; new flag debug_simp;
8117 * structures Vartab / Termtab (instances of TableFun) offer efficient
8118 tables indexed by indexname_ord / term_ord (compatible with aconv);
8120 * AxClass.axclass_tac lost the theory argument;
8122 * tuned current_goals_markers semantics: begin / end goal avoids
8123 printing empty lines;
8125 * removed prs and prs_fn hook, which was broken because it did not
8126 include \n in its semantics, forcing writeln to add one
8127 uncoditionally; replaced prs_fn by writeln_fn; consider std_output:
8128 string -> unit if you really want to output text without newline;
8130 * Symbol.output subject to print mode; INCOMPATIBILITY: defaults to
8131 plain output, interface builders may have to enable 'isabelle_font'
8132 mode to get Isabelle font glyphs as before;
8134 * refined token_translation interface; INCOMPATIBILITY: output length
8135 now of type real instead of int;
8137 * theory loader actions may be traced via new ThyInfo.add_hook
8138 interface (see src/Pure/Thy/thy_info.ML); example application: keep
8139 your own database of information attached to *whole* theories -- as
8140 opposed to intra-theory data slots offered via TheoryDataFun;
8142 * proper handling of dangling sort hypotheses (at last!);
8143 Thm.strip_shyps and Drule.strip_shyps_warning take care of removing
8144 extra sort hypotheses that can be witnessed from the type signature;
8145 the force_strip_shyps flag is gone, any remaining shyps are simply
8146 left in the theorem (with a warning issued by strip_shyps_warning);
8150 New in Isabelle98-1 (October 1998)
8151 ----------------------------------
8153 *** Overview of INCOMPATIBILITIES (see below for more details) ***
8155 * several changes of automated proof tools;
8157 * HOL: major changes to the inductive and datatype packages, including
8158 some minor incompatibilities of theory syntax;
8160 * HOL: renamed r^-1 to 'converse' from 'inverse'; 'inj_onto' is now
8163 * HOL: removed duplicate thms in Arith:
8164 less_imp_add_less should be replaced by trans_less_add1
8165 le_imp_add_le should be replaced by trans_le_add1
8167 * HOL: unary minus is now overloaded (new type constraints may be
8170 * HOL and ZF: unary minus for integers is now #- instead of #~. In
8171 ZF, expressions such as n#-1 must be changed to n#- 1, since #-1 is
8172 now taken as an integer constant.
8174 * Pure: ML function 'theory_of' renamed to 'theory';
8180 1. Asm_full_simp_tac is now more aggressive.
8181 1. It will sometimes reorient premises if that increases their power to
8183 2. It does no longer proceed strictly from left to right but may also
8184 rotate premises to achieve further simplification.
8185 For compatibility reasons there is now Asm_lr_simp_tac which is like the
8186 old Asm_full_simp_tac in that it does not rotate premises.
8187 2. The simplifier now knows a little bit about nat-arithmetic.
8189 * Classical reasoner: wrapper mechanism for the classical reasoner now
8190 allows for selected deletion of wrappers, by introduction of names for
8191 wrapper functionals. This implies that addbefore, addSbefore,
8192 addaltern, and addSaltern now take a pair (name, tactic) as argument,
8193 and that adding two tactics with the same name overwrites the first
8194 one (emitting a warning).
8195 type wrapper = (int -> tactic) -> (int -> tactic)
8196 setWrapper, setSWrapper, compWrapper and compSWrapper are replaced by
8197 addWrapper, addSWrapper: claset * (string * wrapper) -> claset
8198 delWrapper, delSWrapper: claset * string -> claset
8199 getWrapper is renamed to appWrappers, getSWrapper to appSWrappers;
8201 * Classical reasoner: addbefore/addSbefore now have APPEND/ORELSE
8202 semantics; addbefore now affects only the unsafe part of step_tac
8203 etc.; this affects addss/auto_tac/force_tac, so EXISTING PROOFS MAY
8204 FAIL, but proofs should be fixable easily, e.g. by replacing Auto_tac
8207 * Classical reasoner: setwrapper to setWrapper and compwrapper to
8208 compWrapper; added safe wrapper (and access functions for it);
8210 * HOL/split_all_tac is now much faster and fails if there is nothing
8211 to split. Some EXISTING PROOFS MAY REQUIRE ADAPTION because the order
8212 and the names of the automatically generated variables have changed.
8213 split_all_tac has moved within claset() from unsafe wrappers to safe
8214 wrappers, which means that !!-bound variables are split much more
8215 aggressively, and safe_tac and clarify_tac now split such variables.
8216 If this splitting is not appropriate, use delSWrapper "split_all_tac".
8217 Note: the same holds for record_split_tac, which does the job of
8218 split_all_tac for record fields.
8220 * HOL/Simplifier: Rewrite rules for case distinctions can now be added
8221 permanently to the default simpset using Addsplits just like
8222 Addsimps. They can be removed via Delsplits just like
8223 Delsimps. Lower-case versions are also available.
8225 * HOL/Simplifier: The rule split_if is now part of the default
8226 simpset. This means that the simplifier will eliminate all occurrences
8227 of if-then-else in the conclusion of a goal. To prevent this, you can
8228 either remove split_if completely from the default simpset by
8229 `Delsplits [split_if]' or remove it in a specific call of the
8230 simplifier using `... delsplits [split_if]'. You can also add/delete
8231 other case splitting rules to/from the default simpset: every datatype
8232 generates suitable rules `split_t_case' and `split_t_case_asm' (where
8233 t is the name of the datatype).
8235 * Classical reasoner / Simplifier combination: new force_tac (and
8236 derivatives Force_tac, force) combines rewriting and classical
8237 reasoning (and whatever other tools) similarly to auto_tac, but is
8238 aimed to solve the given subgoal completely.
8243 * new top-level commands `Goal' and `Goalw' that improve upon `goal'
8244 and `goalw': the theory is no longer needed as an explicit argument -
8245 the current theory context is used; assumptions are no longer returned
8246 at the ML-level unless one of them starts with ==> or !!; it is
8247 recommended to convert to these new commands using isatool fixgoal
8248 (backup your sources first!);
8250 * new top-level commands 'thm' and 'thms' for retrieving theorems from
8251 the current theory context, and 'theory' to lookup stored theories;
8253 * new theory section 'locale' for declaring constants, assumptions and
8254 definitions that have local scope;
8256 * new theory section 'nonterminals' for purely syntactic types;
8258 * new theory section 'setup' for generic ML setup functions
8259 (e.g. package initialization);
8261 * the distribution now includes Isabelle icons: see
8262 lib/logo/isabelle-{small,tiny}.xpm;
8264 * isatool install - install binaries with absolute references to
8267 * isatool logo -- create instances of the Isabelle logo (as EPS);
8269 * print mode 'emacs' reserved for Isamode;
8271 * support multiple print (ast) translations per constant name;
8273 * theorems involving oracles are now printed with a suffixed [!];
8278 * there is now a tutorial on Isabelle/HOL (do 'isatool doc tutorial');
8280 * HOL/inductive package reorganized and improved: now supports mutual
8286 oddI "n : EVEN ==> Suc n : ODD"
8287 evenI "n : ODD ==> Suc n : EVEN"
8289 new theorem list "elims" contains an elimination rule for each of the
8290 recursive sets; inductive definitions now handle disjunctive premises
8291 correctly (also ZF);
8293 INCOMPATIBILITIES: requires Inductive as an ancestor; component
8294 "mutual_induct" no longer exists - the induction rule is always
8295 contained in "induct";
8298 * HOL/datatype package re-implemented and greatly improved: now
8299 supports mutually recursive datatypes such as
8302 'a aexp = IF_THEN_ELSE ('a bexp) ('a aexp) ('a aexp)
8303 | SUM ('a aexp) ('a aexp)
8304 | DIFF ('a aexp) ('a aexp)
8307 'a bexp = LESS ('a aexp) ('a aexp)
8308 | AND ('a bexp) ('a bexp)
8309 | OR ('a bexp) ('a bexp)
8311 as well as indirectly recursive datatypes such as
8314 ('a, 'b) term = Var 'a
8315 | App 'b ((('a, 'b) term) list)
8317 The new tactic mutual_induct_tac [<var_1>, ..., <var_n>] i performs
8318 induction on mutually / indirectly recursive datatypes.
8320 Primrec equations are now stored in theory and can be accessed via
8321 <function_name>.simps.
8325 - Theories using datatypes must now have theory Datatype as an
8327 - The specific <typename>.induct_tac no longer exists - use the
8328 generic induct_tac instead.
8329 - natE has been renamed to nat.exhaust - use exhaust_tac
8330 instead of res_inst_tac ... natE. Note that the variable
8331 names in nat.exhaust differ from the names in natE, this
8332 may cause some "fragile" proofs to fail.
8333 - The theorems split_<typename>_case and split_<typename>_case_asm
8334 have been renamed to <typename>.split and <typename>.split_asm.
8335 - Since default sorts of type variables are now handled correctly,
8336 some datatype definitions may have to be annotated with explicit
8338 - Primrec definitions no longer require function name and type
8339 of recursive argument.
8341 Consider using isatool fixdatatype to adapt your theories and proof
8342 scripts to the new package (backup your sources first!).
8345 * HOL/record package: considerably improved implementation; now
8346 includes concrete syntax for record types, terms, updates; theorems
8347 for surjective pairing and splitting !!-bound record variables; proof
8348 support is as follows:
8350 1) standard conversions (selectors or updates applied to record
8351 constructor terms) are part of the standard simpset;
8353 2) inject equations of the form ((x, y) = (x', y')) == x=x' & y=y' are
8354 made part of standard simpset and claset via addIffs;
8356 3) a tactic for record field splitting (record_split_tac) is part of
8357 the standard claset (addSWrapper);
8359 To get a better idea about these rules you may retrieve them via
8360 something like 'thms "foo.simps"' or 'thms "foo.iffs"', where "foo" is
8361 the name of your record type.
8363 The split tactic 3) conceptually simplifies by the following rule:
8365 "(!!x. PROP ?P x) == (!!a b. PROP ?P (a, b))"
8367 Thus any record variable that is bound by meta-all will automatically
8368 blow up into some record constructor term, consequently the
8369 simplifications of 1), 2) apply. Thus force_tac, auto_tac etc. shall
8370 solve record problems automatically.
8373 * reorganized the main HOL image: HOL/Integ and String loaded by
8374 default; theory Main includes everything;
8376 * automatic simplification of integer sums and comparisons, using cancellation;
8378 * added option_map_eq_Some and not_Some_eq to the default simpset and claset;
8380 * added disj_not1 = "(~P | Q) = (P --> Q)" to the default simpset;
8382 * many new identities for unions, intersections, set difference, etc.;
8384 * expand_if, expand_split, expand_sum_case and expand_nat_case are now
8385 called split_if, split_split, split_sum_case and split_nat_case (to go
8386 with add/delsplits);
8388 * HOL/Prod introduces simplification procedure unit_eq_proc rewriting
8389 (?x::unit) = (); this is made part of the default simpset, which COULD
8390 MAKE EXISTING PROOFS FAIL under rare circumstances (consider
8391 'Delsimprocs [unit_eq_proc];' as last resort); also note that
8392 unit_abs_eta_conv is added in order to counter the effect of
8393 unit_eq_proc on (%u::unit. f u), replacing it by f rather than by
8396 * HOL/Fun INCOMPATIBILITY: `inj_onto' is now called `inj_on' (which
8399 * HOL/Set INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
8400 It and 'sym RS equals0D' are now in the default claset, giving automatic
8401 disjointness reasoning but breaking a few old proofs.
8403 * HOL/Relation INCOMPATIBILITY: renamed the relational operator r^-1
8404 to 'converse' from 'inverse' (for compatibility with ZF and some
8407 * HOL/recdef can now declare non-recursive functions, with {} supplied as
8408 the well-founded relation;
8410 * HOL/Set INCOMPATIBILITY: the complement of set A is now written -A instead of
8411 Compl A. The "Compl" syntax remains available as input syntax for this
8414 * HOL/Update: new theory of function updates:
8415 f(a:=b) == %x. if x=a then b else f x
8416 may also be iterated as in f(a:=b,c:=d,...);
8418 * HOL/Vimage: new theory for inverse image of a function, syntax f-``B;
8421 - new function list_update written xs[i:=v] that updates the i-th
8422 list position. May also be iterated as in xs[i:=a,j:=b,...].
8423 - new function `upt' written [i..j(] which generates the list
8424 [i,i+1,...,j-1], i.e. the upper bound is excluded. To include the upper
8425 bound write [i..j], which is a shorthand for [i..j+1(].
8426 - new lexicographic orderings and corresponding wellfoundedness theorems.
8429 - removed 'pred' (predecessor) function;
8430 - generalized some theorems about n-1;
8431 - many new laws about "div" and "mod";
8432 - new laws about greatest common divisors (see theory ex/Primes);
8434 * HOL/Relation: renamed the relational operator r^-1 "converse"
8435 instead of "inverse";
8437 * HOL/Induct/Multiset: a theory of multisets, including the wellfoundedness
8438 of the multiset ordering;
8440 * directory HOL/Real: a construction of the reals using Dedekind cuts
8441 (not included by default);
8443 * directory HOL/UNITY: Chandy and Misra's UNITY formalism;
8445 * directory HOL/Hoare: a new version of Hoare logic which permits many-sorted
8446 programs, i.e. different program variables may have different types.
8448 * calling (stac rew i) now fails if "rew" has no effect on the goal
8449 [previously, this check worked only if the rewrite rule was unconditional]
8450 Now rew can involve either definitions or equalities (either == or =).
8455 * theory Main includes everything; INCOMPATIBILITY: theory ZF.thy contains
8456 only the theorems proved on ZF.ML;
8458 * ZF INCOMPATIBILITY: rule `equals0D' is now a well-formed destruct rule;
8459 It and 'sym RS equals0D' are now in the default claset, giving automatic
8460 disjointness reasoning but breaking a few old proofs.
8462 * ZF/Update: new theory of function updates
8463 with default rewrite rule f(x:=y) ` z = if(z=x, y, f`z)
8464 may also be iterated as in f(a:=b,c:=d,...);
8466 * in let x=t in u(x), neither t nor u(x) has to be an FOL term.
8468 * calling (stac rew i) now fails if "rew" has no effect on the goal
8469 [previously, this check worked only if the rewrite rule was unconditional]
8470 Now rew can involve either definitions or equalities (either == or =).
8472 * case_tac provided for compatibility with HOL
8473 (like the old excluded_middle_tac, but with subgoals swapped)
8476 *** Internal programming interfaces ***
8478 * Pure: several new basic modules made available for general use, see
8479 also src/Pure/README;
8481 * improved the theory data mechanism to support encapsulation (data
8482 kind name replaced by private Object.kind, acting as authorization
8483 key); new type-safe user interface via functor TheoryDataFun; generic
8484 print_data function becomes basically useless;
8486 * removed global_names compatibility flag -- all theory declarations
8487 are qualified by default;
8489 * module Pure/Syntax now offers quote / antiquote translation
8490 functions (useful for Hoare logic etc. with implicit dependencies);
8491 see HOL/ex/Antiquote for an example use;
8493 * Simplifier now offers conversions (asm_)(full_)rewrite: simpset ->
8496 * new tactical CHANGED_GOAL for checking that a tactic modifies a
8499 * Display.print_goals function moved to Locale.print_goals;
8501 * standard print function for goals supports current_goals_markers
8502 variable for marking begin of proof, end of proof, start of goal; the
8503 default is ("", "", ""); setting current_goals_markers := ("<proof>",
8504 "</proof>", "<goal>") causes SGML like tagged proof state printing,
8509 New in Isabelle98 (January 1998)
8510 --------------------------------
8512 *** Overview of INCOMPATIBILITIES (see below for more details) ***
8514 * changed lexical syntax of terms / types: dots made part of long
8515 identifiers, e.g. "%x.x" no longer possible, should be "%x. x";
8517 * simpset (and claset) reference variable replaced by functions
8518 simpset / simpset_ref;
8520 * no longer supports theory aliases (via merge) and non-trivial
8521 implicit merge of thms' signatures;
8523 * most internal names of constants changed due to qualified names;
8525 * changed Pure/Sequence interface (see Pure/seq.ML);
8528 *** General Changes ***
8530 * hierachically structured name spaces (for consts, types, axms, thms
8531 etc.); new lexical class 'longid' (e.g. Foo.bar.x) may render much of
8532 old input syntactically incorrect (e.g. "%x.x"); COMPATIBILITY:
8533 isatool fixdots ensures space after dots (e.g. "%x. x"); set
8534 long_names for fully qualified output names; NOTE: ML programs
8535 (special tactics, packages etc.) referring to internal names may have
8536 to be adapted to cope with fully qualified names; in case of severe
8537 backward campatibility problems try setting 'global_names' at compile
8538 time to have enrything declared within a flat name space; one may also
8539 fine tune name declarations in theories via the 'global' and 'local'
8542 * reimplemented the implicit simpset and claset using the new anytype
8543 data filed in signatures; references simpset:simpset ref etc. are
8544 replaced by functions simpset:unit->simpset and
8545 simpset_ref:unit->simpset ref; COMPATIBILITY: use isatool fixclasimp
8546 to patch your ML files accordingly;
8548 * HTML output now includes theory graph data for display with Java
8549 applet or isatool browser; data generated automatically via isatool
8550 usedir (see -i option, ISABELLE_USEDIR_OPTIONS);
8552 * defs may now be conditional; improved rewrite_goals_tac to handle
8553 conditional equations;
8555 * defs now admits additional type arguments, using TYPE('a) syntax;
8557 * theory aliases via merge (e.g. M=A+B+C) no longer supported, always
8558 creates a new theory node; implicit merge of thms' signatures is
8559 restricted to 'trivial' ones; COMPATIBILITY: one may have to use
8560 transfer:theory->thm->thm in (rare) cases;
8562 * improved handling of draft signatures / theories; draft thms (and
8563 ctyps, cterms) are automatically promoted to real ones;
8565 * slightly changed interfaces for oracles: admit many per theory, named
8566 (e.g. oracle foo = mlfun), additional name argument for invoke_oracle;
8568 * print_goals: optional output of const types (set show_consts and
8571 * improved output of warnings (###) and errors (***);
8573 * subgoal_tac displays a warning if the new subgoal has type variables;
8575 * removed old README and Makefiles;
8577 * replaced print_goals_ref hook by print_current_goals_fn and result_error_fn;
8579 * removed obsolete init_pps and init_database;
8581 * deleted the obsolete tactical STATE, which was declared by
8582 fun STATE tacfun st = tacfun st st;
8584 * cd and use now support path variables, e.g. $ISABELLE_HOME, or ~
8585 (which abbreviates $HOME);
8587 * changed Pure/Sequence interface (see Pure/seq.ML); COMPATIBILITY:
8588 use isatool fixseq to adapt your ML programs (this works for fully
8589 qualified references to the Sequence structure only!);
8591 * use_thy no longer requires writable current directory; it always
8592 reloads .ML *and* .thy file, if either one is out of date;
8595 *** Classical Reasoner ***
8597 * Clarify_tac, clarify_tac, clarify_step_tac, Clarify_step_tac: new
8598 tactics that use classical reasoning to simplify a subgoal without
8599 splitting it into several subgoals;
8601 * Safe_tac: like safe_tac but uses the default claset;
8606 * added simplification meta rules:
8607 (asm_)(full_)simplify: simpset -> thm -> thm;
8609 * simplifier.ML no longer part of Pure -- has to be loaded by object
8612 * added prems argument to simplification procedures;
8614 * HOL, FOL, ZF: added infix function `addsplits':
8615 instead of `<simpset> setloop (split_tac <thms>)'
8616 you can simply write `<simpset> addsplits <thms>'
8621 * TYPE('a) syntax for type reflection terms;
8623 * no longer handles consts with name "" -- declare as 'syntax' instead;
8625 * pretty printer: changed order of mixfix annotation preference (again!);
8627 * Pure: fixed idt/idts vs. pttrn/pttrns syntactic categories;
8632 * HOL: there is a new splitter `split_asm_tac' that can be used e.g.
8633 with `addloop' of the simplifier to faciliate case splitting in premises.
8635 * HOL/TLA: Stephan Merz's formalization of Lamport's Temporal Logic of Actions;
8637 * HOL/Auth: new protocol proofs including some for the Internet
8640 * HOL/Map: new theory of `maps' a la VDM;
8642 * HOL/simplifier: simplification procedures nat_cancel_sums for
8643 cancelling out common nat summands from =, <, <= (in)equalities, or
8644 differences; simplification procedures nat_cancel_factor for
8645 cancelling common factor from =, <, <= (in)equalities over natural
8646 sums; nat_cancel contains both kinds of procedures, it is installed by
8647 default in Arith.thy -- this COULD MAKE EXISTING PROOFS FAIL;
8649 * HOL/simplifier: terms of the form
8650 `? x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x)' (or t=x)
8652 `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t)',
8653 and those of the form
8654 `! x. P1(x) & ... & Pn(x) & x=t & Q1(x) & ... Qn(x) --> R(x)' (or t=x)
8656 `P1(t) & ... & Pn(t) & Q1(t) & ... Qn(t) --> R(t)',
8659 Each datatype `t' now comes with a theorem `split_t_case' of the form
8661 P(t_case f1 ... fn x) =
8662 ( (!y1 ... ym1. x = C1 y1 ... ym1 --> P(f1 y1 ... ym1)) &
8664 (!y1 ... ymn. x = Cn y1 ... ymn --> P(f1 y1 ... ymn))
8667 and a theorem `split_t_case_asm' of the form
8669 P(t_case f1 ... fn x) =
8670 ~( (? y1 ... ym1. x = C1 y1 ... ym1 & ~P(f1 y1 ... ym1)) |
8672 (? y1 ... ymn. x = Cn y1 ... ymn & ~P(f1 y1 ... ymn))
8674 which can be added to a simpset via `addsplits'. The existing theorems
8675 expand_list_case and expand_option_case have been renamed to
8676 split_list_case and split_option_case.
8679 - `pred n' is automatically converted to `n-1'.
8680 Users are strongly encouraged not to use `pred' any longer,
8681 because it will disappear altogether at some point.
8682 - Users are strongly encouraged to write "0 < n" rather than
8683 "n ~= 0". Theorems and proof tools have been modified towards this
8687 the function "set_of_list" has been renamed "set" (and its theorems too);
8688 the function "nth" now takes its arguments in the reverse order and
8689 has acquired the infix notation "!" as in "xs!n".
8691 * HOL/Set: UNIV is now a constant and is no longer translated to Compl{};
8693 * HOL/Set: The operator (UN x.B x) now abbreviates (UN x:UNIV. B x) and its
8694 specialist theorems (like UN1_I) are gone. Similarly for (INT x.B x);
8696 * HOL/record: extensible records with schematic structural subtyping
8697 (single inheritance); EXPERIMENTAL version demonstrating the encoding,
8698 still lacks various theorems and concrete record syntax;
8703 * removed "axioms" and "generated by" sections;
8705 * replaced "ops" section by extended "consts" section, which is capable of
8706 handling the continuous function space "->" directly;
8709 . proves theorems immediately and stores them in the theory,
8710 . creates hierachical name space,
8711 . now uses normal mixfix annotations (instead of cinfix...),
8712 . minor changes to some names and values (for consistency),
8713 . e.g. cases -> casedist, dists_eq -> dist_eqs, [take_lemma] -> take_lemmas,
8714 . separator between mutual domain defs: changed "," to "and",
8715 . improved handling of sort constraints; now they have to
8716 appear on the left-hand side of the equations only;
8718 * fixed LAM <x,y,zs>.b syntax;
8720 * added extended adm_tac to simplifier in HOLCF -- can now discharge
8721 adm (%x. P (t x)), where P is chainfinite and t continuous;
8726 * FOL: there is a new splitter `split_asm_tac' that can be used e.g.
8727 with `addloop' of the simplifier to faciliate case splitting in premises.
8729 * qed_spec_mp, qed_goal_spec_mp, qed_goalw_spec_mp are available, as
8730 in HOL, they strip ALL and --> from proved theorems;
8734 New in Isabelle94-8 (May 1997)
8735 ------------------------------
8737 *** General Changes ***
8739 * new utilities to build / run / maintain Isabelle etc. (in parts
8740 still somewhat experimental); old Makefiles etc. still functional;
8742 * new 'Isabelle System Manual';
8744 * INSTALL text, together with ./configure and ./build scripts;
8746 * reimplemented type inference for greater efficiency, better error
8747 messages and clean internal interface;
8749 * prlim command for dealing with lots of subgoals (an easier way of
8750 setting goals_limit);
8755 * supports alternative (named) syntax tables (parser and pretty
8756 printer); internal interface is provided by add_modesyntax(_i);
8758 * Pure, FOL, ZF, HOL, HOLCF now support symbolic input and output; to
8759 be used in conjunction with the Isabelle symbol font; uses the
8760 "symbols" syntax table;
8762 * added token_translation interface (may translate name tokens in
8763 arbitrary ways, dependent on their type (free, bound, tfree, ...) and
8764 the current print_mode); IMPORTANT: user print translation functions
8765 are responsible for marking newly introduced bounds
8766 (Syntax.mark_boundT);
8768 * token translations for modes "xterm" and "xterm_color" that display
8769 names in bold, underline etc. or colors (which requires a color
8772 * infixes may now be declared with names independent of their syntax;
8774 * added typed_print_translation (like print_translation, but may
8775 access type of constant);
8778 *** Classical Reasoner ***
8780 Blast_tac: a new tactic! It is often more powerful than fast_tac, but has
8781 some limitations. Blast_tac...
8782 + ignores addss, addbefore, addafter; this restriction is intrinsic
8783 + ignores elimination rules that don't have the correct format
8784 (the conclusion MUST be a formula variable)
8785 + ignores types, which can make HOL proofs fail
8786 + rules must not require higher-order unification, e.g. apply_type in ZF
8787 [message "Function Var's argument not a bound variable" relates to this]
8788 + its proof strategy is more general but can actually be slower
8790 * substitution with equality assumptions no longer permutes other
8793 * minor changes in semantics of addafter (now called addaltern); renamed
8794 setwrapper to setWrapper and compwrapper to compWrapper; added safe wrapper
8795 (and access functions for it);
8797 * improved combination of classical reasoner and simplifier:
8798 + functions for handling clasimpsets
8799 + improvement of addss: now the simplifier is called _after_ the
8801 + safe variant of addss called addSss: uses safe simplifications
8802 _during_ the safe steps. It is more complete as it allows multiple
8803 instantiations of unknowns (e.g. with slow_tac).
8807 * added interface for simplification procedures (functions that
8808 produce *proven* rewrite rules on the fly, depending on current
8811 * ordering on terms as parameter (used for ordered rewriting);
8813 * new functions delcongs, deleqcongs, and Delcongs. richer rep_ss;
8815 * the solver is now split into a safe and an unsafe part.
8816 This should be invisible for the normal user, except that the
8817 functions setsolver and addsolver have been renamed to setSolver and
8818 addSolver; added safe_asm_full_simp_tac;
8823 * a generic induction tactic `induct_tac' which works for all datatypes and
8824 also for type `nat';
8826 * a generic case distinction tactic `exhaust_tac' which works for all
8827 datatypes and also for type `nat';
8829 * each datatype comes with a function `size';
8831 * patterns in case expressions allow tuple patterns as arguments to
8832 constructors, for example `case x of [] => ... | (x,y,z)#ps => ...';
8834 * primrec now also works with type nat;
8836 * recdef: a new declaration form, allows general recursive functions to be
8837 defined in theory files. See HOL/ex/Fib, HOL/ex/Primes, HOL/Subst/Unify.
8839 * the constant for negation has been renamed from "not" to "Not" to
8840 harmonize with FOL, ZF, LK, etc.;
8842 * HOL/ex/LFilter theory of a corecursive "filter" functional for
8845 * HOL/Modelcheck demonstrates invocation of model checker oracle;
8847 * HOL/ex/Ring.thy declares cring_simp, which solves equational
8848 problems in commutative rings, using axiomatic type classes for + and *;
8850 * more examples in HOL/MiniML and HOL/Auth;
8852 * more default rewrite rules for quantifiers, union/intersection;
8854 * a new constant `arbitrary == @x.False';
8856 * HOLCF/IOA replaces old HOL/IOA;
8858 * HOLCF changes: derived all rules and arities
8859 + axiomatic type classes instead of classes
8860 + typedef instead of faking type definitions
8861 + eliminated the internal constants less_fun, less_cfun, UU_fun, UU_cfun etc.
8862 + new axclasses cpo, chfin, flat with flat < chfin < pcpo < cpo < po
8863 + eliminated the types void, one, tr
8864 + use unit lift and bool lift (with translations) instead of one and tr
8865 + eliminated blift from Lift3.thy (use Def instead of blift)
8866 all eliminated rules are derived as theorems --> no visible changes ;
8871 * ZF now has Fast_tac, Simp_tac and Auto_tac. Union_iff is a now a default
8872 rewrite rule; this may affect some proofs. eq_cs is gone but can be put back
8873 as ZF_cs addSIs [equalityI];
8877 New in Isabelle94-7 (November 96)
8878 ---------------------------------
8880 * allowing negative levels (as offsets) in prlev and choplev;
8882 * super-linear speedup for large simplifications;
8884 * FOL, ZF and HOL now use miniscoping: rewriting pushes
8885 quantifications in as far as possible (COULD MAKE EXISTING PROOFS
8886 FAIL); can suppress it using the command Delsimps (ex_simps @
8887 all_simps); De Morgan laws are also now included, by default;
8889 * improved printing of ==> : ~:
8891 * new object-logic "Sequents" adds linear logic, while replacing LK
8892 and Modal (thanks to Sara Kalvala);
8894 * HOL/Auth: correctness proofs for authentication protocols;
8896 * HOL: new auto_tac combines rewriting and classical reasoning (many
8897 examples on HOL/Auth);
8899 * HOL: new command AddIffs for declaring theorems of the form P=Q to
8900 the rewriter and classical reasoner simultaneously;
8902 * function uresult no longer returns theorems in "standard" format;
8903 regain previous version by: val uresult = standard o uresult;
8910 * oracles -- these establish an interface between Isabelle and trusted
8911 external reasoners, which may deliver results as theorems;
8913 * proof objects (in particular record all uses of oracles);
8915 * Simp_tac, Fast_tac, etc. that refer to implicit simpset / claset;
8917 * "constdefs" section in theory files;
8919 * "primrec" section (HOL) no longer requires names;
8921 * internal type "tactic" now simply "thm -> thm Sequence.seq";
8928 * reduced space requirements;
8930 * automatic HTML generation from theories;
8932 * theory files no longer require "..." (quotes) around most types;
8934 * new examples, including two proofs of the Church-Rosser theorem;
8936 * non-curried (1994) version of HOL is no longer distributed;
8943 * greatly reduced space requirements;
8945 * theory files (.thy) no longer require \...\ escapes at line breaks;
8947 * searchable theorem database (see the section "Retrieving theorems" on
8948 page 8 of the Reference Manual);
8950 * new examples, including Grabczewski's monumental case study of the
8953 * The previous version of HOL renamed to Old_HOL;
8955 * The new version of HOL (previously called CHOL) uses a curried syntax
8956 for functions. Application looks like f a b instead of f(a,b);
8958 * Mutually recursive inductive definitions finally work in HOL;
8960 * In ZF, pattern-matching on tuples is now available in all abstractions and
8961 translates to the operator "split";
8968 * new infix operator, addss, allowing the classical reasoner to
8969 perform simplification at each step of its search. Example:
8970 fast_tac (cs addss ss)
8972 * a new logic, CHOL, the same as HOL, but with a curried syntax
8973 for functions. Application looks like f a b instead of f(a,b). Also pairs
8974 look like (a,b) instead of <a,b>;
8976 * PLEASE NOTE: CHOL will eventually replace HOL!
8978 * In CHOL, pattern-matching on tuples is now available in all abstractions.
8979 It translates to the operator "split". A new theory of integers is available;
8981 * In ZF, integer numerals now denote two's-complement binary integers.
8982 Arithmetic operations can be performed by rewriting. See ZF/ex/Bin.ML;
8984 * Many new examples: I/O automata, Church-Rosser theorem, equivalents
8985 of the Axiom of Choice;
8992 * Significantly faster resolution;
8994 * the different sections in a .thy file can now be mixed and repeated
8997 * Database of theorems for FOL, HOL and ZF. New
8998 commands including qed, qed_goal and bind_thm store theorems in the database.
9000 * Simple database queries: return a named theorem (get_thm) or all theorems of
9001 a given theory (thms_of), or find out what theory a theorem was proved in
9004 * Bugs fixed in the inductive definition and datatype packages;
9006 * The classical reasoner provides deepen_tac and depth_tac, making FOL_dup_cs
9007 and HOL_dup_cs obsolete;
9009 * Syntactic ambiguities caused by the new treatment of syntax in Isabelle94-1
9012 * Simpler definition of function space in ZF;
9014 * new results about cardinal and ordinal arithmetic in ZF;
9016 * 'subtype' facility in HOL for introducing new types as subsets of existing
9019 :mode=text:wrap=hard:maxLineLen=72: