(* 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        *)
(*****************************************************************************)
(*									     *)
(*	                   Natural Isomorphism            		     *)
(*									     *)
(*****************************************************************************)
(*									     *)
(*                     A. SAIBI	  May 95                  		     *)
(*									     *)
(*****************************************************************************)
Require Export CatProperty.
Require Export CatFunct.
Set Implicit Arguments.
Unset Strict Implicit.
(* 1ere solution: def primitive *)
Section natiso_def.
Variable A B : Category.
Definition RNatIso_law (F G : Functor A B) (T : NT F G)
(T1 : NT G F) := T1 o_NTv T =_NT Id_CatFunct G.
Variable F G : Functor A B.
Definition AreNatIsos (T : NT F G) (T1 : NT G F) :=
RNatIso_law T T1 /\ RNatIso_law T1 T.
Structure > NatIso : Type :=
{NatIso_mor :> NT F G;
NatIso_inv : NT G F;
Prf_NatIso :> AreNatIsos NatIso_mor NatIso_inv}.

Lemma Idr_nat_inv :
forall i : NatIso, RNatIso_law (NatIso_inv i) (NatIso_mor i).