Skip to content

Commit 634f53b

Browse files
committed
Rocq9: add Stdlib to theories and fix deprecations
1 parent c3f4dde commit 634f53b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

engines/js/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(coq.extraction
1111
(prelude Extraction)
1212
(extracted_modules Extracted)
13-
(theories Warblre Ltac2))
13+
(theories Warblre Ltac2 Stdlib))
1414

1515
; Make a library out of it
1616
(library

engines/ocaml/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(coq.extraction
1111
(prelude Extraction)
1212
(extracted_modules Extracted)
13-
(theories Warblre Ltac2))
13+
(theories Warblre Ltac2 Stdlib))
1414

1515
; Make a library out of it
1616
(library
@@ -21,4 +21,4 @@
2121
(env
2222
(dev
2323
(flags
24-
(:standard -w -27 -w -39 -w -67))))
24+
(:standard -w -20 -w -27 -w -39 -w -67))))

mechanization/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
(coq.theory
44
(name Warblre)
55
(package warblre)
6-
(theories Ltac2))
6+
(theories Ltac2 Stdlib))

mechanization/spec/Inst.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ Open Scope list_scope.
528528
Import NaiveEngine.
529529
(* Import FastEngine. *)
530530

531-
Definition get_success {S F} (r: Result S F) : match r with Success _ => S | Error _ => unit end :=
531+
Definition get_success {S F: Type} (r: Result S F) : match r with Success _ => S | Error _ => unit end :=
532532
match r with
533533
| Success s => s
534534
| Error f => tt
@@ -548,8 +548,8 @@ Notation "$ c" := (character_of_Ascii c) (at level 0).
548548
Notation "$$ s" := (string_of_String s) (at level 0).
549549

550550
(* Hide the matching functions in the outputs below*)
551-
Arguments Exotic {C S UP}%type_scope {H H0 H1} _ {_}.
552-
Arguments Null {C S UP}%type_scope {H H0 H1} {_}.
551+
Arguments Exotic {C S UP}%_type_scope {H H0 H1} _ {_}.
552+
Arguments Null {C S UP}%_type_scope {H H0 H1} {_}.
553553

554554
Time Compute
555555
rmatch

mechanization/tactics/Tactics.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Tactic Notation "exApplyW" hyp(H) hyp(w) "as" simple_intropattern(As) :=
3434
Ltac clean_injection H := injection H; clear H; intros.
3535

3636
Ltac bookkeeper := repeat (
37-
Stdlib.Program.Tactics.destruct_conjs
38-
|| Stdlib.Program.Tactics.clear_dups
37+
destruct_conjs
38+
|| clear_dups
3939
|| subst
4040
|| lazymatch goal with
4141
| [ H: _ = _ |- _ ] => clean_injection H || discriminate H

mechanization/utils/List.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Module List.
4949
Proof.
5050
intros l1 l2 p12 p21 Eq_l1 Eq_l2.
5151
pose proof (@f_equal _ _ (@length _) _ _ Eq_l1). pose proof (@f_equal _ _ (@length _) _ _ Eq_l2).
52-
rewrite -> app_length in *.
52+
rewrite -> length_app in *.
5353
assert (length p12 = 0)%nat as Eq_p12 by lia. assert (length p21 = 0)%nat as Eq_p21 by lia.
5454
rewrite -> length_zero_iff_nil in *. subst. reflexivity.
5555
Qed.

0 commit comments

Comments
 (0)