Skip to content

Commit f5b7669

Browse files
committed
adapt to rocq-9.0
1 parent ac72bf2 commit f5b7669

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all clean
1+
.PHONY: all clean
22
COQMAKEFILE := Makefile.coq
33
ifneq "$(COQBIN)" ""
44
COQBIN := $(COQBIN)/
@@ -12,7 +12,7 @@ clean:
1212
rm -f $(COQMAKEFILE)
1313

1414
$(COQMAKEFILE): Makefile _CoqProject
15-
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq
15+
$(COQBIN)rocq makefile -f _CoqProject -o Makefile.coq
1616

1717
%:
1818
-$(MAKE) -f $(COQMAKEFILE) $@

src/META.smpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package "smpl" (
22
directory = "."
33
version = "dev"
44
description = "smpl plugin"
5-
requires = "coq-core.plugins.ltac"
5+
requires = "rocq-runtime.plugins.ltac"
66
archive(byte) = "smpl_plugin.cma"
77
archive(native) = "smpl_plugin.cmxa"
88
plugin(byte) = "smpl_plugin.cma"

src/smpl.mlg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ open Extraargs
1717
open Pp
1818
open Tacarg
1919
open Ltac_plugin
20-
open Pcoq.Prim
20+
open Procq.Prim
2121
open Taccoerce
2222

2323
module StringMap = Map.Make(String)
@@ -126,7 +126,7 @@ let smpl_create db_name db =
126126
let pr_progress b =
127127
str "(" ++ (if b then str "" else str "no") ++ str "progress)"
128128

129-
let fresh_env () =
129+
let fresh_env () =
130130
let env = Global.env () in
131131
let sigma = Evd.from_env env in
132132
env, sigma
@@ -143,7 +143,7 @@ let smpl_print_entry e =
143143

144144
let smpl_db_exists db_name =
145145
try let db = StringMap.find db_name (!smpl_dbs) in db
146-
with Not_found -> CErrors.user_err
146+
with Not_found -> CErrors.user_err
147147
(str "Unknown Smpl Database " ++ str db_name ++ str ".")
148148

149149
let smpl_print db_name =
@@ -152,7 +152,7 @@ let smpl_print db_name =
152152
str " " ++ pr_progress db.progress_default ++ str ".") in
153153
let _ = Feedback.msg_info (str "Tactics in priority order:") in
154154
List.iter (smpl_print_entry) db.queue; ()
155-
with Not_found -> CErrors.user_err
155+
with Not_found -> CErrors.user_err
156156
(str "Unknown Smpl Database " ++ str db_name ++ str ".")
157157

158158
let smpl_print_dbs () =
@@ -222,7 +222,7 @@ let pr_smpldb _prc _prlc _prt s = str s
222222
}
223223

224224
ARGUMENT EXTEND smpldb
225-
TYPED AS preident
225+
TYPED AS preident
226226
PRINTED BY { pr_smpldb }
227227
| [ preident(i) ] -> { let _ = smpl_db_exists i in i }
228228
END

theories/Demo.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Goal False.
1919
Fail smpl len.
2020
Abort.
2121

22-
Require Import List.
22+
From Stdlib Require Import List.
2323

2424
Ltac len_simpl_app :=
2525
match goal with
26-
| [ |- context [ length (?L ++ ?L') ] ] => rewrite (@app_length _ L L')
27-
| [ H : context [ length (?L ++ ?L') ] |- _ ] => rewrite (@app_length _ L L') in H
26+
| [ |- context [ length (?L ++ ?L') ] ] => rewrite (@length_app _ L L')
27+
| [ H : context [ length (?L ++ ?L') ] |- _ ] => rewrite (@length_app _ L L') in H
2828
end.
2929

3030
(* This adds the tactic at priority 100. *)
@@ -37,8 +37,8 @@ Notation "f ⊝ L" := (List.map f L) (at level 50, L at level 50, left associati
3737

3838
Ltac len_simpl_map :=
3939
match goal with
40-
| [ |- context [ length (?f ⊝ ?L) ] ] => rewrite (@map_length _ _ f L)
41-
| [ H : context [ length (?f ⊝ ?L) ] |- _ ] => rewrite (@map_length _ _ f L) in H
40+
| [ |- context [ length (?f ⊝ ?L) ] ] => rewrite (@length_map _ _ f L)
41+
| [ H : context [ length (?f ⊝ ?L) ] |- _ ] => rewrite (@length_map _ _ f L) in H
4242
end.
4343

4444
Smpl Add 99 len_simpl_map : len.

theories/Smpl.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Declare ML Module "smpl_plugin:smpl.smpl".
1+
Declare ML Module "smpl.smpl".

0 commit comments

Comments
 (0)