getting ZF/UNITY working again
authorpaulson
Fri, 30 May 2003 11:44:29 +0200
changeset 14054 dc281bd5ca0a
parent 14053 4daa384f4fd7
child 14055 a3f592e3f4bd
getting ZF/UNITY working again
src/ZF/Nat.thy
src/ZF/UNITY/AllocBase.thy
src/ZF/UNITY/Union.ML
src/ZF/UNITY/WFair.ML
--- a/src/ZF/Nat.thy	Thu May 29 17:10:00 2003 +0200
+++ b/src/ZF/Nat.thy	Fri May 30 11:44:29 2003 +0200
@@ -290,6 +290,8 @@
 apply (blast intro: lt_trans) 
 done
 
+lemma Le_iff [iff]: "<x,y> : Le <-> x le y & x : nat & y : nat"
+by (force simp add: Le_def)
 
 ML
 {*
--- a/src/ZF/UNITY/AllocBase.thy	Thu May 29 17:10:00 2003 +0200
+++ b/src/ZF/UNITY/AllocBase.thy	Fri May 30 11:44:29 2003 +0200
@@ -6,7 +6,7 @@
 Common declarations for Chandy and Charpentier's Allocator
 *)
 
-AllocBase = Follows + MultisetSum + Guar + New +
+AllocBase = Follows + MultisetSum + Guar +
 
 consts
   tokbag   :: i  (* tokbags could be multisets...or any ordered type?*)
--- a/src/ZF/UNITY/Union.ML	Thu May 29 17:10:00 2003 +0200
+++ b/src/ZF/UNITY/Union.ML	Fri May 30 11:44:29 2003 +0200
@@ -566,11 +566,12 @@
 
 Goal "safety_prop(X) ==> \
 \ (UN G:X. Acts(G)) <= AllowedActs(F) <-> (X <= Allowed(programify(F)))";
-by (auto_tac (claset(), 
-      simpset() addsimps [Allowed_def, 
-              safety_prop_Acts_iff RS iff_sym]));  
+by (asm_full_simp_tac (simpset() addsimps [Allowed_def, 
+              safety_prop_Acts_iff RS iff_sym]) 1);
+by Safe_tac;
+by (REPEAT (Blast_tac 2)); 
 by (rewtac safety_prop_def);
-by Auto_tac;
+by (Blast_tac 1); 
 qed "safety_prop_AllowedActs_iff_Allowed";
 
 
@@ -614,7 +615,8 @@
 
 Goal "[| safety_prop(X) ; safety_prop(Y) |] ==> safety_prop(X Int Y)";
 by (asm_full_simp_tac (simpset() addsimps [safety_prop_def]) 1);
-by Auto_tac; 
+by Safe_tac;
+by (Blast_tac 1); 
 by (dres_inst_tac [("B", "Union(RepFun(X Int Y, Acts))"),
                    ("C", "Union(RepFun(Y, Acts))")] subset_trans 2);
 by (dres_inst_tac [("B", "Union(RepFun(X Int Y, Acts))"),
--- a/src/ZF/UNITY/WFair.ML	Thu May 29 17:10:00 2003 +0200
+++ b/src/ZF/UNITY/WFair.ML	Fri May 30 11:44:29 2003 +0200
@@ -670,7 +670,7 @@
 by (Asm_simp_tac 2);
 by (blast_tac (claset() addSDs [leadsToD2]) 2);
 by (subgoal_tac "F : (W-C) co (W Un B' Un C)" 1);
-by (blast_tac (claset() addIs [[asm_rl, wlt_constrains_wlt] 
+by (blast_tac (claset() addSIs [[asm_rl, wlt_constrains_wlt] 
                                MRS constrains_Un RS constrains_weaken]) 2);
 by (subgoal_tac "F : (W-C) co W" 1);
 by (asm_full_simp_tac (simpset() addsimps  [wlt_increasing RS