src/HOL/Import/shuffler.ML
changeset 30510 4120fc59dd85
parent 30473 e0b66c11e7e4
child 30528 7173bf123335
equal deleted inserted replaced
30509:e19d5b459a61 30510:4120fc59dd85
   654 
   654 
   655 fun shuffle_meth (thms:thm list) ctxt =
   655 fun shuffle_meth (thms:thm list) ctxt =
   656     let
   656     let
   657         val thy = ProofContext.theory_of ctxt
   657         val thy = ProofContext.theory_of ctxt
   658     in
   658     in
   659         Method.SIMPLE_METHOD' (gen_shuffle_tac thy false (map (pair "") thms))
   659         SIMPLE_METHOD' (gen_shuffle_tac thy false (map (pair "") thms))
   660     end
   660     end
   661 
   661 
   662 fun search_meth ctxt =
   662 fun search_meth ctxt =
   663     let
   663     let
   664         val thy = ProofContext.theory_of ctxt
   664         val thy = ProofContext.theory_of ctxt
   665         val prems = Assumption.all_prems_of ctxt
   665         val prems = Assumption.all_prems_of ctxt
   666     in
   666     in
   667         Method.SIMPLE_METHOD' (gen_shuffle_tac thy true (map (pair "premise") prems))
   667         SIMPLE_METHOD' (gen_shuffle_tac thy true (map (pair "premise") prems))
   668     end
   668     end
   669 
   669 
   670 fun add_shuffle_rule thm thy =
   670 fun add_shuffle_rule thm thy =
   671     let
   671     let
   672         val shuffles = ShuffleData.get thy
   672         val shuffles = ShuffleData.get thy