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

Information

nameword16-bytes-def
version1.75
descriptionDefinition of 16-bit word to byte conversions
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-10-30
checksumf281388d0d0336230847383371dfb24be70d8eb0
requiresbase
byte
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.