renamed sswhen to sscase
authoroheimb
Wed, 09 Sep 1998 16:21:08 +0200
changeset 5439 2e0c18eedfd0
parent 5438 c89ee3a46a74
child 5440 f099dffd0f18
renamed sswhen to sscase
src/HOLCF/Ssum3.ML
src/HOLCF/Ssum3.thy
src/HOLCF/domain/library.ML
--- a/src/HOLCF/Ssum3.ML	Wed Sep 09 16:13:35 1998 +0200
+++ b/src/HOLCF/Ssum3.ML	Wed Sep 09 16:21:08 1998 +0200
@@ -491,8 +491,8 @@
         (atac 1)
         ]);
 
-qed_goalw "sswhen1" Ssum3.thy [sswhen_def,sinl_def,sinr_def] 
-        "sswhen`f`g`UU = UU" (fn _ => let
+qed_goalw "sscase1" Ssum3.thy [sscase_def,sinl_def,sinr_def] 
+        "sscase`f`g`UU = UU" (fn _ => let
 val tac = (REPEAT (resolve_tac (cont_lemmas1 @ [cont_Iwhen1,cont_Iwhen2,
                 cont_Iwhen3,cont2cont_CF1L]) 1)) in
 	[
@@ -510,8 +510,8 @@
 val tac = (REPEAT (resolve_tac (cont_lemmas1 @ [cont_Iwhen1,cont_Iwhen2,
                 cont_Iwhen3,cont_Isinl,cont_Isinr,cont2cont_CF1L]) 1));
 
-qed_goalw "sswhen2" Ssum3.thy [sswhen_def,sinl_def,sinr_def] 
-        "x~=UU==> sswhen`f`g`(sinl`x) = f`x" (fn prems => [
+qed_goalw "sscase2" Ssum3.thy [sscase_def,sinl_def,sinr_def] 
+        "x~=UU==> sscase`f`g`(sinl`x) = f`x" (fn prems => [
         (cut_facts_tac prems 1),
         (stac beta_cfun 1),
         tac,
@@ -524,8 +524,8 @@
         (asm_simp_tac Ssum0_ss  1)
         ]);
 
-qed_goalw "sswhen3" Ssum3.thy [sswhen_def,sinl_def,sinr_def] 
-        "x~=UU==> sswhen`f`g`(sinr`x) = g`x" (fn prems => [
+qed_goalw "sscase3" Ssum3.thy [sscase_def,sinl_def,sinr_def] 
+        "x~=UU==> sscase`f`g`(sinr`x) = g`x" (fn prems => [
         (cut_facts_tac prems 1),
         (stac beta_cfun 1),
         tac,
@@ -588,9 +588,9 @@
         ]);
 
 
-qed_goalw "thelub_ssum2a" Ssum3.thy [sinl_def,sinr_def,sswhen_def] 
+qed_goalw "thelub_ssum2a" Ssum3.thy [sinl_def,sinr_def,sscase_def] 
 "[| chain(Y); !i.? x. Y(i) = sinl`x |] ==>\ 
-\   lub(range(Y)) = sinl`(lub(range(%i. sswhen`(LAM x. x)`(LAM y. UU)`(Y i))))"
+\   lub(range(Y)) = sinl`(lub(range(%i. sscase`(LAM x. x)`(LAM y. UU)`(Y i))))"
  (fn prems =>
         [
         (cut_facts_tac prems 1),
@@ -613,9 +613,9 @@
         (asm_simp_tac (Ssum0_ss addsimps [cont_Isinl]) 1)
         ]);
 
-qed_goalw "thelub_ssum2b" Ssum3.thy [sinl_def,sinr_def,sswhen_def] 
+qed_goalw "thelub_ssum2b" Ssum3.thy [sinl_def,sinr_def,sscase_def] 
 "[| chain(Y); !i.? x. Y(i) = sinr`x |] ==>\ 
-\   lub(range(Y)) = sinr`(lub(range(%i. sswhen`(LAM y. UU)`(LAM x. x)`(Y i))))"
+\   lub(range(Y)) = sinr`(lub(range(%i. sscase`(LAM y. UU)`(LAM x. x)`(Y i))))"
  (fn prems =>
         [
         (cut_facts_tac prems 1),
@@ -670,8 +670,8 @@
 
 qed_goal "thelub_ssum3" Ssum3.thy  
 "chain(Y) ==>\ 
-\   lub(range(Y)) = sinl`(lub(range(%i. sswhen`(LAM x. x)`(LAM y. UU)`(Y i))))\
-\ | lub(range(Y)) = sinr`(lub(range(%i. sswhen`(LAM y. UU)`(LAM x. x)`(Y i))))"
+\   lub(range(Y)) = sinl`(lub(range(%i. sscase`(LAM x. x)`(LAM y. UU)`(Y i))))\
+\ | lub(range(Y)) = sinr`(lub(range(%i. sscase`(LAM y. UU)`(LAM x. x)`(Y i))))"
  (fn prems =>
         [
         (cut_facts_tac prems 1),
@@ -686,14 +686,14 @@
         ]);
 
 
