src/HOL/Hyperreal/HTranscendental.ML
changeset 14378 69c4d5997669
parent 14371 c78c7da09519
equal deleted inserted replaced
14377:f454b3004f8f 14378:69c4d5997669
   120 Addsimps [hypreal_sqrt_hrabs2];
   120 Addsimps [hypreal_sqrt_hrabs2];
   121 
   121 
   122 Goal "( *f* sqrt)(x pow (hypnat_of_nat 2)) = abs(x)";
   122 Goal "( *f* sqrt)(x pow (hypnat_of_nat 2)) = abs(x)";
   123 by (res_inst_tac [("z","x")] eq_Abs_hypreal 1);
   123 by (res_inst_tac [("z","x")] eq_Abs_hypreal 1);
   124 by (auto_tac (claset(),simpset() addsimps [starfun,
   124 by (auto_tac (claset(),simpset() addsimps [starfun,
   125     hypreal_hrabs,hypnat_of_nat_def,hyperpow]));
   125     hypreal_hrabs,hypnat_of_nat_eq,hyperpow]));
   126 qed "hypreal_sqrt_hyperpow_hrabs";
   126 qed "hypreal_sqrt_hyperpow_hrabs";
   127 Addsimps [hypreal_sqrt_hyperpow_hrabs];
   127 Addsimps [hypreal_sqrt_hyperpow_hrabs];
   128 
   128 
   129 Goal "[| x: HFinite; 0 <= x |] ==> st(( *f* sqrt) x) = ( *f* sqrt)(st x)";
   129 Goal "[| x: HFinite; 0 <= x |] ==> st(( *f* sqrt) x) = ( *f* sqrt)(st x)";
   130 by (res_inst_tac [("n","1")] power_inject_base 1);
   130 by (res_inst_tac [("n","1")] power_inject_base 1);