Skip to content

Commit 11c0299

Browse files
committed
Resolving circular dependency error, adding not_symmetry to stdpp_tactics.v
1 parent cd217a1 commit 11c0299

File tree

2 files changed

+77
-20
lines changed

2 files changed

+77
-20
lines changed

stdpp/stdpp_tactics.v

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Require Import
2-
MathClasses.misc.util.
31
From Coq Require Export RelationClasses Relation_Definitions Lia.
42

53
Module FastDoneTactic.
64

5+
Lemma not_symmetry {A} `{R : relation A, !Symmetric R} x y : ~ R x y -> ~ R y x.
6+
Proof. intuition. Qed.
7+
78
Ltac fast_done :=
89
solve
910
[ eassumption
@@ -15,23 +16,21 @@ Tactic Notation "fast_by" tactic(tac) :=
1516

1617
End FastDoneTactic.
1718

18-
Section DoneSection.
19-
Import FastDoneTactic.
19+
Import FastDoneTactic.
2020

21-
Ltac done :=
22-
solve
23-
[ repeat first
24-
[ fast_done
25-
| solve [trivial]
26-
(* All the tactics below will introduce themselves anyway, or make no sense
27-
for goals of product type. So this is a good place for us to do it. *)
28-
| progress intros
29-
| solve [symmetry; trivial]
30-
| solve [apply not_symmetry; trivial]
31-
| discriminate
32-
| contradiction
33-
| split
34-
| match goal with H : ~ _ |- _ => case H; clear H; fast_done end ]
35-
].
21+
Ltac done :=
22+
solve
23+
[ repeat first
24+
[ fast_done
25+
| solve [trivial]
26+
(* All the tactics below will introduce themselves anyway, or make no sense
27+
for goals of product type. So this is a good place for us to do it. *)
28+
| progress intros
29+
| solve [symmetry; trivial]
30+
| solve [apply not_symmetry; trivial]
31+
| discriminate
32+
| contradiction
33+
| split
34+
| match goal with H : ~ _ |- _ => case H; clear H; fast_done end ]
35+
].
3636

37-
End DoneSection.

time-of-build.log

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
COQC ./misc/util.v
2+
File "./misc/util.v", line 1, characters 0-149:
3+
Warning: Notation "_ = _" was already used in scope type_scope.
4+
[notation-overridden,parsing,default]
5+
File "./misc/util.v", line 1, characters 0-149:
6+
Warning: Notation "_ ≠ _" was already used in scope type_scope.
7+
[notation-overridden,parsing,default]
8+
misc/util.vo (real: 5.25, user: 0.00, sys: 0.01, mem: 4896 ko)
9+
COQC ./misc/decision.v
10+
File "./misc/decision.v", line 1, characters 0-78:
11+
Warning: Notation "_ = _" was already used in scope type_scope.
12+
[notation-overridden,parsing,default]
13+
File "./misc/decision.v", line 1, characters 0-78:
14+
Warning: Notation "_ ≠ _" was already used in scope type_scope.
15+
[notation-overridden,parsing,default]
16+
misc/decision.vo (real: 3.03, user: 0.00, sys: 0.03, mem: 4328 ko)
17+
COQC ./interfaces/abstract_algebra.v
18+
File "./interfaces/abstract_algebra.v", line 1, characters 0-192:
19+
Warning: Notation "_ = _" was already used in scope type_scope.
20+
[notation-overridden,parsing,default]
21+
File "./interfaces/abstract_algebra.v", line 1, characters 0-192:
22+
Warning: Notation "_ ≠ _" was already used in scope type_scope.
23+
[notation-overridden,parsing,default]
24+
File "./interfaces/abstract_algebra.v", line 50, characters 0-76:
25+
Warning: Adding and removing hints in the core database implicitly is
26+
deprecated. Please specify a hint database.
27+
[implicit-core-hint-db,deprecated-since-8.10,deprecated,default]
28+
interfaces/abstract_algebra.vo (real: 2.89, user: 0.00, sys: 0.03, mem: 4892 ko)
29+
COQC ./theory/products.v
30+
File "./theory/products.v", line 1, characters 0-57:
31+
Warning: Notation "_ = _" was already used in scope type_scope.
32+
[notation-overridden,parsing,default]
33+
File "./theory/products.v", line 1, characters 0-57:
34+
Warning: Notation "_ ≠ _" was already used in scope type_scope.
35+
[notation-overridden,parsing,default]
36+
File "./theory/products.v", line 19, characters 35-46:
37+
Error: No such goal.
38+
39+
Command exited with non-zero status 1
40+
theory/products.vo (real: 2.53, user: 0.00, sys: 0.00, mem: 4896 ko)
41+
make[4]: *** [Makefile.coq:838: theory/products.vo] Error 1
42+
make[4]: *** [theory/products.vo] Deleting file 'theory/products.glob'
43+
make[3]: *** [Makefile.coq:409: all] Error 2
44+
COQC ./theory/products.v
45+
File "./theory/products.v", line 1, characters 0-57:
46+
Warning: Notation "_ = _" was already used in scope type_scope.
47+
[notation-overridden,parsing,default]
48+
File "./theory/products.v", line 1, characters 0-57:
49+
Warning: Notation "_ ≠ _" was already used in scope type_scope.
50+
[notation-overridden,parsing,default]
51+
File "./theory/products.v", line 19, characters 35-46:
52+
Error: No such goal.
53+
54+
Command exited with non-zero status 1
55+
theory/products.vo (real: 2.10, user: 0.01, sys: 0.01, mem: 4908 ko)
56+
make[4]: *** [Makefile.coq:838: theory/products.vo] Error 1
57+
make[4]: *** [theory/products.vo] Deleting file 'theory/products.glob'
58+
make[3]: *** [Makefile.coq:409: all] Error 2

0 commit comments

Comments
 (0)