Package word16-bytes-def: Definition of 16-bit word to byte pair conversions

Information

nameword16-bytes-def
version1.74
descriptionDefinition of 16-bit word to byte pair conversions
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-10-30
checksumdf32e886d4c543527951ff4eb4052c47c160ad4e
requiresbool
byte
natural
pair
word16-def
showData.Bool
Data.Byte
Data.Pair
Data.Word16
Number.Natural

Files

Defined Constants

Theorems

w.
    toBytes w =
    (fromNatural (toNatural w), fromNatural (toNatural (shiftRight w 8)))

b0 b1.
    fromBytes b0 b1 =
    or (fromNatural (toNatural b0))
      (shiftLeft (fromNatural (toNatural b1)) 8)

External Type Operators

External Constants

Assumptions

() = λp. p = λx.