Kind name,action,proc type.
Import "ccs_core".
Define bisim_t : proc -> proc -> proc -> proc -> prop by
bisim_t P1 P2 Q1 Q2 :=
bisim_up_to refl_t P1 P2 /\ bisim_up_to refl_t Q1 Q2.
Define is_sound_fst : (proc -> proc -> proc -> proc -> prop) -> prop by
is_sound_fst Tech := forall P Q,
(exists R S, bisim_up_to refl_t P R /\ bisim_up_to Tech R S /\ bisim_up_to refl_t S Q)
-> bisim_up_to refl_t P Q.
Define is_sound_snd : (proc -> proc -> proc -> proc -> prop) -> prop by
is_sound_snd Tech := forall P Q, bisim_up_to Tech P Q ->
exists R S, bisim_up_to refl_t P R /\ bisim_up_to Tech R S /\ bisim_up_to refl_t S Q.
Theorem bisim_t_reflexive : forall P, bisim_t P P P P.
intros. unfold.
- backchain bisim_reflexive_.
- backchain bisim_reflexive_.
Theorem bisim_sound_fst : is_sound_fst bisim_t.
unfold. CH : coinduction. intros HbisimFst.
HbisimLeft HbisimMid HbisimRight : case HbisimFst. unfold.
- intros HstepP.
HleftFwd HleftBwd : case HbisimLeft.
clear HleftBwd.
!_ !Pproc !QprocL HstepR HreflL HbisL : apply HleftFwd to HstepP.
HmidFwd HmidBwd : case HbisimMid.
clear HmidBwd.
HstepS HbisT HbisBT : apply HmidFwd to HstepR.
HrightFwd HrightBwd : case HbisimRight.
clear HrightBwd.
!_ !_ !QprocR _ HreflR HbisR : apply HrightFwd to HstepS.
case HreflL. case HreflR.
witness QprocR. split.
+ search.
+ witness Pproc. witness QprocR. split.
* search.
* HbisA HbisB : case HbisT.
apply bisim_transitive_ to HbisL HbisA.
Hlink2 : apply bisim_symmetric_ to HbisB.
apply bisim_transitive_ to Hlink2 HbisR.
backchain 1 CH.
- intros HstepQ.
HrightFwd HrightBwd : case HbisimRight.
clear HrightFwd.
!_ !_ !Qproc HstepP HreflR HbisR : apply HrightBwd to HstepQ.
HmidFwd HmidBwd : case HbisimMid.
clear HmidFwd.
HstepP2 HbisT HbisBT : apply HmidBwd to HstepP.
HleftFwd HleftBwd : case HbisimLeft.
clear HleftFwd.
!_ !Pproc _ HreflL HbisL : apply HleftBwd to HstepP2.
case HreflR. case HreflL.
witness Pproc. split.
+ search.
+ witness Pproc. witness Qproc. split.
* search.
* HbisA HbisB : case HbisT.
apply bisim_transitive_ to HbisL HbisA.
Hlink2 : apply bisim_symmetric_ to HbisB.
apply bisim_transitive_ to Hlink2 HbisR.
backchain 1 CH.
Theorem bisim_sound_snd : is_sound_snd bisim_t.
unfold. intros !P !Q HbisBT.
witness P. witness Q. split.
- backchain bisim_reflexive_.
- search.
- backchain bisim_reflexive_.
Theorem bisim_sound : is_sound bisim_t.
unfold. intros HbisBT.
HsoundSnd : apply bisim_sound_snd.
HsoundSndUnf : case HsoundSnd.
HbisimPR HbisimTS HbisimSQ : apply HsoundSndUnf to HbisBT.
HsoundFst : apply bisim_sound_fst.
HsoundFstUnf : case HsoundFst.
backchain HsoundFstUnf.