theorem
String.Iterator.Valid.of_isValid
{it : Iterator}
(v : Pos.isValid it.toString it.pos = true)
:
it.Valid
A variant of Valid
that allows past-one position that represents the position after running
a search at the end of the string.
Equations
- String.Pos.ValidPlus s p = (String.Pos.Valid s p ∨ p = s.endPos + { byteIdx := 1 })