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