@[extern lean_string_memcmp_compare]
def String.Slice.Pattern.Internal.memcmpStrCompare (lhs rhs : String) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- String.Slice.Pattern.Internal.memcmpStrCompare lhs rhs lstart rstart len h1 h2 = String.Slice.Pattern.Internal.memcmpStrCompare.go✝ lhs rhs lstart rstart len h1 h2 0
Instances For
@[extern lean_string_memcmp]
def String.Slice.Pattern.Internal.memcmpStr (lhs rhs : String) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- String.Slice.Pattern.Internal.memcmpStr lhs rhs lstart rstart len h1 h2 = (String.Slice.Pattern.Internal.memcmpStrCompare lhs rhs lstart rstart len h1 h2 == Ordering.eq)
Instances For
@[extern lean_string_memcmp_lt]
def String.Slice.Pattern.Internal.memcmpStrLt (lhs rhs : String) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- String.Slice.Pattern.Internal.memcmpStrLt lhs rhs lstart rstart len h1 h2 = (String.Slice.Pattern.Internal.memcmpStrCompare lhs rhs lstart rstart len h1 h2 == Ordering.lt)
Instances For
theorem String.Slice.Pattern.Internal.offsetBy_increaseBy_le_rawEndPos_str {s : Slice} {p : Pos.Raw} {len : Nat} (h : p.increaseBy len ≤ s.rawEndPos) :
@[inline]
def String.Slice.Pattern.Internal.memcmpSliceCompare (lhs rhs : Slice) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def String.Slice.Pattern.Internal.memcmpSlice (lhs rhs : Slice) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def String.Slice.Pattern.Internal.memcmpSliceLt (lhs rhs : Slice) (lstart rstart : Pos.Raw) (len : Nat) (h1 : lstart.increaseBy len ≤ lhs.rawEndPos) (h2 : rstart.increaseBy len ≤ rhs.rawEndPos) :
Equations
- One or more equations did not get rendered due to their size.