author  wenzelm 
Thu, 28 Jul 2005 15:19:44 +0200  
changeset 16929  b23c54fd31f7 
parent 16908  d374530bfaaa 
child 16962  f99dd1274c5f 
permissions  rwrr 
5363  1 
Isabelle NEWS  history userrelevant 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 

16717  20 
will disappear in the next release. Use isatool fixheaders to convert 
21 
existing theory files. Note that there is no change in ancient 

22 
nonIsar theories. 

15130  23 

15475
fdf9434b04ea
 Proofs are now hidden by default when generating documents
berghofe
parents:
15454
diff
changeset

24 
* Theory loader: parent theories can now also be referred to via 
16234  25 
relative and absolute paths. 
26 

27 
* Improved version of thms_containing searches for a list of criteria 

28 
instead of a list of constants. Known criteria are: intro, elim, dest, 

29 
name:string, simp:term, and any term. Criteria can be preceded by '' 

30 
to select theorems that do not match. Intro, elim, dest select 

31 
theorems that match the current goal, name:s selects theorems whose 

32 
fully qualified name contain s, and simp:term selects all 

33 
simplification rules whose lhs match term. Any other term is 

34 
interpreted as pattern and selects all theorems matching the 

35 
pattern. Available in ProofGeneral under 'ProofGeneral > Find 

36 
Theorems' or Cc Cf. Example: 

37 

38 
Cc Cf (100) "(_::nat) + _ + _" intro name:"HOL." 

39 

40 
prints the last 100 theorems matching the pattern "(_::nat) + _ + _", 

41 
matching the current goal as introduction rule and not having "HOL." 

42 
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

43 

15703  44 

45 
*** Document preparation *** 

46 

16234  47 
* Commands 'display_drafts' and 'print_drafts' perform simple output 
48 
of raw sources. Only those symbols that do not require additional 

49 
LaTeX packages (depending on comments in isabellesym.sty) are 

50 
displayed properly, everything else is left verbatim. isatool display 

51 
and isatool print are used as front ends (these are subject to the 

52 
DVI/PDF_VIEWER and PRINT_COMMAND settings, respectively). 

53 

54 
* There is now a flag to control hiding of proofs and some other 

55 
commands (such as 'ML' or 'parse/print_translation') in document 

56 
output. Hiding is enabled by default, and can be disabled by the 

57 
option 'H false' of isatool usedir or by resetting the reference 

58 
variable IsarOutput.hide_commands in ML. Additional commands to be 

59 
hidden may be declared using IsarOutput.add_hidden_commands. 

60 

15979  61 
* Several new antiquotation: 
62 

63 
@{term_type term} prints a term with its type annotated; 

64 

65 
@{typeof term} prints the type of a term; 

66 

16234  67 
@{const const} is the same as @{term const}, but checks that the 
68 
argument is a known logical constant; 

15979  69 

70 
@{term_style style term} and @{thm_style style thm} print a term or 

16234  71 
theorem applying a "style" to it 
72 

73 
Predefined styles are 'lhs' and 'rhs' printing the lhs/rhs of 

74 
definitions, equations, inequations etc., 'concl' printing only the 

75 
conclusion of a metalogical statement theorem, and 'prem1' .. 'prem9' 

76 
to print the specified premise. TermStyle.add_style provides an ML 

77 
interface for introducing further styles. See also the "LaTeX Sugar" 

78 
document practical applications. 

79 

80 

81 
*** Pure *** 

82 

83 
* Considerably improved version of 'constdefs' command. Now performs 

84 
automatic typeinference of declared constants; additional support for 

85 
local structure declarations (cf. locales and HOL records), see also 

86 
isarref manual. Potential INCOMPATIBILITY: need to observe strictly 

87 
sequential dependencies of definitions within a single 'constdefs' 

88 
section; moreover, the declared name needs to be an identifier. If 

89 
all fails, consider to fall back on 'consts' and 'defs' separately. 

90 

91 
* Improved indexed syntax and implicit structures. First of all, 

92 
indexed syntax provides a notational device for subscripted 

93 
application, using the new syntax \<^bsub>term\<^esub> for arbitrary 

94 
expressions. Secondly, in a local context with structure 

95 
declarations, number indexes \<^sub>n or the empty index (default 

96 
number 1) refer to a certain fixed variable implicitly; option 

97 
show_structs controls printing of implicit structures. Typical 

98 
applications of these concepts involve record types and locales. 

99 

100 
* New command 'no_syntax' removes grammar declarations (and 

101 
translations) resulting from the given syntax specification, which is 

102 
interpreted in the same manner as for the 'syntax' command. 

103 

104 
* 'Advanced' translation functions (parse_translation etc.) may depend 

105 
on the signature of the theory context being presently used for 

106 
parsing/printing, see also isarref manual. 

107 

16856  108 
* Improved 'oracle' command provides a typesafe interface to turn an 
109 
ML expression of type theory > T > term into a primitive rule of 

110 
type theory > T > thm (i.e. the functionality of Thm.invoke_oracle 

111 
is already included here); see also FOL/ex/IffExample.thy; 

112 
INCOMPATIBILITY. 

113 

16234  114 
* Improved internal renaming of symbolic identifiers  attach primes 
115 
instead of base 26 numbers. 

116 

117 
* New flag show_question_marks controls printing of leading question 

118 
marks in schematic variable names. 

119 

120 
* In schematic variable names, *any* symbol following \<^isub> or 

121 
\<^isup> is now treated as part of the base name. For example, the 

122 
following works without printing of awkward ".0" indexes: 

123 

124 
lemma "x\<^isub>1 = x\<^isub>2 ==> x\<^isub>2 = x\<^isub>1" 

125 
by simp 

126 

127 
* Inner syntax includes (*(*nested*) comments*). 

128 

129 
* Pretty pinter now supports unbreakable blocks, specified in mixfix 

130 
annotations as "(00...)". 

131 

132 
* Clear separation of logical types and nonterminals, where the latter 

133 
may only occur in 'syntax' specifications or type abbreviations. 

134 
Before that distinction was only partially implemented via type class 

135 
"logic" vs. "{}". Potential INCOMPATIBILITY in rare cases of improper 

136 
use of 'types'/'consts' instead of 'nonterminals'/'syntax'. Some very 

137 
exotic syntax specifications may require further adaption 

138 
(e.g. Cube/Base.thy). 

139 

140 
* Removed obsolete type class "logic", use the top sort {} instead. 

141 
Note that nonlogical types should be declared as 'nonterminals' 

142 
rather than 'types'. INCOMPATIBILITY for new objectlogic 

143 
specifications. 

144 

145 
* Simplifier: can now control the depth to which conditional rewriting 

146 
is traced via the PG menu Isabelle > Settings > Trace Simp Depth 

147 
Limit. 

148 

149 
* Simplifier: simplification procedures may now take the current 

150 
simpset into account (cf. Simplifier.simproc(_i) / mk_simproc 

151 
interface), which is very useful for calling the Simplifier 

152 
recursively. Minor INCOMPATIBILITY: the 'prems' argument of simprocs 

153 
is gone  use prems_of_ss on the simpset instead. Moreover, the 

154 
lowlevel mk_simproc no longer applies Logic.varify internally, to 

155 
allow for use in a context of fixed variables. 

156 

157 
* thin_tac now works even if the assumption being deleted contains !! 

158 
or ==>. More generally, erule now works even if the major premise of 

159 
the elimination rule contains !! or ==>. 

160 

161 
* Reorganized bootstrapping of the Pure theories; CPure is now derived 

162 
from Pure, which contains all common declarations already. Both 

163 
theories are defined via plain Isabelle/Isar .thy files. 

164 
INCOMPATIBILITY: elements of CPure (such as the CPure.intro / 

165 
CPure.elim / CPure.dest attributes) now appear in the Pure name space; 

166 
use isatool fixcpure to adapt your theory and ML sources. 

167 

168 
* New syntax 'name(ij, i, i, ...)' for referring to specific 

169 
selections of theorems in named facts via index ranges. 

170 

16506
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

171 
* More efficient treatment of intermediate checkpoints in interactive 
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

172 
theory development. 
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

173 

16234  174 

175 
*** Locales *** 

176 

177 
* New commands for the interpretation of locale expressions in 

178 
theories ('interpretation') and proof contexts ('interpret'). These 

179 
take an instantiation of the locale parameters and compute proof 

180 
obligations from the instantiated specification. After the 

181 
obligations have been discharged, the instantiated theorems of the 

182 
locale are added to the theory or proof context. Interpretation is 

183 
smart in that already active interpretations do not occur in proof 

184 
obligations, neither are instantiated theorems stored in duplicate. 

185 
Use print_interps to inspect active interpretations of a particular 

186 
locale. For details, see the Isar Reference manual. 

187 

188 
INCOMPATIBILITY: former 'instantiate' has been withdrawn, use 

189 
'interpret' instead. 

190 

191 
* Proper static binding of attribute syntax  i.e. types / terms / 

192 
facts mentioned as arguments are always those of the locale definition 

193 
context, independently of the context of later invocations. Moreover, 

194 
locale operations (renaming and type / term instantiation) are applied 

195 
to attribute arguments as expected. 

196 

197 
INCOMPATIBILITY of the ML interface: always pass Attrib.src instead of 

198 
actual attributes; rare situations may require Attrib.attribute to 

199 
embed those attributes into Attrib.src that lack concrete syntax. 

200 
Attribute implementations need to cooperate properly with the static 

201 
binding mechanism. Basic parsers Args.XXX_typ/term/prop and 

202 
Attrib.XXX_thm etc. already do the right thing without further 

203 
intervention. Only unusual applications  such as "where" or "of" 

204 
(cf. src/Pure/Isar/attrib.ML), which process arguments depending both 

