Kind name,action,proc type.
Import "ccs_bisim_context".
Import "ccs_ctx".
Import "ccs_bisim_examples_helper".
Theorem bisim_context_reflexive_ : forall P,
bisim_up_to bisim_context_t P P.
CH : coinduction. intros !P. unfold.
- intros !_ !Pnext.
witness Pnext. split.
+ search.
+ witness Pnext. witness Pnext. split.
* unfold. witness Pnext. witness Pnext. split.
-- unfold.
++ backchain bisim_reflexive_.
++ backchain bisim_reflexive_.
-- search.
* backchain *CH.
- intros !_ !Qnext.
witness Qnext. split.
+ search.
+ witness Qnext. witness Qnext. split.
* unfold. witness Qnext. witness Qnext. split.
-- unfold.
++ backchain bisim_reflexive_.
++ backchain bisim_reflexive_.
-- search.
* backchain *CH.
Theorem bisim_repl_absorb : forall P,
bisim_up_to refl_t (par (repl P) P) (repl P).
Sound : apply bisim_context_sound. Sound : case Sound.
intros !P. backchain Sound. clear Sound.
CH : coinduction. intros. unfold.
- intros !_ !_ Hone.
case Hone.
+ HoneRepl =>
case HoneRepl.
* !Qnext =>
witness (par (repl P) Qnext). split.
-- search.
-- witness (par (repl P) P).
witness (repl P). split.
++ unfold.
witness (par (par (repl P) P) Qnext).
witness (par (repl P) Qnext). split.
** unfold.
--- backchain bisim_par_assoc_left.
--- backchain bisim_reflexive_.
** search.
++ backchain *CH.
* !_ !Qdn !Qup =>
witness (par (repl P) (par Qup Qdn)). split.
-- search.
-- witness (par (repl P) P).
witness (repl P). split.
++ unfold.
witness (par (par (repl P) P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
** unfold.
--- backchain bisim_par_assoc_left.
--- backchain bisim_reflexive_.
** search.
++ backchain *CH.
+ !Qnext =>
witness (par (repl P) Qnext). split.
* search.
* witness (par (repl P) Qnext).
witness (par (repl P) Qnext). split.
-- unfold.
witness (par (repl P) Qnext).
witness (par (repl P) Qnext). split.
++ unfold.
** backchain bisim_reflexive_.
** backchain bisim_reflexive_.
++ search.
-- backchain bisim_context_reflexive_.
+ !_ !Qdn HoneReplUp =>
!Qup HoneActUp : case HoneReplUp.
witness (par (repl P) (par Qup Qdn)). split.
* search.
* witness (par (repl P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
-- unfold.
witness (par (repl P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
++ unfold.
** backchain bisim_par_assoc.
** backchain bisim_reflexive_.
++ search.
-- backchain bisim_context_reflexive_.
+ !_ !Qup HoneReplDn =>
!Qdn HoneActDn : case HoneReplDn.
witness (par (repl P) (par Qup Qdn)). split.
* search.
* witness (par (repl P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
-- unfold.
witness (par (repl P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
++ unfold.
** HbisimComm : apply bisim_par_comm with P = Qdn,
Q = Qup.
apply bisim_par_subst_2 to *HbisimComm
with R = (repl P).
apply bisim_par_assoc with P = (repl P),
Q = Qdn, R = Qup.
backchain bisim_transitive_.
** backchain bisim_reflexive_.
++ search.
-- backchain bisim_context_reflexive_.
- intros !_ !_ Hone.
case Hone.
+ !Qnext =>
witness (par (par (repl P) Qnext) P). split.
* search.
* witness (par (repl P) P).
witness (repl P). split.
-- unfold.
witness (par (par (repl P) P) Qnext).
witness (par (repl P) Qnext). split.
++ unfold.
** backchain bisim_par_assoc_left.
** backchain bisim_reflexive_.
++ search.
-- backchain *CH.
+ !_ !Qdn !Qup =>
witness (par (par (repl P) (par Qup Qdn)) P). split.
* search.
* witness (par (repl P) P).
witness (repl P). split.
-- unfold.
witness (par (par (repl P) P) (par Qup Qdn)).
witness (par (repl P) (par Qup Qdn)). split.
++ unfold.
** backchain bisim_par_assoc_left.
** backchain bisim_reflexive_.
++ search.
-- backchain *CH.
%%% !(a.P + b.P) ~ (!a.P | !b.P)
Theorem ex_bang_plus_ctx : forall P,
bisim (repl (plus (act (dn a) P) (act (dn b) P)))
(par (repl (act (dn a) P)) (repl (act (dn b) P))).
Sound : apply bisim_context_sound. Sound : case Sound.
intros !P. unfold. backchain Sound. clear Sound.
CH : coinduction. intros. unfold.
- intros !_ !_ Hone.
case Hone.
+ !Qstep HonePlus =>
case HonePlus.
* HoneActA =>
case HoneActA.
witness (par (par (repl (act (dn a) P)) P)
(repl (act (dn b) P))). split.
-- search.
-- witness (repl (plus (act (dn a) P) (act (dn b) P))).
witness (par (repl (act (dn a) P))
(repl (act (dn b) P))). split.
++ unfold.
witness (par (repl (plus (act (dn a) P)
(act (dn b) P))) P).
witness (par (par (repl (act (dn a) P))
(repl (act (dn b) P))) P).
split.
** unfold.
--- backchain bisim_reflexive_.
--- HbisimComm : apply bisim_par_comm with P = P,
Q = (repl (act (dn b) Qstep)).
HbisimSubst : apply bisim_par_subst_2
to *HbisimComm with R = (repl (act (dn a) Qstep)).
HbisimAssocA : apply bisim_par_assoc
with P = (repl (act (dn a) Qstep)), Q = P,
R = (repl (act (dn b) Qstep)).
HbisimAssocB : apply bisim_par_assoc
with P = (repl (act (dn a) Qstep)),
Q = (repl (act (dn b) Qstep)), R = P.
HbisimTransA : apply bisim_transitive_
to *HbisimAssocA *HbisimSubst.
HbisimSymm : apply bisim_symmetric_ to *HbisimAssocB.
apply bisim_transitive_ to *HbisimTransA *HbisimSymm.
search.
** search.
++ backchain *CH.
* HoneActB =>
case HoneActB.
witness (par (repl (act (dn a) P))
(par (repl (act (dn b) P)) P)). split.
-- search.
-- witness (repl (plus (act (dn a) P) (act (dn b) P))).
witness (par (repl (act (dn a) P))
(repl (act (dn b) P))). split.
++ unfold.
witness (par (repl (plus (act (dn a) P)
(act (dn b) P))) P).
witness (par (par (repl (act (dn a) P))
(repl (act (dn b) P))) P).
split.
** unfold.
--- backchain bisim_reflexive_.
--- apply bisim_par_assoc
with P = (repl (act (dn a) Qstep)),
Q = (repl (act (dn b) Qstep)), R = P.
backchain bisim_symmetric_.
** search.
++ backchain *CH.
+ HonePlus =>
case HonePlus.
* HoneActA =>
case HoneActA.
* HoneActB =>
case HoneActB.
- intros !_ !_ Hone.
case Hone.
+ HoneReplA =>
case HoneReplA.
* !Qstep HoneActA =>
case HoneActA.
witness (par (repl (plus (act (dn a) P) (act (dn b) P)))
P). split.
-- search.
-- witness (repl (plus (act (dn a) P) (act (dn b) P))).
witness (par (repl (act (dn a) P))
(repl (act (dn b) P))). split.
++ unfold.
witness (par (repl (plus (act (dn a) P)
(act (dn b) P))) P).
witness (par (par (repl (act (dn a) P))
(repl (act (dn b) P))) P).
split.
** unfold.
--- backchain bisim_reflexive_.
--- HbisimComm : apply bisim_par_comm with P = Qstep,
Q = (repl (act (dn b) Qstep)).
HbisimSubst : apply bisim_par_subst_2
to *HbisimComm with R = (repl (act (dn a) Qstep)).
HbisimAssocA : apply bisim_par_assoc
with P = (repl (act (dn a) Qstep)), Q = Qstep,
R = (repl (act (dn b) Qstep)).
HbisimAssocB : apply bisim_par_assoc
with P = (repl (act (dn a) Qstep)),
Q = (repl (act (dn b) Qstep)), R = Qstep.
HbisimTransA : apply bisim_transitive_
to *HbisimAssocA *HbisimSubst.
HbisimSymm : apply bisim_symmetric_ to *HbisimAssocB.
apply bisim_transitive_ to *HbisimTransA *HbisimSymm.
search.
** search.
++ backchain *CH.
* HoneActA =>
case HoneActA.
+ HoneReplB =>
case HoneReplB.
* !Qstep HoneActB =>
case HoneActB.
witness (par (repl (plus (act (dn a) P) (act (dn b) P)))
P). split.
-- search.
-- witness (repl (plus (act (dn a) P) (act (dn b) P))).
witness (par (repl (act (dn a) P))
(repl (act (dn b) P))). split.
++ unfold.
witness par (repl (plus (act (dn a) P)
(act (dn b) P))) Qstep.
witness par (par (repl (act (dn a) P))
(repl (act (dn b) P))) Qstep.
split.
** unfold.
--- backchain bisim_reflexive_.
--- apply bisim_par_assoc
with P = (repl (act (dn a) P)),
Q = (repl (act (dn b) P)), R = Qstep.
backchain bisim_symmetric_.
** search.
++ backchain *CH.
* HoneActB =>
case HoneActB.
+ HoneReplA =>
HoneActA : case HoneReplA.
case HoneActA.
+ _ HoneReplB =>
HoneActB : case HoneReplB.
case HoneActB.
%%% !!a.P ~ !a.P
Theorem ex_bang_bang_ctx : forall P,
bisim (repl (repl (act (dn a) P)))
(repl (act (dn a) P)).
Sound : apply bisim_context_sound. Sound : case Sound. intros !P.
unfold. backchain Sound. clear Sound.
CH : coinduction. intros. unfold.
- intros !_ !_ Hone.
case Hone.
+ HoneRepl =>
case HoneRepl.
* !Qstep HoneAct =>
case HoneAct.
witness (par (repl (act (dn a) P)) P). split.
-- search.
-- witness (repl (repl (act (dn a) P))).
witness (repl (act (dn a) P)). split.
++ unfold.
witness (par (repl (repl (act (dn a) P))) P).
witness (par (repl (act (dn a) P)) P). split.
** unfold.
--- HbisimAbsorb : apply bisim_repl_absorb
with P = (repl (act (dn a) P)).
HbisimSubst : apply bisim_par_subst_1
to *HbisimAbsorb with R = P.
HbisimAssoc : apply bisim_par_assoc
with P = (repl (repl (act (dn a) P))),
Q = (repl (act (dn a) P)), R = P.
HbisimSymm : apply bisim_symmetric_ to *HbisimAssoc.
apply bisim_transitive_ to *HbisimSymm *HbisimSubst.
search.
--- backchain bisim_reflexive_.
** search.
++ backchain *CH.
* HoneAct =>
case HoneAct.
+ HoneReplUp =>
HoneActUp : case HoneReplUp.
case HoneActUp.
- intros !_ !_ Hone.
case Hone.
+ !Qstep HoneAct =>
case HoneAct.
witness (par (repl (repl (act (dn a) P)))
(par (repl (act (dn a) P)) P)).
split.
* search.
* witness (repl (repl (act (dn a) P))).
witness (repl (act (dn a) P)). split.
-- unfold.
witness (par (repl (repl (act (dn a) P))) P).
witness (par (repl (act (dn a) P)) P). split.
++ unfold.
** HbisimAbsorb : apply bisim_repl_absorb
with P = (repl (act (dn a) P)).
HbisimSubst : apply bisim_par_subst_1
to *HbisimAbsorb with R = P.
HbisimAssoc : apply bisim_par_assoc
with P = (repl (repl (act (dn a) P))),
Q = (repl (act (dn a) P)), R = P.
HbisimSymm : apply bisim_symmetric_ to *HbisimAssoc.
apply bisim_transitive_ to *HbisimSymm *HbisimSubst.
search.
** backchain bisim_reflexive_.
++ search.
-- backchain *CH.
+ HoneActUp =>
case HoneActUp.