src/HOLCF/IOA/NTP/Packet.thy
author wenzelm
Mon, 08 Oct 2007 18:13:10 +0200
changeset 24911 4efb68e5576d
parent 19739 c58ef2aa5430
child 25131 2c8caac48ade
permissions -rw-r--r--
primitive add_def: strip sorts in axiom;

(*  Title:      HOL/IOA/NTP/Packet.thy
    ID:         $Id$
    Author:     Tobias Nipkow & Konrad Slind
*)

theory Packet
imports Multiset
begin

types
  'msg packet = "bool * 'msg"

constdefs

  hdr  :: "'msg packet => bool"
  "hdr == fst"

  msg :: "'msg packet => 'msg"
  "msg == snd"


text {* Instantiation of a tautology? *}
lemma eq_packet_imp_eq_hdr: "!x. x = packet --> hdr(x) = hdr(packet)"
  by simp

declare hdr_def [simp] msg_def [simp]

end