src/HOL/Tools/ATP/atp_proof_reconstruct.ML
changeset 58484 b4c0e2b00036
parent 58477 8438bae06e63
child 58500 430306aa03b1
equal deleted inserted replaced
58482:7836013951e6 58484:b4c0e2b00036
   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