(* Title: HOL/UNITY/Comp/Handshake.thy Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1998 University of Cambridge Handshake Protocol From Misra, "Asynchronous Compositions of Programs", Section 5.3.2 *)
theory Handshake imports"../UNITY_Main"begin
record state =
BB :: bool
NF :: nat
NG :: nat
definition (*F's program*)
cmdF :: "(state*state) set" where"cmdF = {(s,s'). s' = s (|NF:= Suc(NF s), BB:=False|) & BB s}"
definition
F :: "state program" where"F = mk_total_program ({s. NF s = 0 & BB s}, {cmdF}, UNIV)"
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.