Documentation

RegexCorrectness.Data.Expr.Semantics.Backtracking.Basic

BacktrackingTree records the full backtracking search traces of a regex match.

Leaves represent success or failure, and internal nodes represent the operational effects of backtracking evaluation such as branching, reading one character, checking an anchor, and opening or closing a capture group.

Reference: Barriere, Deng, and Pit-Claudel, "Formal Verification for JavaScript Regular Expressions: a Proven Semantics and its Applications (Extended Version)", https://arxiv.org/abs/2507.13091

Instances For
    Instances For
      Instances For
        theorem Regex.Data.Expr.BacktrackingTree.deterministic_isValid {s : String} {as : List Action} {p : s.Pos} {gs : GroupMap s} {t₁ t₂ : BacktrackingTree} (h₁ : IsValid as p gs t₁) (h₂ : IsValid as p gs t₂) :
        t₁ = t₂