simpdata.ML
changeset 32 4ea58120ef3d
parent 30 2fdeeae553ac
child 34 7d437bed7765
equal deleted inserted replaced
31:04f43a28c97a 32:4ea58120ef3d
   118 (*Prevents simplification of x and y: much faster*)
   118 (*Prevents simplification of x and y: much faster*)
   119 val if_weak_cong = prove_goal HOL.thy
   119 val if_weak_cong = prove_goal HOL.thy
   120   "b=c ==> if(b,x,y) = if(c,x,y)"
   120   "b=c ==> if(b,x,y) = if(c,x,y)"
   121   (fn [prem] => [rtac (prem RS arg_cong) 1]);
   121   (fn [prem] => [rtac (prem RS arg_cong) 1]);
   122 
   122 
       
   123 (*Prevents simplification of t: much faster*)
       
   124 val let_weak_cong = prove_goal HOL.thy
       
   125   "a = b ==> (let x=a in t(x)) = (let x=b in t(x))"
       
   126   (fn [prem] => [rtac (prem RS arg_cong) 1]);
       
   127 
   123 end;
   128 end;