equal
deleted
inserted
replaced
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 |