Skip to content

Commit dc1d9f2

Browse files
committed
Extras: remove duplicated definition
1 parent 2fa52d2 commit dc1d9f2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ index.md
2222
*.coq.d
2323
*.vok
2424
*.vos
25+
.lia.cache

theories/Programming/Extras.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ Module FunNotation.
2323
End FunNotation.
2424
Import FunNotation.
2525

26-
Definition compose A B C (g:B -> C) (f:A -> B) (x:A) : C := g (f x).
27-
26+
(* Uncomment the following line after we drop Coq 8.8: *)
27+
(* #[deprecated(since = "8.13", note = "Use standard library.")] *)
2828
Definition uncurry A B C (f:A -> B -> C) (x:A * B) : C := let (a,b) := x in f a b.
2929

30+
(* Uncomment the following line after we drop Coq 8.8: *)
31+
(* #[deprecated(since = "8.13", note = "Use standard library.")] *)
3032
Definition curry {A B C} (f : A * B -> C) (a : A) (b : B) : C := f (a, b).
3133

3234
Lemma uncurry_curry : forall A B C (f : A -> B -> C) a b,
@@ -44,8 +46,6 @@ Proof.
4446
reflexivity.
4547
Qed.
4648

47-
Definition const A B (x:B) : A -> B := fun _ => x.
48-
4949
Fixpoint zip A B (xs:list A) (ys:list B) : list (A * B) :=
5050
match xs, ys with
5151
| [], _ => []

0 commit comments

Comments
 (0)