equal
deleted
inserted
replaced
120 |
120 |
121 local |
121 local |
122 fun solve_cont ctxt t = |
122 fun solve_cont ctxt t = |
123 let |
123 let |
124 val thy = Proof_Context.theory_of ctxt |
124 val thy = Proof_Context.theory_of ctxt |
125 val tr = instantiate' [] [SOME (Thm.cterm_of thy t)] @{thm Eq_TrueI} |
125 val tr = instantiate' [] [SOME (Thm.global_cterm_of thy t)] @{thm Eq_TrueI} |
126 in Option.map fst (Seq.pull (cont_tac ctxt 1 tr)) end |
126 in Option.map fst (Seq.pull (cont_tac ctxt 1 tr)) end |
127 in |
127 in |
128 fun cont_proc thy = |
128 fun cont_proc thy = |
129 Simplifier.simproc_global thy "cont_proc" ["cont f"] solve_cont |
129 Simplifier.simproc_global thy "cont_proc" ["cont f"] solve_cont |
130 end |
130 end |