equal
deleted
inserted
replaced
199 fun rulify_term thy = Raw_Simplifier.rewrite_term thy (get_rulify thy) []; |
199 fun rulify_term thy = Raw_Simplifier.rewrite_term thy (get_rulify thy) []; |
200 fun rulify_tac ctxt = rewrite_goal_tac ctxt (get_rulify (Proof_Context.theory_of ctxt)); |
200 fun rulify_tac ctxt = rewrite_goal_tac ctxt (get_rulify (Proof_Context.theory_of ctxt)); |
201 |
201 |
202 fun gen_rulify full ctxt = |
202 fun gen_rulify full ctxt = |
203 Conv.fconv_rule (Raw_Simplifier.rewrite ctxt full (get_rulify (Proof_Context.theory_of ctxt))) |
203 Conv.fconv_rule (Raw_Simplifier.rewrite ctxt full (get_rulify (Proof_Context.theory_of ctxt))) |
204 #> Drule.gen_all #> Thm.strip_shyps #> Drule.zero_var_indexes; |
204 #> Drule.gen_all (Variable.maxidx_of ctxt) |
|
205 #> Thm.strip_shyps |
|
206 #> Drule.zero_var_indexes; |
205 |
207 |
206 val rulify = gen_rulify true; |
208 val rulify = gen_rulify true; |
207 val rulify_no_asm = gen_rulify false; |
209 val rulify_no_asm = gen_rulify false; |
208 |
210 |
209 val rule_format = Thm.rule_attribute (rulify o Context.proof_of); |
211 val rule_format = Thm.rule_attribute (rulify o Context.proof_of); |