File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 opam install . --deps-only
3232
3333 - name : Dune build
34- run : opam exec -- dune build
34+ run : |
35+ opam exec -- dune build
36+ opam exec -- dune build --profile ltac2
Original file line number Diff line number Diff line change 1+ From Ltac2 Require Import Ltac2.
Original file line number Diff line number Diff line change @@ -171,15 +171,19 @@ Ltac2 find_contradiction hyps_map: constr :=
171171 try_contras hyps_map (List.map fst (FMap.bindings hyps_map)).
172172
173173(* collect all hyps of the rel relation, put them in a map, do a dfs until we find the required one *)
174- Ltac2 solve_strict_order rel: constr :=
174+ Ltac2 solve_strict_order rel: unit :=
175+ normalize_relations rel;
175176 let hyps_map := build_graph rel in
176- match get_elements (Control.goal ()) rel with
177+ let refined := match get_elements (Control.goal ()) rel with
177178 | Some (a_str, b_str) =>
178179 Control.plus (fun _ => find_path hyps_map a_str b_str) (fun _ => find_contradiction hyps_map)
179180 | _ =>
180181 find_contradiction hyps_map
181- end .
182+ end in
183+ Control.refine (fun _ => refined).
182184
183- Ltac2 Notation "strict_order" rel(constr ) :=
184- normalize_relations rel;
185- Control.refine (fun _ => solve_strict_order rel).
185+ Ltac2 Notation "strict_order" rel(constr ) := solve_strict_order rel.
186+
187+ Ltac strict_order rel :=
188+ let p := ltac2:(rel |- solve_strict_order (Option.get (Ltac1.to_constr rel))) in
189+ p rel.
Original file line number Diff line number Diff line change 1- From Ltac2 Require Import Ltac2.
21From Stdlib Require Import Classes .RelationClasses Lists.List.
32Import ListNotations.
43
Original file line number Diff line number Diff line change 1+ (env
2+ (ltac2
3+ (rocq
4+ (flags
5+ ; turn on Ltac2 proof mode for tests
6+ (:standard -l Ltac2Loader.v)))))
7+
18(rocq.theory
29 (name StrictOrderSolver)
310 (package strict-order-solver)
You can’t perform that action at this time.
0 commit comments