(* This program is free software; you can redistribute it and/or      *)
(* modify it under the terms of the GNU Lesser General Public License *)
(* as published by the Free Software Foundation; either version 2.1   *)
(* of the License, or (at your option) any later version.             *)
(*                                                                    *)
(* This program is distributed in the hope that it will be useful,    *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of     *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      *)
(* GNU General Public License for more details.                       *)
(*                                                                    *)
(* You should have received a copy of the GNU Lesser General Public   *)
(* License along with this program; if not, write to the Free         *)
(* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *)
(* 02110-1301 USA                                                     *)
(*****************************************************************************)
(*									     *)
(*	                       Setoid Product               		     *)
(*									     *)
(*****************************************************************************)
(*									     *)
(*                     A. SAIBI	  May 95                  		     *)
(*									     *)
(*****************************************************************************)
Require Export Map.
Set Implicit Arguments.
Unset Strict Implicit.
(* Produit de deux Setoid *)
Section s_prod.
Variable A B : Setoid.
Structure Sprod : Type :=  {Sprod_l : A; Sprod_r : B}.
Definition Equal_Sprod (a1xb1 a2xb2 : Sprod) :=
Sprod_l a1xb1 =_S Sprod_l a2xb2 /\ Sprod_r a1xb1 =_S Sprod_r a2xb2.

(* Specifications: *)
Lemma Equal_Sprod_equiv : Equivalence Equal_Sprod.
Canonical Structure SPROD : Setoid := Equal_Sprod_equiv.