You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: theories/Shared/Libs/PSL/FiniteTypes/BasicDefinitions.v
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,6 @@ Proof.
19
19
cbn. rewrite IH. unfold Dec. now destruct (HX x y); destruct (HX y x); congruence.
20
20
Qed.
21
21
22
-
(* Function that takes two lists and returns the list of all pairs of elements from the two lists *)
23
-
Fixpoint prodLists {X Y: Type} (A: list X) (B: list Y) {struct A} :=
24
-
match A with
25
-
| nil => nil
26
-
| cons x A' => map (fun y => (x,y)) B ++ prodLists A' B end.
27
-
28
-
(* Crossing any list with the empty list always yields the empty list *)
29
-
Lemma prod_nil (X Y: Type) (A: list X) :
30
-
prodLists A ([]: list Y) = [].
31
-
Proof.
32
-
induction A.
33
-
- reflexivity.
34
-
- cbn. assumption.
35
-
Qed.
36
-
37
22
(* This function takes a (A: list X) and yields a list (option X) which for every x in A contains Some x. The resultung list also contains None. The order is preserved. None is the first element of the resulting list. *)
0 commit comments