Package word16-bytes-def: word16-bytes-def

Information

nameword16-bytes-def
version1.1
descriptionword16-bytes-def
authorJoe Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2011-03-17
showData.Bool

Files

Defined Constants

Theorems

b1 b2.
    Data.Word16.fromBytes b1 b2 =
    Data.Word16.or
      (Data.Word16.shiftLeft
         (Data.Word16.fromNatural (Data.Byte.toNatural b1))
         (Number.Numeral.bit0
            (Number.Numeral.bit0
               (Number.Numeral.bit0
                  (Number.Numeral.bit1 Number.Numeral.zero)))))
      (Data.Word16.fromNatural (Data.Byte.toNatural b2))

w.
    Data.Word16.toBytes w =
    Data.Pair.,
      (Data.Byte.fromNatural
         (Data.Word16.toNatural
            (Data.Word16.shiftRight w
               (Number.Numeral.bit0
                  (Number.Numeral.bit0
                     (Number.Numeral.bit0
                        (Number.Numeral.bit1 Number.Numeral.zero)))))))
      (Data.Byte.fromNatural
         (Data.Word16.toNatural
            (Data.Word16.and w
               (Data.Word16.fromNatural
                  (Number.Numeral.bit1
                     (Number.Numeral.bit1
                        (Number.Numeral.bit1
                           (Number.Numeral.bit1
                              (Number.Numeral.bit1
                                 (Number.Numeral.bit1
                                    (Number.Numeral.bit1
                                       (Number.Numeral.bit1
                                          Number.Numeral.zero))))))))))))

Input Type Operators

Input Constants

Assumptions

T

() = λP. P = λx. T