src/HOL/UNITY/Mutex.ML
changeset 6536 281d44905cab
parent 5983 79e301a6a51b
child 6565 de4acf4449fa
--- a/src/HOL/UNITY/Mutex.ML	Wed Apr 28 13:36:31 1999 +0200
+++ b/src/HOL/UNITY/Mutex.ML	Thu Apr 29 10:51:58 1999 +0200
@@ -74,44 +74,44 @@
 
 (*** Progress for U ***)
 
-Goalw [Unless_def] "Mprg : Unless {s. MM s=#2} {s. MM s=#3}";
+Goalw [Unless_def] "Mprg : {s. MM s=#2} Unless {s. MM s=#3}";
 by (constrains_tac 1);
 qed "U_F0";
 
-Goal "Mprg : LeadsTo {s. MM s=#1} {s. PP s = VV s & MM s = #2}";
+Goal "Mprg : {s. MM s=#1} LeadsTo {s. PP s = VV s & MM s = #2}";
 by (ensures_tac "cmd1U" 1);
 qed "U_F1";
 
-Goal "Mprg : LeadsTo {s. ~ PP s & MM s = #2} {s. MM s = #3}";
+Goal "Mprg : {s. ~ PP s & MM s = #2} LeadsTo {s. MM s = #3}";
 by (cut_facts_tac [invariantU] 1);
 by (ensures_tac "cmd2U" 1);
 qed "U_F2";
 
-Goal "Mprg : LeadsTo {s. MM s = #3} {s. PP s}";
+Goal "Mprg : {s. MM s = #3} LeadsTo {s. PP s}";
 by (res_inst_tac [("B", "{s. MM s = #4}")] LeadsTo_Trans 1);
 by (ensures_tac "cmd4U" 2);
 by (ensures_tac "cmd3U" 1);
 qed "U_F3";
 
-Goal "Mprg : LeadsTo {s. MM s = #2} {s. PP s}";
+Goal "Mprg : {s. MM s = #2} LeadsTo {s. PP s}";
 by (rtac ([LeadsTo_weaken_L, Int_lower2 RS subset_imp_LeadsTo] 
 	  MRS LeadsTo_Diff) 1);
 by (rtac ([U_F2, U_F3] MRS LeadsTo_Trans) 1);
 by (auto_tac (claset() addSEs [less_SucE], simpset()));
 val U_lemma2 = result();
 
-Goal "Mprg : LeadsTo {s. MM s = #1} {s. PP s}";
+Goal "Mprg : {s. MM s = #1} LeadsTo {s. PP s}";
 by (rtac ([U_F1 RS LeadsTo_weaken_R, U_lemma2] MRS LeadsTo_Trans) 1);
 by (Blast_tac 1);
 val U_lemma1 = result();
 
-Goal "Mprg : LeadsTo {s. #1 <= MM s & MM s <= #3} {s. PP s}";
+Goal "Mprg : {s. #1 <= MM s & MM s <= #3} LeadsTo {s. PP s}";
 by (simp_tac (simpset() addsimps [eq_123, Collect_disj_eq, LeadsTo_Un_distrib,
 				  U_lemma1, U_lemma2, U_F3] ) 1);
 val U_lemma123 = result();
 
 (*Misra's F4*)
-Goal "Mprg : LeadsTo {s. UU s} {s. PP s}";
+Goal "Mprg : {s. UU s} LeadsTo {s. PP s}";
 by (rtac ([invariantU, U_lemma123] MRS Invariant_LeadsTo_weaken) 1);
 by Auto_tac;
 qed "u_Leadsto_p";
@@ -120,45 +120,45 @@
 (*** Progress for V ***)
 
 
-Goalw [Unless_def] "Mprg : Unless {s. NN s=#2} {s. NN s=#3}";
+Goalw [Unless_def] "Mprg : {s. NN s=#2} Unless {s. NN s=#3}";
 by (constrains_tac 1);
 qed "V_F0";
 
-Goal "Mprg : LeadsTo {s. NN s=#1} {s. PP s = (~ UU s) & NN s = #2}";
+Goal "Mprg : {s. NN s=#1} LeadsTo {s. PP s = (~ UU s) & NN s = #2}";
 by (ensures_tac "cmd1V" 1);
 qed "V_F1";
 
-Goal "Mprg : LeadsTo {s. PP s & NN s = #2} {s. NN s = #3}";
+Goal "Mprg : {s. PP s & NN s = #2} LeadsTo {s. NN s = #3}";
 by (cut_facts_tac [invariantV] 1);
 by (ensures_tac "cmd2V" 1);
 qed "V_F2";
 
-Goal "Mprg : LeadsTo {s. NN s = #3} {s. ~ PP s}";
+Goal "Mprg : {s. NN s = #3} LeadsTo {s. ~ PP s}";
 by (res_inst_tac [("B", "{s. NN s = #4}")] LeadsTo_Trans 1);
 by (ensures_tac "cmd4V" 2);
 by (ensures_tac "cmd3V" 1);
 qed "V_F3";
 
-Goal "Mprg : LeadsTo {s. NN s = #2} {s. ~ PP s}";
+Goal "Mprg : {s. NN s = #2} LeadsTo {s. ~ PP s}";
 by (rtac ([LeadsTo_weaken_L, Int_lower2 RS subset_imp_LeadsTo] 
 	  MRS LeadsTo_Diff) 1);
 by (rtac ([V_F2, V_F3] MRS LeadsTo_Trans) 1);
 by (auto_tac (claset() addSEs [less_SucE], simpset()));
 val V_lemma2 = result();
 
-Goal "Mprg : LeadsTo {s. NN s = #1} {s. ~ PP s}";
+Goal "Mprg : {s. NN s = #1} LeadsTo {s. ~ PP s}";
 by (rtac ([V_F1 RS LeadsTo_weaken_R, V_lemma2] MRS LeadsTo_Trans) 1);
 by (Blast_tac 1);
 val V_lemma1 = result();
 
-Goal "Mprg : LeadsTo {s. #1 <= NN s & NN s <= #3} {s. ~ PP s}";
+Goal "Mprg : {s. #1 <= NN s & NN s <= #3} LeadsTo {s. ~ PP s}";
 by (simp_tac (simpset() addsimps [eq_123, Collect_disj_eq, LeadsTo_Un_distrib,
 				  V_lemma1, V_lemma2, V_F3] ) 1);
 val V_lemma123 = result();
 
 
 (*Misra's F4*)
-Goal "Mprg : LeadsTo {s. VV s} {s. ~ PP s}";
+Goal "Mprg : {s. VV s} LeadsTo {s. ~ PP s}";
 by (rtac ([invariantV, V_lemma123] MRS Invariant_LeadsTo_weaken) 1);
 by Auto_tac;
 qed "v_Leadsto_not_p";
@@ -167,7 +167,7 @@
 (** Absence of starvation **)
 
 (*Misra's F6*)
-Goal "Mprg : LeadsTo {s. MM s = #1} {s. MM s = #3}";
+Goal "Mprg : {s. MM s = #1} LeadsTo {s. MM s = #3}";
 by (rtac LeadsTo_Un_duplicate 1);
 by (rtac LeadsTo_cancel2 1);
 by (rtac U_F2 2);
@@ -181,7 +181,7 @@
 
 
 (*The same for V*)
-Goal "Mprg : LeadsTo {s. NN s = #1} {s. NN s = #3}";
+Goal "Mprg : {s. NN s = #1} LeadsTo {s. NN s = #3}";
 by (rtac LeadsTo_Un_duplicate 1);
 by (rtac LeadsTo_cancel2 1);
 by (rtac V_F2 2);