src/HOL/Auth/Shared.thy
changeset 1943 20574dca5a3e
parent 1934 58573e7041b4
child 1965 789c12ea0b30
     1.1 --- a/src/HOL/Auth/Shared.thy	Tue Sep 03 17:54:39 1996 +0200
     1.2 +++ b/src/HOL/Auth/Shared.thy	Tue Sep 03 18:24:42 1996 +0200
     1.3 @@ -6,24 +6,26 @@
     1.4  Theory of Shared Keys (common to all symmetric-key protocols)
     1.5  
     1.6  Server keys; initial states of agents; new nonces and keys; function "sees" 
     1.7 +
     1.8 +IS THE Notes constructor needed??
     1.9  *)
    1.10  
    1.11  Shared = Message + List + 
    1.12  
    1.13  consts
    1.14 -  serverKey    :: agent => key  (*symmetric keys*)
    1.15 +  shrK    :: agent => key  (*symmetric keys*)
    1.16  
    1.17  rules
    1.18 -  isSym_serverKey "isSymKey (serverKey A)"
    1.19 +  isSym_shrK "isSymKey (shrK A)"
    1.20  
    1.21  consts  (*Initial states of agents -- parameter of the construction*)
    1.22    initState :: agent => msg set
    1.23  
    1.24  primrec initState agent
    1.25          (*Server knows all keys; other agents know only their own*)
    1.26 -  initState_Server  "initState Server     = Key `` range serverKey"
    1.27 -  initState_Friend  "initState (Friend i) = {Key (serverKey (Friend i))}"
    1.28 -  initState_Enemy   "initState Enemy  = {Key (serverKey Enemy)}"
    1.29 +  initState_Server  "initState Server     = Key `` range shrK"
    1.30 +  initState_Friend  "initState (Friend i) = {Key (shrK (Friend i))}"
    1.31 +  initState_Enemy   "initState Enemy  = {Key (shrK Enemy)}"
    1.32  
    1.33  datatype  (*Messages, and components of agent stores*)
    1.34    event = Says agent agent msg
    1.35 @@ -55,7 +57,7 @@
    1.36    newK :: "event list => key"
    1.37  
    1.38  rules
    1.39 -  inj_serverKey "inj serverKey"
    1.40 +  inj_shrK "inj shrK"
    1.41  
    1.42    inj_newN   "inj newN"
    1.43    fresh_newN "Nonce (newN evs) ~: parts (initState B)"