| author | huffman | 
| Sat, 27 Nov 2010 14:34:54 -0800 | |
| changeset 40773 | 6c12f5e24e34 | 
| parent 35416 | d8d7d1b785af | 
| child 42174 | d0be2722ce9f | 
| permissions | -rw-r--r-- | 
| 13020 | 1 | |
| 2 | header {* \section{Operational Semantics} *}
 | |
| 3 | ||
| 16417 | 4 | theory OG_Tran imports OG_Com begin | 
| 13020 | 5 | |
| 6 | types | |
| 7 |   'a ann_com_op = "('a ann_com) option"
 | |
| 8 |   'a ann_triple_op = "('a ann_com_op \<times> 'a assn)"
 | |
| 9 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 10 | primrec com :: "'a ann_triple_op \<Rightarrow> 'a ann_com_op" where | 
| 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 11 | "com (c, q) = c" | 
| 13020 | 12 | |
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 13 | primrec post :: "'a ann_triple_op \<Rightarrow> 'a assn" where | 
| 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 14 | "post (c, q) = q" | 
| 13020 | 15 | |
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 16 | definition All_None :: "'a ann_triple_op list \<Rightarrow> bool" where | 
| 13020 | 17 | "All_None Ts \<equiv> \<forall>(c, q) \<in> set Ts. c = None" | 
| 18 | ||
| 19 | subsection {* The Transition Relation *}
 | |
| 20 | ||
| 23746 | 21 | inductive_set | 
| 13020 | 22 |   ann_transition :: "(('a ann_com_op \<times> 'a) \<times> ('a ann_com_op \<times> 'a)) set"        
 | 
| 23746 | 23 |   and transition :: "(('a com \<times> 'a) \<times> ('a com \<times> 'a)) set"
 | 
| 24 |   and ann_transition' :: "('a ann_com_op \<times> 'a) \<Rightarrow> ('a ann_com_op \<times> 'a) \<Rightarrow> bool"
 | |
| 25 |     ("_ -1\<rightarrow> _"[81,81] 100)
 | |
| 26 |   and transition' :: "('a com \<times> 'a) \<Rightarrow> ('a com \<times> 'a) \<Rightarrow> bool"
 | |
| 27 |     ("_ -P1\<rightarrow> _"[81,81] 100)
 | |
| 28 |   and transitions :: "('a com \<times> 'a) \<Rightarrow> ('a com \<times> 'a) \<Rightarrow> bool"
 | |
| 29 |     ("_ -P*\<rightarrow> _"[81,81] 100)
 | |
| 30 | where | |
| 31 | "con_0 -1\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> ann_transition" | |
| 32 | | "con_0 -P1\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> transition" | |
| 33 | | "con_0 -P*\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> transition\<^sup>*" | |
| 34 | ||
| 35 | | AnnBasic: "(Some (AnnBasic r f), s) -1\<rightarrow> (None, f s)" | |
| 36 | ||
| 37 | | AnnSeq1: "(Some c0, s) -1\<rightarrow> (None, t) \<Longrightarrow> | |
| 38 | (Some (AnnSeq c0 c1), s) -1\<rightarrow> (Some c1, t)" | |
| 39 | | AnnSeq2: "(Some c0, s) -1\<rightarrow> (Some c2, t) \<Longrightarrow> | |
| 40 | (Some (AnnSeq c0 c1), s) -1\<rightarrow> (Some (AnnSeq c2 c1), t)" | |
| 41 | ||
| 42 | | AnnCond1T: "s \<in> b \<Longrightarrow> (Some (AnnCond1 r b c1 c2), s) -1\<rightarrow> (Some c1, s)" | |
| 43 | | AnnCond1F: "s \<notin> b \<Longrightarrow> (Some (AnnCond1 r b c1 c2), s) -1\<rightarrow> (Some c2, s)" | |
| 13020 | 44 | |
| 23746 | 45 | | AnnCond2T: "s \<in> b \<Longrightarrow> (Some (AnnCond2 r b c), s) -1\<rightarrow> (Some c, s)" | 
| 46 | | AnnCond2F: "s \<notin> b \<Longrightarrow> (Some (AnnCond2 r b c), s) -1\<rightarrow> (None, s)" | |
| 47 | ||
| 48 | | AnnWhileF: "s \<notin> b \<Longrightarrow> (Some (AnnWhile r b i c), s) -1\<rightarrow> (None, s)" | |
| 49 | | AnnWhileT: "s \<in> b \<Longrightarrow> (Some (AnnWhile r b i c), s) -1\<rightarrow> | |
| 50 | (Some (AnnSeq c (AnnWhile i b i c)), s)" | |
| 51 | ||
| 52 | | AnnAwait: "\<lbrakk> s \<in> b; atom_com c; (c, s) -P*\<rightarrow> (Parallel [], t) \<rbrakk> \<Longrightarrow> | |
| 32960 
69916a850301
eliminated hard tabulators, guessing at each author's individual tab-width;
 wenzelm parents: 
