Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using auto with * in intuition #119

Open
wants to merge 1 commit into
base: coq-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Test.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
| nil : list
| cons : A -> list -> list.

Infix "::" := cons (at level 60, right associativity) : list_scope.

Check warning on line 30 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation "_ :: _" was already used in scope list_scope.

Open Scope list_scope.

Expand Down Expand Up @@ -76,15 +76,15 @@
| a :: l1 => a :: app l1 m
end.

Infix "++" := app (right associativity, at level 60) : list_scope.

Check warning on line 79 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation "_ ++ _" was already used in scope list_scope.

End Lists.

(** Exporting list notations and tactics *)

Arguments nil {A}.
Infix "::" := cons (at level 60, right associativity) : list_scope.

Check warning on line 86 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation "_ :: _" was already used in scope list_scope.
Infix "++" := app (right associativity, at level 60) : list_scope.

Check warning on line 87 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation "_ ++ _" was already used in scope list_scope.

Open Scope list_scope.

Expand Down Expand Up @@ -211,7 +211,7 @@
now_show (a :: (l ++ m) ++ n = a :: l ++ m ++ n).
rewrite <- IHl; auto.
Qed.
Hint Resolve app_ass.

Check warning on line 214 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Adding and removing hints in the core database implicitly is

Theorem ass_app : forall l m n:list A, l ++ m ++ n = (l ++ m) ++ n.
Proof.
Expand Down Expand Up @@ -362,7 +362,7 @@
Fixpoint nth (n:nat) (l:list A) (default:A) {struct l} : A :=
match n, l with
| O, x :: l' => x
| O, other => default

Check warning on line 365 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Unused variable other might be a misspelled constructor. Use _ or
| S m, nil => default
| S m, x :: t => nth m t default
end.
Expand All @@ -370,7 +370,7 @@
Fixpoint nth_ok (n:nat) (l:list A) (default:A) {struct l} : bool :=
match n, l with
| O, x :: l' => true
| O, other => false

Check warning on line 373 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Unused variable other might be a misspelled constructor. Use _ or
| S m, nil => false
| S m, x :: t => nth_ok m t default
end.
Expand Down Expand Up @@ -412,7 +412,7 @@
Proof.
unfold lt in |- *; induction n as [| n hn]; simpl in |- *.
destruct l; simpl in |- *; [ inversion 2 | auto ].
destruct l as [| a l hl]; simpl in |- *.

Check warning on line 415 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Unused introduction pattern: hl
inversion 2.
intros d ie; right; apply hn; auto with arith.
Qed.
Expand Down Expand Up @@ -566,9 +566,9 @@
Theorem count_occ_In : forall (l : list A) (x : A), In x l <-> count_occ l x > 0.
Proof.
induction l as [|y l].
simpl; intros; split; [destruct 1 | apply gt_irrefl].

Check warning on line 569 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation gt_irrefl is deprecated since 8.16.

Check warning on line 569 in tests/Test.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Notation gt_irrefl is deprecated since 8.16.
simpl. intro x; destruct (eqA_dec y x) as [Heq|Hneq].
rewrite Heq; intuition.
rewrite Heq; intuition auto with arith.
pose (IHl x). intuition.
Qed.

Expand Down
2 changes: 1 addition & 1 deletion tests/graph.dpd.oracle
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ E: 125 179 [weight=1, ];
E: 125 181 [weight=3, ];
E: 125 182 [weight=11, ];
E: 125 183 [weight=14, ];
E: 126 127 [weight=29, ];
E: 126 127 [weight=33, ];
E: 126 170 [weight=27, ];
E: 126 179 [weight=1, ];
E: 126 181 [weight=2, ];
Expand Down