-qed_goal "sswhen4" Ssum3.thy  
-        "sswhen`sinl`sinr`z=z"
+qed_goal "sscase4" Ssum3.thy  
+        "sscase`sinl`sinr`z=z"
  (fn prems =>
         [
         (res_inst_tac [("p","z")] ssumE 1),
-        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sswhen1,sswhen2,sswhen3]) 1),
-        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sswhen1,sswhen2,sswhen3]) 1),
-        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sswhen1,sswhen2,sswhen3]) 1)
+        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sscase1,sscase2,sscase3]) 1),
+        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sscase1,sscase2,sscase3]) 1),
+        (asm_simp_tac ((simpset_of Cfun3.thy) addsimps [sscase1,sscase2,sscase3]) 1)
         ]);
 
 
@@ -702,7 +702,7 @@
 (* ------------------------------------------------------------------------ *)
 
 val Ssum_rews = [strict_sinl,strict_sinr,defined_sinl,defined_sinr,
-                sswhen1,sswhen2,sswhen3];
+                sscase1,sscase2,sscase3];
 
 Addsimps [strict_sinl,strict_sinr,defined_sinl,defined_sinr,
-                sswhen1,sswhen2,sswhen3];
+                sscase1,sscase2,sscase3];
--- a/src/HOLCF/Ssum3.thy	Wed Sep 09 16:13:35 1998 +0200
+++ b/src/HOLCF/Ssum3.thy	Wed Sep 09 16:21:08 1998 +0200
@@ -13,15 +13,15 @@
 consts  
         sinl    :: "'a -> ('a++'b)" 
         sinr    :: "'b -> ('a++'b)" 
-        sswhen  :: "('a->'c)->('b->'c)->('a ++ 'b)-> 'c"
+        sscase  :: "('a->'c)->('b->'c)->('a ++ 'b)-> 'c"
 
 defs
 
 sinl_def        "sinl   == (LAM x. Isinl(x))"
 sinr_def        "sinr   == (LAM x. Isinr(x))"
-sswhen_def      "sswhen   == (LAM f g s. Iwhen(f)(g)(s))"
+sscase_def      "sscase   == (LAM f g s. Iwhen(f)(g)(s))"
 
 translations
-"case s of sinl`x => t1 | sinr`y => t2" == "sswhen`(LAM x. t1)`(LAM y. t2)`s"
+"case s of sinl`x => t1 | sinr`y => t2" == "sscase`(LAM x. t1)`(LAM y. t2)`s"
 
 end
--- a/src/HOLCF/domain/library.ML	Wed Sep 09 16:13:35 1998 +0200
+++ b/src/HOLCF/domain/library.ML	Wed Sep 09 16:21:08 1998 +0200
@@ -201,5 +201,5 @@
 			) end;
 in (if length cons = 1 andalso length(snd(hd cons)) <= 1
     then fn t => %%"strictify"`t else Id)
-     (foldr' (fn (x,y)=> %%"sswhen"`x`y) (mapn one_fun 1 cons)) end;
+     (foldr' (fn (x,y)=> %%"sscase"`x`y) (mapn one_fun 1 cons)) end;
 end; (* struct *)