Documentation

Regex.Strategy

structure Regex.Strategy :
Instances For
    @[reducible, inline]
    abbrev Regex.Buffer (size : Nat) :
    Equations
    Instances For
      def Regex.Buffer.empty {size : Nat} :
      Buffer size
      Equations
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          @[simp]
          theorem Regex.BufferStrategy.write_def {size : Nat} {buffer : (BufferStrategy size).Update} {offset : Nat} {pos : String.Pos} :
          (BufferStrategy size).write buffer offset pos = Vector.setIfInBounds buffer offset (some pos)

          This strategy is inefficient and used only for proofs.

          Equations
          Instances For
            @[simp]
            theorem Regex.HistoryStrategy.write_def {update : List (Nat × String.Pos)} {offset : Nat} {pos : String.Pos} :
            HistoryStrategy.write update offset pos = update ++ [(offset, pos)]