Documentation

Regex.Strategy

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

          This strategy is inefficient and used only for proofs.

          Equations
          Instances For
            @[simp]
            theorem Regex.HistoryStrategy.write_def {s : String} {update : (HistoryStrategy s).Update} {offset : Nat} {pos : s.ValidPos} :
            (HistoryStrategy s).write update offset pos = List.append update [(offset, pos)]