src/HOL/Hyperreal/Integration.ML
changeset 15082 6c3276a2735b
parent 15079 2ef899e4526d
equal deleted inserted replaced
15081:32402f5624d1 15082:6c3276a2735b
     7 val mult_2 = thm"mult_2";
     7 val mult_2 = thm"mult_2";
     8 val mult_2_right = thm"mult_2_right";
     8 val mult_2_right = thm"mult_2_right";
     9 
     9 
    10 fun ARITH_PROVE str = prove_goal thy str
    10 fun ARITH_PROVE str = prove_goal thy str
    11                       (fn prems => [cut_facts_tac prems 1,arith_tac 1]);
    11                       (fn prems => [cut_facts_tac prems 1,arith_tac 1]);
       
    12 
       
    13 fun CLAIM_SIMP str thms =
       
    14                prove_goal (the_context()) str
       
    15                (fn prems => [cut_facts_tac prems 1,
       
    16                    auto_tac (claset(),simpset() addsimps thms)]);
       
    17 
       
    18 fun CLAIM str = CLAIM_SIMP str [];
    12 
    19 
    13 Goalw [psize_def] "a = b ==> psize (%n. if n = 0 then a else b) = 0";
    20 Goalw [psize_def] "a = b ==> psize (%n. if n = 0 then a else b) = 0";
    14 by Auto_tac;
    21 by Auto_tac;
    15 qed "partition_zero";
    22 qed "partition_zero";
    16 Addsimps [partition_zero];
    23 Addsimps [partition_zero];