equal
deleted
inserted
replaced
212 |
212 |
213 val rev_subst = rotate_prems 1 subst; |
213 val rev_subst = rotate_prems 1 subst; |
214 val rev_ssubst = rotate_prems 1 ssubst; |
214 val rev_ssubst = rotate_prems 1 ssubst; |
215 |
215 |
216 |
216 |
217 (* have changed from negate_nead to negate_head. God knows if this will actually work *) |
|
218 fun follow_standard_para ((clause1, lit1), (clause2 , lit2)) allvars thml clause_strs= |
217 fun follow_standard_para ((clause1, lit1), (clause2 , lit2)) allvars thml clause_strs= |
219 let |
218 let |
220 val th1 = Recon_Base.assoc clause1 thml |
219 val th1 = Recon_Base.assoc clause1 thml |
221 val th2 = Recon_Base.assoc clause2 thml |
220 val th2 = Recon_Base.assoc clause2 thml |
222 val eq_lit_th = select_literal (lit1+1) th1 |
221 val eq_lit_th = select_literal (lit1+1) th1 |
401 end |
400 end |
402 |
401 |
403 |
402 |
404 fun not_newline ch = not (ch = "\n"); |
403 fun not_newline ch = not (ch = "\n"); |
405 |
404 |
406 fun concat_with_and [] str = str |
|
407 | concat_with_and (x::[]) str = str^"("^x^")" |
|
408 | concat_with_and (x::xs) str = (concat_with_and xs (str^"("^x^")"^" & ")) |
|
409 (* |
405 (* |
410 |
406 |
411 fun follow clauses [] allvars thml recons = |
407 fun follow clauses [] allvars thml recons = |
412 let (* val _ = reset show_sorts*) |
408 let (* val _ = reset show_sorts*) |
413 val thmstring = concat_with_and (map string_of_thm (map snd thml)) "" |
409 val thmstring = Meson.concat_with_and (map string_of_thm (map snd thml)) |
414 val thmproofstring = proofstring ( thmstring) |
410 val thmproofstring = proofstring ( thmstring) |
415 val no_returns =List.filter not_newline ( thmproofstring) |
411 val no_returns =List.filter not_newline ( thmproofstring) |
416 val thmstr = implode no_returns |
412 val thmstr = implode no_returns |
417 val outfile = TextIO.openOut(File.sysify_path(File.tmp_path (Path.basic "thml_file"))) |
413 val outfile = TextIO.openOut(File.sysify_path(File.tmp_path (Path.basic "thml_file"))) |
418 val _ = TextIO.output(outfile, "thmstr is "^thmstr) |
414 val _ = TextIO.output(outfile, "thmstr is "^thmstr) |