Helpers for termination arguments about functions operating on strings #
The number of bytes between p and the end position. This number decreases as p advances.
Equations
Instances For
Type alias for String.Slice.Pos representing that the given position is expected to decrease
in recursive calls.
- inner : s.Pos
Instances For
Equations
- String.Slice.Pos.instWellFoundedRelationDown = { rel := fun (p q : String.Slice.Pos.Down s) => p.inner < q.inner, wf := ⋯ }
The number of bytes between p and the end position. This number decreases as p advances.
Equations
Instances For
@[simp]
Type alias for String.Pos representing that the given position is expected to decrease
in recursive calls.
- inner : s.Pos
Instances For
Equations
- String.Pos.instWellFoundedRelationDown = { rel := fun (p q : String.Pos.Down s) => p.inner < q.inner, wf := ⋯ }
theorem
String.Pos.Splits.remainingBytes_eq
{s : String}
{p : s.Pos}
{t₁ t₂ : String}
(h : p.Splits t₁ t₂)
:
@[simp]
theorem
String.Slice.Pos.Splits.remainingBytes_eq
{s : Slice}
{p : s.Pos}
{t₁ t₂ : String}
(h : p.Splits t₁ t₂)
: