Documentation

Init.Data.ByteArray.Lex

@[instance_reducible]
Equations
@[instance_reducible]
Equations
@[simp]
theorem ByteArray.data_lt_data {a b : ByteArray} :
a.data < b.data ↔ a < b
@[extern lean_byte_array_dec_lt]
Equations
Instances For
    @[instance_reducible]
    Equations
    @[extern lean_byte_array_compare]
    Equations
    Instances For
      @[instance_reducible]
      Equations
      @[simp]
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      theorem ByteArray.compare_extract_extract_of_lt {a b : ByteArray} {i j i' j' : Nat} (hi : i < j) (hj : j ≤ a.size) (hi' : i' < j') (hj' : j' ≤ b.size) :
      compare (a.extract i j) (b.extract i' j') = (compare a[i] b[i']).then (compare (a.extract (i + 1) j) (b.extract (i' + 1) j'))
      @[simp]
      theorem List.toByteArray_lt_toByteArray {l₁ l₂ : List UInt8} :
      l₁.toByteArray < l₂.toByteArray ↔ l₁ < l₂
      @[simp]
      theorem List.toByteArray_le_toByteArray {l₁ l₂ : List UInt8} :
      l₁.toByteArray ≤ l₂.toByteArray ↔ l₁ ≤ l₂