205 
on the context and the facts involved  may have to assign parsed 

206 
values to argument tokens explicitly. 

207 

208 
* New context element "constrains" adds type constraints to parameters  

209 
there is no logical significance. 

210 

211 
* Context expressions: renaming parameters permits syntax 

212 
redeclaration as well. 

213 

214 
* Locale definition: 'includes' now disallowed. 

215 

216 
* Changed parameter management in theorem generation for long goal 

217 
statements with 'includes'. INCOMPATIBILITY: produces a different 

218 
theorem statement in rare situations. 

219 

220 
* Attributes 'induct' and 'cases': type or set names may now be 

221 
locally fixed variables as well. 

15703  222 

223 
* Antiquotations now provide the option 'locale=NAME' to specify an 

16234  224 
alternative context used for evaluating and printing the subsequent 
225 
argument, as in @{thm [locale=LC] fold_commute}, for example. 

226 

227 

228 
*** Provers *** 

229 

230 
* Provers/hypsubst.ML: improved version of the subst method, for 

231 
singlestep rewriting: it now works in bound variable contexts. New is 

232 
'subst (asm)', for rewriting an assumption. INCOMPATIBILITY: may 

233 
rewrite a different subterm than the original subst method, which is 

234 
still available as 'simplesubst'. 

235 

236 
* Provers/quasi.ML: new transitivity reasoners for transitivity only 

237 
and quasi orders. 

238 

239 
* Provers/trancl.ML: new transitivity reasoner for transitive and 

240 
reflexivetransitive closure of relations. 

241 

242 
* Provers/blast.ML: new reference depth_limit to make blast's depth 

243 
limit (previously hardcoded with a value of 20) userdefinable. 

244 

245 
* Provers/simplifier.ML has been moved to Pure, where Simplifier.setup 

246 
is peformed already. Objectlogics merely need to finish their 

247 
initial simpset configuration as before. INCOMPATIBILITY. 

15703  248 

15475
fdf9434b04ea
 Proofs are now hidden by default when generating documents
berghofe
parents:
15454
diff
changeset

249 

14700
2f885b7e5ba7
reimplementation of HOL records; only one type is created for
schirmer
parents:
14699
diff
changeset

250 
*** HOL *** 
2f885b7e5ba7
reimplementation of HOL records; only one type is created for
schirmer
parents:
14699
diff
changeset

251 

16234  252 
* Symbolic syntax of Hilbert Choice Operator is now as follows: 
14878  253 

254 
syntax (epsilon) 

255 
"_Eps" :: "[pttrn, bool] => 'a" ("(3\<some>_./ _)" [0, 10] 10) 

256 

16234  257 
The symbol \<some> is displayed as the alternative epsilon of LaTeX 
258 
and xsymbol; use option 'm epsilon' to get it actually printed. 

259 
Moreover, the mathematically important symbolic identifier \<epsilon> 

260 
becomes available as variable, constant etc. INCOMPATIBILITY, 

261 

262 
* "x > y" abbreviates "y < x" and "x >= y" abbreviates "y <= x". 

263 
Similarly for all quantifiers: "ALL x > y" etc. The xsymbol for >= 

264 
is \<ge>. 

265 

266 
* "{x:A. P}" abbreviates "{x. x:A & P}", and similarly for "\<in>" 

267 
instead of ":". 

268 

269 
* theory SetInterval: changed the syntax for open intervals: 

270 

271 
Old New 

272 
{..n(} {..<n} 

273 
{)n..} {n<..} 

274 
{m..n(} {m..<n} 

275 
{)m..n} {m<..n} 

276 
{)m..n(} {m<..<n} 

277 

278 
The old syntax is still supported but will disappear in the next 

279 
release. For conversion use the following Emacs search and replace 

280 
patterns (these are not perfect but work quite well): 

15046  281 

282 
{)\([^\.]*\)\.\. > {\1<\.\.} 

283 
\.\.\([^(}]*\)(} > \.\.<\1} 

284 

16234  285 
* theory Finite_Set: changed the syntax for 'setsum', summation over 
286 
finite sets: "setsum (%x. e) A", which used to be "\<Sum>x:A. e", is 

287 
now either "SUM x:A. e" or "\<Sum>x \<in> A. e". 

288 

289 
Some new syntax forms are available: 

290 

291 
"\<Sum>x  P. e" for "setsum (%x. e) {x. P}" 

292 
"\<Sum>x = a..b. e" for "setsum (%x. e) {a..b}" 

293 
"\<Sum>x = a..<b. e" for "setsum (%x. e) {a..<b}" 

294 
"\<Sum>x < k. e" for "setsum (%x. e) {..<k}" 

295 

296 
The latter form "\<Sum>x < k. e" used to be based on a separate 

297 
function "Summation", which has been discontinued. 

298 

299 
* theory Finite_Set: in structured induction proofs, the insert case 

300 
is now 'case (insert x F)' instead of the old counterintuitive 'case 

301 
(insert F x)'. 

302 

303 
* The 'refute' command has been extended to support a much larger 

304 
fragment of HOL, including axiomatic type classes, constdefs and 

305 
typedefs, inductive datatypes and recursion. 

306 

307 
* Datatype induction via method 'induct' now preserves the name of the 

