Extended Version. Appendix A of the extended version provides a correspondence between paper definitions and the code.
Authors: Aurèle Barrière, Victor Deng and Clément Pit-Claudel.
This repository contains mechanized proofs, in Rocq, about JavaScript Regular Expressions. This includes:
- a new backtracking tree semantics for JavaScript regexes, in folder
Semantics. - a proof that this semantics is equivalent to the Warblre mechanization of JavaScript regexes, in folder
WarblreEquiv. - a proof of the PikeVM linear-time matching algorithm supporting a subset of JavaScript regexes, in folder
Engine. The algorithm is adapted to fit JavaScript unique quantifier semantics, following section 4.1 of Linear Matching of JavaScript Regular Expressions. - proof of JavaScript regex contextual equivalences, in folder
Rewriting.
-
Create a local opam switch:
opam switch --no-install create . -
Add needed dependency repositories:
opam repo add rocq-released https://rocq-prover.org/opam/released -
Install dependencies:
opam install --deps-only . -
Build all proofs with
dune build.
