(* This program is free software; you can redistribute it and/or      *)
(* modify it under the terms of the GNU Lesser General Public License *)
(* as published by the Free Software Foundation; either version 2.1   *)
(* of the License, or (at your option) any later version.             *)
(*                                                                    *)
(* This program is distributed in the hope that it will be useful,    *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of     *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      *)
(* GNU General Public License for more details.                       *)
(*                                                                    *)
(* You should have received a copy of the GNU Lesser General Public   *)
(* License along with this program; if not, write to the Free         *)
(* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *)
(* 02110-1301 USA                                                     *)
(* RECEIVE COPY 2 *)
(*definit la deuxieme transition receive copy et ses consequences*)
Require Export init.
Require Export table_act.
Require Export mess_act.
Unset Standard Proposition Elimination Names.
Section DEF_REC_COP2.
Definition rec_copy2_trans (c : Config) (s2 : Site) :=
mkconfig (S (time c)) (dt c) (st c) (Set_rec_table (rt c) s2)
(Collect_message (bm c) owner s2).
End DEF_REC_COP2.
Section REC_COP2_EFFECT.
(* invariants *)
Variable c0 : Config.
Variable s2 : Site.
Hypothesis rt_true : rt c0 s2 = false.

Lemma rcop2_trans_in_queue :
forall s0 s3 s4 : Site,
In_queue Message (inc_dec s0) (bm (rec_copy2_trans c0 s2) s3 s4) ->
In_queue Message (inc_dec s0) (bm c0 s3 s4).