(* 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                                                     *)
(*****************************************************************************)
(*          Projet Formel - Calculus of Inductive Constructions V5.10        *)
(*****************************************************************************)
(*									     *)
(*	                  Universal Arrows                  		     *)
(*									     *)
(*****************************************************************************)
(*									     *)
(*                            A.SAIBI   May 95				     *)
(*									     *)
(*****************************************************************************)
Require Export CatProperty.
Require Export Functor.
Set Implicit Arguments.
Unset Strict Implicit.
Section ua_def.
Variables (A B : Category) (b : B) (G : Functor A B).
Section isua_def.
Variables (a : A) (u : b --> G a).
Section ua_laws.
Variable diese : forall a' : A, (b --> G a') -> (a --> a').
Definition UA_eq (a' : A) (f : b --> G a') (g : a --> a') :=
u o FMor G g =_S f.
Definition UA_law1 := forall (a' : A) (f : b --> G a'), UA_eq f (diese f).
Definition UA_law2 :=
forall (a' : A) (f : b --> G a') (g : a --> a'),
UA_eq f g -> g =_S diese f.
End ua_laws.
Structure IsUA : Type :=
{UA_diese : forall a' : A, (b --> G a') -> (a --> a');
Prf_isUA_law1 : UA_law1 UA_diese;
Prf_isUA_law2 : UA_law2 UA_diese}.
Variable t : IsUA.
(* f=g => f# = g# *)

(* Specifications: *)
Lemma Diese_map : forall a' : A, Map_law (UA_diese t (a':=a')).
End isua_def.