@[irreducible]
<
on string iterators. This coincides with <
on strings as lists.
Equations
Instances For
This overrides an instance in core Lean.
Equations
- String.LT' = { lt := fun (s₁ s₂ : String) => String.ltb s₁.iter s₂.iter = true }
This instance has a prime to avoid the name of the corresponding instance in core Lean.
Equations
@[irreducible]
def
String.ltb.inductionOn
{motive : Iterator → Iterator → Sort u}
(it₁ it₂ : Iterator)
(ind :
(s₁ s₂ : String) →
(i₁ i₂ : Pos) →
{ s := s₂, i := i₂ }.hasNext = true →
{ s := s₁, i := i₁ }.hasNext = true →
s₁.get i₁ = s₂.get i₂ →
motive { s := s₁, i := i₁ }.next { s := s₂, i := i₂ }.next →
motive { s := s₁, i := i₁ } { s := s₂, i := i₂ })
(eq :
(s₁ s₂ : String) →
(i₁ i₂ : Pos) →
{ s := s₂, i := i₂ }.hasNext = true →
{ s := s₁, i := i₁ }.hasNext = true → ¬s₁.get i₁ = s₂.get i₂ → motive { s := s₁, i := i₁ } { s := s₂, i := i₂ })
(base₁ :
(s₁ s₂ : String) →
(i₁ i₂ : Pos) →
{ s := s₂, i := i₂ }.hasNext = true →
¬{ s := s₁, i := i₁ }.hasNext = true → motive { s := s₁, i := i₁ } { s := s₂, i := i₂ })
(base₂ :
(s₁ s₂ : String) →
(i₁ i₂ : Pos) → ¬{ s := s₂, i := i₂ }.hasNext = true → motive { s := s₁, i := i₁ } { s := s₂, i := i₂ })
:
motive it₁ it₂
Induction on String.ltb
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
@[deprecated String.asString_nil (since := "2024-06-04")]
Alias of String.asString_nil
.
@[deprecated String.asString_toList (since := "2024-06-04")]
Alias of String.asString_toList
.
Equations
- One or more equations did not get rendered due to their size.
@[deprecated List.toList_asString (since := "2024-06-04")]
Alias of List.toList_asString
.