src/Tools/Code/code_simp.ML
changeset 59633 a372513af1e2
parent 59621 291934bac95e
child 63156 3cb84e4469a7
equal deleted inserted replaced
59632:5980e75a204e 59633:a372513af1e2
    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");