Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rocq: [ "9.2.0" ]
rocq: [ "9.1.1", "9.2.0" ]
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion Engine/PikeTree.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ From Linden Require Import Parameters BooleanSemantics Semantics.
From Warblre Require Import Base RegExpRecord.

(* Read, Progress, Choice, Reset *)
Abbreviation lazy_iter c t1 t2 := (Read c (Progress (Choice t1 (GroupAction (Reset []) t2)))).
Notation lazy_iter c t1 t2 := (Read c (Progress (Choice t1 (GroupAction (Reset []) t2)))).


Section PikeTree.
Expand Down
6 changes: 3 additions & 3 deletions Engine/Prefix.v
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ Variant literal : Type :=
(* this indicates a match cannot exist, as opposed to Prefix [] which means we do not know anything about the match *)
| Impossible.

Abbreviation Nothing := (Exact []).
Abbreviation Unknown := (Prefix []).
Notation Nothing := (Exact []).
Notation Unknown := (Prefix []).

Definition literal_eq_dec: forall (l1 l2: literal), { l1 = l2 } + { l1 <> l2 }.
Proof. decide equality; apply string_eq_dec. Defined.
Expand Down Expand Up @@ -586,7 +586,7 @@ Fixpoint extract_actions_literal (acts : list action) : literal :=
| a :: rest => chain_literals (extract_action_literal a) (extract_actions_literal rest)
end.

Create Rewrite HintDb prefix.
(* Create Rewrite HintDb prefix. *) (* LATER 9.2 *)
Hint Unfold
prefix
chain_literals
Expand Down
8 changes: 4 additions & 4 deletions Rewriting/Anchors.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ Section Anchors.
Context {params: LindenParameters}.
Context (rer: RegExpRecord).

Abbreviation ascii_word_canon :=
Notation ascii_word_canon :=
(forall c,
In c Character.ascii_word_characters ->
In (Character.canonicalize rer c) Character.ascii_word_characters).

Abbreviation ascii_word_inall :=
Notation ascii_word_inall :=
(forall c, In c Character.ascii_word_characters -> In c Character.all).

Abbreviation canonicalize_nonall_stable :=
Notation canonicalize_nonall_stable :=
(forall c, In (Character.canonicalize rer c) Character.all <-> In c Character.all).

Abbreviation line_terminators_canon :=
Notation line_terminators_canon :=
(forall c,
In c Character.line_terminators <->
In (Character.canonicalize rer c) Character.line_terminators).
Expand Down
6 changes: 3 additions & 3 deletions Rewriting/Equivalence.v
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Hint Unfold
tree_nequiv_compute_dir
: tree_equiv.

Create Rewrite HintDb tree_equiv.
(* Create Rewrite HintDb tree_equiv. *) (* LATER 9.2 *)
Hint Rewrite app_nil_l app_nil_r : tree_equiv.
Hint Rewrite <- app_assoc : tree_equiv.

Expand Down Expand Up @@ -264,7 +264,7 @@ Hint Unfold
andb orb negb xorb
: tree_equiv_symbex.

Create Rewrite HintDb tree_equiv_symbex.
(* Create Rewrite HintDb tree_equiv_symbex. *) (* LATER 9.2 *)
Hint Rewrite
PeanoNat.Nat.leb_le
PeanoNat.Nat.leb_nle
Expand Down Expand Up @@ -295,7 +295,7 @@ Ltac leaves_equiv_step :=
Ltac leaves_equiv_t :=
first [ reflexivity | repeat leaves_equiv_step ].

Create Rewrite HintDb charset.
(* Create Rewrite HintDb charset. *) (* LATER 9.2 *)
Hint Rewrite
@CharSet.exist_canonicalized_equiv
@CharSet.exist_spec
Expand Down
6 changes: 5 additions & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
(name Linden)
(package linden)
(generate_project_file)
(flags -set "Generate Goal Names")
(flags
; LATER (9.2 only)
; -set "Generate Goal Names"
-w -notation-for-abbreviation
-w -implicit-create-rewrite-hint-db)
(theories Warblre Ltac2 Stdlib StrictOrderSolver))
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(name linden)
(synopsis "Formal Verification for JavaScript Regular Expressions")
(depends
(rocq-core (>= 9.2.0))
(rocq-core (>= 9.1.1))
(rocq-stdlib (>= 9.1.0))
(warblre (= 0.1.0))
(strict-order-solver (>= 1.0.0))))
2 changes: 1 addition & 1 deletion linden.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ homepage: "https://github.com/epfl-systemf/Linden"
bug-reports: "https://github.com/epfl-systemf/Linden/issues"
depends: [
"dune" {>= "3.21"}
"rocq-core" {>= "9.2.0"}
"rocq-core" {>= "9.1.1"}
"rocq-stdlib" {>= "9.1.0"}
"warblre" {= "0.1.0"}
"strict-order-solver" {>= "1.0.0"}
Expand Down
Loading