author | wenzelm |
Sat, 11 Jun 2005 22:15:58 +0200 | |
changeset 16373 | 9d020423093b |
parent 16251 | 121dc80d120a |
child 16456 | 451f1c46d4ca |
permissions | -rw-r--r-- |
5363 | 1 |
Isabelle NEWS -- history user-relevant changes |
2 |
============================================== |
|
2553 | 3 |
|
14655
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
4 |
New in this Isabelle release |
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
5 |
---------------------------- |
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
6 |
|
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
7 |
*** General *** |
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
8 |
|
15130 | 9 |
* Theory headers: the new header syntax for Isar theories is |
10 |
||
11 |
theory <name> |
|
16234 | 12 |
imports <theory1> ... <theoryN> |
13 |
uses <file1> ... <fileM> |
|
15130 | 14 |
begin |
15 |
||
16234 | 16 |
where the 'uses' part is optional. The previous syntax |
17 |
||
18 |
theory <name> = <theory1> + ... + <theoryN>: |
|
19 |
||
20 |
will disappear in the next release. Note that there is no change in |
|
21 |
ancient non-Isar theories. |
|
15130 | 22 |
|
15475
fdf9434b04ea
- Proofs are now hidden by default when generating documents
berghofe
parents:
15454
diff
changeset
|
23 |
* Theory loader: parent theories can now also be referred to via |
16234 | 24 |
relative and absolute paths. |
25 |
||
26 |
* Improved version of thms_containing searches for a list of criteria |
|
27 |
instead of a list of constants. Known criteria are: intro, elim, dest, |
|
28 |
name:string, simp:term, and any term. Criteria can be preceded by '-' |
|
29 |
to select theorems that do not match. Intro, elim, dest select |
|
30 |
theorems that match the current goal, name:s selects theorems whose |
|
31 |
fully qualified name contain s, and simp:term selects all |
|
32 |
simplification rules whose lhs match term. Any other term is |
|
33 |
interpreted as pattern and selects all theorems matching the |
|
34 |
pattern. Available in ProofGeneral under 'ProofGeneral -> Find |
|
35 |
Theorems' or C-c C-f. Example: |
|
36 |
||
37 |
C-c C-f (100) "(_::nat) + _ + _" intro -name:"HOL." |
|
38 |
||
39 |
prints the last 100 theorems matching the pattern "(_::nat) + _ + _", |
|
40 |
matching the current goal as introduction rule and not having "HOL." |
|
41 |
in their name (i.e. not being defined in theory HOL). |
|
16013
3010430d894d
removed find_rewrites (superceded by improved thms_containing);
wenzelm
parents:
16000
diff
changeset
|
42 |
|
15703 | 43 |
|
44 |
*** Document preparation *** |
|
45 |
||
16234 | 46 |
* Commands 'display_drafts' and 'print_drafts' perform simple output |
47 |
of raw sources. Only those symbols that do not require additional |
|
48 |
LaTeX packages (depending on comments in isabellesym.sty) are |
|
49 |
displayed properly, everything else is left verbatim. isatool display |
|
50 |
and isatool print are used as front ends (these are subject to the |
|
51 |
DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively). |
|
52 |
||
53 |
* There is now a flag to control hiding of proofs and some other |
|
54 |
commands (such as 'ML' or 'parse/print_translation') in document |
|
55 |
output. Hiding is enabled by default, and can be disabled by the |
|
56 |
option '-H false' of isatool usedir or by resetting the reference |
|
57 |
variable IsarOutput.hide_commands in ML. Additional commands to be |
|
58 |
hidden may be declared using IsarOutput.add_hidden_commands. |
|
59 |
||
15979 | 60 |
* Several new antiquotation: |
61 |
||
62 |
@{term_type term} prints a term with its type annotated; |
|
63 |
||
64 |
@{typeof term} prints the type of a term; |
|
65 |
||
16234 | 66 |
@{const const} is the same as @{term const}, but checks that the |
67 |
argument is a known logical constant; |
|
15979 | 68 |
|
69 |
@{term_style style term} and @{thm_style style thm} print a term or |
|
16234 | 70 |
theorem applying a "style" to it |
71 |
||
72 |
Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of |
|
73 |
definitions, equations, inequations etc., 'concl' printing only the |
|
74 |
conclusion of a meta-logical statement theorem, and 'prem1' .. 'prem9' |
|
75 |
to print the specified premise. TermStyle.add_style provides an ML |
|
76 |
interface for introducing further styles. See also the "LaTeX Sugar" |
|
77 |
document practical applications. |
|
78 |
||
79 |
||
80 |
*** Pure *** |
|
81 |
||
82 |
* Considerably improved version of 'constdefs' command. Now performs |
|
83 |
automatic type-inference of declared constants; additional support for |
|
84 |
local structure declarations (cf. locales and HOL records), see also |
|
85 |
isar-ref manual. Potential INCOMPATIBILITY: need to observe strictly |
|
86 |
sequential dependencies of definitions within a single 'constdefs' |
|
87 |
section; moreover, the declared name needs to be an identifier. If |
|
88 |
all fails, consider to fall back on 'consts' and 'defs' separately. |
|
89 |
||
90 |
* Improved indexed syntax and implicit structures. First of all, |
|
91 |
indexed syntax provides a notational device for subscripted |
|
92 |
application, using the new syntax \<^bsub>term\<^esub> for arbitrary |
|
93 |
expressions. Secondly, in a local context with structure |
|
94 |
declarations, number indexes \<^sub>n or the empty index (default |
|
95 |
number 1) refer to a certain fixed variable implicitly; option |
|
96 |
show_structs controls printing of implicit structures. Typical |
|
97 |
applications of these concepts involve record types and locales. |
|
98 |
||
99 |
* New command 'no_syntax' removes grammar declarations (and |
|
100 |
translations) resulting from the given syntax specification, which is |
|
101 |
interpreted in the same manner as for the 'syntax' command. |
|
102 |
||
103 |
* 'Advanced' translation functions (parse_translation etc.) may depend |
|
104 |
on the signature of the theory context being presently used for |
|
105 |
parsing/printing, see also isar-ref manual. |
|
106 |
||
107 |
* Improved internal renaming of symbolic identifiers -- attach primes |
|
108 |
instead of base 26 numbers. |
|
109 |
||
110 |
* New flag show_question_marks controls printing of leading question |
|
111 |
marks in schematic variable names. |
|
112 |
||
113 |
* In schematic variable names, *any* symbol following \<^isub> or |
|
114 |
\<^isup> is now treated as part of the base name. For example, the |
|
115 |
following works without printing of awkward ".0" indexes: |
|
116 |
||
117 |
lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1" |
|
118 |
by simp |
|
119 |
||
120 |
* Inner syntax includes (*(*nested*) comments*). |
|
121 |
||
122 |
* Pretty pinter now supports unbreakable blocks, specified in mixfix |
|
123 |
annotations as "(00...)". |
|
124 |
||
125 |
* Clear separation of logical types and nonterminals, where the latter |
|
126 |
may only occur in 'syntax' specifications or type abbreviations. |
|
127 |
Before that distinction was only partially implemented via type class |
|
128 |
"logic" vs. "{}". Potential INCOMPATIBILITY in rare cases of improper |
|
129 |
use of 'types'/'consts' instead of 'nonterminals'/'syntax'. Some very |
|
130 |
exotic syntax specifications may require further adaption |
|
131 |
(e.g. Cube/Base.thy). |
|
132 |
||
133 |
* Removed obsolete type class "logic", use the top sort {} instead. |
|
134 |
Note that non-logical types should be declared as 'nonterminals' |
|
135 |
rather than 'types'. INCOMPATIBILITY for new object-logic |
|
136 |
specifications. |
|
137 |
||
138 |
* Simplifier: can now control the depth to which conditional rewriting |
|
139 |
is traced via the PG menu Isabelle -> Settings -> Trace Simp Depth |
|
140 |
Limit. |
|
141 |
||
142 |
* Simplifier: simplification procedures may now take the current |
|
143 |
simpset into account (cf. Simplifier.simproc(_i) / mk_simproc |
|
144 |
interface), which is very useful for calling the Simplifier |
|
145 |
recursively. Minor INCOMPATIBILITY: the 'prems' argument of simprocs |
|
146 |
is gone -- use prems_of_ss on the simpset instead. Moreover, the |
|
147 |
low-level mk_simproc no longer applies Logic.varify internally, to |
|
148 |
allow for use in a context of fixed variables. |
|
149 |
||
150 |
* thin_tac now works even if the assumption being deleted contains !! |
|
151 |
or ==>. More generally, erule now works even if the major premise of |
|
152 |
the elimination rule contains !! or ==>. |
|
153 |
||
154 |
* Reorganized bootstrapping of the Pure theories; CPure is now derived |
|
155 |
from Pure, which contains all common declarations already. Both |
|
156 |
theories are defined via plain Isabelle/Isar .thy files. |
|
157 |
INCOMPATIBILITY: elements of CPure (such as the CPure.intro / |
|
158 |
CPure.elim / CPure.dest attributes) now appear in the Pure name space; |
|
159 |
use isatool fixcpure to adapt your theory and ML sources. |
|
160 |
||
161 |
* New syntax 'name(i-j, i-, i, ...)' for referring to specific |
|
162 |
selections of theorems in named facts via index ranges. |
|
163 |
||
164 |
||
165 |
*** Locales *** |
|
166 |
||
167 |
* New commands for the interpretation of locale expressions in |
|
168 |
theories ('interpretation') and proof contexts ('interpret'). These |
|
169 |
take an instantiation of the locale parameters and compute proof |
|
170 |
obligations from the instantiated specification. After the |
|
171 |
obligations have been discharged, the instantiated theorems of the |
|
172 |
locale are added to the theory or proof context. Interpretation is |
|
173 |
smart in that already active interpretations do not occur in proof |
|
174 |
obligations, neither are instantiated theorems stored in duplicate. |
|
175 |
Use print_interps to inspect active interpretations of a particular |
|
176 |
locale. For details, see the Isar Reference manual. |
|
177 |
||
178 |
INCOMPATIBILITY: former 'instantiate' has been withdrawn, use |
|
179 |
'interpret' instead. |
|
180 |
||
181 |
* Proper static binding of attribute syntax -- i.e. types / terms / |
|
182 |
facts mentioned as arguments are always those of the locale definition |
|
183 |
context, independently of the context of later invocations. Moreover, |
|
184 |
locale operations (renaming and type / term instantiation) are applied |
|
185 |
to attribute arguments as expected. |
|
186 |
||
187 |
INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of |
|
188 |
actual attributes; rare situations may require Attrib.attribute to |
|
189 |
embed those attributes into Attrib.src that lack concrete syntax. |
|
190 |
Attribute implementations need to cooperate properly with the static |
|
191 |
binding mechanism. Basic parsers Args.XXX_typ/term/prop and |
|
192 |
Attrib.XXX_thm etc. already do the right thing without further |
|
193 |
intervention. Only unusual applications -- such as "where" or "of" |
|
194 |
(cf. src/Pure/Isar/attrib.ML), which process arguments depending both |
|
195 |
on the context and the facts involved -- may have to assign parsed |
|
196 |
values to argument tokens explicitly. |
|
197 |
||
198 |
* New context element "constrains" adds type constraints to parameters -- |
|
199 |
there is no logical significance. |
|
200 |
||
201 |
* Context expressions: renaming parameters permits syntax |
|
202 |
redeclaration as well. |
|
203 |
||
204 |
* Locale definition: 'includes' now disallowed. |
|
205 |
||
206 |
* Changed parameter management in theorem generation for long goal |
|
207 |
statements with 'includes'. INCOMPATIBILITY: produces a different |
|
208 |
theorem statement in rare situations. |
|
209 |
||
210 |
* Attributes 'induct' and 'cases': type or set names may now be |
|
211 |
locally fixed variables as well. |
|
15703 | 212 |
|
213 |
* Antiquotations now provide the option 'locale=NAME' to specify an |
|
16234 | 214 |
alternative context used for evaluating and printing the subsequent |
215 |
argument, as in @{thm [locale=LC] fold_commute}, for example. |
|
216 |
||
217 |
||
218 |
*** Provers *** |
|
219 |
||
220 |
* Provers/hypsubst.ML: improved version of the subst method, for |
|
221 |
single-step rewriting: it now works in bound variable contexts. New is |
|
222 |
'subst (asm)', for rewriting an assumption. INCOMPATIBILITY: may |
|
223 |
rewrite a different subterm than the original subst method, which is |
|
224 |
still available as 'simplesubst'. |
|
225 |
||
226 |
* Provers/quasi.ML: new transitivity reasoners for transitivity only |
|
227 |
and quasi orders. |
|
228 |
||
229 |
* Provers/trancl.ML: new transitivity reasoner for transitive and |
|
230 |
reflexive-transitive closure of relations. |
|
231 |
||
232 |
* Provers/blast.ML: new reference depth_limit to make blast's depth |
|
233 |
limit (previously hard-coded with a value of 20) user-definable. |
|
234 |
||
235 |
* Provers/simplifier.ML has been moved to Pure, where Simplifier.setup |
|
236 |
is peformed already. Object-logics merely need to finish their |
|
237 |
initial simpset configuration as before. INCOMPATIBILITY. |
|
15703 | 238 |
|
15475
fdf9434b04ea
- Proofs are now hidden by default when generating documents
berghofe
parents:
15454
diff
changeset
|
239 |
|
14700
2f885b7e5ba7
reimplementation of HOL records; only one type is created for
schirmer
parents:
14699
diff
changeset
|
240 |
*** HOL *** |
2f885b7e5ba7
reimplementation of HOL records; only one type is created for
schirmer
parents:
14699
diff
changeset
|
241 |
|
16234 | 242 |
* Symbolic syntax of Hilbert Choice Operator is now as follows: |
14878 | 243 |
|
244 |
syntax (epsilon) |
|
245 |
"_Eps" :: "[pttrn, bool] => 'a" ("(3\<some>_./ _)" [0, 10] 10) |
|
246 |
||
16234 | 247 |
The symbol \<some> is displayed as the alternative epsilon of LaTeX |
248 |
and x-symbol; use option '-m epsilon' to get it actually printed. |
|
249 |
Moreover, the mathematically important symbolic identifier \<epsilon> |
|
250 |
becomes available as variable, constant etc. INCOMPATIBILITY, |
|
251 |
||
252 |
* "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x". |
|
253 |
Similarly for all quantifiers: "ALL x > y" etc. The x-symbol for >= |
|
254 |
is \<ge>. |
|
255 |
||
256 |
* "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>" |
|
257 |
instead of ":". |
|
258 |
||
259 |
* theory SetInterval: changed the syntax for open intervals: |
|
260 |
||
261 |
Old New |
|
262 |
{..n(} {..<n} |
|
263 |
{)n..} {n<..} |
|
264 |
{m..n(} {m..<n} |
|
265 |
{)m..n} {m<..n} |
|
266 |
{)m..n(} {m<..<n} |
|
267 |
||
268 |
The old syntax is still supported but will disappear in the next |
|
269 |
release. For conversion use the following Emacs search and replace |
|
270 |
patterns (these are not perfect but work quite well): |
|
15046 | 271 |
|
272 |
{)\([^\.]*\)\.\. -> {\1<\.\.} |
|
273 |
\.\.\([^(}]*\)(} -> \.\.<\1} |
|
274 |
||
16234 | 275 |
* theory Finite_Set: changed the syntax for 'setsum', summation over |
276 |
finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is |
|
277 |
now either "SUM x:A. e" or "\<Sum>x \<in> A. e". |
|
278 |
||
279 |
Some new syntax forms are available: |
|
280 |
||
281 |
"\<Sum>x | P. e" for "setsum (%x. e) {x. P}" |
|
282 |
"\<Sum>x = a..b. e" for "setsum (%x. e) {a..b}" |
|
283 |
"\<Sum>x = a..<b. e" for "setsum (%x. e) {a..<b}" |
|
284 |
"\<Sum>x < k. e" for "setsum (%x. e) {..<k}" |
|
285 |
||
286 |
The latter form "\<Sum>x < k. e" used to be based on a separate |
|
287 |
function "Summation", which has been discontinued. |
|
288 |
||
289 |
* theory Finite_Set: in structured induction proofs, the insert case |
|
290 |
is now 'case (insert x F)' instead of the old counterintuitive 'case |
|
291 |
(insert F x)'. |
|
292 |
||
293 |
* The 'refute' command has been extended to support a much larger |
|
294 |
fragment of HOL, including axiomatic type classes, constdefs and |
|
295 |
typedefs, inductive datatypes and recursion. |
|
296 |
||
297 |
* Datatype induction via method 'induct' now preserves the name of the |
|
298 |
induction variable. For example, when proving P(xs::'a list) by |
|
299 |
induction on xs, the induction step is now P(xs) ==> P(a#xs) rather |
|
300 |
than P(list) ==> P(a#list) as previously. Potential INCOMPATIBILITY |
|
301 |
in unstructured proof scripts. |
|
302 |
||
303 |
* Reworked implementation of records. Improved scalability for |
|
304 |
records with many fields, avoiding performance problems for type |
|
305 |
inference. Records are no longer composed of nested field types, but |
|
306 |
of nested extension types. Therefore the record type only grows linear |
|
307 |
in the number of extensions and not in the number of fields. The |
|
308 |
top-level (users) view on records is preserved. Potential |
|
309 |
INCOMPATIBILITY only in strange cases, where the theory depends on the |
|
310 |
old record representation. The type generated for a record is called |
|
311 |
<record_name>_ext_type. |
|
312 |
||
313 |
Flag record_quick_and_dirty_sensitive can be enabled to skip the |
|
314 |
proofs triggered by a record definition or a simproc (if |
|
315 |
quick_and_dirty is enabled). Definitions of large records can take |
|
316 |
quite long. |
|
317 |
||
318 |
New simproc record_upd_simproc for simplification of multiple record |
|
319 |
updates enabled by default. Moreover, trivial updates are also |
|
320 |
removed: r(|x := x r|) = r. INCOMPATIBILITY: old proofs break |
|
321 |
occasionally, since simplification is more powerful by default. |
|
322 |
||
323 |
* Simplifier: automatically reasons about transitivity chains |
|
324 |
involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics |
|
325 |
provided by Provers/trancl.ML as additional solvers. INCOMPATIBILITY: |
|
326 |
old proofs break occasionally as simplification may now solve more |
|
327 |
goals than previously. |
|
328 |
||
329 |
* Simplifier: converts x <= y into x = y if assumption y <= x is |
|
330 |
present. Works for all partial orders (class "order"), in particular |
|
331 |
numbers and sets. For linear orders (e.g. numbers) it treats ~ x < y |
|
332 |
just like y <= x. |
|
333 |
||
334 |
* Simplifier: new simproc for "let x = a in f x". If a is a free or |
|
335 |
bound variable or a constant then the let is unfolded. Otherwise |
|
336 |
first a is simplified to b, and then f b is simplified to g. If |
|
337 |
possible we abstract b from g arriving at "let x = b in h x", |
|
338 |
otherwise we unfold the let and arrive at g. The simproc can be |
|
339 |
enabled/disabled by the reference use_let_simproc. Potential |
|
340 |
INCOMPATIBILITY since simplification is more powerful by default. |
|
15776 | 341 |
|
14655
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
342 |
|
14682
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset
|
343 |
*** HOLCF *** |
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset
|
344 |
|
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset
|
345 |
* HOLCF: discontinued special version of 'constdefs' (which used to |
16234 | 346 |
support continuous functions) in favor of the general Pure one with |
347 |
full type-inference. |
|
14682
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset
|
348 |
|
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset
|
349 |
|
14885 | 350 |
*** ZF *** |
351 |
||
16234 | 352 |
* ZF/ex: theories Group and Ring provide examples in abstract algebra, |
353 |
including the First Isomorphism Theorem (on quotienting by the kernel |
|
354 |
of a homomorphism). |
|
15089
430264838064
ZF/Simplifier: second copy of context type solver;
wenzelm
parents:
15076
diff
changeset
|
355 |
|
430264838064
ZF/Simplifier: second copy of context type solver;
wenzelm
parents:
15076
diff
changeset
|
356 |
* ZF/Simplifier: install second copy of type solver that actually |
16234 | 357 |
makes use of TC rules declared to Isar proof contexts (or locales); |
358 |
the old version is still required for ML proof scripts. |
|
15703 | 359 |
|
360 |
||
361 |
*** ML *** |
|
362 |
||
15973 | 363 |
* Pure/library.ML no longer defines its own option datatype, but uses |
16234 | 364 |
that of the SML basis, which has constructors NONE and SOME instead of |
365 |
None and Some, as well as exception Option.Option instead of OPTION. |
|
366 |
The functions the, if_none, is_some, is_none have been adapted |
|
367 |
accordingly, while Option.map replaces apsome. |
|
15973 | 368 |
|
16151 | 369 |
* The exception LIST has been given up in favour of the standard |
16234 | 370 |
exceptions Empty and Subscript, as well as Library.UnequalLengths. |
371 |
Function like Library.hd and Library.tl are superceded by the standard |
|
372 |
hd and tl functions etc. |
|
373 |
||
374 |
A number of basic functions are now no longer exported to the ML |
|
375 |
toplevel, as they are variants of standard functions. The following |
|
376 |
suggests how one can translate existing code: |
|
15973 | 377 |
|
378 |
rev_append xs ys = List.revAppend (xs, ys) |
|
379 |
nth_elem (i, xs) = List.nth (xs, i) |
|
380 |
last_elem xs = List.last xs |
|
381 |
flat xss = List.concat xss |
|
16234 | 382 |
seq fs = List.app fs |
15973 | 383 |
partition P xs = List.partition P xs |
384 |
filter P xs = List.filter P xs |
|
385 |
mapfilter f xs = List.mapPartial f xs |
|
386 |
||
15703 | 387 |
* Pure: output via the Isabelle channels of writeln/warning/error |
16234 | 388 |
etc. is now passed through Output.output, with a hook for arbitrary |
389 |
transformations depending on the print_mode (cf. Output.add_mode -- |
|
390 |
the first active mode that provides a output function wins). Already |
|
391 |
formatted output may be embedded into further text via Output.raw; the |
|
392 |
result of Pretty.string_of/str_of and derived functions |
|
393 |
(string_of_term/cterm/thm etc.) is already marked raw to accommodate |
|
394 |
easy composition of diagnostic messages etc. Programmers rarely need |
|
395 |
to care about Output.output or Output.raw at all, with some notable |
|
396 |
exceptions: Output.output is required when bypassing the standard |
|
397 |
channels (writeln etc.), or in token translations to produce properly |
|
398 |
formatted results; Output.raw is required when capturing already |
|
399 |
output material that will eventually be presented to the user a second |
|
400 |
time. For the default print mode, both Output.output and Output.raw |
|
401 |
have no effect. |
|
402 |
||
403 |
* Pure: print_tac now outputs the goal through the trace channel. |
|
404 |
||
405 |
* Isar debugging: new reference Toplevel.debug; default false. Set to |
|
406 |
make printing of exceptions THM, TERM, TYPE and THEORY more verbose. |
|
15703 | 407 |
|
16151 | 408 |
* Pure: name spaces have been refined, with significant changes of the |
16234 | 409 |
internal interfaces -- INCOMPATIBILITY. Renamed cond_extern(_table) |
410 |
to extern(_table). The plain name entry path is superceded by a |
|
411 |
general 'naming' context, which also includes the 'policy' to produce |
|
412 |
a fully qualified name and external accesses of a fully qualified |
|
413 |
name; NameSpace.extend is superceded by context dependent |
|
414 |
Sign.declare_name. Several theory and proof context operations modify |
|
415 |
the naming context. Especially note Theory.restore_naming and |
|
416 |
ProofContext.restore_naming to get back to a sane state; note that |
|
417 |
Theory.add_path is no longer sufficient to recover from |
|
418 |
Theory.absolute_path in particular. |
|
419 |
||
420 |
* Pure: new flags short_names (default false) and unique_names |
|
421 |
(default true) for controlling output of qualified names. If |
|
422 |
short_names is set, names are printed unqualified. If unique_names is |
|
423 |
reset, the name prefix is reduced to the minimum required to achieve |
|
424 |
the original result when interning again, even if there is an overlap |
|
425 |
with earlier declarations. |
|
16151 | 426 |
|
16373
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
427 |
* Pure/sign/theory: discontinued named name spaces (i.e. classK, |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
428 |
typeK, constK, axiomK, oracleK), but provide explicit operations for |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
429 |
any of these kinds. For example, Sign.intern typeK is now |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
430 |
Sign.intern_type, Theory.hide_space Sign.typeK is now |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
431 |
Theory.hide_types. Also note that former |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
432 |
Theory.hide_classes/types/consts are now |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
433 |
Theory.hide_classes_i/types_i/consts_i, while the non '_i' versions |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
434 |
internalize their arguments! INCOMPATIBILITY. |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
435 |
|
16151 | 436 |
* Pure: cases produced by proof methods specify options, where NONE |
16234 | 437 |
means to remove case bindings -- INCOMPATIBILITY in |
438 |
(RAW_)METHOD_CASES. |
|
16151 | 439 |
|
16373
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
440 |
* Pure: the following operations retrieve axioms or theorems from a |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
441 |
theory node or theory hierarchy, respectively: |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
442 |
|
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
443 |
Theory.axioms_of: theory -> (string * term) list |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
444 |
Theory.all_axioms_of: theory -> (string * term) list |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
445 |
PureThy.thms_of: theory -> (string * thm) list |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
446 |
PureThy.all_thms_of: theory -> (string * thm) list |
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset
|
447 |
|
15703 | 448 |
* Provers: Simplifier and Classical Reasoner now support proof context |
16234 | 449 |
dependent plug-ins (simprocs, solvers, wrappers etc.). These extra |
450 |
components are stored in the theory and patched into the |
|
451 |
simpset/claset when used in an Isar proof context. Context dependent |
|
452 |
components are maintained by the following theory operations: |
|
453 |
||
454 |
Simplifier.add_context_simprocs |
|
455 |
Simplifier.del_context_simprocs |
|
456 |
Simplifier.set_context_subgoaler |
|
457 |
Simplifier.reset_context_subgoaler |
|
458 |
Simplifier.add_context_looper |
|
459 |
Simplifier.del_context_looper |
|
460 |
Simplifier.add_context_unsafe_solver |
|
461 |
Simplifier.add_context_safe_solver |
|
462 |
||
463 |
Classical.add_context_safe_wrapper |
|
464 |
Classical.del_context_safe_wrapper |
|
465 |
Classical.add_context_unsafe_wrapper |
|
466 |
Classical.del_context_unsafe_wrapper |
|
467 |
||
468 |
IMPORTANT NOTE: proof tools (methods etc.) need to use |
|
469 |
local_simpset_of and local_claset_of to instead of the primitive |
|
470 |
Simplifier.get_local_simpset and Classical.get_local_claset, |
|
471 |
respectively, in order to see the context dependent fields! |
|
472 |
||
16251
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
473 |
* File.sysify_path and File.quote_sysify path have been replaced by |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
474 |
File.platform_path and File.shell_path (with appropriate hooks). This |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
475 |
provides a clean interface for unusual systems where the internal and |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
476 |
external process view of file names are different. |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
477 |
|
16234 | 478 |
|
479 |
*** System *** |
|
480 |
||
481 |
* Allow symlinks to all proper Isabelle executables (Isabelle, |
|
482 |
isabelle, isatool etc.). |
|
483 |
||
484 |
* ISABELLE_DOC_FORMAT setting specifies preferred document format (for |
|
485 |
isatool doc, isatool mkdir, display_drafts etc.). |
|
486 |
||
487 |
* isatool usedir: option -f allows specification of the ML file to be |
|
488 |
used by Isabelle; default is ROOT.ML. |
|
489 |
||
16251
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
490 |
* New isatool version outputs the version identifier of the Isabelle |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
491 |
distribution being used. |
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
492 |
|
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset
|
493 |
* HOL: new isatool dimacs2hol converts files in DIMACS CNF format |
16234 | 494 |
(containing Boolean satisfiability problems) into Isabelle/HOL |
495 |
theories. |
|
15703 | 496 |
|
497 |
||
14655
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset
|
498 |
|
14606 | 499 |
New in Isabelle2004 (April 2004) |
500 |
-------------------------------- |
|
13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
501 |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
14136
diff
changeset
|
502 |
*** General *** |
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
14136
diff
changeset
|
503 |
|
14398
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
504 |
* Provers/order.ML: new efficient reasoner for partial and linear orders. |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
505 |
Replaces linorder.ML. |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
506 |
|
14606 | 507 |
* Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic |
508 |
(\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler |
|
14173 | 509 |
(\<a>...\<z>), are now considered normal letters, and can therefore |
510 |
be used anywhere where an ASCII letter (a...zA...Z) has until |
|
511 |
now. COMPATIBILITY: This obviously changes the parsing of some |
|
512 |
terms, especially where a symbol has been used as a binder, say |
|
513 |
'\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed |
|
514 |
as an identifier. Fix it by inserting a space around former |
|
515 |
symbols. Call 'isatool fixgreek' to try to fix parsing errors in |
|
516 |
existing theory and ML files. |
|
14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
14136
diff
changeset
|
517 |
|
14237 | 518 |
* Pure: Macintosh and Windows line-breaks are now allowed in theory files. |
519 |
||
14731 | 520 |
* Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now |
521 |
allowed in identifiers. Similar to Greek letters \<^isub> is now considered |
|
522 |
a normal (but invisible) letter. For multiple letter subscripts repeat |
|
523 |
\<^isub> like this: x\<^isub>1\<^isub>2. |
|
14233 | 524 |
|
14333 | 525 |
* Pure: There are now sub-/superscripts that can span more than one |
526 |
character. Text between \<^bsub> and \<^esub> is set in subscript in |
|
14606 | 527 |
ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in |
528 |
superscript. The new control characters are not identifier parts. |
|
14333 | 529 |
|
14561
c53396af770e
* raw control symbols are of the form \<^raw:...> now.
schirmer
parents:
14556
diff
changeset
|
530 |
* Pure: Control-symbols of the form \<^raw:...> will literally print the |
14606 | 531 |
content of "..." to the latex file instead of \isacntrl... . The "..." |
532 |
may consist of any printable characters excluding the end bracket >. |
|
14361
ad2f5da643b4
* Support for raw latex output in control symbols: \<^raw...>
schirmer
parents:
14333
diff
changeset
|
533 |
|
14237 | 534 |
* Pure: Using new Isar command "finalconsts" (or the ML functions |
535 |
Theory.add_finals or Theory.add_finals_i) it is now possible to |
|
536 |
declare constants "final", which prevents their being given a definition |
|
537 |
later. It is useful for constants whose behaviour is fixed axiomatically |
|
14224 | 538 |
rather than definitionally, such as the meta-logic connectives. |
539 |
||
14606 | 540 |
* Pure: 'instance' now handles general arities with general sorts |
541 |
(i.e. intersections of classes), |
|
14503
255ad604e08e
Added check that Theory.ML does not occur in the files section of the theory
skalberg
parents:
14480
diff
changeset
|
542 |
|
14547 | 543 |
* Presentation: generated HTML now uses a CSS style sheet to make layout |
14731 | 544 |
(somewhat) independent of content. It is copied from lib/html/isabelle.css. |
14547 | 545 |
It can be changed to alter the colors/layout of generated pages. |
546 |
||
14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset
|
547 |
|
14175
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
548 |
*** Isar *** |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
549 |
|
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset
|
550 |
* Tactic emulation methods rule_tac, erule_tac, drule_tac, frule_tac, |
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset
|
551 |
cut_tac, subgoal_tac and thin_tac: |
14175
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
552 |
- Now understand static (Isar) contexts. As a consequence, users of Isar |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
553 |
locales are no longer forced to write Isar proof scripts. |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
554 |
For details see Isar Reference Manual, paragraph 4.3.2: Further tactic |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
555 |
emulations. |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
556 |
- INCOMPATIBILITY: names of variables to be instantiated may no |
14211
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
557 |
longer be enclosed in quotes. Instead, precede variable name with `?'. |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
558 |
This is consistent with the instantiation attribute "where". |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
559 |
|
14257
a7ef3f7588c5
Type inference bug in Isar attributes "where" and "of" fixed.
ballarin
parents:
14255
diff
changeset
|
560 |
* Attributes "where" and "of": |
14285
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset
|
561 |
- Now take type variables of instantiated theorem into account when reading |
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset
|
562 |
the instantiation string. This fixes a bug that caused instantiated |
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset
|
563 |
theorems to have too special types in some circumstances. |
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset
|
564 |
- "where" permits explicit instantiations of type variables. |
14257
a7ef3f7588c5
Type inference bug in Isar attributes "where" and "of" fixed.
ballarin
parents:
14255
diff
changeset
|
565 |
|
14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset
|
566 |
* Calculation commands "moreover" and "also" no longer interfere with |
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset
|
567 |
current facts ("this"), admitting arbitrary combinations with "then" |
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset
|
568 |
and derived forms. |
14283 | 569 |
|
14211
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
570 |
* Locales: |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
571 |
- Goal statements involving the context element "includes" no longer |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
572 |
generate theorems with internal delta predicates (those ending on |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
573 |
"_axioms") in the premise. |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
574 |
Resolve particular premise with <locale>.intro to obtain old form. |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
575 |
- Fixed bug in type inference ("unify_frozen") that prevented mix of target |
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset
|
576 |
specification and "includes" elements in goal statement. |
14254
342634f38451
Isar/Locales: <loc>.intro and <loc>.axioms no longer intro? and elim? by
ballarin
parents:
14243
diff
changeset
|
577 |
- Rule sets <locale>.intro and <locale>.axioms no longer declared as |
342634f38451
Isar/Locales: <loc>.intro and <loc>.axioms no longer intro? and elim? by
ballarin
parents:
14243
diff
changeset
|
578 |
[intro?] and [elim?] (respectively) by default. |
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset
|
579 |
- Experimental command for instantiation of locales in proof contexts: |
14551 | 580 |
instantiate <label>[<attrs>]: <loc> |
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset
|
581 |
Instantiates locale <loc> and adds all its theorems to the current context |
14551 | 582 |
taking into account their attributes. Label and attrs are optional |
583 |
modifiers, like in theorem declarations. If present, names of |
|
584 |
instantiated theorems are qualified with <label>, and the attributes |
|
585 |
<attrs> are applied after any attributes these theorems might have already. |
|
586 |
If the locale has assumptions, a chained fact of the form |
|
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset
|
587 |
"<loc> t1 ... tn" is expected from which instantiations of the parameters |
14551 | 588 |
are derived. The command does not support old-style locales declared |
589 |
with "locale (open)". |
|
590 |
A few (very simple) examples can be found in FOL/ex/LocaleInst.thy. |
|
14175
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
591 |
|
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
592 |
* HOL: Tactic emulation methods induct_tac and case_tac understand static |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
593 |
(Isar) contexts. |
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset
|
594 |
|
14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset
|
595 |
|
14136 | 596 |
*** HOL *** |
597 |
||
14624 | 598 |
* Proof import: new image HOL4 contains the imported library from |
599 |
the HOL4 system with about 2500 theorems. It is imported by |
|
600 |
replaying proof terms produced by HOL4 in Isabelle. The HOL4 image |
|
601 |
can be used like any other Isabelle image. See |
|
602 |
HOL/Import/HOL/README for more information. |
|
603 |
||
14398
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
604 |
* Simplifier: |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
605 |
- Much improved handling of linear and partial orders. |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
606 |
Reasoners for linear and partial orders are set up for type classes |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
607 |
"linorder" and "order" respectively, and are added to the default simpset |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
608 |
as solvers. This means that the simplifier can build transitivity chains |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
609 |
to solve goals from the assumptions. |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
610 |
- INCOMPATIBILITY: old proofs break occasionally. Typically, applications |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
611 |
of blast or auto after simplification become unnecessary because the goal |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
612 |
is solved by simplification already. |
c5c47703f763
Efficient, graph-based reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset
|
613 |
|
14731 | 614 |
* Numerics: new theory Ring_and_Field contains over 250 basic numerical laws, |
14389 | 615 |
all proved in axiomatic type classes for semirings, rings and fields. |
616 |
||
617 |
* Numerics: |
|
618 |
- Numeric types (nat, int, and in HOL-Complex rat, real, complex, etc.) are |
|
14731 | 619 |
now formalized using the Ring_and_Field theory mentioned above. |
14389 | 620 |
- INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently |
621 |
than before, because now they are set up once in a generic manner. |
|
14731 | 622 |
- INCOMPATIBILITY: many type-specific arithmetic laws have gone. |
14480 | 623 |
Look for the general versions in Ring_and_Field (and Power if they concern |
624 |
exponentiation). |
|
14389 | 625 |
|
14401 | 626 |
* Type "rat" of the rational numbers is now available in HOL-Complex. |
14389 | 627 |
|
14255 | 628 |
* Records: |
629 |
- Record types are now by default printed with their type abbreviation |
|
630 |
instead of the list of all field types. This can be configured via |
|
631 |
the reference "print_record_type_abbr". |
|
14731 | 632 |
- Simproc "record_upd_simproc" for simplification of multiple updates added |
14255 | 633 |
(not enabled by default). |
14427 | 634 |
- Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp. |
635 |
EX x. x = sel r to True (not enabled by default). |
|
14255 | 636 |
- Tactic "record_split_simp_tac" to split and simplify records added. |
14731 | 637 |
|
14136 | 638 |
* 'specification' command added, allowing for definition by |
14224 | 639 |
specification. There is also an 'ax_specification' command that |
640 |
introduces the new constants axiomatically. |
|
14136 | 641 |
|
14375 | 642 |
* arith(_tac) is now able to generate counterexamples for reals as well. |
643 |
||
14399
dc677b35e54f
New lemmas about inversion of restricted functions.
ballarin
parents:
14398
diff
changeset
|
644 |
* HOL-Algebra: new locale "ring" for non-commutative rings. |
dc677b35e54f
New lemmas about inversion of restricted functions.
ballarin
parents:
14398
diff
changeset
|
645 |
|
14243 | 646 |
* HOL-ex: InductiveInvariant_examples illustrates advanced recursive function |
14610 | 647 |
definitions, thanks to Sava Krsti\'{c} and John Matthews. |
648 |
||
14731 | 649 |
* HOL-Matrix: a first theory for matrices in HOL with an application of |
14610 | 650 |
matrix theory to linear programming. |
14136 | 651 |
|
14380 | 652 |
* Unions and Intersections: |
15119 | 653 |
The latex output syntax of UN and INT has been changed |
654 |
from "\Union x \in A. B" to "\Union_{x \in A} B" |
|
655 |
i.e. the index formulae has become a subscript. |
|
656 |
Similarly for "\Union x. B", and for \Inter instead of \Union. |
|
14380 | 657 |
|
14418 | 658 |
* Unions and Intersections over Intervals: |
14731 | 659 |
There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is |
660 |
also an x-symbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A" |
|
14418 | 661 |
like in normal math, and corresponding versions for < and for intersection. |
662 |
||
15677 | 663 |
* HOL/List: Ordering "lexico" is renamed "lenlex" and the standard |
664 |
lexicographic dictonary ordering has been added as "lexord". |
|
665 |
||
14401 | 666 |
* ML: the legacy theory structures Int and List have been removed. They had |
667 |
conflicted with ML Basis Library structures having the same names. |
|
14380 | 668 |
|
14464 | 669 |
* 'refute' command added to search for (finite) countermodels. Only works |
670 |
for a fragment of HOL. The installation of an external SAT solver is |
|
671 |
highly recommended. See "HOL/Refute.thy" for details. |
|
672 |
||
14602 | 673 |
* 'quickcheck' command: Allows to find counterexamples by evaluating |
674 |
formulae under an assignment of free variables to random values. |
|
675 |
In contrast to 'refute', it can deal with inductive datatypes, |
|
676 |
but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy" |
|
677 |
for examples. |
|
14464 | 678 |
|
14606 | 679 |
|
14536 | 680 |
*** HOLCF *** |
681 |
||
682 |
* Streams now come with concatenation and are part of the HOLCF image |
|
683 |
||
14572 | 684 |
|
685 |
||
14136 | 686 |
New in Isabelle2003 (May 2003) |
14606 | 687 |
------------------------------ |
14136 | 688 |
|
13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
689 |
*** General *** |
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
690 |
|
13618 | 691 |
* Provers/simplifier: |
692 |
||
13781 | 693 |
- Completely reimplemented method simp (ML: Asm_full_simp_tac): |
13618 | 694 |
Assumptions are now subject to complete mutual simplification, |
695 |
not just from left to right. The simplifier now preserves |
|
696 |
the order of assumptions. |
|
697 |
||
698 |
Potential INCOMPATIBILITY: |
|
699 |
||
13781 | 700 |
-- simp sometimes diverges where the old version did |
701 |
not, e.g. invoking simp on the goal |
|
13618 | 702 |
|
703 |
[| P (f x); y = x; f x = f y |] ==> Q |
|
704 |
||
13781 | 705 |
now gives rise to the infinite reduction sequence |
706 |
||
707 |
P(f x) --(f x = f y)--> P(f y) --(y = x)--> P(f x) --(f x = f y)--> ... |
|
708 |
||
709 |
Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this |
|
710 |
kind of problem. |
|
711 |
||
712 |
-- Tactics combining classical reasoner and simplification (such as auto) |
|
713 |
are also affected by this change, because many of them rely on |
|
714 |
simp. They may sometimes diverge as well or yield a different numbers |
|
715 |
of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto |
|
716 |
in case of problems. Sometimes subsequent calls to the classical |
|
717 |
reasoner will fail because a preceeding call to the simplifier too |
|
718 |
eagerly simplified the goal, e.g. deleted redundant premises. |
|
13618 | 719 |
|
720 |
- The simplifier trace now shows the names of the applied rewrite rules |
|
721 |
||
13829 | 722 |
- You can limit the number of recursive invocations of the simplifier |
723 |
during conditional rewriting (where the simplifie tries to solve the |
|
724 |
conditions before applying the rewrite rule): |
|
725 |
ML "simp_depth_limit := n" |
|
726 |
where n is an integer. Thus you can force termination where previously |
|
727 |
the simplifier would diverge. |
|
728 |
||
13835
12b2ffbe543a
Change to meta simplifier: congruence rules may now have frees as head of term.
ballarin
parents:
13829
diff
changeset
|
729 |
- Accepts free variables as head terms in congruence rules. Useful in Isar. |
13829 | 730 |
|
13938 | 731 |
- No longer aborts on failed congruence proof. Instead, the |
732 |
congruence is ignored. |
|
733 |
||
14008 | 734 |
* Pure: New generic framework for extracting programs from constructive |
735 |
proofs. See HOL/Extraction.thy for an example instantiation, as well |
|
736 |
as HOL/Extraction for some case studies. |
|
737 |
||
13868 | 738 |
* Pure: The main goal of the proof state is no longer shown by default, only |
739 |
the subgoals. This behaviour is controlled by a new flag. |
|
13835
12b2ffbe543a
Change to meta simplifier: congruence rules may now have frees as head of term.
ballarin
parents:
13829
diff
changeset
|
740 |
PG menu: Isabelle/Isar -> Settings -> Show Main Goal |
13815 | 741 |
(ML: Proof.show_main_goal). |
742 |
||
743 |
* Pure: You can find all matching introduction rules for subgoal 1, i.e. all |
|
744 |
rules whose conclusion matches subgoal 1: |
|
745 |
PG menu: Isabelle/Isar -> Show me -> matching rules |
|
746 |
The rules are ordered by how closely they match the subgoal. |
|
747 |
In particular, rules that solve a subgoal outright are displayed first |
|
748 |
(or rather last, the way they are printed). |
|
749 |
(ML: ProofGeneral.print_intros()) |
|
750 |
||
751 |
* Pure: New flag trace_unify_fail causes unification to print |
|
13781 | 752 |
diagnostic information (PG: in trace buffer) when it fails. This is |
753 |
useful for figuring out why single step proofs like rule, erule or |
|
754 |
assumption failed. |
|
755 |
||
13815 | 756 |
* Pure: Locale specifications now produce predicate definitions |
13410
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
757 |
according to the body of text (covering assumptions modulo local |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
758 |
definitions); predicate "loc_axioms" covers newly introduced text, |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
759 |
while "loc" is cumulative wrt. all included locale expressions; the |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
760 |
latter view is presented only on export into the global theory |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
761 |
context; potential INCOMPATIBILITY, use "(open)" option to fall back |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
762 |
on the old view without predicates; |
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset
|
763 |
|
13459
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset
|
764 |
* Pure: predefined locales "var" and "struct" are useful for sharing |
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset
|
765 |
parameters (as in CASL, for example); just specify something like |
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset
|
766 |
``var x + var y + struct M'' as import; |
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset
|
767 |
|
13463
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
768 |
* Pure: improved thms_containing: proper indexing of facts instead of |
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
769 |
raw theorems; check validity of results wrt. current name space; |
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
770 |
include local facts of proof configuration (also covers active |
13541 | 771 |
locales), cover fixed variables in index; may use "_" in term |
772 |
specification; an optional limit for the number of printed facts may |
|
773 |
be given (the default is 40); |
|
774 |
||
775 |
* Pure: disallow duplicate fact bindings within new-style theory files |
|
776 |
(batch-mode only); |
|
13540
aede0306e214
* Pure: disallow duplicate fact bindings within new-style theory files;
wenzelm
parents:
13522
diff
changeset
|
777 |
|
13463
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
778 |
* Provers: improved induct method: assumptions introduced by case |
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
779 |
"foo" are split into "foo.hyps" (from the rule) and "foo.prems" (from |
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
780 |
the goal statement); "foo" still refers to all facts collectively; |
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset
|
781 |
|
13550 | 782 |
* Provers: the function blast.overloaded has been removed: all constants |
783 |
are regarded as potentially overloaded, which improves robustness in exchange |
|
784 |
for slight decrease in efficiency; |
|
785 |
||
13781 | 786 |
* Provers/linorder: New generic prover for transitivity reasoning over |
787 |
linear orders. Note: this prover is not efficient! |
|
788 |
||
13522
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset
|
789 |
* Isar: preview of problems to finish 'show' now produce an error |
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset
|
790 |
rather than just a warning (in interactive mode); |
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset
|
791 |
|
13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
792 |
|
13158 | 793 |
*** HOL *** |
794 |
||
13899 | 795 |
* arith(_tac) |
796 |
||
797 |
- Produces a counter example if it cannot prove a goal. |
|
798 |
Note that the counter example may be spurious if the goal is not a formula |
|
799 |
of quantifier-free linear arithmetic. |
|
800 |
In ProofGeneral the counter example appears in the trace buffer. |
|
801 |
||
802 |
- Knows about div k and mod k where k is a numeral of type nat or int. |
|
803 |
||
804 |
- Calls full Presburger arithmetic (by Amine Chaieb) if quantifier-free |
|
805 |
linear arithmetic fails. This takes account of quantifiers and divisibility. |
|
14731 | 806 |
Presburger arithmetic can also be called explicitly via presburger(_tac). |
13899 | 807 |
|
808 |
* simp's arithmetic capabilities have been enhanced a bit: it now |
|
809 |
takes ~= in premises into account (by performing a case split); |
|
810 |
||
811 |
* simp reduces "m*(n div m) + n mod m" to n, even if the two summands |
|
812 |
are distributed over a sum of terms; |
|
813 |
||
13735 | 814 |
* New tactic "trans_tac" and method "trans" instantiate |
815 |
Provers/linorder.ML for axclasses "order" and "linorder" (predicates |
|
14731 | 816 |
"<=", "<" and "="). |
817 |
||
818 |
* function INCOMPATIBILITIES: Pi-sets have been redefined and moved from main |
|
13587 | 819 |
HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp"; |
820 |
||
13443 | 821 |
* 'typedef' command has new option "open" to suppress the set |
822 |
definition; |
|
823 |
||
13522
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset
|
824 |
* functions Min and Max on finite sets have been introduced (theory |
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset
|
825 |
Finite_Set); |
13492 | 826 |
|
13443 | 827 |
* attribute [symmetric] now works for relations as well; it turns |
828 |
(x,y) : R^-1 into (y,x) : R, and vice versa; |
|
829 |
||
13613 | 830 |
* induct over a !!-quantified statement (say !!x1..xn): |
831 |
each "case" automatically performs "fix x1 .. xn" with exactly those names. |
|
832 |
||
13899 | 833 |
* Map: `empty' is no longer a constant but a syntactic abbreviation for |
834 |
%x. None. Warning: empty_def now refers to the previously hidden definition |
|
835 |
of the empty set. |
|
836 |
||
14018 | 837 |
* Algebra: formalization of classical algebra. Intended as base for |
838 |
any algebraic development in Isabelle. Currently covers group theory |
|
839 |
(up to Sylow's theorem) and ring theory (Universal Property of |
|
840 |
Univariate Polynomials). Contributions welcome; |
|
13960 | 841 |
|
842 |
* GroupTheory: deleted, since its material has been moved to Algebra; |
|
843 |
||
14731 | 844 |
* Complex: new directory of the complex numbers with numeric constants, |
845 |
nonstandard complex numbers, and some complex analysis, standard and |
|
13966
2160abf7cfe7
removal of the image HOL-Real and merging of HOL-Real-ex with HOL-Complex-ex
paulson
parents:
13960
diff
changeset
|
846 |
nonstandard (Jacques Fleuriot); |
2160abf7cfe7
removal of the image HOL-Real and merging of HOL-Real-ex with HOL-Complex-ex
paulson
parents:
13960
diff
changeset
|
847 |
|
2160abf7cfe7
removal of the image HOL-Real and merging of HOL-Real-ex with HOL-Complex-ex
paulson
parents:
13960
diff
changeset
|
848 |
* HOL-Complex: new image for analysis, replacing HOL-Real and HOL-Hyperreal; |
2160abf7cfe7
removal of the image HOL-Real and merging of HOL-Real-ex with HOL-Complex-ex
paulson
parents:
13960
diff
changeset
|
849 |
|
14731 | 850 |
* Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques |
13966
2160abf7cfe7
removal of the image HOL-Real and merging of HOL-Real-ex with HOL-Complex-ex
paulson
parents:
13960
diff
changeset
|
851 |
Fleuriot); |
13960 | 852 |
|
13549 | 853 |
* Real/HahnBanach: updated and adapted to locales; |
854 |
||
13995 | 855 |
* NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad, |
856 |
Gray and Kramer); |
|
13872 | 857 |
|
858 |
* UNITY: added the Meier-Sanders theory of progress sets; |
|
859 |
||
14011 | 860 |
* MicroJava: bytecode verifier and lightweight bytecode verifier |
861 |
as abstract algorithms, instantiated to the JVM; |
|
862 |
||
14010 | 863 |
* Bali: Java source language formalization. Type system, operational |
864 |
semantics, axiomatic semantics. Supported language features: |
|
865 |
classes, interfaces, objects,virtual methods, static methods, |
|
866 |
static/instance fields, arrays, access modifiers, definite |
|
867 |
assignment, exceptions. |
|
13549 | 868 |
|
14011 | 869 |
|
13549 | 870 |
*** ZF *** |
871 |
||
15154 | 872 |
* ZF/Constructible: consistency proof for AC (Gdel's constructible |
13549 | 873 |
universe, etc.); |
874 |
||
13872 | 875 |
* Main ZF: virtually all theories converted to new-style format; |
13518 | 876 |
|
13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
877 |
|
13478 | 878 |
*** ML *** |
879 |
||
880 |
* Pure: Tactic.prove provides sane interface for internal proofs; |
|
881 |
omits the infamous "standard" operation, so this is more appropriate |
|
882 |
than prove_goalw_cterm in many situations (e.g. in simprocs); |
|
883 |
||
884 |
* Pure: improved error reporting of simprocs; |
|
885 |
||
886 |
* Provers: Simplifier.simproc(_i) provides sane interface for setting |
|
887 |
up simprocs; |
|
888 |
||
889 |
||
13953 | 890 |
*** Document preparation *** |
891 |
||
892 |
* uses \par instead of \\ for line breaks in theory text. This may |
|
893 |
shift some page breaks in large documents. To get the old behaviour |
|
894 |
use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex. |
|
895 |
||
14731 | 896 |
* minimized dependencies of isabelle.sty and isabellesym.sty on |
13953 | 897 |
other packages |
898 |
||
899 |
* \<euro> now needs package babel/greek instead of marvosym (which |
|
900 |
broke \Rightarrow) |
|
901 |
||
14731 | 902 |
* normal size for \<zero>...\<nine> (uses \mathbf instead of |
13954 | 903 |
textcomp package) |
13953 | 904 |
|
13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset
|
905 |
|
14572 | 906 |
|
12984 | 907 |
New in Isabelle2002 (March 2002) |
908 |
-------------------------------- |
|
11474 | 909 |
|
11572 | 910 |
*** Document preparation *** |
911 |
||
11842
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
912 |
* greatly simplified document preparation setup, including more |
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
913 |
graceful interpretation of isatool usedir -i/-d/-D options, and more |
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
914 |
instructive isatool mkdir; users should basically be able to get |
12899
7d5b690253ee
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm
parents:
12889
diff
changeset
|
915 |
started with "isatool mkdir HOL Test && isatool make"; alternatively, |
7d5b690253ee
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm
parents:
12889
diff
changeset
|
916 |
users may run a separate document processing stage manually like this: |
7d5b690253ee
"isatool usedir -D output HOL Test && isatool document Test/output";
wenzelm
parents:
12889
diff
changeset
|
917 |
"isatool usedir -D output HOL Test && isatool document Test/output"; |
11842
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
918 |
|
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
919 |
* theory dependency graph may now be incorporated into documents; |
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
920 |
isatool usedir -g true will produce session_graph.eps/.pdf for use |
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
921 |
with \includegraphics of LaTeX; |
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset
|
922 |
|
11864
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset
|
923 |
* proper spacing of consecutive markup elements, especially text |
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset
|
924 |
blocks after section headings; |
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset
|
925 |
|
11572 | 926 |
* support bold style (for single symbols only), input syntax is like |
927 |
this: "\<^bold>\<alpha>" or "\<^bold>A"; |
|
928 |
||
11814 | 929 |
* \<bullet> is now output as bold \cdot by default, which looks much |
11572 | 930 |
better in printed text; |
931 |
||
11712
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset
|
932 |
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>; |
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset
|
933 |
note that these symbols are currently unavailable in Proof General / |
12769 | 934 |
X-Symbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>; |
12690 | 935 |
|
936 |
* isatool latex no longer depends on changed TEXINPUTS, instead |
|
937 |
isatool document copies the Isabelle style files to the target |
|
938 |
location; |
|
11712
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset
|
939 |
|
11572 | 940 |
|
11633 | 941 |
*** Isar *** |
942 |
||
12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
943 |
* Pure/Provers: improved proof by cases and induction; |
12280 | 944 |
- 'case' command admits impromptu naming of parameters (such as |
945 |
"case (Suc n)"); |
|
946 |
- 'induct' method divinates rule instantiation from the inductive |
|
947 |
claim; no longer requires excessive ?P bindings for proper |
|
948 |
instantiation of cases; |
|
949 |
- 'induct' method properly enumerates all possibilities of set/type |
|
950 |
rules; as a consequence facts may be also passed through *type* |
|
951 |
rules without further ado; |
|
952 |
- 'induct' method now derives symbolic cases from the *rulified* |
|
953 |
rule (before it used to rulify cases stemming from the internal |
|
954 |
atomized version); this means that the context of a non-atomic |
|
955 |
statement becomes is included in the hypothesis, avoiding the |
|
956 |
slightly cumbersome show "PROP ?case" form; |
|
957 |
- 'induct' may now use elim-style induction rules without chaining |
|
958 |
facts, using ``missing'' premises from the goal state; this allows |
|
959 |
rules stemming from inductive sets to be applied in unstructured |
|
960 |
scripts, while still benefitting from proper handling of non-atomic |
|
961 |
statements; NB: major inductive premises need to be put first, all |
|
962 |
the rest of the goal is passed through the induction; |
|
963 |
- 'induct' proper support for mutual induction involving non-atomic |
|
964 |
rule statements (uses the new concept of simultaneous goals, see |
|
965 |
below); |
|
12853 | 966 |
- append all possible rule selections, but only use the first |
967 |
success (no backtracking); |
|
11995
4a622f5fb164
- 'induct' may now use elim-style induction rules without chaining
wenzelm
parents:
11986
diff
changeset
|
968 |
- removed obsolete "(simplified)" and "(stripped)" options of methods; |
12754
044a59921f3b
Isar: undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm
parents:
12753
diff
changeset
|
969 |
- undeclared rule case names default to numbers 1, 2, 3, ...; |
044a59921f3b
Isar: undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm
parents:
12753
diff
changeset
|
970 |
- added 'print_induct_rules' (covered by help item in recent Proof |
044a59921f3b
Isar: undeclared rule case names default to numbers 1, 2, 3, ...;
wenzelm
parents:
12753
diff
changeset
|
971 |
General versions); |
11995
4a622f5fb164
- 'induct' may now use elim-style induction rules without chaining
wenzelm
parents:
11986
diff
changeset
|
972 |
- moved induct/cases attributes to Pure, methods to Provers; |
4a622f5fb164
- 'induct' may now use elim-style induction rules without chaining
wenzelm
parents:
11986
diff
changeset
|
973 |
- generic method setup instantiated for FOL and HOL; |
11986
26b95a6f3f79
- 'induct' method now derives symbolic cases from the *rulified* rule
wenzelm
parents:
11965
diff
changeset
|
974 |
|
12163
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
975 |
* Pure: support multiple simultaneous goal statements, for example |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
976 |
"have a: A and b: B" (same for 'theorem' etc.); being a pure |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
977 |
meta-level mechanism, this acts as if several individual goals had |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
978 |
been stated separately; in particular common proof methods need to be |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
979 |
repeated in order to cover all claims; note that a single elimination |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
980 |
step is *not* sufficient to establish the two conjunctions, so this |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
981 |
fails: |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
982 |
|
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
983 |
assume "A & B" then have A and B .. (*".." fails*) |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
984 |
|
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
985 |
better use "obtain" in situations as above; alternative refer to |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
986 |
multi-step methods like 'auto', 'simp_all', 'blast+' etc.; |
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset
|
987 |
|
12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset
|
988 |
* Pure: proper integration with ``locales''; unlike the original |
15154 | 989 |
version by Florian Kammller, Isar locales package high-level proof |
12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset
|
990 |
contexts rather than raw logical ones (e.g. we admit to include |
12280 | 991 |
attributes everywhere); operations on locales include merge and |
12964 | 992 |
rename; support for implicit arguments (``structures''); simultaneous |
993 |
type-inference over imports and text; see also HOL/ex/Locales.thy for |
|
994 |
some examples; |
|
12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset
|
995 |
|
12707
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
996 |
* Pure: the following commands have been ``localized'', supporting a |
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
997 |
target locale specification "(in name)": 'lemma', 'theorem', |
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
998 |
'corollary', 'lemmas', 'theorems', 'declare'; the results will be |
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
999 |
stored both within the locale and at the theory level (exported and |
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
1000 |
qualified by the locale name); |
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset
|
1001 |
|
12964 | 1002 |
* Pure: theory goals may now be specified in ``long'' form, with |
1003 |
ad-hoc contexts consisting of arbitrary locale elements. for example |
|
1004 |
``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and |
|
1005 |
definitions may be given, too); the result is a meta-level rule with |
|
1006 |
the context elements being discharged in the obvious way; |
|
1007 |
||
1008 |
* Pure: new proof command 'using' allows to augment currently used |
|
1009 |
facts after a goal statement ('using' is syntactically analogous to |
|
1010 |
'apply', but acts on the goal's facts only); this allows chained facts |
|
1011 |
to be separated into parts given before and after a claim, as in |
|
1012 |
``from a and b have C using d and e <proof>''; |
|
12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset
|
1013 |
|
11722 | 1014 |
* Pure: renamed "antecedent" case to "rule_context"; |
1015 |
||
12964 | 1016 |
* Pure: new 'judgment' command records explicit information about the |
1017 |
object-logic embedding (used by several tools internally); no longer |
|
1018 |
use hard-wired "Trueprop"; |
|
1019 |
||
11738 | 1020 |
* Pure: added 'corollary' command; |
1021 |
||
11722 | 1022 |
* Pure: fixed 'token_translation' command; |
1023 |
||
11899 | 1024 |
* Pure: removed obsolete 'exported' attribute; |
1025 |
||
11933 | 1026 |
* Pure: dummy pattern "_" in is/let is now automatically lifted over |
1027 |
bound variables: "ALL x. P x --> Q x" (is "ALL x. _ --> ?C x") |
|
11899 | 1028 |
supersedes more cumbersome ... (is "ALL x. _ x --> ?C x"); |
1029 |
||
11952
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1030 |
* Pure: method 'atomize' presents local goal premises as object-level |
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1031 |
statements (atomic meta-level propositions); setup controlled via |
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1032 |
rewrite rules declarations of 'atomize' attribute; example |
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1033 |
application: 'induct' method with proper rule statements in improper |
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1034 |
proof *scripts*; |
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as object-level
wenzelm
parents:
11937
diff
changeset
|
1035 |
|
12106
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset
|
1036 |
* Pure: emulation of instantiation tactics (rule_tac, cut_tac, etc.) |
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset
|
1037 |
now consider the syntactic context of assumptions, giving a better |
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset
|
1038 |
chance to get type-inference of the arguments right (this is |
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset
|
1039 |
especially important for locales); |
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset
|
1040 |
|
12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1041 |
* Pure: "sorry" no longer requires quick_and_dirty in interactive |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1042 |
mode; |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1043 |
|
12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1044 |
* Pure/obtain: the formal conclusion "thesis", being marked as |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1045 |
``internal'', may no longer be reference directly in the text; |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1046 |
potential INCOMPATIBILITY, may need to use "?thesis" in rare |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1047 |
situations; |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1048 |
|
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1049 |
* Pure: generic 'sym' attribute which declares a rule both as pure |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1050 |
'elim?' and for the 'symmetric' operation; |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1051 |
|
12877
b9635eb8a448
* Isar/Pure: marginal comments ``--'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset
|
1052 |
* Pure: marginal comments ``--'' may now occur just anywhere in the |
b9635eb8a448
* Isar/Pure: marginal comments ``--'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset
|
1053 |
text; the fixed correlation with particular command syntax has been |
b9635eb8a448
* Isar/Pure: marginal comments ``--'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset
|
1054 |
discontinued; |
b9635eb8a448
* Isar/Pure: marginal comments ``--'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset
|
1055 |
|
13023
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1056 |
* Pure: new method 'rules' is particularly well-suited for proof |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1057 |
search in intuitionistic logic; a bit slower than 'blast' or 'fast', |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1058 |
but often produces more compact proof terms with less detours; |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1059 |
|
12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1060 |
* Pure/Provers/classical: simplified integration with pure rule |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1061 |
attributes and methods; the classical "intro?/elim?/dest?" |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1062 |
declarations coincide with the pure ones; the "rule" method no longer |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1063 |
includes classically swapped intros; "intro" and "elim" methods no |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1064 |
longer pick rules from the context; also got rid of ML declarations |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1065 |
AddXIs/AddXEs/AddXDs; all of this has some potential for |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1066 |
INCOMPATIBILITY; |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1067 |
|
12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1068 |
* Provers/classical: attribute 'swapped' produces classical inversions |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1069 |
of introduction rules; |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1070 |
|
12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1071 |
* Provers/simplifier: 'simplified' attribute may refer to explicit |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1072 |
rules instead of full simplifier context; 'iff' attribute handles |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1073 |
conditional rules; |
11936
fef099613354
* Provers: 'simplified' attribute may refer to explicit rules instead
wenzelm
parents:
11933
diff
changeset
|
1074 |
|
11745
06cd8c3b5487
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm
parents:
11738
diff
changeset
|
1075 |
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms; |
06cd8c3b5487
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm
parents:
11738
diff
changeset
|
1076 |
|
11690 | 1077 |
* HOL: 'recdef' now fails on unfinished automated proofs, use |
11633 | 1078 |
"(permissive)" option to recover old behavior; |
1079 |
||
11933 | 1080 |
* HOL: 'inductive' no longer features separate (collective) attributes |
1081 |
for 'intros' (was found too confusing); |
|
1082 |
||
12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1083 |
* HOL: properly declared induction rules less_induct and |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1084 |
wf_induct_rule; |
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset
|
1085 |
|
11788
60054fee3c16
canonical 'cases'/'induct' rules for n-tuples (n=3..7)
kleing
parents:
11745
diff
changeset
|
1086 |
|
11474 | 1087 |
*** HOL *** |
1088 |
||
11702 | 1089 |
* HOL: moved over to sane numeral syntax; the new policy is as |
1090 |
follows: |
|
1091 |
||
1092 |
- 0 and 1 are polymorphic constants, which are defined on any |
|
1093 |
numeric type (nat, int, real etc.); |
|
1094 |
||
1095 |
- 2, 3, 4, ... and -1, -2, -3, ... are polymorphic numerals, based |
|
1096 |
binary representation internally; |
|
1097 |
||
1098 |
- type nat has special constructor Suc, and generally prefers Suc 0 |
|
1099 |
over 1::nat and Suc (Suc 0) over 2::nat; |
|
1100 |
||
12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1101 |
This change may cause significant problems of INCOMPATIBILITY; here |
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset
|
1102 |
are some hints on converting existing sources: |
11702 | 1103 |
|
1104 |
- due to the new "num" token, "-0" and "-1" etc. are now atomic |
|
1105 |
entities, so expressions involving "-" (unary or binary minus) need |
|
1106 |
to be spaced properly; |
|
1107 |
||
1108 |
- existing occurrences of "1" may need to be constraint "1::nat" or |
|
1109 |
even replaced by Suc 0; similar for old "2"; |
|
1110 |
||
1111 |
- replace "#nnn" by "nnn", and "#-nnn" by "-nnn"; |
|
1112 |
||
1113 |
- remove all special provisions on numerals in proofs; |
|
1114 |
||
13042 | 1115 |
* HOL: simp rules nat_number expand numerals on nat to Suc/0 |
12837 | 1116 |
representation (depends on bin_arith_simps in the default context); |
1117 |
||
12736 | 1118 |
* HOL: symbolic syntax for x^2 (numeral 2); |
1119 |
||
12335
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1120 |
* HOL: the class of all HOL types is now called "type" rather than |
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1121 |
"term"; INCOMPATIBILITY, need to adapt references to this type class |
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1122 |
in axclass/classes, instance/arities, and (usually rare) occurrences |
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1123 |
in typings (of consts etc.); internally the class is called |
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1124 |
"HOL.type", ML programs should refer to HOLogic.typeS; |
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset
|
1125 |
|
12280 | 1126 |
* HOL/record package improvements: |
1127 |
- new derived operations "fields" to build a partial record section, |
|
1128 |
"extend" to promote a fixed record to a record scheme, and |
|
1129 |
"truncate" for the reverse; cf. theorems "xxx.defs", which are *not* |
|
1130 |
declared as simp by default; |
|
12587
3f3d2ffb5df5
HOL/record: shared operations ("more", "fields", etc.) now need to be
wenzelm
parents:
12564
diff
changeset
|
1131 |
- shared operations ("more", "fields", etc.) now need to be always |
3f3d2ffb5df5
HOL/record: shared operations ("more", "fields", etc.) now need to be
wenzelm
parents:
12564
diff
changeset
|
1132 |
qualified) --- potential INCOMPATIBILITY; |
12280 | 1133 |
- removed "make_scheme" operations (use "make" with "extend") -- |
1134 |
INCOMPATIBILITY; |
|
11937 | 1135 |
- removed "more" class (simply use "term") -- INCOMPATIBILITY; |
12253 | 1136 |
- provides cases/induct rules for use with corresponding Isar |
1137 |
methods (for concrete records, record schemes, concrete more |
|
12280 | 1138 |
parts, and schematic more parts -- in that order); |
11930 | 1139 |
- internal definitions directly based on a light-weight abstract |
1140 |
theory of product types over typedef rather than datatype; |
|
1141 |
||
13023
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1142 |
* HOL: generic code generator for generating executable ML code from |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1143 |
specifications; specific support for HOL constructs such as inductive |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1144 |
datatypes and sets, as well as recursive functions; can be invoked |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1145 |
via 'generate_code' theory section; |
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset
|
1146 |
|
11933 | 1147 |
* HOL: canonical cases/induct rules for n-tuples (n = 3..7); |
1148 |
||
13824 | 1149 |
* HOL: consolidated and renamed several theories. In particular: |
14731 | 1150 |
Ord.thy has been absorbed into HOL.thy |
1151 |
String.thy has been absorbed into List.thy |
|
1152 |
||
11802
1d5f5d2427d2
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm
parents:
11797
diff
changeset
|
1153 |
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A" |
1d5f5d2427d2
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm
parents:
11797
diff
changeset
|
1154 |
(beware of argument permutation!); |
1d5f5d2427d2
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm
parents:
11797
diff
changeset
|
1155 |
|
11657 | 1156 |
* HOL: linorder_less_split superseded by linorder_cases; |
1157 |
||
12917 | 1158 |
* HOL/List: "nodups" renamed to "distinct"; |
12889 | 1159 |
|
11633 | 1160 |
* HOL: added "The" definite description operator; move Hilbert's "Eps" |
13824 | 1161 |
to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES: |
1162 |
- Ex_def has changed, now need to use some_eq_ex |
|
11437 | 1163 |
|
11572 | 1164 |
* HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so |
1165 |
in this (rare) case use: |
|
1166 |
||
1167 |
delSWrapper "split_all_tac" |
|
1168 |
addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac) |
|
1169 |
||
1170 |
* HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS |
|
11474 | 1171 |
MAY FAIL; |
11361 | 1172 |
|
11572 | 1173 |
* HOL: introduced f^n = f o ... o f; warning: due to the limits of |
1174 |
Isabelle's type classes, ^ on functions and relations has too general |
|
1175 |
a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be |
|
1176 |
necessary to attach explicit type constraints; |
|
11307 | 1177 |
|
12917 | 1178 |
* HOL/Relation: the prefix name of the infix "O" has been changed from |
1179 |
"comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been |
|
1180 |
renamed accordingly (eg "compI" -> "rel_compI"). |
|
12489 | 1181 |
|
11487
95071c9e85a3
* HOL: syntax translations now work properly with numerals and records
wenzelm
parents:
11475
diff
changeset
|
1182 |
* HOL: syntax translations now work properly with numerals and records |
95071c9e85a3
* HOL: syntax translations now work properly with numerals and records
wenzelm
parents:
11475
diff
changeset
|
1183 |
expressions; |
11474 | 1184 |
|
12457
cbfc53e45476
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm
parents:
12405
diff
changeset
|
1185 |
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead |
cbfc53e45476
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm
parents:
12405
diff
changeset
|
1186 |
of "lam" -- INCOMPATIBILITY; |
11474 | 1187 |
|
11933 | 1188 |
* HOL: got rid of some global declarations (potential INCOMPATIBILITY |
1189 |
for ML tools): const "()" renamed "Product_Type.Unity", type "unit" |
|
1190 |
renamed "Product_Type.unit"; |
|
11611 | 1191 |
|
12564 | 1192 |
* HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl |
1193 |
||
12924 | 1194 |
* HOL: removed obsolete theorem "optionE" (use "option.exhaust", or |
1195 |
the "cases" method); |
|
1196 |
||
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1197 |
* HOL/GroupTheory: group theory examples including Sylow's theorem (by |
15154 | 1198 |
Florian Kammller); |
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1199 |
|
12608
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1200 |
* HOL/IMP: updated and converted to new-style theory format; several |
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1201 |
parts turned into readable document, with proper Isar proof texts and |
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1202 |
some explanations (by Gerwin Klein); |
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1203 |
|
12734 | 1204 |
* HOL-Real: added Complex_Numbers (by Gertrud Bauer); |
1205 |
||
12690 | 1206 |
* HOL-Hyperreal is now a logic image; |
1207 |
||
11611 | 1208 |
|
12022
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset
|
1209 |
*** HOLCF *** |
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset
|
1210 |
|
12622 | 1211 |
* Isar: consts/constdefs supports mixfix syntax for continuous |
1212 |
operations; |
|
1213 |
||
1214 |
* Isar: domain package adapted to new-style theory format, e.g. see |
|
1215 |
HOLCF/ex/Dnat.thy; |
|
1216 |
||
1217 |
* theory Lift: proper use of rep_datatype lift instead of ML hacks -- |
|
12280 | 1218 |
potential INCOMPATIBILITY; now use plain induct_tac instead of former |
1219 |
lift.induct_tac, always use UU instead of Undef; |
|
12022
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset
|
1220 |
|
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1221 |
* HOLCF/IMP: updated and converted to new-style theory; |
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1222 |
|
12022
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset
|
1223 |
|
11474 | 1224 |
*** ZF *** |
1225 |
||
12622 | 1226 |
* Isar: proper integration of logic-specific tools and packages, |
1227 |
including theory commands '(co)inductive', '(co)datatype', |
|
1228 |
'rep_datatype', 'inductive_cases', as well as methods 'ind_cases', |
|
1229 |
'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC'); |
|
1230 |
||
1231 |
* theory Main no longer includes AC; for the Axiom of Choice, base |
|
1232 |
your theory on Main_ZFC; |
|
1233 |
||
1234 |
* the integer library now covers quotients and remainders, with many |
|
1235 |
laws relating division to addition, multiplication, etc.; |
|
12563 | 1236 |
|
12280 | 1237 |
* ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a |
1238 |
typeless version of the formalism; |
|
1239 |
||
13025 | 1240 |
* ZF/AC, Coind, IMP, Resid: updated and converted to new-style theory |
1241 |
format; |
|
12608
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1242 |
|
12280 | 1243 |
* ZF/Induct: new directory for examples of inductive definitions, |
12608
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1244 |
including theory Multiset for multiset orderings; converted to |
2df381faa787
* ZF/IMP: updated and converted to new-style theory format;
wenzelm
parents:
12597
diff
changeset
|
1245 |
new-style theory format; |
12177
b1c16d685a99
* ZF: new-style theory commands 'inductive', 'inductive_cases', and
wenzelm
parents:
12163
diff
changeset
|
1246 |
|
13025 | 1247 |
* ZF: many new theorems about lists, ordinals, etc.; |
12850 | 1248 |
|
11474 | 1249 |
|
1250 |
*** General *** |
|
1251 |
||
12280 | 1252 |
* Pure/kernel: meta-level proof terms (by Stefan Berghofer); reference |
1253 |
variable proof controls level of detail: 0 = no proofs (only oracle |
|
1254 |
dependencies), 1 = lemma dependencies, 2 = compact proof terms; see |
|
1255 |
also ref manual for further ML interfaces; |
|
1256 |
||
1257 |
* Pure/axclass: removed obsolete ML interface |
|
1258 |
goal_subclass/goal_arity; |
|
1259 |
||
1260 |
* Pure/syntax: new token syntax "num" for plain numerals (without "#" |
|
1261 |
of "xnum"); potential INCOMPATIBILITY, since -0, -1 etc. are now |
|
1262 |
separate tokens, so expressions involving minus need to be spaced |
|
1263 |
properly; |
|
1264 |
||
12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1265 |
* Pure/syntax: support non-oriented infixes, using keyword "infix" |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1266 |
rather than "infixl" or "infixr"; |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1267 |
|
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1268 |
* Pure/syntax: concrete syntax for dummy type variables admits genuine |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1269 |
sort constraint specifications in type inference; e.g. "x::_::foo" |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1270 |
ensures that the type of "x" is of sort "foo" (but not necessarily a |
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset
|
1271 |
type variable); |
12280 | 1272 |
|
1273 |
* Pure/syntax: print modes "type_brackets" and "no_type_brackets" |
|
1274 |
control output of nested => (types); the default behavior is |
|
1275 |
"type_brackets"; |
|
1276 |
||
1277 |
* Pure/syntax: builtin parse translation for "_constify" turns valued |
|
11817 | 1278 |
tokens into AST constants; |
11474 | 1279 |
|
12280 | 1280 |
* Pure/syntax: prefer later declarations of translations and print |
1281 |
translation functions; potential INCOMPATIBILITY: need to reverse |
|
1282 |
multiple declarations for same syntax element constant; |
|
1283 |
||
12832
c31b44286a8a
* Pure/show_hyps reset by default (in accordance to existing Isar practice);
wenzelm
parents:
12777
diff
changeset
|
1284 |
* Pure/show_hyps reset by default (in accordance to existing Isar |
c31b44286a8a
* Pure/show_hyps reset by default (in accordance to existing Isar practice);
wenzelm
parents:
12777
diff
changeset
|
1285 |
practice); |
c31b44286a8a
* Pure/show_hyps reset by default (in accordance to existing Isar practice);
wenzelm
parents:
12777
diff
changeset
|
1286 |
|
12280 | 1287 |
* Provers/classical: renamed addaltern to addafter, addSaltern to |
1288 |
addSafter; |
|
1289 |
||
1290 |
* Provers/clasimp: ``iff'' declarations now handle conditional rules |
|
1291 |
as well; |
|
12253 | 1292 |
|
12538 | 1293 |
* system: tested support for MacOS X; should be able to get Isabelle + |
1294 |
Proof General to work in a plain Terminal after installing Poly/ML |
|
1295 |
(e.g. from the Isabelle distribution area) and GNU bash alone |
|
1296 |
(e.g. from http://www.apple.com); full X11, XEmacs and X-Symbol |
|
1297 |
support requires further installations, e.g. from |
|
1298 |
http://fink.sourceforge.net/); |
|
1299 |
||
12280 | 1300 |
* system: support Poly/ML 4.1.1 (able to manage larger heaps); |
11551 | 1301 |
|
12753
3a62df7ae926
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm
parents:
12736
diff
changeset
|
1302 |
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead |
3a62df7ae926
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm
parents:
12736
diff
changeset
|
1303 |
of 40 MB), cf. ML_OPTIONS; |
3a62df7ae926
* system: reduced base memory usage by Poly/ML (approx. 20 MB instead
wenzelm
parents:
12736
diff
changeset
|
1304 |
|
11633 | 1305 |
* system: Proof General keywords specification is now part of the |
1306 |
Isabelle distribution (see etc/isar-keywords.el); |
|
1307 |
||
12728 | 1308 |
* system: support for persistent Proof General sessions (refrain from |
1309 |
outdating all loaded theories on startup); user may create writable |
|
1310 |
logic images like this: ``isabelle -q HOL Test''; |
|
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset
|
1311 |
|
11551 | 1312 |
* system: smart selection of Isabelle process versus Isabelle |
11572 | 1313 |
interface, accommodates case-insensitive file systems (e.g. HFS+); may |
1314 |
run both "isabelle" and "Isabelle" even if file names are badly |
|
1315 |
damaged (executable inspects the case of the first letter of its own |
|
1316 |
name); added separate "isabelle-process" and "isabelle-interface"; |
|
11551 | 1317 |
|
12472 | 1318 |
* system: refrain from any attempt at filtering input streams; no |
1319 |
longer support ``8bit'' encoding of old isabelle font, instead proper |
|
1320 |
iso-latin characters may now be used; the related isatools |
|
1321 |
"symbolinput" and "nonascii" have disappeared as well; |
|
1322 |
||
1323 |
* system: removed old "xterm" interface (the print modes "xterm" and |
|
1324 |
"xterm_color" are still available for direct use in a suitable |
|
1325 |
terminal); |
|
1326 |
||
11314 | 1327 |
|
11169
98c2f741e32b
made split_all_tac safe introducing safe_full_simp_tac, EXISTING PROOFS MAY FAIL
oheimb
parents:
11130
diff
changeset
|
1328 |
|
11062 | 1329 |
New in Isabelle99-2 (February 2001) |
1330 |
----------------------------------- |
|
1331 |
||
10224 | 1332 |
*** Overview of INCOMPATIBILITIES *** |
1333 |
||
11241 | 1334 |
* HOL: please note that theories in the Library and elsewhere often use the |
1335 |
new-style (Isar) format; to refer to their theorems in an ML script you must |
|
12622 | 1336 |
bind them to ML identifers by e.g. val thm_name = thm "thm_name"; |
11241 | 1337 |
|
11043
2e3bbac8763b
HOL: inductive package no longer splits induction rule aggressively,
wenzelm
parents:
11016
diff
changeset
|
1338 |
* HOL: inductive package no longer splits induction rule aggressively, |
2e3bbac8763b
HOL: inductive package no longer splits induction rule aggressively,
wenzelm
parents:
11016
diff
changeset
|
1339 |
but only as far as specified by the introductions given; the old |
11130 | 1340 |
format may be recovered via ML function complete_split_rule or attribute |
11043
2e3bbac8763b
HOL: inductive package no longer splits induction rule aggressively,
wenzelm
parents:
11016
diff
changeset
|
1341 |
'split_rule (complete)'; |
2e3bbac8763b
HOL: inductive package no longer splits induction rule aggressively,
wenzelm
parents:
11016
diff
changeset
|
1342 |
|
10998 | 1343 |
* HOL: induct renamed to lfp_induct, lfp_Tarski to lfp_unfold, |
1344 |
gfp_Tarski to gfp_unfold; |
|
10224 | 1345 |
|
10288 | 1346 |
* HOL: contrapos, contrapos2 renamed to contrapos_nn, contrapos_pp; |
1347 |
||
10858 | 1348 |
* HOL: infix "dvd" now has priority 50 rather than 70 (because it is a |
1349 |
relation); infix "^^" has been renamed "``"; infix "``" has been |
|
1350 |
renamed "`"; "univalent" has been renamed "single_valued"; |
|
10793 | 1351 |
|
10998 | 1352 |
* HOL/Real: "rinv" and "hrinv" replaced by overloaded "inverse" |
1353 |
operation; |
|
1354 |
||
10868 | 1355 |
* HOLCF: infix "`" has been renamed "$"; the symbol syntax is \<cdot>; |
10856 | 1356 |
|
10391 | 1357 |
* Isar: 'obtain' no longer declares "that" fact as simp/intro; |
1358 |
||
10401
58bb50f69497
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm
parents:
10391
diff
changeset
|
1359 |
* Isar/HOL: method 'induct' now handles non-atomic goals; as a |
58bb50f69497
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm
parents:
10391
diff
changeset
|
1360 |
consequence, it is no longer monotonic wrt. the local goal context |
58bb50f69497
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm
parents:
10391
diff
changeset
|
1361 |
(which is now passed through the inductive cases); |
58bb50f69497
* Isar/HOL: method 'induct' now handles non-atomic goals; as a
wenzelm
parents:
10391
diff
changeset
|
1362 |
|
10976
0e7cf6f9fa29
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm
parents:
10966
diff
changeset
|
1363 |
* Document preparation: renamed standard symbols \<ll> to \<lless> and |
0e7cf6f9fa29
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm
parents:
10966
diff
changeset
|
1364 |
\<gg> to \<ggreater>; |
0e7cf6f9fa29
* Document preparation: renamed standard symbols \<ll> to \<lless> and
wenzelm
parents:
10966
diff
changeset
|
1365 |
|
10224 | 1366 |
|
10245
87771e2f49fe
* HOL/Library: a collection of generic theories to be used together
wenzelm
parents:
10224
diff
changeset
|
1367 |
*** Document preparation *** |
87771e2f49fe
* HOL/Library: a collection of generic theories to be used together
wenzelm
parents:
10224
diff
changeset
|
1368 |
|
10858 | 1369 |
* \isabellestyle{NAME} selects version of Isabelle output (currently |
1370 |
available: are "it" for near math-mode best-style output, "sl" for |
|
1371 |
slanted text style, and "tt" for plain type-writer; if no |
|
1372 |
\isabellestyle command is given, output is according to slanted |
|
1373 |
type-writer); |
|
1374 |
||
10322
df38c61bf541
* support sub/super scripts (for single symbols only), input syntax is
wenzelm
parents:
10306
diff
changeset
|
1375 |
* support sub/super scripts (for single symbols only), input syntax is |
df38c61bf541
* support sub/super scripts (for single symbols only), input syntax is
wenzelm
parents:
10306
diff
changeset
|
1376 |
like this: "A\<^sup>*" or "A\<^sup>\<star>"; |
df38c61bf541
* support sub/super scripts (for single symbols only), input syntax is
wenzelm
parents:
10306
diff
changeset
|
1377 |
|
10858 | 1378 |
* some more standard symbols; see Appendix A of the system manual for |
11062 | 1379 |
the complete list of symbols defined in isabellesym.sty; |
10858 | 1380 |
|
10998 | 1381 |
* improved isabelle style files; more abstract symbol implementation |
1382 |
(should now use \isamath{...} and \isatext{...} in custom symbol |
|
1383 |
definitions); |
|
1384 |
||
10634 | 1385 |
* antiquotation @{goals} and @{subgoals} for output of *dynamic* goals |
1386 |
state; Note that presentation of goal states does not conform to |
|
1387 |
actual human-readable proof documents. Please do not include goal |
|
1388 |
states into document output unless you really know what you are doing! |
|
10322
df38c61bf541
* support sub/super scripts (for single symbols only), input syntax is
wenzelm
parents:
10306
diff
changeset
|
1389 |
|
11062 | 1390 |
* proper indentation of antiquoted output with proportional LaTeX |
1391 |
fonts; |
|
10862 | 1392 |
|
11050
ac5709ac50b9
* no_document ML operator temporarily disables LaTeX document
wenzelm
parents:
11043
diff
changeset
|
1393 |
* no_document ML operator temporarily disables LaTeX document |
ac5709ac50b9
* no_document ML operator temporarily disables LaTeX document
wenzelm
parents:
11043
diff
changeset
|
1394 |
generation; |
ac5709ac50b9
* no_document ML operator temporarily disables LaTeX document
wenzelm
parents:
11043
diff
changeset
|
1395 |
|
11062 | 1396 |
* isatool unsymbolize tunes sources for plain ASCII communication; |
1397 |
||
10322
df38c61bf541
* support sub/super scripts (for single symbols only), input syntax is
wenzelm
parents:
10306
diff
changeset
|
1398 |
|
10306
b0ab988a27a9
* HOL: default proof step now includes 'intro_classes';
wenzelm
parents:
10288
diff
changeset
|
1399 |
*** Isar *** |
b0ab988a27a9
* HOL: default proof step now includes 'intro_classes';
wenzelm
parents:
10288
diff
changeset
|
1400 |
|
10547 | 1401 |
* Pure: Isar now suffers initial goal statements to contain unbound |
1402 |
schematic variables (this does not conform to actual readable proof |
|
1403 |
documents, due to unpredictable outcome and non-compositional proof |
|
1404 |
checking); users who know what they are doing may use schematic goals |
|
1405 |
for Prolog-style synthesis of proven results; |
|
1406 |
||
10391 | 1407 |
* Pure: assumption method (an implicit finishing) now handles actual |
1408 |
rules as well; |
|
1409 |
||
1410 |
* Pure: improved 'obtain' --- moved to Pure, insert "that" into |
|