(* Title: HOL/UNITY/Simple/Network.thy Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1998 University of Cambridge The Communication Network. From Misra, "A Logic for Concurrent Programming" (1994), section 5.7. *)
theory Network imports"../UNITY"begin
(*The state assigns a number to each process variable*)
datatype pvar = Sent | Rcvd | Idle
datatype pname = Aproc | Bproc
type_synonym state = "pname * pvar => nat"
locale F_props = fixes F assumes rsA: "F ∈ stable {s. s(Bproc,Rcvd) ≤ s(Aproc,Sent)}" and rsB: "F ∈ stable {s. s(Aproc,Rcvd) ≤ s(Bproc,Sent)}" and sent_nondec: "F ∈ stable {s. m ≤ s(proc,Sent)}" and rcvd_nondec: "F ∈ stable {s. n ≤ s(proc,Rcvd)}" and rcvd_idle: "F ∈ {s. s(proc,Idle) = Suc 0 & s(proc,Rcvd) = m} co {s. s(proc,Rcvd) = m --> s(proc,Idle) = Suc 0}" and sent_idle: "F ∈ {s. s(proc,Idle) = Suc 0 & s(proc,Sent) = n} co {s. s(proc,Sent) = n}" begin
lemmas sent_nondec_A = sent_nondec [of _ Aproc] and sent_nondec_B = sent_nondec [of _ Bproc] and rcvd_nondec_A = rcvd_nondec [of _ Aproc] and rcvd_nondec_B = rcvd_nondec [of _ Bproc] and rcvd_idle_A = rcvd_idle [of Aproc] and rcvd_idle_B = rcvd_idle [of Bproc] and sent_idle_A = sent_idle [of Aproc] and sent_idle_B = sent_idle [of Bproc]
and rs_AB = stable_Int [OF rsA rsB]
lemmas sent_nondec_AB = stable_Int [OF sent_nondec_A sent_nondec_B] and rcvd_nondec_AB = stable_Int [OF rcvd_nondec_A rcvd_nondec_B] and rcvd_idle_AB = constrains_Int [OF rcvd_idle_A rcvd_idle_B] and sent_idle_AB = constrains_Int [OF sent_idle_A sent_idle_B]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.