End InducedFunction2.
Section InducedFunction2arg.
(* well-defined function A x B -> C induces a function (A/R) x (B/S) -> C *)
Variable A B C:Type.
Variable R:relation A.
Variable S:relation B.
Variable f:A->B->C.
Hypothesis equivR:equivalence R.
Hypothesis equivS:equivalence S.
Hypothesis well_defined_2arg: forall (a1 a2:A) (b1 b2:B),
R a1 a2 -> S b1 b2 -> f a1 b1 = f a2 b2.

(* Specifications: *)
Lemma slices_well_defined: forall (a:A) (b1 b2:B),
S b1 b2 -> f a b1 = f a b2.