author | wenzelm |
Sun, 30 Jan 2011 13:02:18 +0100 | |
changeset 41648 | 6d736d983d5c |
parent 41476 | 0fa9629aa399 |
child 42151 | 4da4fc77664b |
permissions | -rw-r--r-- |
(* Title: HOL/IOA/NTP/Packet.thy Author: Tobias Nipkow & Konrad Slind *) theory Packet imports Multiset begin type_synonym 'msg packet = "bool * 'msg" definition hdr :: "'msg packet => bool" where "hdr == fst" definition msg :: "'msg packet => 'msg" where "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