src/HOL/HOLCF/IOA/NTP/Spec.thy
author wenzelm
Wed, 30 Dec 2015 21:57:52 +0100
changeset 62002 f1599e98c4d0
parent 61032 b57df8eecad6
child 62008 cbedaddc9351
permissions -rw-r--r--
isabelle update_cartouches -c -t;

(*  Title:      HOL/HOLCF/IOA/NTP/Spec.thy
    Author:     Tobias Nipkow & Konrad Slind
*)

section \<open>The specification of reliable transmission\<close>

theory Spec
imports "~~/src/HOL/HOLCF/IOA/meta_theory/IOA" Action
begin

definition
  spec_sig :: "'m action signature" where
  sig_def: "spec_sig = (UN m.{S_msg(m)}, 
                        UN m.{R_msg(m)}, 
                        {})"

definition
  spec_trans :: "('m action, 'm list)transition set" where
  trans_def: "spec_trans =
   {tr. let s = fst(tr);                            
            t = snd(snd(tr))                        
        in                                          
        case fst(snd(tr))                           
        of                                          
        S_msg(m) => t = s@[m]  |                    
        R_msg(m) => s = (m#t)  |                    
        S_pkt(pkt) => False |                    
        R_pkt(pkt) => False |                    
        S_ack(b) => False |                      
        R_ack(b) => False |                      
        C_m_s => False |                            
        C_m_r => False |                            
        C_r_s => False |                            
        C_r_r(m) => False}"

definition
  spec_ioa :: "('m action, 'm list)ioa" where
  ioa_def: "spec_ioa = (spec_sig, {[]}, spec_trans,{},{})"

end