equal
deleted
inserted
replaced
1155 if null bs then () |
1155 if null bs then () |
1156 else print_term true ("Simplifier: term contains loose bounds: " ^ commas_quote bs) ss |
1156 else print_term true ("Simplifier: term contains loose bounds: " ^ commas_quote bs) ss |
1157 (Thm.theory_of_cterm ct) (Thm.term_of ct) |
1157 (Thm.theory_of_cterm ct) (Thm.term_of ct) |
1158 end); |
1158 end); |
1159 |
1159 |
1160 fun rewrite_cterm mode prover raw_ss ct = |
1160 fun rewrite_cterm mode prover raw_ss raw_ct = |
1161 let |
1161 let |
|
1162 val ct = Thm.adjust_maxidx raw_ct; |
1162 val {thy, t, maxidx, ...} = Thm.rep_cterm ct; |
1163 val {thy, t, maxidx, ...} = Thm.rep_cterm ct; |
1163 val ss = fallback_context thy raw_ss; |
1164 val ss = fallback_context thy raw_ss; |
1164 val _ = inc simp_depth; |
1165 val _ = inc simp_depth; |
1165 val _ = conditional (!simp_depth mod 20 = 0) (fn () => |
1166 val _ = conditional (!simp_depth mod 20 = 0) (fn () => |
1166 warning ("Simplification depth " ^ string_of_int (! simp_depth))); |
1167 warning ("Simplification depth " ^ string_of_int (! simp_depth))); |