@@ -58,7 +58,7 @@ Structure action (V : Type) (this : nid)
5858 (* step_frame : forall s1 s2 r z, *)
5959 (* a_lab != z -> Coh W s1 -> *)
6060 (* a_safe s1 -> a_step s1 s2 r -> getS s1 z = getS s2 z; *)
61-
61+
6262 (* Action step semantics respects the overall network semantics *)
6363 step_sem : forall s1 (pf : a_safe s1) s2 r,
6464 a_step pf s2 r -> network_step W this s1 s2
@@ -126,9 +126,9 @@ Notation getP l := (getProtocol W l).
126126Notation getS s l := (getStatelet s l).
127127Variable this : nid.
128128
129- (*
129+ (*
130130
131- Filter for specific
131+ Filter for specific
132132 - protocol labels
133133 - message tags
134134 - message bodies
@@ -152,13 +152,13 @@ Definition tryrecv_act_step s1 s2 (r : option (nid * nat * seq nat)) :=
152152 exists (pf : s1 \In Coh W),
153153 (* No message to receive -- all relevant messages are marked *)
154154 ([/\ (forall l m tms from rt b,
155- this \in nodes (getP l) (getS s1 l) ->
155+ this \in nodes (getP l) (getS s1 l) ->
156156 Some (Msg tms from this b) = find m (dsoup (getS s1 l)) ->
157157 rt \In (rcv_trans (getP l)) ->
158158 tag tms = (t_rcv rt) ->
159159 (* This is required for safety *)
160160 msg_wf rt (coh_s l pf) this from tms ->
161- (* The filter applies *)
161+ (* The filter applies *)
162162 filter l from (t_rcv rt) (tms_cont tms) ->
163163 ~~b),
164164 r = None & s2 = s1] \/
@@ -170,7 +170,7 @@ Definition tryrecv_act_step s1 s2 (r : option (nid * nat * seq nat)) :=
170170 tag tms = (t_rcv rt),
171171 (* This is required for safety *)
172172 msg_wf rt (coh_s l pf) this from tms &
173- (* The filter applies *)
173+ (* The filter applies *)
174174 filter l from (t_rcv rt) (tms_cont tms)],
175175 let loc' := receive_step rt from tms (coh_s l pf) pf' in
176176 let : f' := upd this loc' (dstate d) in
@@ -200,7 +200,7 @@ exists (let: d := getS s l in
200200 let: f' := upd this loc' (dstate d) in
201201 let: s' := consume_msg (dsoup d) m in
202202 upd l (DStatelet f' s') s), (Some (from, tag tms, tms_cont tms)).
203- by exists C; right; exists l, m, tms, from, rt, T.
203+ by exists C; right; exists l, m, tms, from, rt, T.
204204Qed .
205205
206206Lemma tryrecv_act_step_safe s1 s2 r:
@@ -250,11 +250,11 @@ Definition can_send (s : state) := (l \in dom s) && (this \in nodes p (getS s l)
250250(* Take only the hooks that affect the transition with a tag st of *)
251251(* protocol l *)
252252Definition filter_hooks (h : hooks) :=
253- um_filter (fun e => e.2 == (l, t_snd st)) h.
253+ um_filterk (fun e => e.2 == (l, t_snd st)) h.
254254
255255Definition send_act_safe s :=
256256 [/\ Coh W s, send_safe st this to (getS s l) msg, can_send s &
257- (* All hooks from a "reduced footprint" are applicable *)
257+ (* All hooks from a "reduced footprint" are applicable *)
258258 all_hooks_fire (filter_hooks (geth W)) l (t_snd st) s this msg to].
259259
260260Lemma send_act_safe_coh s : send_act_safe s -> Coh W s.
@@ -297,7 +297,7 @@ rewrite /all_hooks_fire/filter_hooks in K.
297297move: st S' E K pf'; clear pf' st; subst p=>st S' E K' pf'.
298298apply: (@SendMsg W this s1 _ l st pf' to msg)=>////.
299299move=>z lc hk E'; apply: (K' z); rewrite E'.
300- by rewrite find_umfilt /= eqxx.
300+ by rewrite find_umfiltk /= eqxx.
301301Qed .
302302
303303Definition send_action_wrapper :=
0 commit comments