Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Regex.CapturedGroups.Spec
{re : Regex}
(s : re.IsSearchRegex)
(haystack : String)
(startPos : String.Pos)
(self : CapturedGroups)
:
CapturedGroups
conforms to the spec if and only if:
- the haystack can be split into
l
,m
, andr
such thathaystack = l ++ m ++ r
m
starts afterstartPos
.- there is a regex match starting at
l
, matching the substringm
, and ending atr
CapturedGroups
contains the positions of the capture groups in the match- in particular, the first group corresponds to the positions of the matched substring
m
- the last match of wins in case the same group is captured multiple times
- in particular, the first group corresponds to the positions of the matched substring
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- self.Valid = (self.regex.IsSearchRegex ∧ String.Pos.ValidPlus self.haystack self.currentPos)
Instances For
theorem
Regex.Captures.captures_of_next?_some
{self self' : Captures}
{captured : CapturedGroups}
(h : self.next? = some (captured, self'))
(v : self.Valid)
: