Documentation

Projects.Util.UInt8

Equations
Instances For
    Equations
    Instances For
      Equations
      Instances For
        @[simp]
        theorem UInt8.mk_eq_mk_iff {x y : BitVec 8} :
        { toBitVec := x } = { toBitVec := y } x = y
        @[simp]
        theorem UInt8.ofNatLT_eq_ofNatLT_iff {n m : } {hn : n < size} {hm : m < size} :
        ofNatLT n hn = ofNatLT m hm n = m
        @[simp]
        theorem UInt8.ofBit_eq_mk {b : Bit} :
        ofBit b = { toBitVec := BitVec.ofBit 8 b }
        @[simp]
        theorem UInt8.lowestBit_mk {x : BitVec 8} :
        { toBitVec := x }.lowestBit = x.lowestBit
        theorem UInt8.or_eq_mk {x y : UInt8} :
        x ||| y = { toBitVec := x.toBitVec ||| y.toBitVec }
        @[simp]
        theorem UInt8.ofBits_eq_mk {bs : List Bit} :
        ofBits bs = { toBitVec := BitVec.ofBits 8 bs }
        @[simp]
        @[simp]
        theorem UInt8.one_shl_one :
        1 <<< 1 = 2
        @[instance_reducible]
        Equations
        @[simp]
        theorem UInt8.ofBits_snoc {bs : List Bit} {b : Bit} :
        @[simp]
        theorem UInt8.ofNat_eq_zero_iff {n : } :
        ofNat n = 0 n % 256 = 0
        @[simp]
        theorem UInt8.ofNat_eq_one_iff {n : } :
        ofNat n = 1 n % 256 = 1
        @[simp]
        @[simp]
        theorem UInt8.one_shiftLeft_eq_one_iff {n : } :
        1 <<< ofNat n = 1 n % 8 = 0
        @[simp]
        theorem UInt8.one_shiftLeft_eq_one_iff' {x : UInt8} :
        1 <<< x = 1 x.toNat % 8 = 0