Documentation

Init.Data.String.OrderInstances

Register string positions with grind. #

@[simp]
theorem String.Pos.Raw.toInt_eq {p : Raw} :
p = p.byteIdx
instance String.Pos.Raw.instTotalLe :
Std.Total fun (x1 x2 : Raw) => x1 x2
@[implicit_reducible]
instance String.Pos.Raw.instTransLe :
Trans (fun (x1 x2 : Raw) => x1 x2) (fun (x1 x2 : Raw) => x1 x2) fun (x1 x2 : Raw) => x1 x2
Equations
instance String.Pos.Raw.instAntisymmLe :
Std.Antisymm fun (x1 x2 : Raw) => x1 x2
@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
@[simp]
theorem String.Pos.toInt_eq {s : String} {p : s.Pos} :
instance String.Pos.instTotalLe {s : String} :
Std.Total fun (x1 x2 : s.Pos) => x1 x2
@[implicit_reducible]
instance String.Pos.instTransLe {s : String} :
Trans (fun (x1 x2 : s.Pos) => x1 x2) (fun (x1 x2 : s.Pos) => x1 x2) fun (x1 x2 : s.Pos) => x1 x2
Equations
instance String.Pos.instAntisymmLe {s : String} :
Std.Antisymm fun (x1 x2 : s.Pos) => x1 x2
@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
@[simp]
theorem String.Slice.Pos.toInt_eq {s : Slice} {p : s.Pos} :
instance String.Slice.Pos.instTotalLe {s : Slice} :
Std.Total fun (x1 x2 : s.Pos) => x1 x2
@[implicit_reducible]
instance String.Slice.Pos.instTransLe {s : Slice} :
Trans (fun (x1 x2 : s.Pos) => x1 x2) (fun (x1 x2 : s.Pos) => x1 x2) fun (x1 x2 : s.Pos) => x1 x2
Equations
instance String.Slice.Pos.instAntisymmLe {s : Slice} :
Std.Antisymm fun (x1 x2 : s.Pos) => x1 x2
@[implicit_reducible]
Equations
  • One or more equations did not get rendered due to their size.