32621diff
changeset | 53 | (Some (AnnAwait r b c), s) -1\<rightarrow> (None, t)" | 
| 23746 | 54 | |
| 55 | | Parallel: "\<lbrakk> i<length Ts; Ts!i = (Some c, q); (Some c, s) -1\<rightarrow> (r, t) \<rbrakk> | |
| 56 | \<Longrightarrow> (Parallel Ts, s) -P1\<rightarrow> (Parallel (Ts [i:=(r, q)]), t)" | |
| 57 | ||
| 58 | | Basic: "(Basic f, s) -P1\<rightarrow> (Parallel [], f s)" | |
| 59 | ||
| 60 | | Seq1: "All_None Ts \<Longrightarrow> (Seq (Parallel Ts) c, s) -P1\<rightarrow> (c, s)" | |
| 61 | | Seq2: "(c0, s) -P1\<rightarrow> (c2, t) \<Longrightarrow> (Seq c0 c1, s) -P1\<rightarrow> (Seq c2 c1, t)" | |
| 62 | ||
| 63 | | CondT: "s \<in> b \<Longrightarrow> (Cond b c1 c2, s) -P1\<rightarrow> (c1, s)" | |
| 64 | | CondF: "s \<notin> b \<Longrightarrow> (Cond b c1 c2, s) -P1\<rightarrow> (c2, s)" | |
| 65 | ||
| 66 | | WhileF: "s \<notin> b \<Longrightarrow> (While b i c, s) -P1\<rightarrow> (Parallel [], s)" | |
| 67 | | WhileT: "s \<in> b \<Longrightarrow> (While b i c, s) -P1\<rightarrow> (Seq c (While b i c), s)" | |
| 68 | ||
| 69 | monos "rtrancl_mono" | |
| 13020 | 70 | |
| 35107 | 71 | text {* The corresponding abbreviations are: *}
 | 
| 13020 | 72 | |
| 23746 | 73 | abbreviation | 
| 74 |   ann_transition_n :: "('a ann_com_op \<times> 'a) \<Rightarrow> nat \<Rightarrow> ('a ann_com_op \<times> 'a) 
 | |
| 75 |                            \<Rightarrow> bool"  ("_ -_\<rightarrow> _"[81,81] 100)  where
 | |
| 30952 
7ab2716dd93b
power operation on functions with syntax o^; power operation on relations with syntax ^^
 haftmann parents: 
30304diff
changeset | 76 | "con_0 -n\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> ann_transition ^^ n" | 
| 13020 | 77 | |
| 23746 | 78 | abbreviation | 
| 79 |   ann_transitions :: "('a ann_com_op \<times> 'a) \<Rightarrow> ('a ann_com_op \<times> 'a) \<Rightarrow> bool"
 | |
