Documentation

RegexCorrectness.Strategy.Materialize.Basic

materializeRegexGroups groups constructs a mapping that associates each capture group's tag with the start/end positions of the last appearance of the capture group in the input string.

Equations
Instances For

    materializeUpdates n updates constructs a buffer of size n which interprets the updates list as the writes to the buffer. When the same offset appears multiple times in the list, the last one wins.

    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Regex.Strategy.EquivMaterializedUpdate.eq {n : Nat} {groups : NatOption (String.Pos × String.Pos)} {updates : Vector (Option String.Pos) n} (eqv : EquivMaterializedUpdate groups updates) (tag : Nat) (lt : 2 * tag + 1 < n) (p₁ p₂ : String.Pos) :
        groups tag = some (p₁, p₂) updates[2 * tag] = some p₁ updates[2 * tag + 1] = some p₂