equal
deleted
inserted
replaced
55 |
55 |
56 fun consts_in_goal goal = consts_of_term goal; |
56 fun consts_in_goal goal = consts_of_term goal; |
57 |
57 |
58 fun axioms_having_consts_aux [] tab thms = thms |
58 fun axioms_having_consts_aux [] tab thms = thms |
59 | axioms_having_consts_aux (c::cs) tab thms = |
59 | axioms_having_consts_aux (c::cs) tab thms = |
60 let val thms1 = Symtab.lookup(tab,c) |
60 let val thms1 = Symtab.curried_lookup tab c |
61 val thms2 = |
61 val thms2 = |
62 case thms1 of (SOME x) => x |
62 case thms1 of (SOME x) => x |
63 | NONE => [] |
63 | NONE => [] |
64 in |
64 in |
65 axioms_having_consts_aux cs tab (thms2 union thms) |
65 axioms_having_consts_aux cs tab (thms2 union thms) |
66 end; |
66 end; |
67 |
|
68 |
67 |
69 fun axioms_having_consts cs tab = axioms_having_consts_aux cs tab []; |
68 fun axioms_having_consts cs tab = axioms_having_consts_aux cs tab []; |
70 |
69 |
71 |
70 |
72 fun relevant_axioms goal thmTab n = |
71 fun relevant_axioms goal thmTab n = |