| 80 |                            ("_ -*\<rightarrow> _"[81,81] 100)  where
 | |
| 81 | "con_0 -*\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> ann_transition\<^sup>*" | |
| 13020 | 82 | |
| 23746 | 83 | abbreviation | 
| 84 |   transition_n :: "('a com \<times> 'a) \<Rightarrow> nat \<Rightarrow> ('a com \<times> 'a) \<Rightarrow> bool"  
 | |
| 85 |                           ("_ -P_\<rightarrow> _"[81,81,81] 100)  where
 | |
| 30952 
7ab2716dd93b
power operation on functions with syntax o^; power operation on relations with syntax ^^
 haftmann parents: 
30304diff
changeset | 86 | "con_0 -Pn\<rightarrow> con_1 \<equiv> (con_0, con_1) \<in> transition ^^ n" | 
| 13020 | 87 | |
| 88 | subsection {* Definition of Semantics *}
 | |
| 89 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 90 | definition ann_sem :: "'a ann_com \<Rightarrow> 'a \<Rightarrow> 'a set" where | 
| 13020 | 91 |   "ann_sem c \<equiv> \<lambda>s. {t. (Some c, s) -*\<rightarrow> (None, t)}"
 | 
| 92 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 93 | definition ann_SEM :: "'a ann_com \<Rightarrow> 'a set \<Rightarrow> 'a set" where | 
| 13020 | 94 | "ann_SEM c S \<equiv> \<Union>ann_sem c ` S" | 
| 95 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 96 | definition sem :: "'a com \<Rightarrow> 'a \<Rightarrow> 'a set" where | 
| 13020 | 97 |   "sem c \<equiv> \<lambda>s. {t. \<exists>Ts. (c, s) -P*\<rightarrow> (Parallel Ts, t) \<and> All_None Ts}"
 | 
| 98 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 99 | definition SEM :: "'a com \<Rightarrow> 'a set \<Rightarrow> 'a set" where | 
| 13020 | 100 | "SEM c S \<equiv> \<Union>sem c ` S " | 
| 101 | ||
| 35107 | 102 | abbreviation Omega :: "'a com"    ("\<Omega>" 63)
 | 
| 103 | where "\<Omega> \<equiv> While UNIV UNIV (Basic id)" | |
| 13020 | 104 | |
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 105 | primrec fwhile :: "'a bexp \<Rightarrow> 'a com \<Rightarrow> nat \<Rightarrow> 'a com" where | 
| 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 106 | "fwhile b c 0 = \<Omega>" | 
| 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 107 | | "fwhile b c (Suc n) = Cond b (Seq c (fwhile b c n)) (Basic id)" | 
| 13020 | 108 | |
| 109 | subsubsection {* Proofs *}
 | |