308 
induction variable. For example, when proving P(xs::'a list) by 

309 
induction on xs, the induction step is now P(xs) ==> P(a#xs) rather 

310 
than P(list) ==> P(a#list) as previously. Potential INCOMPATIBILITY 

311 
in unstructured proof scripts. 

312 

313 
* Reworked implementation of records. Improved scalability for 

314 
records with many fields, avoiding performance problems for type 

315 
inference. Records are no longer composed of nested field types, but 

316 
of nested extension types. Therefore the record type only grows linear 

317 
in the number of extensions and not in the number of fields. The 

318 
toplevel (users) view on records is preserved. Potential 

319 
INCOMPATIBILITY only in strange cases, where the theory depends on the 

320 
old record representation. The type generated for a record is called 

321 
<record_name>_ext_type. 

322 

323 
Flag record_quick_and_dirty_sensitive can be enabled to skip the 

324 
proofs triggered by a record definition or a simproc (if 

325 
quick_and_dirty is enabled). Definitions of large records can take 

326 
quite long. 

327 

328 
New simproc record_upd_simproc for simplification of multiple record 

329 
updates enabled by default. Moreover, trivial updates are also 

330 
removed: r(x := x r) = r. INCOMPATIBILITY: old proofs break 

331 
occasionally, since simplification is more powerful by default. 

332 

333 
* Simplifier: automatically reasons about transitivity chains 

334 
involving "trancl" (r^+) and "rtrancl" (r^*) by setting up tactics 

335 
provided by Provers/trancl.ML as additional solvers. INCOMPATIBILITY: 

336 
old proofs break occasionally as simplification may now solve more 

337 
goals than previously. 

338 

339 
* Simplifier: converts x <= y into x = y if assumption y <= x is 

340 
present. Works for all partial orders (class "order"), in particular 

341 
numbers and sets. For linear orders (e.g. numbers) it treats ~ x < y 

342 
just like y <= x. 

343 

344 
* Simplifier: new simproc for "let x = a in f x". If a is a free or 

345 
bound variable or a constant then the let is unfolded. Otherwise 

346 
first a is simplified to b, and then f b is simplified to g. If 

347 
possible we abstract b from g arriving at "let x = b in h x", 

348 
otherwise we unfold the let and arrive at g. The simproc can be 

349 
enabled/disabled by the reference use_let_simproc. Potential 

350 
INCOMPATIBILITY since simplification is more powerful by default. 

15776  351 

16563  352 
* Classical reasoning: the meson method now accepts theorems as arguments. 
353 

16891  354 
* Theory OrderedGroup and Ring_and_Field: various additions and 
355 
improvements to faciliate calculations involving equalities and 

356 
inequalities. 

357 

358 
The following theorems have been eliminated or modified 

359 
(INCOMPATIBILITY): 

16888  360 

361 
abs_eq now named abs_of_nonneg 

362 
abs_of_ge_0 now named abs_of_nonneg 

363 
abs_minus_eq now named abs_of_nonpos 

364 
imp_abs_id now named abs_of_nonneg 

365 
imp_abs_neg_id now named abs_of_nonpos 

366 
mult_pos now named mult_pos_pos 

367 
mult_pos_le now named mult_nonneg_nonneg 

368 
mult_pos_neg_le now named mult_nonneg_nonpos 

369 
mult_pos_neg2_le now named mult_nonneg_nonpos2 

370 
mult_neg now named mult_neg_neg 

371 
mult_neg_le now named mult_nonpos_nonpos 

372 

16891  373 
* Theory Parity: added rules for simplifying exponents. 
374 

16929  375 
* Theories SetsAndFunctions and BigO (see HOL/Library) support 
376 
asymptotic "big O" calculations. See the notes in BigO.thy. 

377 

16888  378 

379 
*** HOLComplex *** 

380 

16891  381 
* Theory RealDef: better support for embedding natural numbers and 
382 
integers in the reals. 

383 

384 
The following theorems have been eliminated or modified 

385 
(INCOMPATIBILITY): 

386 

387 
real_of_int_add reversed direction of equality (use [symmetric]) 

388 
real_of_int_minus reversed direction of equality (use [symmetric]) 

389 
real_of_int_diff reversed direction of equality (use [symmetric]) 

390 
real_of_int_mult reversed direction of equality (use [symmetric]) 

391 

392 
* Theory RComplete: expanded support for floor and ceiling functions. 

16888  393 

14655
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset

394 

14682
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset

395 
*** HOLCF *** 
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset

396 

a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset

397 
* HOLCF: discontinued special version of 'constdefs' (which used to 
16234  398 
support continuous functions) in favor of the general Pure one with 
399 
full typeinference. 

14682
a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset

400 

a5072752114c
HOLCF: discontinued special version of 'constdefs';
wenzelm
parents:
14655
diff
changeset

401 

14885  402 
*** ZF *** 
403 

16234  404 
* ZF/ex: theories Group and Ring provide examples in abstract algebra, 
405 
including the First Isomorphism Theorem (on quotienting by the kernel 

406 
of a homomorphism). 

15089
430264838064
ZF/Simplifier: second copy of context type solver;
wenzelm
parents:
15076
diff
changeset

407 

430264838064
ZF/Simplifier: second copy of context type solver;
wenzelm
parents:
15076
diff
changeset

408 
* ZF/Simplifier: install second copy of type solver that actually 
16234  409 
makes use of TC rules declared to Isar proof contexts (or locales); 
410 
the old version is still required for ML proof scripts. 

15703  411 

412 

413 
*** ML *** 

414 

15973  415 
* Pure/library.ML no longer defines its own option datatype, but uses 
16234  416 
that of the SML basis, which has constructors NONE and SOME instead of 
417 
None and Some, as well as exception Option.Option instead of OPTION. 

418 
The functions the, if_none, is_some, is_none have been adapted 

419 
accordingly, while Option.map replaces apsome. 

15973  420 

16860
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

421 
* Pure/library.ML: the exception LIST has been given up in favour of 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

422 
the standard exceptions Empty and Subscript, as well as 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

423 
Library.UnequalLengths. Function like Library.hd and Library.tl are 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

424 
superceded by the standard hd and tl functions etc. 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

425 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

426 
A number of basic list functions are no longer exported to the ML 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

427 
toplevel, as they are variants of predefined functions. The following 
16234  428 
suggests how one can translate existing code: 
15973  429 

430 
rev_append xs ys = List.revAppend (xs, ys) 

431 
nth_elem (i, xs) = List.nth (xs, i) 

432 
last_elem xs = List.last xs 

433 
flat xss = List.concat xss 

16234  434 
seq fs = List.app fs 
15973  435 
partition P xs = List.partition P xs 
436 
mapfilter f xs = List.mapPartial f xs 

437 

16860
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

438 
* Pure/library.ML: several combinators for linear functional 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

439 
transformations, notably reverse application and composition: 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

440 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

441 
x > f f #> g 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

442 
(x, y) > f f #> g 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

443 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

444 
* Pure/library.ML: canonical list combinators fold, fold_rev, and 
16869  445 
fold_map support linear functional transformations and nesting. For 
16860
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

446 
example: 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

447 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

448 
fold f [x1, ..., xN] y = 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

449 
y > f x1 > ... > f xN 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

450 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

451 
(fold o fold) f [xs1, ..., xsN] y = 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

452 
y > fold f xs1 > ... > fold f xsN 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

453 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

454 
fold f [x1, ..., xN] = 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

455 
f x1 #> ... #> f xN 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

456 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

457 
(fold o fold) f [xs1, ..., xsN] = 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

458 
fold f xs1 #> ... #> fold f xsN 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

459 

43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

460 
* Pure/term.ML: combinators fold_atyps, fold_aterms, fold_term_types, 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

461 
fold_types traverse types/terms from left to right, observing 
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

462 
canonical argument order. Supercedes previous foldl_XXX versions, 
16868  463 
add_frees, add_vars etc. have been adapted as well: INCOMPATIBILITY. 
16860
43abdba4da5c
* Pure/library.ML: several combinators for linear functional transformations;
wenzelm
parents:
16856
diff
changeset

464 

15703  465 
* Pure: output via the Isabelle channels of writeln/warning/error 
16234  466 
etc. is now passed through Output.output, with a hook for arbitrary 
467 
transformations depending on the print_mode (cf. Output.add_mode  

468 
the first active mode that provides a output function wins). Already 

469 
formatted output may be embedded into further text via Output.raw; the 

470 
result of Pretty.string_of/str_of and derived functions 

471 
(string_of_term/cterm/thm etc.) is already marked raw to accommodate 

472 
easy composition of diagnostic messages etc. Programmers rarely need 

473 
to care about Output.output or Output.raw at all, with some notable 

474 
exceptions: Output.output is required when bypassing the standard 

475 
channels (writeln etc.), or in token translations to produce properly 

476 
formatted results; Output.raw is required when capturing already 

477 
output material that will eventually be presented to the user a second 

478 
time. For the default print mode, both Output.output and Output.raw 

479 
have no effect. 

480 

16718  481 
* Pure: Output.time_accumulator NAME creates an operator ('a > 'b) > 
482 
'a > 'b to measure runtime and count invocations; the cumulative 

483 
results are displayed at the end of a batch session. 

484 

485 
* Isar toplevel: improved diagnostics, mostly for Poly/ML only. 

486 
Reference Toplevel.debug (default false) controls detailed printing 

487 
and tracing of lowlevel exceptions; Toplevel.profiling (default 0) 

488 
controls execution profiling  set to 1 for time and 2 for space 

489 
(both increase the runtime). 

15703  490 

16799
978dcf30c3dd
* Isar session: The initial use of ROOT.ML is now always timed;
wenzelm
parents:
16718
diff
changeset

491 
* Isar session: The initial use of ROOT.ML is now always timed, 
978dcf30c3dd
* Isar session: The initial use of ROOT.ML is now always timed;
wenzelm
parents:
16718
diff
changeset

492 
i.e. the log will show the actual process times, in contrast to the 
978dcf30c3dd
* Isar session: The initial use of ROOT.ML is now always timed;
wenzelm
parents:
16718
diff
changeset

493 
elapsed wallclock time that the outer shell wrapper produces. 
978dcf30c3dd
* Isar session: The initial use of ROOT.ML is now always timed;
wenzelm
parents:
16718
diff
changeset

494 

16689
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

495 
* Pure: structure OrdList (cf. Pure/General/ord_list.ML) provides a 
16690  496 
reasonably efficient lightweight implementation of sets as lists. 
16689
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

497 

05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

498 
* Pure: more efficient orders for basic syntactic entities: added 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

499 
fast_string_ord, fast_indexname_ord, fast_term_ord; changed sort_ord 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

500 
and typ_ord to use fast_string_ord and fast_indexname_ord (term_ord is 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

501 
NOT affected); structures Symtab, Vartab, Typtab, Termtab use the fast 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

502 
orders now  potential INCOMPATIBILITY for code that depends on a 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

503 
particular order for Symtab.keys, Symtab.dest, etc. (consider using 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

504 
Library.sort_strings on result). 
05b986733a59
* Pure: structure OrdList (cf. Pure/General/ord_list.ML);
wenzelm
parents:
16662
diff
changeset

505 

16151  506 
* Pure: name spaces have been refined, with significant changes of the 
16234  507 
internal interfaces  INCOMPATIBILITY. Renamed cond_extern(_table) 
508 
to extern(_table). The plain name entry path is superceded by a 

509 
general 'naming' context, which also includes the 'policy' to produce 

510 
a fully qualified name and external accesses of a fully qualified 

511 
name; NameSpace.extend is superceded by context dependent 

512 
Sign.declare_name. Several theory and proof context operations modify 

513 
the naming context. Especially note Theory.restore_naming and 

514 
ProofContext.restore_naming to get back to a sane state; note that 

515 
Theory.add_path is no longer sufficient to recover from 

516 
Theory.absolute_path in particular. 

517 

518 
* Pure: new flags short_names (default false) and unique_names 

519 
(default true) for controlling output of qualified names. If 

520 
short_names is set, names are printed unqualified. If unique_names is 

521 
reset, the name prefix is reduced to the minimum required to achieve 

522 
the original result when interning again, even if there is an overlap 

523 
with earlier declarations. 

16151  524 

16456
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

525 
* Pure/TheoryDataFun: change of the argument structure; 'prep_ext' is 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

526 
now 'extend', and 'merge' gets an additional Pretty.pp argument 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

527 
(useful for printing error messages). INCOMPATIBILITY. 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

528 

451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

529 
* Pure: major reorganization of the theory context. Type Sign.sg and 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

530 
Theory.theory are now identified, referring to the universal 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

531 
Context.theory (see Pure/context.ML). Actual signature and theory 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

532 
content is managed as theory data. The old code and interfaces were 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

533 
spread over many files and structures; the new arrangement introduces 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

534 
considerable INCOMPATIBILITY to gain more clarity: 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

535 

451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

536 
Context  theory management operations (name, identity, inclusion, 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

537 
parents, ancestors, merge, etc.), plus generic theory data; 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

538 

451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

539 
Sign  logical signature and syntax operations (declaring consts, 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

540 
types, etc.), plus certify/read for common entities; 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

541 

451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

542 
Theory  logical theory operations (stating axioms, definitions, 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

543 
oracles), plus a copy of logical signature operations (consts, 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

544 
types, etc.); also a few basic management operations (Theory.copy, 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

545 
Theory.merge, etc.) 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

546 

451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

547 
The most basic sign_of operations (Theory.sign_of, Thm.sign_of_thm 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

548 
etc.) as well as the sign field in Thm.rep_thm etc. have been retained 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

549 
for convenience  they merely return the theory. 
451f1c46d4ca
* Pure/TheoryDataFun: change of the argument structure;
wenzelm
parents:
16373
diff
changeset

550 

16547
09f7a953d2d6
* Pure: the Isar proof context type is already defined early in Pure
wenzelm
parents:
16506
diff
changeset

551 
* Pure: the Isar proof context type is already defined early in Pure 
09f7a953d2d6
* Pure: the Isar proof context type is already defined early in Pure
wenzelm
parents:
16506
diff
changeset

552 
as Context.proof (note that ProofContext.context and Proof.context are 
09f7a953d2d6
* Pure: the Isar proof context type is already defined early in Pure
wenzelm
parents:
16506
diff
changeset

553 
aliases, where the latter is the preferred name). This enables other 
09f7a953d2d6
* Pure: the Isar proof context type is already defined early in Pure
wenzelm
parents:
16506
diff
changeset

554 
Isabelle components to refer to that type even before Isar is present. 
09f7a953d2d6
* Pure: the Isar proof context type is already defined early in Pure
wenzelm
parents:
16506
diff
changeset

555 

16373
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

556 
* Pure/sign/theory: discontinued named name spaces (i.e. classK, 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

557 
typeK, constK, axiomK, oracleK), but provide explicit operations for 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

558 
any of these kinds. For example, Sign.intern typeK is now 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

559 
Sign.intern_type, Theory.hide_space Sign.typeK is now 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

560 
Theory.hide_types. Also note that former 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

561 
Theory.hide_classes/types/consts are now 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

562 
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

563 
internalize their arguments! INCOMPATIBILITY. 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

564 

16506
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

565 
* Pure: get_thm interface (of PureThy and ProofContext) expects 
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

566 
datatype thmref (with constructors Name and NameSelection) instead of 
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

567 
plain string  INCOMPATIBILITY; 
b2687ce38433
* Pure: get_thm interface expects datatype thmref;
wenzelm
parents:
16456
diff
changeset

568 

16151  569 
* Pure: cases produced by proof methods specify options, where NONE 
16234  570 
means to remove case bindings  INCOMPATIBILITY in 
571 
(RAW_)METHOD_CASES. 

16151  572 

16373
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

573 
* Pure: the following operations retrieve axioms or theorems from a 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

574 
theory node or theory hierarchy, respectively: 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

575 

9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

576 
Theory.axioms_of: theory > (string * term) list 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

577 
Theory.all_axioms_of: theory > (string * term) list 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

578 
PureThy.thms_of: theory > (string * thm) list 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

579 
PureThy.all_thms_of: theory > (string * thm) list 
9d020423093b
* Pure/sign/theory: discontinued named name spaces;
wenzelm
parents:
16251
diff
changeset

580 

16718  581 
* Pure: print_tac now outputs the goal through the trace channel. 
582 

15703  583 
* Provers: Simplifier and Classical Reasoner now support proof context 
16234  584 
dependent plugins (simprocs, solvers, wrappers etc.). These extra 
585 
components are stored in the theory and patched into the 

586 
simpset/claset when used in an Isar proof context. Context dependent 

587 
components are maintained by the following theory operations: 

588 

589 
Simplifier.add_context_simprocs 

590 
Simplifier.del_context_simprocs 

591 
Simplifier.set_context_subgoaler 

592 
Simplifier.reset_context_subgoaler 

593 
Simplifier.add_context_looper 

594 
Simplifier.del_context_looper 

595 
Simplifier.add_context_unsafe_solver 

596 
Simplifier.add_context_safe_solver 

597 

598 
Classical.add_context_safe_wrapper 

599 
Classical.del_context_safe_wrapper 

600 
Classical.add_context_unsafe_wrapper 

601 
Classical.del_context_unsafe_wrapper 

602 

603 
IMPORTANT NOTE: proof tools (methods etc.) need to use 

604 
local_simpset_of and local_claset_of to instead of the primitive 

605 
Simplifier.get_local_simpset and Classical.get_local_claset, 

606 
respectively, in order to see the context dependent fields! 

607 

16251
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset

608 
* 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

609 
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

610 
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

611 
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

612 

16234  613 

614 
*** System *** 

615 

616 
* Allow symlinks to all proper Isabelle executables (Isabelle, 

617 
isabelle, isatool etc.). 

618 

619 
* ISABELLE_DOC_FORMAT setting specifies preferred document format (for 

620 
isatool doc, isatool mkdir, display_drafts etc.). 

621 

622 
* isatool usedir: option f allows specification of the ML file to be 

623 
used by Isabelle; default is ROOT.ML. 

624 

16251
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset

625 
* 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

626 
distribution being used. 
121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset

627 

121dc80d120a
* ML: replaced File.sysify_path/quote_sysify_path by File.platform_path/shell_path;
wenzelm
parents:
16234
diff
changeset

628 
* HOL: new isatool dimacs2hol converts files in DIMACS CNF format 
16234  629 
(containing Boolean satisfiability problems) into Isabelle/HOL 
630 
theories. 

15703  631 

632 

14655
8a95abf87dd3
Pure: considerably improved version of 'constdefs' command;
wenzelm
parents:
14624
diff
changeset

633 

14606  634 
New in Isabelle2004 (April 2004) 
635 
 

13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

636 

14171
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
14136
diff
changeset

637 
*** General *** 
0cab06e3bbd0
Extended the notion of letter and digit, such that now one may use greek,
skalberg
parents:
14136
diff
changeset

638 

14398
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

639 
* Provers/order.ML: new efficient reasoner for partial and linear orders. 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

640 
Replaces linorder.ML. 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

641 

14606  642 
* Pure: Greek letters (except small lambda, \<lambda>), as well as Gothic 
643 
(\<aa>...\<zz>\<AA>...\<ZZ>), calligraphic (\<A>...\<Z>), and Euler 

14173  644 
(\<a>...\<z>), are now considered normal letters, and can therefore 
645 
be used anywhere where an ASCII letter (a...zA...Z) has until 

646 
now. COMPATIBILITY: This obviously changes the parsing of some 

647 
terms, especially where a symbol has been used as a binder, say 

648 
'\<Pi>x. ...', which is now a type error since \<Pi>x will be parsed 

649 
as an identifier. Fix it by inserting a space around former 

650 
symbols. Call 'isatool fixgreek' to try to fix parsing errors in 

651 
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

652 

14237  653 
* Pure: Macintosh and Windows linebreaks are now allowed in theory files. 
654 

14731  655 
* Pure: single letter sub/superscripts (\<^isub> and \<^isup>) are now 
656 
allowed in identifiers. Similar to Greek letters \<^isub> is now considered 

657 
a normal (but invisible) letter. For multiple letter subscripts repeat 

658 
\<^isub> like this: x\<^isub>1\<^isub>2. 

14233  659 

14333  660 
* Pure: There are now sub/superscripts that can span more than one 
661 
character. Text between \<^bsub> and \<^esub> is set in subscript in 

14606  662 
ProofGeneral and LaTeX, text between \<^bsup> and \<^esup> in 
663 
superscript. The new control characters are not identifier parts. 

14333  664 

14561
c53396af770e
* raw control symbols are of the form \<^raw:...> now.
schirmer
parents:
14556
diff
changeset

665 
* Pure: Controlsymbols of the form \<^raw:...> will literally print the 
14606  666 
content of "..." to the latex file instead of \isacntrl... . The "..." 
667 
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

668 

14237  669 
* Pure: Using new Isar command "finalconsts" (or the ML functions 
670 
Theory.add_finals or Theory.add_finals_i) it is now possible to 

671 
declare constants "final", which prevents their being given a definition 

672 
later. It is useful for constants whose behaviour is fixed axiomatically 

14224  673 
rather than definitionally, such as the metalogic connectives. 
674 

14606  675 
* Pure: 'instance' now handles general arities with general sorts 
676 
(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

677 

14547  678 
* Presentation: generated HTML now uses a CSS style sheet to make layout 
14731  679 
(somewhat) independent of content. It is copied from lib/html/isabelle.css. 
14547  680 
It can be changed to alter the colors/layout of generated pages. 
681 

14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset

682 

14175
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

683 
*** Isar *** 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

684 

14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset

685 
* 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

686 
cut_tac, subgoal_tac and thin_tac: 
14175
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

687 
 Now understand static (Isar) contexts. As a consequence, users of Isar 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

688 
locales are no longer forced to write Isar proof scripts. 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

689 
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

690 
emulations. 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

691 
 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

692 
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

693 
This is consistent with the instantiation attribute "where". 
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

694 

14257
a7ef3f7588c5
Type inference bug in Isar attributes "where" and "of" fixed.
ballarin
parents:
14255
diff
changeset

695 
* Attributes "where" and "of": 
14285
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset

696 
 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

697 
the instantiation string. This fixes a bug that caused instantiated 
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset

698 
theorems to have too special types in some circumstances. 
92ed032e83a1
Isar: where attribute supports instantiation of type vars.
ballarin
parents:
14283
diff
changeset

699 
 "where" permits explicit instantiations of type variables. 
14257
a7ef3f7588c5
Type inference bug in Isar attributes "where" and "of" fixed.
ballarin
parents:
14255
diff
changeset

700 

14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset

701 
* Calculation commands "moreover" and "also" no longer interfere with 
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset

702 
current facts ("this"), admitting arbitrary combinations with "then" 
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset

703 
and derived forms. 
14283  704 

14211
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

705 
* Locales: 
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

706 
 Goal statements involving the context element "includes" no longer 
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

707 
generate theorems with internal delta predicates (those ending on 
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

708 
"_axioms") in the premise. 
7286c187596d
Improvements to Isar/Locales: premises generated by "includes" elements
ballarin
parents:
14199
diff
changeset

709 
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

710 
 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

711 
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

712 
 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

713 
[intro?] and [elim?] (respectively) by default. 
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset

714 
 Experimental command for instantiation of locales in proof contexts: 
14551  715 
instantiate <label>[<attrs>]: <loc> 
14508
859b11514537
Experimental command for instantiation of locales in proof contexts:
ballarin
parents:
14503
diff
changeset

716 
Instantiates locale <loc> and adds all its theorems to the current context 
14551  717 
taking into account their attributes. Label and attrs are optional 
718 
modifiers, like in theorem declarations. If present, names of 

719 
instantiated theorems are qualified with <label>, and the attributes 

720 
<attrs> are applied after any attributes these theorems might have already. 

721 
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

722 
"<loc> t1 ... tn" is expected from which instantiations of the parameters 
14551  723 
are derived. The command does not support oldstyle locales declared 
724 
with "locale (open)". 

725 
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

726 

dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

727 
* HOL: Tactic emulation methods induct_tac and case_tac understand static 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

728 
(Isar) contexts. 
dbd16ebaf907
Method rule_tac understands Isar contexts: documentation.
ballarin
parents:
14173
diff
changeset

729 

14556
c5078f6c99a9
* Calculation commands "moreover" and "also" no longer interfere with
wenzelm
parents:
14551
diff
changeset

730 

14136  731 
*** HOL *** 
732 

14624  733 
* Proof import: new image HOL4 contains the imported library from 
734 
the HOL4 system with about 2500 theorems. It is imported by 

735 
replaying proof terms produced by HOL4 in Isabelle. The HOL4 image 

736 
can be used like any other Isabelle image. See 

737 
HOL/Import/HOL/README for more information. 

738 

14398
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

739 
* Simplifier: 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

740 
 Much improved handling of linear and partial orders. 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

741 
Reasoners for linear and partial orders are set up for type classes 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

742 
"linorder" and "order" respectively, and are added to the default simpset 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

743 
as solvers. This means that the simplifier can build transitivity chains 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

744 
to solve goals from the assumptions. 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

745 
 INCOMPATIBILITY: old proofs break occasionally. Typically, applications 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

746 
of blast or auto after simplification become unnecessary because the goal 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

747 
is solved by simplification already. 
c5c47703f763
Efficient, graphbased reasoner for linear and partial orders.
ballarin
parents:
14389
diff
changeset

748 

14731  749 
* Numerics: new theory Ring_and_Field contains over 250 basic numerical laws, 
14389  750 
all proved in axiomatic type classes for semirings, rings and fields. 
751 

752 
* Numerics: 

753 
 Numeric types (nat, int, and in HOLComplex rat, real, complex, etc.) are 

14731  754 
now formalized using the Ring_and_Field theory mentioned above. 
14389  755 
 INCOMPATIBILITY: simplification and arithmetic behaves somewhat differently 
756 
than before, because now they are set up once in a generic manner. 

14731  757 
 INCOMPATIBILITY: many typespecific arithmetic laws have gone. 
14480  758 
Look for the general versions in Ring_and_Field (and Power if they concern 
759 
exponentiation). 

14389  760 

14401  761 
* Type "rat" of the rational numbers is now available in HOLComplex. 
14389  762 

14255  763 
* Records: 
764 
 Record types are now by default printed with their type abbreviation 

765 
instead of the list of all field types. This can be configured via 

766 
the reference "print_record_type_abbr". 

14731  767 
 Simproc "record_upd_simproc" for simplification of multiple updates added 
14255  768 
(not enabled by default). 
14427  769 
 Simproc "record_ex_sel_eq_simproc" to simplify EX x. sel r = x resp. 
770 
EX x. x = sel r to True (not enabled by default). 

14255  771 
 Tactic "record_split_simp_tac" to split and simplify records added. 
14731  772 

14136  773 
* 'specification' command added, allowing for definition by 
14224  774 
specification. There is also an 'ax_specification' command that 
775 
introduces the new constants axiomatically. 

14136  776 

14375  777 
* arith(_tac) is now able to generate counterexamples for reals as well. 
778 

14399
dc677b35e54f
New lemmas about inversion of restricted functions.
ballarin
parents:
14398
diff
changeset

779 
* HOLAlgebra: new locale "ring" for noncommutative rings. 
dc677b35e54f
New lemmas about inversion of restricted functions.
ballarin
parents:
14398
diff
changeset

780 

14243  781 
* HOLex: InductiveInvariant_examples illustrates advanced recursive function 
14610  782 
definitions, thanks to Sava Krsti\'{c} and John Matthews. 
783 

14731  784 
* HOLMatrix: a first theory for matrices in HOL with an application of 
14610  785 
matrix theory to linear programming. 
14136  786 

14380  787 
* Unions and Intersections: 
15119  788 
The latex output syntax of UN and INT has been changed 
789 
from "\Union x \in A. B" to "\Union_{x \in A} B" 

790 
i.e. the index formulae has become a subscript. 

791 
Similarly for "\Union x. B", and for \Inter instead of \Union. 

14380  792 

14418  793 
* Unions and Intersections over Intervals: 
14731  794 
There is new short syntax "UN i<=n. A" for "UN i:{0..n}. A". There is 
795 
also an xsymbol version with subscripts "\<Union>\<^bsub>i <= n\<^esub>. A" 

14418  796 
like in normal math, and corresponding versions for < and for intersection. 
797 

15677  798 
* HOL/List: Ordering "lexico" is renamed "lenlex" and the standard 
799 
lexicographic dictonary ordering has been added as "lexord". 

800 

14401  801 
* ML: the legacy theory structures Int and List have been removed. They had 
802 
conflicted with ML Basis Library structures having the same names. 

14380  803 

14464  804 
* 'refute' command added to search for (finite) countermodels. Only works 
805 
for a fragment of HOL. The installation of an external SAT solver is 

806 
highly recommended. See "HOL/Refute.thy" for details. 

807 

14602  808 
* 'quickcheck' command: Allows to find counterexamples by evaluating 
809 
formulae under an assignment of free variables to random values. 

810 
In contrast to 'refute', it can deal with inductive datatypes, 

811 
but cannot handle quantifiers. See "HOL/ex/Quickcheck_Examples.thy" 

812 
for examples. 

14464  813 

14606  814 

14536  815 
*** HOLCF *** 
816 

817 
* Streams now come with concatenation and are part of the HOLCF image 

818 

14572  819 

820 

14136  821 
New in Isabelle2003 (May 2003) 
14606  822 
 
14136  823 

13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

824 
*** General *** 
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

825 

13618  826 
* Provers/simplifier: 
827 

13781  828 
 Completely reimplemented method simp (ML: Asm_full_simp_tac): 
13618  829 
Assumptions are now subject to complete mutual simplification, 
830 
not just from left to right. The simplifier now preserves 

831 
the order of assumptions. 

832 

833 
Potential INCOMPATIBILITY: 

834 

13781  835 
 simp sometimes diverges where the old version did 
836 
not, e.g. invoking simp on the goal 

13618  837 

838 
[ P (f x); y = x; f x = f y ] ==> Q 

839 

13781  840 
now gives rise to the infinite reduction sequence 
841 

842 
P(f x) (f x = f y)> P(f y) (y = x)> P(f x) (f x = f y)> ... 

843 

844 
Using "simp (asm_lr)" (ML: Asm_lr_simp_tac) instead often solves this 

845 
kind of problem. 

846 

847 
 Tactics combining classical reasoner and simplification (such as auto) 

848 
are also affected by this change, because many of them rely on 

849 
simp. They may sometimes diverge as well or yield a different numbers 

850 
of subgoals. Try to use e.g. force, fastsimp, or safe instead of auto 

851 
in case of problems. Sometimes subsequent calls to the classical 

852 
reasoner will fail because a preceeding call to the simplifier too 

853 
eagerly simplified the goal, e.g. deleted redundant premises. 

13618  854 

855 
 The simplifier trace now shows the names of the applied rewrite rules 

856 

13829  857 
 You can limit the number of recursive invocations of the simplifier 
858 
during conditional rewriting (where the simplifie tries to solve the 

859 
conditions before applying the rewrite rule): 

860 
ML "simp_depth_limit := n" 

861 
where n is an integer. Thus you can force termination where previously 

862 
the simplifier would diverge. 

863 

13835
12b2ffbe543a
Change to meta simplifier: congruence rules may now have frees as head of term.
ballarin
parents:
13829
diff
changeset

864 
 Accepts free variables as head terms in congruence rules. Useful in Isar. 
13829  865 

13938  866 
 No longer aborts on failed congruence proof. Instead, the 
867 
congruence is ignored. 

868 

14008  869 
* Pure: New generic framework for extracting programs from constructive 
870 
proofs. See HOL/Extraction.thy for an example instantiation, as well 

871 
as HOL/Extraction for some case studies. 

872 

13868  873 
* Pure: The main goal of the proof state is no longer shown by default, only 
874 
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

875 
PG menu: Isabelle/Isar > Settings > Show Main Goal 
13815  876 
(ML: Proof.show_main_goal). 
877 

878 
* Pure: You can find all matching introduction rules for subgoal 1, i.e. all 

879 
rules whose conclusion matches subgoal 1: 

880 
PG menu: Isabelle/Isar > Show me > matching rules 

881 
The rules are ordered by how closely they match the subgoal. 

882 
In particular, rules that solve a subgoal outright are displayed first 

883 
(or rather last, the way they are printed). 

884 
(ML: ProofGeneral.print_intros()) 

885 

886 
* Pure: New flag trace_unify_fail causes unification to print 

13781  887 
diagnostic information (PG: in trace buffer) when it fails. This is 
888 
useful for figuring out why single step proofs like rule, erule or 

889 
assumption failed. 

890 

13815  891 
* Pure: Locale specifications now produce predicate definitions 
13410
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

892 
according to the body of text (covering assumptions modulo local 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

893 
definitions); predicate "loc_axioms" covers newly introduced text, 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

894 
while "loc" is cumulative wrt. all included locale expressions; the 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

895 
latter view is presented only on export into the global theory 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

896 
context; potential INCOMPATIBILITY, use "(open)" option to fall back 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

897 
on the old view without predicates; 
f2cd09766864
* Pure: locale specifications now produce predicate definitions;
wenzelm
parents:
13344
diff
changeset

898 

13459
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset

899 
* 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

900 
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

901 
``var x + var y + struct M'' as import; 
83f41b047a39
* Pure: predefined locales "var" and "struct" are useful for sharing
wenzelm
parents:
13443
diff
changeset

902 

13463
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset

903 
* 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

904 
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

905 
include local facts of proof configuration (also covers active 
13541  906 
locales), cover fixed variables in index; may use "_" in term 
907 
specification; an optional limit for the number of printed facts may 

908 
be given (the default is 40); 

909 

910 
* Pure: disallow duplicate fact bindings within newstyle theory files 

911 
(batchmode only); 

13540
aede0306e214
* Pure: disallow duplicate fact bindings within newstyle theory files;
wenzelm
parents:
13522
diff
changeset

912 

13463
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset

913 
* Provers: improved induct method: assumptions introduced by case 
07747943c626
* Provers: Simplifier.simproc(_i) now provide sane interface for
wenzelm
parents:
13459
diff
changeset

914 
"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

915 
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

916 

13550  917 
* Provers: the function blast.overloaded has been removed: all constants 
918 
are regarded as potentially overloaded, which improves robustness in exchange 

919 
for slight decrease in efficiency; 

920 

13781  921 
* Provers/linorder: New generic prover for transitivity reasoning over 
922 
linear orders. Note: this prover is not efficient! 

923 

13522
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset

924 
* 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

925 
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

926 

13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

927 

13158  928 
*** HOL *** 
929 

13899  930 
* arith(_tac) 
931 

932 
 Produces a counter example if it cannot prove a goal. 

933 
Note that the counter example may be spurious if the goal is not a formula 

934 
of quantifierfree linear arithmetic. 

935 
In ProofGeneral the counter example appears in the trace buffer. 

936 

937 
 Knows about div k and mod k where k is a numeral of type nat or int. 

938 

939 
 Calls full Presburger arithmetic (by Amine Chaieb) if quantifierfree 

940 
linear arithmetic fails. This takes account of quantifiers and divisibility. 

14731  941 
Presburger arithmetic can also be called explicitly via presburger(_tac). 
13899  942 

943 
* simp's arithmetic capabilities have been enhanced a bit: it now 

944 
takes ~= in premises into account (by performing a case split); 

945 

946 
* simp reduces "m*(n div m) + n mod m" to n, even if the two summands 

947 
are distributed over a sum of terms; 

948 

13735  949 
* New tactic "trans_tac" and method "trans" instantiate 
950 
Provers/linorder.ML for axclasses "order" and "linorder" (predicates 

14731  951 
"<=", "<" and "="). 
952 

953 
* function INCOMPATIBILITIES: Pisets have been redefined and moved from main 

13587  954 
HOL to Library/FuncSet; constant "Fun.op o" is now called "Fun.comp"; 
955 

13443  956 
* 'typedef' command has new option "open" to suppress the set 
957 
definition; 

958 

13522
934fffeb6f38
* Isar: preview of problems to finish 'show' now produce an error
wenzelm
parents:
13518
diff
changeset

959 
* 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

960 
Finite_Set); 
13492  961 

13443  962 
* attribute [symmetric] now works for relations as well; it turns 
963 
(x,y) : R^1 into (y,x) : R, and vice versa; 

964 

13613  965 
* induct over a !!quantified statement (say !!x1..xn): 
966 
each "case" automatically performs "fix x1 .. xn" with exactly those names. 

967 

13899  968 
* Map: `empty' is no longer a constant but a syntactic abbreviation for 
969 
%x. None. Warning: empty_def now refers to the previously hidden definition 

970 
of the empty set. 

971 

14018  972 
* Algebra: formalization of classical algebra. Intended as base for 
973 
any algebraic development in Isabelle. Currently covers group theory 

974 
(up to Sylow's theorem) and ring theory (Universal Property of 

975 
Univariate Polynomials). Contributions welcome; 

13960  976 

977 
* GroupTheory: deleted, since its material has been moved to Algebra; 

978 

14731  979 
* Complex: new directory of the complex numbers with numeric constants, 
980 
nonstandard complex numbers, and some complex analysis, standard and 

13966
2160abf7cfe7
removal of the image HOLReal and merging of HOLRealex with HOLComplexex
paulson
parents:
13960
diff
changeset

981 
nonstandard (Jacques Fleuriot); 
2160abf7cfe7
removal of the image HOLReal and merging of HOLRealex with HOLComplexex
paulson
parents:
13960
diff
changeset

982 

2160abf7cfe7
removal of the image HOLReal and merging of HOLRealex with HOLComplexex
paulson
parents:
13960
diff
changeset

983 
* HOLComplex: new image for analysis, replacing HOLReal and HOLHyperreal; 
2160abf7cfe7
removal of the image HOLReal and merging of HOLRealex with HOLComplexex
paulson
parents:
13960
diff
changeset

984 

14731  985 
* Hyperreal: introduced Gauge integration and hyperreal logarithms (Jacques 
13966
2160abf7cfe7
removal of the image HOLReal and merging of HOLRealex with HOLComplexex
paulson
parents:
13960
diff
changeset

986 
Fleuriot); 
13960  987 

13549  988 
* Real/HahnBanach: updated and adapted to locales; 
989 

13995  990 
* NumberTheory: added Gauss's law of quadratic reciprocity (by Avigad, 
991 
Gray and Kramer); 

13872  992 

993 
* UNITY: added the MeierSanders theory of progress sets; 

994 

14011  995 
* MicroJava: bytecode verifier and lightweight bytecode verifier 
996 
as abstract algorithms, instantiated to the JVM; 

997 

14010  998 
* Bali: Java source language formalization. Type system, operational 
999 
semantics, axiomatic semantics. Supported language features: 

1000 
classes, interfaces, objects,virtual methods, static methods, 

1001 
static/instance fields, arrays, access modifiers, definite 

1002 
assignment, exceptions. 

13549  1003 

14011  1004 

13549  1005 
*** ZF *** 
1006 

15154  1007 
* ZF/Constructible: consistency proof for AC (Gdel's constructible 
13549  1008 
universe, etc.); 
1009 

13872  1010 
* Main ZF: virtually all theories converted to newstyle format; 
13518  1011 

13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

1012 

13478  1013 
*** ML *** 
1014 

1015 
* Pure: Tactic.prove provides sane interface for internal proofs; 

1016 
omits the infamous "standard" operation, so this is more appropriate 

1017 
than prove_goalw_cterm in many situations (e.g. in simprocs); 

1018 

1019 
* Pure: improved error reporting of simprocs; 

1020 

1021 
* Provers: Simplifier.simproc(_i) provides sane interface for setting 

1022 
up simprocs; 

1023 

1024 

13953  1025 
*** Document preparation *** 
1026 

1027 
* uses \par instead of \\ for line breaks in theory text. This may 

1028 
shift some page breaks in large documents. To get the old behaviour 

1029 
use \renewcommand{\isanewline}{\mbox{}\\\mbox{}} in root.tex. 

1030 

14731  1031 
* minimized dependencies of isabelle.sty and isabellesym.sty on 
13953  1032 
other packages 
1033 

1034 
* \<euro> now needs package babel/greek instead of marvosym (which 

1035 
broke \Rightarrow) 

1036 

14731  1037 
* normal size for \<zero>...\<nine> (uses \mathbf instead of 
13954  1038 
textcomp package) 
13953  1039 

13280
306ef3aef61b
* improved thms_containing: proper indexing of facts instead of raw
wenzelm
parents:
13190
diff
changeset

1040 

14572  1041 

12984  1042 
New in Isabelle2002 (March 2002) 
1043 
 

11474  1044 

11572  1045 
*** Document preparation *** 
1046 

11842
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1047 
* greatly simplified document preparation setup, including more 
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1048 
graceful interpretation of isatool usedir i/d/D options, and more 
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1049 
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

1050 
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

1051 
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

1052 
"isatool usedir D output HOL Test && isatool document Test/output"; 
11842
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1053 

b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1054 
* theory dependency graph may now be incorporated into documents; 
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1055 
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

1056 
with \includegraphics of LaTeX; 
b903d3dabbe2
* greatly simplified document preparation setup, including more
wenzelm
parents:
11817
diff
changeset

1057 

11864
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset

1058 
* proper spacing of consecutive markup elements, especially text 
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset

1059 
blocks after section headings; 
371ce685b0ec
* proper spacing of consecutive markup elements, especially text
wenzelm
parents:
11842
diff
changeset

1060 

11572  1061 
* support bold style (for single symbols only), input syntax is like 
1062 
this: "\<^bold>\<alpha>" or "\<^bold>A"; 

1063 

11814  1064 
* \<bullet> is now output as bold \cdot by default, which looks much 
11572  1065 
better in printed text; 
1066 

11712
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset

1067 
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>; 
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset

1068 
note that these symbols are currently unavailable in Proof General / 
12769  1069 
XSymbol; new symbols \<zero>, \<one>, ..., \<nine>, and \<euro>; 
12690  1070 

1071 
* isatool latex no longer depends on changed TEXINPUTS, instead 

1072 
isatool document copies the Isabelle style files to the target 

1073 
location; 

11712
deb8cac87063
* added default LaTeX bindings for \<tturnstile> and \<TTurnstile>;
wenzelm
parents:
11702
diff
changeset

1074 

11572  1075 

11633  1076 
*** Isar *** 
1077 

12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1078 
* Pure/Provers: improved proof by cases and induction; 
12280  1079 
 'case' command admits impromptu naming of parameters (such as 
1080 
"case (Suc n)"); 

1081 
 'induct' method divinates rule instantiation from the inductive 

1082 
claim; no longer requires excessive ?P bindings for proper 

1083 
instantiation of cases; 

1084 
 'induct' method properly enumerates all possibilities of set/type 

1085 
rules; as a consequence facts may be also passed through *type* 

1086 
rules without further ado; 

1087 
 'induct' method now derives symbolic cases from the *rulified* 

1088 
rule (before it used to rulify cases stemming from the internal 

1089 
atomized version); this means that the context of a nonatomic 

1090 
statement becomes is included in the hypothesis, avoiding the 

1091 
slightly cumbersome show "PROP ?case" form; 

1092 
 'induct' may now use elimstyle induction rules without chaining 

1093 
facts, using ``missing'' premises from the goal state; this allows 

1094 
rules stemming from inductive sets to be applied in unstructured 

1095 
scripts, while still benefitting from proper handling of nonatomic 

1096 
statements; NB: major inductive premises need to be put first, all 

1097 
the rest of the goal is passed through the induction; 

1098 
 'induct' proper support for mutual induction involving nonatomic 

1099 
rule statements (uses the new concept of simultaneous goals, see 

1100 
below); 

12853  1101 
 append all possible rule selections, but only use the first 
1102 
success (no backtracking); 

11995
4a622f5fb164
 'induct' may now use elimstyle induction rules without chaining
wenzelm
parents:
11986
diff
changeset

1103 
 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

1104 
 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

1105 
 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

1106 
General versions); 
11995
4a622f5fb164
 'induct' may now use elimstyle induction rules without chaining
wenzelm
parents:
11986
diff
changeset

1107 
 moved induct/cases attributes to Pure, methods to Provers; 
4a622f5fb164
 'induct' may now use elimstyle induction rules without chaining
wenzelm
parents:
11986
diff
changeset

1108 
 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

1109 

12163
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1110 
* Pure: support multiple simultaneous goal statements, for example 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1111 
"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

1112 
metalevel mechanism, this acts as if several individual goals had 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1113 
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

1114 
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

1115 
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

1116 
fails: 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1117 

04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1118 
assume "A & B" then have A and B .. (*".." fails*) 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1119 

04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1120 
better use "obtain" in situations as above; alternative refer to 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1121 
multistep methods like 'auto', 'simp_all', 'blast+' etc.; 
04c98351f9af
Isar: 'induct' proper support for mutual induction involving
wenzelm
parents:
12159
diff
changeset

1122 

12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset

1123 
* Pure: proper integration with ``locales''; unlike the original 
15154  1124 
version by Florian Kammller, Isar locales package highlevel proof 
12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset

1125 
contexts rather than raw logical ones (e.g. we admit to include 
12280  1126 
attributes everywhere); operations on locales include merge and 
12964  1127 
rename; support for implicit arguments (``structures''); simultaneous 
1128 
typeinference over imports and text; see also HOL/ex/Locales.thy for 

1129 
some examples; 

12078
4eb8061286e5
* Isar/Pure: proper integration with ``locales''; unlike the original
wenzelm
parents:
12034
diff
changeset

1130 

12707
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1131 
* Pure: the following commands have been ``localized'', supporting a 
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1132 
target locale specification "(in name)": 'lemma', 'theorem', 
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1133 
'corollary', 'lemmas', 'theorems', 'declare'; the results will be 
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1134 
stored both within the locale and at the theory level (exported and 
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1135 
qualified by the locale name); 
4013be8572c5
* Pure: localized 'lemmas', 'theorems', 'declare';
wenzelm
parents:
12690
diff
changeset

1136 

12964  1137 
* Pure: theory goals may now be specified in ``long'' form, with 
1138 
adhoc contexts consisting of arbitrary locale elements. for example 

1139 
``lemma foo: fixes x assumes "A x" shows "B x"'' (local syntax and 

1140 
definitions may be given, too); the result is a metalevel rule with 

1141 
the context elements being discharged in the obvious way; 

1142 

1143 
* Pure: new proof command 'using' allows to augment currently used 

1144 
facts after a goal statement ('using' is syntactically analogous to 

1145 
'apply', but acts on the goal's facts only); this allows chained facts 

1146 
to be separated into parts given before and after a claim, as in 

1147 
``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

1148 

11722  1149 
* Pure: renamed "antecedent" case to "rule_context"; 
1150 

12964  1151 
* Pure: new 'judgment' command records explicit information about the 
1152 
objectlogic embedding (used by several tools internally); no longer 

1153 
use hardwired "Trueprop"; 

1154 

11738  1155 
* Pure: added 'corollary' command; 
1156 

11722  1157 
* Pure: fixed 'token_translation' command; 
1158 

11899  1159 
* Pure: removed obsolete 'exported' attribute; 
1160 

11933  1161 
* Pure: dummy pattern "_" in is/let is now automatically lifted over 
1162 
bound variables: "ALL x. P x > Q x" (is "ALL x. _ > ?C x") 

11899  1163 
supersedes more cumbersome ... (is "ALL x. _ x > ?C x"); 
1164 

11952
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1165 
* Pure: method 'atomize' presents local goal premises as objectlevel 
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1166 
statements (atomic metalevel propositions); setup controlled via 
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1167 
rewrite rules declarations of 'atomize' attribute; example 
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1168 
application: 'induct' method with proper rule statements in improper 
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1169 
proof *scripts*; 
b10f1e8862f4
* Pure: method 'atomize' presents local goal premises as objectlevel
wenzelm
parents:
11937
diff
changeset

1170 

12106
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset

1171 
* 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

1172 
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

1173 
chance to get typeinference of the arguments right (this is 
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset

1174 
especially important for locales); 
4a8558dbb6a0
* Isar/Pure: emulation of instantiation tactics (rule_tac, cut_tac,
wenzelm
parents:
12078
diff
changeset

1175 

12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1176 
* 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

1177 
mode; 
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1178 

12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1179 
* Pure/obtain: the formal conclusion "thesis", being marked as 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1180 
``internal'', may no longer be reference directly in the text; 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1181 
potential INCOMPATIBILITY, may need to use "?thesis" in rare 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1182 
situations; 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1183 

9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1184 
* Pure: generic 'sym' attribute which declares a rule both as pure 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1185 
'elim?' and for the 'symmetric' operation; 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1186 

12877
b9635eb8a448
* Isar/Pure: marginal comments ``'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset

1187 
* 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

1188 
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

1189 
discontinued; 
b9635eb8a448
* Isar/Pure: marginal comments ``'' may now occur just anywhere in the text;
wenzelm
parents:
12853
diff
changeset

1190 

13023
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset

1191 
* Pure: new method 'rules' is particularly wellsuited for proof 
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset

1192 
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

1193 
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

1194 

12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1195 
* Pure/Provers/classical: simplified integration with pure rule 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1196 
attributes and methods; the classical "intro?/elim?/dest?" 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1197 
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

1198 
includes classically swapped intros; "intro" and "elim" methods no 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1199 
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

1200 
AddXIs/AddXEs/AddXDs; all of this has some potential for 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1201 
INCOMPATIBILITY; 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1202 

12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1203 
* Provers/classical: attribute 'swapped' produces classical inversions 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1204 
of introduction rules; 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1205 

12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1206 
* Provers/simplifier: 'simplified' attribute may refer to explicit 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1207 
rules instead of full simplifier context; 'iff' attribute handles 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1208 
conditional rules; 
11936
fef099613354
* Provers: 'simplified' attribute may refer to explicit rules instead
wenzelm
parents:
11933
diff
changeset

1209 

11745
06cd8c3b5487
* HOL: 'typedef' now allows alternative names for Rep/Abs morphisms;
wenzelm
parents:
11738
diff
changeset

1210 
* 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

1211 

11690  1212 
* HOL: 'recdef' now fails on unfinished automated proofs, use 
11633  1213 
"(permissive)" option to recover old behavior; 
1214 

11933  1215 
* HOL: 'inductive' no longer features separate (collective) attributes 
1216 
for 'intros' (was found too confusing); 

1217 

12405
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1218 
* HOL: properly declared induction rules less_induct and 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1219 
wf_induct_rule; 
9b16f99fd7b9
* Pure/obtain: "thesis" now internal (use ?thesis);
wenzelm
parents:
12364
diff
changeset

1220 

11788
60054fee3c16
canonical 'cases'/'induct' rules for ntuples (n=3..7)
kleing
parents:
11745
diff
changeset

1221 

11474  1222 
*** HOL *** 
1223 

11702  1224 
* HOL: moved over to sane numeral syntax; the new policy is as 
1225 
follows: 

1226 

1227 
 0 and 1 are polymorphic constants, which are defined on any 

1228 
numeric type (nat, int, real etc.); 

1229 

1230 
 2, 3, 4, ... and 1, 2, 3, ... are polymorphic numerals, based 

1231 
binary representation internally; 

1232 

1233 
 type nat has special constructor Suc, and generally prefers Suc 0 

1234 
over 1::nat and Suc (Suc 0) over 2::nat; 

1235 

12364
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1236 
This change may cause significant problems of INCOMPATIBILITY; here 
108cdda23ab3
* Pure/Provers/classical: simplified integration with pure rule
wenzelm
parents:
12335
diff
changeset

1237 
are some hints on converting existing sources: 
11702  1238 

1239 
 due to the new "num" token, "0" and "1" etc. are now atomic 

1240 
entities, so expressions involving "" (unary or binary minus) need 

1241 
to be spaced properly; 

1242 

1243 
 existing occurrences of "1" may need to be constraint "1::nat" or 

1244 
even replaced by Suc 0; similar for old "2"; 

1245 

1246 
 replace "#nnn" by "nnn", and "#nnn" by "nnn"; 

1247 

1248 
 remove all special provisions on numerals in proofs; 

1249 

13042  1250 
* HOL: simp rules nat_number expand numerals on nat to Suc/0 
12837  1251 
representation (depends on bin_arith_simps in the default context); 
1252 

12736  1253 
* HOL: symbolic syntax for x^2 (numeral 2); 
1254 

12335
db4d5f498742
* HOL: the class of all HOL types is now called "type" rather than
wenzelm
parents:
12312
diff
changeset

1255 
* 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

1256 
"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

1257 
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

1258 
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

1259 
"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

1260 

12280  1261 
* HOL/record package improvements: 
1262 
 new derived operations "fields" to build a partial record section, 

1263 
"extend" to promote a fixed record to a record scheme, and 

1264 
"truncate" for the reverse; cf. theorems "xxx.defs", which are *not* 

1265 
declared as simp by default; 

12587
3f3d2ffb5df5
HOL/record: shared operations ("more", "fields", etc.) now need to be
wenzelm
parents:
12564
diff
changeset

1266 
 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

1267 
qualified)  potential INCOMPATIBILITY; 
12280  1268 
 removed "make_scheme" operations (use "make" with "extend")  
1269 
INCOMPATIBILITY; 

11937  1270 
 removed "more" class (simply use "term")  INCOMPATIBILITY; 
12253  1271 
 provides cases/induct rules for use with corresponding Isar 
1272 
methods (for concrete records, record schemes, concrete more 

12280  1273 
parts, and schematic more parts  in that order); 
11930  1274 
 internal definitions directly based on a lightweight abstract 
1275 
theory of product types over typedef rather than datatype; 

1276 

13023
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset

1277 
* 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

1278 
specifications; specific support for HOL constructs such as inductive 
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset

1279 
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

1280 
via 'generate_code' theory section; 
f869b6822006
Added two paragraphs on "rules" method and code generator.
berghofe
parents:
12984
diff
changeset

1281 

11933  1282 
* HOL: canonical cases/induct rules for ntuples (n = 3..7); 
1283 

13824  1284 
* HOL: consolidated and renamed several theories. In particular: 
14731  1285 
Ord.thy has been absorbed into HOL.thy 
1286 
String.thy has been absorbed into List.thy 

1287 

11802
1d5f5d2427d2
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm
parents:
11797
diff
changeset

1288 
* 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

1289 
(beware of argument permutation!); 
1d5f5d2427d2
* HOL: concrete setsum syntax "\<Sum>i:A. b" == "setsum (%i. b) A"
wenzelm
parents:
11797
diff
changeset

1290 

11657  1291 
* HOL: linorder_less_split superseded by linorder_cases; 
1292 

12917  1293 
* HOL/List: "nodups" renamed to "distinct"; 
12889  1294 

11633  1295 
* HOL: added "The" definite description operator; move Hilbert's "Eps" 
13824  1296 
to peripheral theory "Hilbert_Choice"; some INCOMPATIBILITIES: 
1297 
 Ex_def has changed, now need to use some_eq_ex 

11437  1298 

11572  1299 
* HOL: made split_all_tac safe; EXISTING PROOFS MAY FAIL OR LOOP, so 
1300 
in this (rare) case use: 

1301 

1302 
delSWrapper "split_all_tac" 

1303 
addSbefore ("unsafe_split_all_tac", unsafe_split_all_tac) 

1304 

1305 
* HOL: added safe wrapper "split_conv_tac" to claset; EXISTING PROOFS 

11474  1306 
MAY FAIL; 
11361  1307 

11572  1308 
* HOL: introduced f^n = f o ... o f; warning: due to the limits of 
1309 
Isabelle's type classes, ^ on functions and relations has too general 

1310 
a domain, namely ('a * 'b) set and 'a => 'b; this means that it may be 

1311 
necessary to attach explicit type constraints; 

11307  1312 

12917  1313 
* HOL/Relation: the prefix name of the infix "O" has been changed from 
1314 
"comp" to "rel_comp"; INCOMPATIBILITY: a few theorems have been 

1315 
renamed accordingly (eg "compI" > "rel_compI"). 

12489  1316 

11487
95071c9e85a3
* HOL: syntax translations now work properly with numerals and records
wenzelm
parents:
11475
diff
changeset

1317 
* 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

1318 
expressions; 
11474  1319 

12457
cbfc53e45476
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm
parents:
12405
diff
changeset

1320 
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead 
cbfc53e45476
* HOL: bounded abstraction now uses syntax "%" / "\<lambda>" instead
wenzelm
parents:
12405
diff
changeset

1321 
of "lam"  INCOMPATIBILITY; 
11474  1322 

11933  1323 
* HOL: got rid of some global declarations (potential INCOMPATIBILITY 
1324 
for ML tools): const "()" renamed "Product_Type.Unity", type "unit" 

1325 
renamed "Product_Type.unit"; 

11611  1326 

12564  1327 
* HOL: renamed rtrancl_into_rtrancl2 to converse_rtrancl_into_rtrancl 
1328 

12924  1329 
* HOL: removed obsolete theorem "optionE" (use "option.exhaust", or 
1330 
the "cases" method); 

1331 

12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset

1332 
* HOL/GroupTheory: group theory examples including Sylow's theorem (by 
15154  1333 
Florian Kammller); 
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset

1334 

12608
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1335 
* HOL/IMP: updated and converted to newstyle theory format; several 
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1336 
parts turned into readable document, with proper Isar proof texts and 
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1337 
some explanations (by Gerwin Klein); 
12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset

1338 

12734  1339 
* HOLReal: added Complex_Numbers (by Gertrud Bauer); 
1340 

12690  1341 
* HOLHyperreal is now a logic image; 
1342 

11611  1343 

12022
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset

1344 
*** HOLCF *** 
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset

1345 

12622  1346 
* Isar: consts/constdefs supports mixfix syntax for continuous 
1347 
operations; 

1348 

1349 
* Isar: domain package adapted to newstyle theory format, e.g. see 

1350 
HOLCF/ex/Dnat.thy; 

1351 

1352 
* theory Lift: proper use of rep_datatype lift instead of ML hacks  

12280  1353 
potential INCOMPATIBILITY; now use plain induct_tac instead of former 
1354 
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

1355 

12597
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset

1356 
* HOLCF/IMP: updated and converted to newstyle theory; 
14822e4436bf
HOL/IMP and HOLCF/IMP updated and converted (Gerwin Klein);
wenzelm
parents:
12587
diff
changeset

1357 

12022
9c3377b133c0
HOLCF: proper rep_datatype lift (see theory Lift); use plain induct_tac
wenzelm
parents:
11995
diff
changeset

1358 

11474  1359 
*** ZF *** 
1360 

12622  1361 
* Isar: proper integration of logicspecific tools and packages, 
1362 
including theory commands '(co)inductive', '(co)datatype', 

1363 
'rep_datatype', 'inductive_cases', as well as methods 'ind_cases', 

1364 
'induct_tac', 'case_tac', and 'typecheck' (with attribute 'TC'); 

1365 

1366 
* theory Main no longer includes AC; for the Axiom of Choice, base 

1367 
your theory on Main_ZFC; 

1368 

1369 
* the integer library now covers quotients and remainders, with many 

1370 
laws relating division to addition, multiplication, etc.; 

12563  1371 

12280  1372 
* ZF/UNITY: Chandy and Misra's UNITY is now available in ZF, giving a 
1373 
typeless version of the formalism; 

1374 

13025  1375 
* ZF/AC, Coind, IMP, Resid: updated and converted to newstyle theory 
1376 
format; 

12608
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1377 

12280  1378 
* ZF/Induct: new directory for examples of inductive definitions, 
12608
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1379 
including theory Multiset for multiset orderings; converted to 
2df381faa787
* ZF/IMP: updated and converted to newstyle theory format;
wenzelm
parents:
12597
diff
changeset

1380 
newstyle theory format; 
12177
b1c16d685a99
* ZF: newstyle theory commands 'inductive', 'inductive_cases', and
wenzelm
parents:
12163
diff
changeset

1381 

13025  1382 
* ZF: many new theorems about lists, ordinals, etc.; 
12850  1383 

11474  1384 

1385 
*** General *** 

1386 

12280  1387 
* Pure/kernel: metalevel proof terms (by Stefan Berghofer); reference 
1388 
variable proof controls level of detail: 0 = no proofs (only oracle 

1389 
dependencies), 1 = lemma dependencies, 2 = compact proof terms; see 

1390 
also ref manual for further ML interfaces; 

1391 

1392 
* Pure/axclass: removed obsolete ML interface 

1393 
goal_subclass/goal_arity; 

1394 

1395 
* Pure/syntax: new token syntax "num" for plain numerals (without "#" 

1396 
of "xnum"); potential INCOMPATIBILITY, since 0, 1 etc. are now 

1397 
separate tokens, so expressions involving minus need to be spaced 

1398 
properly; 

1399 

12312
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1400 
* Pure/syntax: support nonoriented infixes, using keyword "infix" 
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1401 
rather than "infixl" or "infixr"; 
f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1402 

f0f06950820d
* Isar/Pure: "sorry" no longer requires quick_and_dirty in interactive mode;
wenzelm
parents:
12280
diff
changeset

1403 
* 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

1404 
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

1405 
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

1406 
type variable); 
12280  1407 

1408 
* Pure/syntax: print modes "type_brackets" and "no_type_brackets" 

1409 
control output of nested => (types); the default behavior is 

1410 
"type_brackets"; 

1411 

1412 
* Pure/syntax: builtin parse translation for "_constify" turns valued 

11817  1413 
tokens into AST constants; 
11474  1414 

12280  1415 
* Pure/syntax: prefer later declarations of translations and print 
1416 
translation functions; potential INCOMPATIBILITY: need to reverse 
