Skip to content

Commit 8452ebd

Browse files
authored
Merge pull request #126 from Villetaneuse/rm_arith_files
Adapt to rocq-prover/rocq#18164
2 parents 85660ac + 8a52cd9 commit 8452ebd

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

tests/Test.v

+8-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
(*i $Id: List.v 10999 2008-05-27 15:55:22Z letouzey $ i*)
1010

11-
Require Import Le Gt Minus Min Bool.
11+
Require Import Arith Bool.
1212

1313
Set Implicit Arguments.
1414

@@ -566,7 +566,7 @@ Section Elts.
566566
Theorem count_occ_In : forall (l : list A) (x : A), In x l <-> count_occ l x > 0.
567567
Proof.
568568
induction l as [|y l].
569-
simpl; intros; split; [destruct 1 | apply gt_irrefl].
569+
simpl; intros; split; [destruct 1 | apply Nat.lt_irrefl].
570570
simpl. intro x; destruct (eqA_dec y x) as [Heq|Hneq].
571571
rewrite Heq; intuition.
572572
pose (IHl x). intuition.
@@ -695,16 +695,13 @@ Section ListOps.
695695
simpl (rev (a :: l)).
696696
simpl (length (a :: l) - S n).
697697
inversion H.
698-
rewrite <- minus_n_n; simpl.
698+
rewrite Nat.sub_diag; simpl.
699699
rewrite <- rev_length.
700700
rewrite app_nth2; auto.
701-
rewrite <- minus_n_n; auto.
702-
rewrite app_nth1; auto.
703-
rewrite (minus_plus_simpl_l_reverse (length l) n 1).
704-
replace (1 + length l) with (S (length l)); auto with arith.
705-
rewrite <- minus_Sn_m; [|auto with arith].
706-
apply IHl ; auto with arith.
707-
rewrite rev_length; auto.
701+
rewrite Nat.sub_diag; auto.
702+
rewrite app_nth1 by (rewrite rev_length; exact H1).
703+
rewrite <-Nat.sub_succ, Nat.sub_succ_l by (exact H1).
704+
apply IHl; exact H1.
708705
Qed.
709706

710707

@@ -1551,7 +1548,7 @@ Section length_order.
15511548
Proof.
15521549
unfold lel in |- *; intros.
15531550
now_show (length l <= length n).
1554-
apply le_trans with (length m); auto with arith.
1551+
apply Nat.le_trans with (length m); auto with arith.
15551552
Qed.
15561553

15571554
Lemma lel_cons_cons : lel l m -> lel (a :: l) (b :: m).

tests/graph.dpd.oracle

+4-4
Original file line numberDiff line numberDiff line change
@@ -823,14 +823,14 @@ E: 113 183 [weight=3, ];
823823
E: 114 181 [weight=1, ];
824824
E: 114 183 [weight=10, ];
825825
E: 115 116 [weight=2, ];
826-
E: 115 121 [weight=36, ];
826+
E: 115 121 [weight=35, ];
827827
E: 115 135 [weight=1, ];
828828
E: 115 136 [weight=1, ];
829-
E: 115 145 [weight=43, ];
829+
E: 115 145 [weight=41, ];
830830
E: 115 169 [weight=10, ];
831-
E: 115 173 [weight=78, ];
831+
E: 115 173 [weight=73, ];
832832
E: 115 179 [weight=1, ];
833-
E: 115 181 [weight=30, ];
833+
E: 115 181 [weight=29, ];
834834
E: 115 182 [weight=37, ];
835835
E: 115 183 [weight=4, ];
836836
E: 116 121 [weight=9, ];

tests/search.oracle

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Welcome to Coq
22
[Loading ML file coq-dpdgraph.plugin ... done]
3+
[Loading ML file ring_plugin.cmxs (using legacy method) ... done]
34
Fetching opaque proofs from disk for dpdgraph.tests.Test
45
[cons(42) nil(6) perm_swap(1) perm_skip(3) list(18) Permutation(11) app(43)
56
Permutation_trans(3) eq_ind_r(1) eq_ind(2) list_ind(2) Permutation_refl(2)

0 commit comments

Comments
 (0)