equal
deleted
inserted
replaced
322 The function |
322 The function |
323 \isa{pubK} maps agents to their public keys. The function |
323 \isa{pubK} maps agents to their public keys. The function |
324 \isa{priK} maps agents to their private keys. It is defined in terms of |
324 \isa{priK} maps agents to their private keys. It is defined in terms of |
325 \isa{invKey} and \isa{pubK} by a translation; therefore \isa{priK} is |
325 \isa{invKey} and \isa{pubK} by a translation; therefore \isa{priK} is |
326 not a proper constant, so we declare it using \isacommand{syntax} |
326 not a proper constant, so we declare it using \isacommand{syntax} |
|
327 (cf.\ \S\ref{sec:syntax-translations}). |
327 \begin{isabelle} |
328 \begin{isabelle} |
328 \isacommand{consts}\ \,pubK\ \ \ \ ::\ "agent\ =>\ key"\isanewline |
329 \isacommand{consts}\ \,pubK\ \ \ \ ::\ "agent\ =>\ key"\isanewline |
329 \isacommand{syntax}\ priK\ \ \ \ ::\ "agent\ =>\ key"\isanewline |
330 \isacommand{syntax}\ priK\ \ \ \ ::\ "agent\ =>\ key"\isanewline |
330 \isacommand{translations}\ \ \ \ "priK\ x"\ \ \isasymrightleftharpoons\ \ "invKey(pubK\ x)" |
331 \isacommand{translations}\ \ \ \ "priK\ x"\ \ \isasymrightleftharpoons\ \ "invKey(pubK\ x)" |
331 \end{isabelle} |
332 \end{isabelle} |