src/Pure/Tools/find_theorems.ML
changeset 64983 481b2855ee9a
parent 64556 851ae0e7b09c
child 64984 2f72056cf78a
equal deleted inserted replaced
64982:c515464b4652 64983:481b2855ee9a
   181     end
   181     end
   182   else NONE;
   182   else NONE;
   183 
   183 
   184 fun filter_solves ctxt goal =
   184 fun filter_solves ctxt goal =
   185   let
   185   let
   186     val thy' =
   186     val thy' = Proof_Context.theory_of ctxt
   187       Proof_Context.theory_of ctxt
   187       |> Context_Position.set_visible_global false;
   188       |> Context_Position.set_visible_global (Context_Position.is_visible ctxt);
   188     val ctxt' = Proof_Context.transfer thy' ctxt
   189     val ctxt' = Proof_Context.transfer thy' ctxt;
   189       |> Context_Position.set_visible false;
   190     val goal' = Thm.transfer thy' goal;
   190     val goal' = Thm.transfer thy' goal;
   191 
   191 
   192     fun limited_etac thm i =
   192     fun limited_etac thm i =
   193       Seq.take (Options.default_int @{system_option find_theorems_tactic_limit}) o
   193       Seq.take (Options.default_int @{system_option find_theorems_tactic_limit}) o
   194         eresolve_tac ctxt' [thm] i;
   194         eresolve_tac ctxt' [thm] i;