@@ -19,6 +19,8 @@ Set Implicit Arguments.
1919
2020(** ** Definitions *)
2121
22+ Declare Scope test_list_scope.
23+
2224Section Lists.
2325
2426 Variable A : Type.
@@ -27,9 +29,9 @@ Section Lists.
2729 | nil : list
2830 | cons : A -> list -> list.
2931
30- Infix "::" := cons (at level 60, right associativity) : list_scope .
32+ Infix "::" := cons (at level 60, right associativity) : test_list_scope .
3133
32- Open Scope list_scope .
34+ Open Scope test_list_scope .
3335
3436 (** Head and tail *)
3537 Definition head (l:list) :=
@@ -76,21 +78,21 @@ Axiom size_nil : size nil = 0.
7678 | a :: l1 => a :: app l1 m
7779 end .
7880
79- Infix "++" := app (right associativity, at level 60) : list_scope .
81+ Infix "++" := app (right associativity, at level 60) : test_list_scope .
8082
8183End Lists.
8284
8385(** Exporting list notations and tactics *)
8486
8587Arguments nil {A}.
86- Infix "::" := cons (at level 60, right associativity) : list_scope .
87- Infix "++" := app (right associativity, at level 60) : list_scope .
88+ Infix "::" := cons (at level 60, right associativity) : test_list_scope .
89+ Infix "++" := app (right associativity, at level 60) : test_list_scope .
8890
89- Open Scope list_scope .
91+ Open Scope test_list_scope .
9092
91- Delimit Scope list_scope with list .
93+ Delimit Scope test_list_scope with lst .
9294
93- Bind Scope list_scope with list.
95+ Bind Scope test_list_scope with list.
9496
9597Arguments list _%type_scope.
9698
@@ -211,7 +213,7 @@ Section Facts.
211213 now_show (a :: (l ++ m) ++ n = a :: l ++ m ++ n).
212214 rewrite <- IHl; auto.
213215 Qed .
214- Hint Resolve app_ass.
216+ Hint Resolve app_ass : core .
215217
216218 Theorem ass_app : forall l m n:list A, l ++ m ++ n = (l ++ m) ++ n.
217219 Proof .
@@ -412,7 +414,7 @@ Section Elts.
412414 Proof .
413415 unfold lt in |- *; induction n as [| n hn]; simpl in |- *.
414416 destruct l; simpl in |- *; [ inversion 2 | auto ].
415- destruct l as [| a l hl ]; simpl in |- *.
417+ destruct l as [| a l ]; simpl in |- *.
416418 inversion 2.
417419 intros d ie; right; apply hn; auto with arith.
418420 Qed .
@@ -786,7 +788,7 @@ Section ListOps.
786788 | perm_swap: forall (x y:A) (l:list A), Permutation (cons y (cons x l)) (cons x (cons y l))
787789 | perm_trans: forall (l l' l'':list A), Permutation l l' -> Permutation l' l'' -> Permutation l l''.
788790
789- Hint Constructors Permutation.
791+ Hint Constructors Permutation : core .
790792
791793 (** Some facts about [Permutation] *)
792794
@@ -821,7 +823,7 @@ Section ListOps.
821823 exact perm_trans.
822824 Qed .
823825
824- Hint Resolve Permutation_refl Permutation_sym Permutation_trans.
826+ Hint Resolve Permutation_refl Permutation_sym Permutation_trans : core .
825827
826828 (** Compatibility with others operations on lists *)
827829
@@ -876,7 +878,7 @@ Section ListOps.
876878 apply perm_swap; auto.
877879 apply perm_skip; auto.
878880 Qed .
879- Hint Resolve Permutation_cons_app.
881+ Hint Resolve Permutation_cons_app : core .
880882
881883 Theorem Permutation_length : forall (l l' : list A), Permutation l l' -> length l = length l'.
882884 Proof .
@@ -1075,7 +1077,7 @@ Section Map.
10751077 rewrite IHl; auto.
10761078 Qed .
10771079
1078- Hint Constructors Permutation.
1080+ Hint Constructors Permutation : core .
10791081
10801082 Lemma Permutation_map :
10811083 forall l l', Permutation l l' -> Permutation (map l) (map l').
@@ -1591,19 +1593,19 @@ Section SetIncl.
15911593 Variable A : Type.
15921594
15931595 Definition incl (l m:list A) := forall a:A, In a l -> In a m.
1594- Hint Unfold incl.
1596+ Hint Unfold incl : core .
15951597
15961598 Lemma incl_refl : forall l:list A, incl l l.
15971599 Proof .
15981600 auto.
15991601 Qed .
1600- Hint Resolve incl_refl.
1602+ Hint Resolve incl_refl : core .
16011603
16021604 Lemma incl_tl : forall (a:A) (l m:list A), incl l m -> incl l (a :: m).
16031605 Proof .
16041606 auto with datatypes.
16051607 Qed .
1606- Hint Immediate incl_tl.
1608+ Hint Immediate incl_tl : core .
16071609
16081610 Lemma incl_tran : forall l m n:list A, incl l m -> incl m n -> incl l n.
16091611 Proof .
@@ -1614,13 +1616,13 @@ Section SetIncl.
16141616 Proof .
16151617 auto with datatypes.
16161618 Qed .
1617- Hint Immediate incl_appl.
1619+ Hint Immediate incl_appl : core .
16181620
16191621 Lemma incl_appr : forall l m n:list A, incl l n -> incl l (m ++ n).
16201622 Proof .
16211623 auto with datatypes.
16221624 Qed .
1623- Hint Immediate incl_appr.
1625+ Hint Immediate incl_appr : core .
16241626
16251627 Lemma incl_cons :
16261628 forall (a:A) (l m:list A), In a m -> incl l m -> incl (a :: l) m.
@@ -1635,15 +1637,15 @@ Section SetIncl.
16351637 now_show (In a0 l -> In a0 m).
16361638 auto.
16371639 Qed .
1638- Hint Resolve incl_cons.
1640+ Hint Resolve incl_cons : core .
16391641
16401642 Lemma incl_app : forall l m n:list A, incl l n -> incl m n -> incl (l ++ m) n.
16411643 Proof .
16421644 unfold incl in |- *; simpl in |- *; intros l m n H H0 a H1.
16431645 now_show (In a n).
16441646 elim (in_app_or _ _ _ H1); auto.
16451647 Qed .
1646- Hint Resolve incl_app.
1648+ Hint Resolve incl_app : core .
16471649
16481650End SetIncl.
16491651
@@ -1733,6 +1735,8 @@ End Cutting.
17331735
17341736Module ReDun.
17351737
1738+ Section Dummy.
1739+
17361740 Variable A : Type.
17371741
17381742 Inductive NoDup : list A -> Prop :=
@@ -1790,6 +1794,7 @@ Module ReDun.
17901794 destruct (NoDup_remove_2 _ _ _ H0 H).
17911795 Qed .
17921796
1797+ End Dummy.
17931798End ReDun.
17941799
17951800
0 commit comments