fix bug in SPASS's DFG output files, where "tc_bool" wasn't declared;
this bug occurs when the explicit "hAPP" or "hBOOL" functions are introduced and full types is activated
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_hol_clause.ML Tue Apr 20 16:04:49 2010 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_hol_clause.ML Tue Apr 20 16:14:45 2010 +0200
@@ -377,8 +377,9 @@
handle Symtab.DUP a => error ("function " ^ a ^ " has multiple arities")
fun decls_of_clauses params clauses arity_clauses =
- let val functab = init_functab |> Symtab.update (type_wrapper, 2)
- |> Symtab.update ("hAPP", 2)
+ let val functab =
+ init_functab |> fold Symtab.update [(type_wrapper, 2), ("hAPP", 2),
+ ("tc_bool", 0)]
val predtab = Symtab.empty |> Symtab.update ("hBOOL", 1)
val (functab, predtab) =
(functab, predtab) |> fold (add_clause_decls params) clauses