equal
deleted
inserted
replaced
81 |
81 |
82 fun dynamic_tac ctxt = CONVERSION (dynamic_conv ctxt) |
82 fun dynamic_tac ctxt = CONVERSION (dynamic_conv ctxt) |
83 THEN' conclude_tac ctxt NONE ctxt; |
83 THEN' conclude_tac ctxt NONE ctxt; |
84 |
84 |
85 fun dynamic_value ctxt = |
85 fun dynamic_value ctxt = |
86 snd o Logic.dest_equals o Thm.prop_of o dynamic_conv ctxt o Thm.global_cterm_of (Proof_Context.theory_of ctxt); |
86 snd o Logic.dest_equals o Thm.prop_of o dynamic_conv ctxt o Thm.cterm_of ctxt; |
87 |
87 |
88 val _ = Theory.setup |
88 val _ = Theory.setup |
89 (Method.setup @{binding code_simp} |
89 (Method.setup @{binding code_simp} |
90 (Scan.succeed (SIMPLE_METHOD' o (CHANGED_PROP oo dynamic_tac))) |
90 (Scan.succeed (SIMPLE_METHOD' o (CHANGED_PROP oo dynamic_tac))) |
91 "simplification with code equations"); |
91 "simplification with code equations"); |