| 110 | ||
| 111 | declare ann_transition_transition.intros [intro] | |
| 112 | inductive_cases transition_cases: | |
| 113 | "(Parallel T,s) -P1\<rightarrow> t" | |
| 114 | "(Basic f, s) -P1\<rightarrow> t" | |
| 115 | "(Seq c1 c2, s) -P1\<rightarrow> t" | |
| 116 | "(Cond b c1 c2, s) -P1\<rightarrow> t" | |
| 117 | "(While b i c, s) -P1\<rightarrow> t" | |
| 118 | ||
| 119 | lemma Parallel_empty_lemma [rule_format (no_asm)]: | |
| 120 | "(Parallel [],s) -Pn\<rightarrow> (Parallel Ts,t) \<longrightarrow> Ts=[] \<and> n=0 \<and> s=t" | |
| 121 | apply(induct n) | |
| 122 | apply(simp (no_asm)) | |
| 123 | apply clarify | |
| 124 | apply(drule rel_pow_Suc_D2) | |
| 125 | apply(force elim:transition_cases) | |
| 126 | done | |
| 127 | ||
| 128 | lemma Parallel_AllNone_lemma [rule_format (no_asm)]: | |
| 129 | "All_None Ss \<longrightarrow> (Parallel Ss,s) -Pn\<rightarrow> (Parallel Ts,t) \<longrightarrow> Ts=Ss \<and> n=0 \<and> s=t" | |
| 130 | apply(induct "n") | |
| 131 | apply(simp (no_asm)) | |
| 132 | apply clarify | |
| 133 | apply(drule rel_pow_Suc_D2) | |
| 134 | apply clarify | |
| 135 | apply(erule transition_cases,simp_all) | |
| 136 | apply(force dest:nth_mem simp add:All_None_def) | |
| 137 | done | |
| 138 | ||
| 139 | lemma Parallel_AllNone: "All_None Ts \<Longrightarrow> (SEM (Parallel Ts) X) = X" | |
| 140 | apply (unfold SEM_def sem_def) | |
| 141 | apply auto | |
| 142 | apply(drule rtrancl_imp_UN_rel_pow) | |
| 143 | apply clarify | |
| 144 | apply(drule Parallel_AllNone_lemma) | |
| 145 | apply auto | |
| 146 | done | |
| 147 | ||
| 148 | lemma Parallel_empty: "Ts=[] \<Longrightarrow> (SEM (Parallel Ts) X) = X" | |
| 149 | apply(rule Parallel_AllNone) | |
| 150 | apply(simp add:All_None_def) | |
| 151 | done | |
| 152 | ||
| 153 | text {* Set of lemmas from Apt and Olderog "Verification of sequential
 | |
| 154 | and concurrent programs", page 63. *} | |
| 155 | ||
| 156 | lemma L3_5i: "X\<subseteq>Y \<Longrightarrow> SEM c X \<subseteq> SEM c Y" | |
| 157 | apply (unfold SEM_def) | |
| 158 | apply force | |
| 159 | done | |
| 160 | ||
| 161 | lemma L3_5ii_lemma1: | |
| 162 | "\<lbrakk> (c1, s1) -P*\<rightarrow> (Parallel Ts, s2); All_None Ts; | |
| 163 | (c2, s2) -P*\<rightarrow> (Parallel Ss, s3); All_None Ss \<rbrakk> | |
| 164 | \<Longrightarrow> (Seq c1 c2, s1) -P*\<rightarrow> (Parallel Ss, s3)" | |
| 165 | apply(erule converse_rtrancl_induct2) | |
| 166 | apply(force intro:converse_rtrancl_into_rtrancl)+ | |
| 167 | done | |
| 168 | ||
| 169 | lemma L3_5ii_lemma2 [rule_format (no_asm)]: | |
| 170 | "\<forall>c1 c2 s t. (Seq c1 c2, s) -Pn\<rightarrow> (Parallel Ts, t) \<longrightarrow> | |
| 171 | (All_None Ts) \<longrightarrow> (\<exists>y m Rs. (c1,s) -P*\<rightarrow> (Parallel Rs, y) \<and> | |
| 172 | (All_None Rs) \<and> (c2, y) -Pm\<rightarrow> (Parallel Ts, t) \<and> m \<le> n)" | |
| 173 | apply(induct "n") | |
| 174 | apply(force) | |
| 175 | apply(safe dest!: rel_pow_Suc_D2) | |
| 176 | apply(erule transition_cases,simp_all) | |
| 177 | apply (fast intro!: le_SucI) | |
| 178 | apply (fast intro!: le_SucI elim!: rel_pow_imp_rtrancl converse_rtrancl_into_rtrancl) | |
| 179 | done | |
| 180 | ||
| 181 | lemma L3_5ii_lemma3: | |
| 182 | "\<lbrakk>(Seq c1 c2,s) -P*\<rightarrow> (Parallel Ts,t); All_None Ts\<rbrakk> \<Longrightarrow> | |
| 183 | (\<exists>y Rs. (c1,s) -P*\<rightarrow> (Parallel Rs,y) \<and> All_None Rs | |
| 184 | \<and> (c2,y) -P*\<rightarrow> (Parallel Ts,t))" | |
| 185 | apply(drule rtrancl_imp_UN_rel_pow) | |
| 186 | apply(fast dest: L3_5ii_lemma2 rel_pow_imp_rtrancl) | |
| 187 | done | |
| 188 | ||
| 189 | lemma L3_5ii: "SEM (Seq c1 c2) X = SEM c2 (SEM c1 X)" | |
| 190 | apply (unfold SEM_def sem_def) | |
| 191 | apply auto | |
| 192 | apply(fast dest: L3_5ii_lemma3) | |
| 193 | apply(fast elim: L3_5ii_lemma1) | |
| 194 | done | |
| 195 | ||
| 196 | lemma L3_5iii: "SEM (Seq (Seq c1 c2) c3) X = SEM (Seq c1 (Seq c2 c3)) X" | |
| 197 | apply (simp (no_asm) add: L3_5ii) | |
| 198 | done | |
| 199 | ||
| 200 | lemma L3_5iv: | |
| 201 | "SEM (Cond b c1 c2) X = (SEM c1 (X \<inter> b)) Un (SEM c2 (X \<inter> (-b)))" | |
| 202 | apply (unfold SEM_def sem_def) | |
| 203 | apply auto | |
| 204 | apply(erule converse_rtranclE) | |
| 205 | prefer 2 | |
| 206 | apply (erule transition_cases,simp_all) | |
| 207 | apply(fast intro: converse_rtrancl_into_rtrancl elim: transition_cases)+ | |
| 208 | done | |
| 209 | ||
| 210 | ||
| 211 | lemma L3_5v_lemma1[rule_format]: | |
| 212 | "(S,s) -Pn\<rightarrow> (T,t) \<longrightarrow> S=\<Omega> \<longrightarrow> (\<not>(\<exists>Rs. T=(Parallel Rs) \<and> All_None Rs))" | |
| 213 | apply (unfold UNIV_def) | |
| 214 | apply(rule nat_less_induct) | |
| 215 | apply safe | |
| 216 | apply(erule rel_pow_E2) | |
| 217 | apply simp_all | |
| 218 | apply(erule transition_cases) | |
| 219 | apply simp_all | |
| 220 | apply(erule rel_pow_E2) | |
| 221 | apply(simp add: Id_def) | |
| 222 | apply(erule transition_cases,simp_all) | |
| 223 | apply clarify | |
| 224 | apply(erule transition_cases,simp_all) | |
| 225 | apply(erule rel_pow_E2,simp) | |
| 226 | apply clarify | |
| 227 | apply(erule transition_cases) | |
| 228 | apply simp+ | |
| 229 | apply clarify | |
| 230 | apply(erule transition_cases) | |
| 231 | apply simp_all | |
| 232 | done | |
| 233 | ||
| 234 | lemma L3_5v_lemma2: "\<lbrakk>(\<Omega>, s) -P*\<rightarrow> (Parallel Ts, t); All_None Ts \<rbrakk> \<Longrightarrow> False" | |
| 235 | apply(fast dest: rtrancl_imp_UN_rel_pow L3_5v_lemma1) | |
| 236 | done | |
| 237 | ||
| 238 | lemma L3_5v_lemma3: "SEM (\<Omega>) S = {}"
 | |
| 239 | apply (unfold SEM_def sem_def) | |
| 240 | apply(fast dest: L3_5v_lemma2) | |
| 241 | done | |
| 242 | ||
| 243 | lemma L3_5v_lemma4 [rule_format]: | |
| 244 | "\<forall>s. (While b i c, s) -Pn\<rightarrow> (Parallel Ts, t) \<longrightarrow> All_None Ts \<longrightarrow> | |
| 245 | (\<exists>k. (fwhile b c k, s) -P*\<rightarrow> (Parallel Ts, t))" | |
| 246 | apply(rule nat_less_induct) | |
| 247 | apply safe | |
| 248 | apply(erule rel_pow_E2) | |
| 249 | apply safe | |
| 250 | apply(erule transition_cases,simp_all) | |
| 251 | apply (rule_tac x = "1" in exI) | |
| 252 | apply(force dest: Parallel_empty_lemma intro: converse_rtrancl_into_rtrancl simp add: Id_def) | |
| 253 | apply safe | |
| 254 | apply(drule L3_5ii_lemma2) | |
| 255 | apply safe | |
| 256 | apply(drule le_imp_less_Suc) | |
| 257 | apply (erule allE , erule impE,assumption) | |
| 258 | apply (erule allE , erule impE, assumption) | |
| 259 | apply safe | |
| 260 | apply (rule_tac x = "k+1" in exI) | |
| 261 | apply(simp (no_asm)) | |
| 262 | apply(rule converse_rtrancl_into_rtrancl) | |
| 263 | apply fast | |
| 264 | apply(fast elim: L3_5ii_lemma1) | |
| 265 | done | |
| 266 | ||
| 267 | lemma L3_5v_lemma5 [rule_format]: | |
| 268 | "\<forall>s. (fwhile b c k, s) -P*\<rightarrow> (Parallel Ts, t) \<longrightarrow> All_None Ts \<longrightarrow> | |
| 269 | (While b i c, s) -P*\<rightarrow> (Parallel Ts,t)" | |
| 270 | apply(induct "k") | |
| 271 | apply(force dest: L3_5v_lemma2) | |
| 272 | apply safe | |
| 273 | apply(erule converse_rtranclE) | |
| 274 | apply simp_all | |
| 275 | apply(erule transition_cases,simp_all) | |
| 276 | apply(rule converse_rtrancl_into_rtrancl) | |
| 277 | apply(fast) | |
| 278 | apply(fast elim!: L3_5ii_lemma1 dest: L3_5ii_lemma3) | |
| 279 | apply(drule rtrancl_imp_UN_rel_pow) | |
| 280 | apply clarify | |
| 281 | apply(erule rel_pow_E2) | |
| 282 | apply simp_all | |
| 283 | apply(erule transition_cases,simp_all) | |
| 284 | apply(fast dest: Parallel_empty_lemma) | |
| 285 | done | |
| 286 | ||
| 287 | lemma L3_5v: "SEM (While b i c) = (\<lambda>x. (\<Union>k. SEM (fwhile b c k) x))" | |
| 288 | apply(rule ext) | |
| 289 | apply (simp add: SEM_def sem_def) | |
| 290 | apply safe | |
| 291 | apply(drule rtrancl_imp_UN_rel_pow,simp) | |
| 292 | apply clarify | |
| 293 | apply(fast dest:L3_5v_lemma4) | |
| 294 | apply(fast intro: L3_5v_lemma5) | |
| 295 | done | |
| 296 | ||
| 297 | section {* Validity of Correctness Formulas *}
 | |
| 298 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 299 | definition com_validity :: "'a assn \<Rightarrow> 'a com \<Rightarrow> 'a assn \<Rightarrow> bool" ("(3\<parallel>= _// _//_)" [90,55,90] 50) where
 | 
| 13020 | 300 | "\<parallel>= p c q \<equiv> SEM c p \<subseteq> q" | 
| 301 | ||
| 35416 
d8d7d1b785af
replaced a couple of constsdefs by definitions (also some old primrecs by modern ones)
 haftmann parents: 
35107diff
changeset | 302 | definition ann_com_validity :: "'a ann_com \<Rightarrow> 'a assn \<Rightarrow> bool" ("\<Turnstile> _ _" [60,90] 45) where
 | 
| 13020 | 303 | "\<Turnstile> c q \<equiv> ann_SEM c (pre c) \<subseteq> q" | 
| 304 | ||
| 305 | end |