755 fun factify_step ((num, ss), role, t, rule, deps) = |
755 fun factify_step ((num, ss), role, t, rule, deps) = |
756 let |
756 let |
757 val (ss', role', t') = |
757 val (ss', role', t') = |
758 (case resolve_conjectures ss of |
758 (case resolve_conjectures ss of |
759 [j] => |
759 [j] => |
760 if j = length hyp_ts then ([], Conjecture, concl_t) else ([], Hypothesis, nth hyp_ts j) |
760 if j = length hyp_ts then ([], Conjecture, concl_t) |
|
761 else ([], Hypothesis, close_form (nth hyp_ts j)) |
761 | _ => |
762 | _ => |
762 (case resolve_facts facts ss of |
763 (case resolve_facts facts ss of |
763 [] => (ss, if role = Lemma then Lemma else Plain, t) |
764 [] => (ss, if role = Lemma then Lemma else Plain, t) |
764 | facts => (map fst facts, Axiom, t))) |
765 | facts => (map fst facts, Axiom, t))) |
765 in |
766 in |