Equations
- ch.isWordChar = (ch.isAlphanum || decide (ch = '_'))
Instances For
Equations
- Regex.Data.String.isCurrWord p = if h : p ≠ s.endPos then (p.get h).isWordChar else false
Instances For
Equations
- Regex.Data.String.isPrevWord p = if h : p ≠ s.startPos then ((p.prev h).get ⋯).isWordChar else false
Instances For
Equations
Instances For
Equations
Instances For
@[irreducible]
def
String.Pos.posRevInduction
{s : String}
{motive : s.Pos → Sort u}
(endPos : motive s.endPos)
(next : (p : s.Pos) → (h : p ≠ s.endPos) → motive (p.next h) → motive p)
(p : s.Pos)
:
motive p
Equations
- String.Pos.posRevInduction endPos next p = if h : p = s.endPos then ⋯ ▸ endPos else next p h (String.Pos.posRevInduction endPos next (p.next h))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- String.instReprPosPlusOne = { reprPrec := String.instReprPosPlusOne.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[match_pattern]
Equations
- String.PosPlusOne.pos p = { offset := p.offset, isValidOrPlusOne := ⋯ }
Instances For
@[match_pattern]
Equations
Instances For
def
String.PosPlusOne.rec'
{s : String}
{motive : s.PosPlusOne → Sort u}
(pos : (p : s.Pos) → motive (pos p))
(sentinel : motive (sentinel s))
(p : s.PosPlusOne)
:
motive p
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- String.PosPlusOne.instInhabited = { default := String.PosPlusOne.pos s.startPos }
Instances For
Equations
Equations
- p₁.instDecidableLt p₂ = decidable_of_iff' (p₁.offset < p₂.offset) ⋯
Equations
- p.next h = if h' : p.asPos h ≠ s.endPos then String.PosPlusOne.pos ((p.asPos h).next h') else String.PosPlusOne.sentinel s
Instances For
theorem
String.PosPlusOne.lt_sentinel_of_valid
{s : String}
{p : s.PosPlusOne}
(h : p.isValid = true)
:
@[simp]
Instances For
theorem
String.PosPlusOne.wellFounded_gt
{s : String}
:
WellFounded fun (p q : s.PosPlusOne) => q < p
Equations
- String.PosPlusOne.instWellFoundedRelation = { rel := fun (p q : s.PosPlusOne) => q < p, wf := ⋯ }
Instances For
Equations
Equations
- p₁.instDecidableLe p₂ = decidable_of_iff' (p₁.offset ≤ p₂.offset) ⋯
Instances For
Instances For
Equations
- String.PosPlusOne.instOrElse = { orElse := String.PosPlusOne.orElse }
@[simp]
theorem
String.PosPlusOne.orElse_eq_or
{s : String}
{p₁ : s.PosPlusOne}
{p₂ : Unit → s.PosPlusOne}
:
@[simp]
theorem
String.PosPlusOne.hOrElse_eq_orElse
{s : String}
{p₁ : s.PosPlusOne}
{p₂ : Unit → s.PosPlusOne}
:
@[simp]
@[simp]
theorem
String.PosPlusOne.or_not_valid
{s : String}
{p₁ p₂ : s.PosPlusOne}
(h : ¬p₁.isValid = true)
:
@[simp]
@[simp]
@[simp]
@[simp]