(* 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 INC *)
(*definit la transition receive inc et ses consequences*)
Require Export init.
Require Export table_act.
Require Export mess_act.
Unset Standard Proposition Elimination Names.
Section DEF_REC_INC.
Definition rec_inc_trans (c : Config) (s1 s3 : Site) :=
mkconfig (S (time c)) (dt c) (Inc_send_table (st c) owner)
(rt c) (Post_message dec (Collect_message (bm c) s1 owner) owner s3).
End DEF_REC_INC.
Section REC_INC_EFFECT.
(* invariants *)
Variable c0 : Config.
Variable s1 s2 : Site.

Lemma rinc_trans_st_rt :
forall s0 : Site,
s0 <> owner ->
((st c0 s0 > 0)%Z -> rt c0 s0 = true) ->
(st (rec_inc_trans c0 s1 s2) s0 > 0)%Z ->
rt (rec_inc_trans c0 s1 s2) s0 = true.