src/Provers/blast.ML
changeset 30558 2ef9892114fd
parent 30541 9f168bdc468a
child 30609 983e8b6e4e69
equal deleted inserted replaced
30557:a28d83e903ce 30558:2ef9892114fd
   562 fun netMkRules thy P vars (nps: netpair list) =
   562 fun netMkRules thy P vars (nps: netpair list) =
   563   case P of
   563   case P of
   564       (Const ("*Goal*", _) $ G) =>
   564       (Const ("*Goal*", _) $ G) =>
   565         let val pG = mk_Trueprop (toTerm 2 G)
   565         let val pG = mk_Trueprop (toTerm 2 G)
   566             val intrs = maps (fn (inet,_) => Net.unify_term inet pG) nps
   566             val intrs = maps (fn (inet,_) => Net.unify_term inet pG) nps
   567         in  map (fromIntrRule thy vars o #2) (Tactic.orderlist intrs)  end
   567         in  map (fromIntrRule thy vars o #2) (order_list intrs)  end
   568     | _ =>
   568     | _ =>
   569         let val pP = mk_Trueprop (toTerm 3 P)
   569         let val pP = mk_Trueprop (toTerm 3 P)
   570             val elims = maps (fn (_,enet) => Net.unify_term enet pP) nps
   570             val elims = maps (fn (_,enet) => Net.unify_term enet pP) nps
   571         in  map_filter (fromRule thy vars o #2) (Tactic.orderlist elims)  end;
   571         in  map_filter (fromRule thy vars o #2) (order_list elims)  end;
   572 
   572 
   573 
   573 
   574 (*Normalize a branch--for tracing*)
   574 (*Normalize a branch--for tracing*)
   575 fun norm2 (G,md) = (norm G, md);
   575 fun norm2 (G,md) = (norm G, md);
   576 
   576