changeset 176:ae1a4f7e5203

hom set adjunction done.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 25 Aug 2013 09:44:00 +0900
parents 795be747d7a9
children 63f6157a6a19
files cat-utility.agda universal-mapping.agda
diffstat 2 files changed, 288 insertions(+), 186 deletions(-) [+]
line wrap: on
line diff
--- a/cat-utility.agda	Sat Aug 24 22:14:29 2013 +0900
+++ b/cat-utility.agda	Sun Aug 25 09:44:00 2013 +0900
@@ -34,72 +34,6 @@
                _* :  { a : Obj A}{ b : Obj B} → ( Hom A a (FObj U b) ) →  Hom B (F a ) b 
                isUniversalMapping : IsUniversalMapping A B U F η _*
 
---     naturality of left
---     f' = k* f   k*: Hom A F(a) k,                                                                                                                        
---                        left                                               left                                                                           
---    f : Hom A F(a)   b --------> f* : Hom B a U(b)      f : Hom A F(a')b --------> f* : Hom B a' U(b)                                                     
---       |                               |                     |                               |                                                            
---       |k*                             |U(k*)                |F(h*)                          |h*                                                          
---       v                               v                     v                               v                                                            
---    f': Hom A F(a)   b'--------> f* : Hom B a U(b')     f': Hom A F(a)  b --------> f* : Hom B a U(b)                                                     
---                        left                                                                                                                              
-
-        record UnityOfOppsite  {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ') 
-                         ( U : Functor B A )
-                         ( F : Functor A B )
-                         : Set (suc (c₁ ⊔ c₂ ⊔ ℓ ⊔ c₁' ⊔ c₂' ⊔ ℓ' )) where
-           field
-               right  : {a : Obj A} { b : Obj B } → Hom A a ( FObj U b ) → Hom B (FObj F a) b
-               left   : {a : Obj A} { b : Obj B } → Hom B (FObj F a) b   → Hom A a ( FObj U b ) 
-               right-injective : {a : Obj A} { b : Obj B } → {f : Hom A a (FObj U b) }  → A [ left ( right f ) ≈ f ]
-               left-injective  : {a : Obj A} { b : Obj B } → {f : Hom B (FObj F a) b }  → B [ right ( left f ) ≈ f ]
-               left-commute1 : {a : Obj A} {b b' : Obj B } ->
-                       ( f : Hom B (FObj F a) b )  -> ( k : Hom B b b' ) ->
-                        A [  left ( B [ k o  f ] )  ≈ A [ FMap U k o left f  ] ]
-               left-commute2 : {a a' : Obj A} {b : Obj B } ->
-                       ( f : Hom B (FObj F a) b )  -> ( h : Hom A a' a ) ->
-                        A [ left ( B [ f  o  FMap F h ] )  ≈  A [ left f o h ] ]
-               r-cong : {a : Obj A} { b : Obj B } → { f g : Hom A a ( FObj U b ) } →  A [ f  ≈ g ] → B [ right f ≈ right g ]
-               l-cong : {a : Obj A} { b : Obj B } → { f g : Hom B (FObj F a) b }   →  B [ f  ≈ g ] → A [ left f ≈ left g   ]
-           right-commute1 : {a : Obj A} {b b' : Obj B } ->
-                       ( g : Hom A a (FObj U b))  -> ( k : Hom B b b' ) ->
-                        B [ B [ k o  right g ]   ≈ right ( A [ FMap U k o g  ] ) ]
-           right-commute1 g k =  let open ≈-Reasoning (B) in
-                     begin
-                          k o  right g
-                     ≈⟨ sym left-injective ⟩
-                          right ( left ( k o  right g ) )
-                     ≈⟨ r-cong ( left-commute1 (right g) k ) ⟩
-                          right ( A [ FMap U k o left ( right g ) ] )
-                     ≈⟨ r-cong (lemma-1 g k) ⟩
-                         right ( A [ FMap U k o g  ] ) 
-                     ∎ where
-                             lemma-1 : {a : Obj A} {b b' : Obj B } ->
-                               ( g : Hom A a (FObj U b))  -> ( k : Hom B b b' ) ->
-                                A [ A [ FMap U k o left ( right g ) ]   ≈  A [ FMap U k o g  ] ]
-                             lemma-1 g k = let open ≈-Reasoning (A) in
-                                   begin
-                                        FMap U k o left ( right g ) 
-                                   ≈⟨ cdr ( right-injective) ⟩
-                                        FMap U k o g  
-                                   ∎ 
-           right-commute2 : {a a' : Obj A} {b : Obj B } ->
-                       ( g : Hom A a (FObj U b) )  -> ( h : Hom A a' a ) ->
-                        B [ B [ right g  o  FMap F h ]   ≈  right ( A [ g o h ] ) ]
-           right-commute2 g h =  let open ≈-Reasoning (B) in
-                     begin
-                          right g  o  FMap F h 
-                     ≈⟨  sym left-injective ⟩
-                          right ( left ( right g  o  FMap F h  ))
-                     ≈⟨ r-cong ( left-commute2 (right g) h ) ⟩
-                          right ( A [ left ( right g ) o h ] )
-                     ≈⟨ r-cong ( lemma-2 g h  ) ⟩
-                          right ( A [ g o h ] )
-                     ∎  where
-                           lemma-2 :  {a a' : Obj A} {b : Obj B } ->
-                               ( g : Hom A a (FObj U b))  -> ( h : Hom A a' a ) ->
-                                A [ A [  left ( right g ) o h ]   ≈  A [ g o h  ] ]
-                           lemma-2 g h  = let open ≈-Reasoning (A) in car ( right-injective  )
         open NTrans
         open import Category.Cat
         record IsAdjunction  {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ') 
--- a/universal-mapping.agda	Sat Aug 24 22:14:29 2013 +0900
+++ b/universal-mapping.agda	Sun Aug 25 09:44:00 2013 +0900
@@ -12,7 +12,7 @@
 open NTrans
 
 --
---   Adjunction yields solution of universal mapping 
+--   Adjunction yields solution of universal mapping
 --
 --
 
@@ -24,7 +24,7 @@
                  { F : Functor A B }
                  { η : NTrans A A identityFunctor ( U ○  F ) }
                  { ε : NTrans B B  ( F ○  U ) identityFunctor } →
-      Adjunction A B U F η ε  → UniversalMapping A B U (FObj F) (TMap η) 
+      Adjunction A B U F η ε  → UniversalMapping A B U (FObj F) (TMap η)
 Adj2UM A B {U} {F} {η} {ε} adj = record {
          _* = solution  ;
          isUniversalMapping = record {
@@ -32,24 +32,24 @@
                     uniquness = uniqueness
               }
       } where
-         solution :  { a : Obj A} { b : Obj B} → ( f : Hom A a (FObj U b) ) →  Hom B (FObj F a ) b 
+         solution :  { a : Obj A} { b : Obj B} → ( f : Hom A a (FObj U b) ) →  Hom B (FObj F a ) b
          solution  {_} {b} f = B [ TMap ε b o FMap F f ]
-         universalMapping :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } → 
+         universalMapping :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } →
                      A [ A [ FMap U ( solution f) o TMap η a' ]  ≈ f ]
-         universalMapping {a} {b} {f} = 
+         universalMapping {a} {b} {f} =
            let open ≈-Reasoning (A) in
-              begin 
-                  FMap U ( solution  f) o TMap η a 
+              begin
+                  FMap U ( solution  f) o TMap η a
               ≈⟨⟩
-                  FMap U (  B [ TMap ε b o FMap F f ] ) o TMap η a 
+                  FMap U (  B [ TMap ε b o FMap F f ] ) o TMap η a
               ≈⟨ car (distr U ) ⟩
-                 ( (FMap U (TMap ε b))  o (FMap U ( FMap F f )) ) o TMap η a 
+                 ( (FMap U (TMap ε b))  o (FMap U ( FMap F f )) ) o TMap η a
               ≈⟨ sym assoc ⟩
                   (FMap U (TMap ε b))  o ((FMap U ( FMap F f ))  o TMap η a )
               ≈⟨ cdr (nat η) ⟩
                   (FMap U (TMap ε b))  o ((TMap η (FObj U b )) o f )
               ≈⟨ assoc ⟩
-                  ((FMap U (TMap ε b))  o (TMap η (FObj U b)))  o f 
+                  ((FMap U (TMap ε b))  o (TMap η (FObj U b)))  o f
               ≈⟨ car ( IsAdjunction.adjoint1 ( isAdjunction adj))  ⟩
                   id (FObj U b) o f
               ≈⟨  idL  ⟩
@@ -57,28 +57,28 @@

          lemma1 : (a : Obj A) ( b : Obj B ) ( f : Hom A a (FObj U b) ) → ( g :  Hom B (FObj F a) b) →
                 A [ A [ FMap U g o  TMap η a ]  ≈ f ] →
-                B [  (FMap F (A [ FMap U g o TMap η a ] )) ≈ FMap F f ] 
+                B [  (FMap F (A [ FMap U g o TMap η a ] )) ≈ FMap F f ]
          lemma1 a b f g k = IsFunctor.≈-cong (isFunctor F) k
-         uniqueness :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } → { g :  Hom B (FObj F a') b'} → 
+         uniqueness :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } → { g :  Hom B (FObj F a') b'} →
                      A [ A [ FMap U g o  TMap η a' ]  ≈ f ] → B [ solution f  ≈ g ]
          uniqueness {a} {b} {f} {g} k = let open ≈-Reasoning (B) in
-              begin 
-                  solution f 
+              begin
+                  solution f
               ≈⟨⟩
                   TMap ε b o FMap F f
-              ≈⟨ cdr (sym ( lemma1 a b f g k )) ⟩ 
+              ≈⟨ cdr (sym ( lemma1 a b f g k )) ⟩
                   TMap ε b o FMap F ( A [ FMap U g o  TMap η a ] )
-              ≈⟨ cdr (distr F )  ⟩ 
+              ≈⟨ cdr (distr F )  ⟩
                   TMap ε b o ( FMap F ( FMap U g)  o FMap F ( TMap η a ) )
-              ≈⟨ assoc  ⟩ 
-                  ( TMap ε b o  FMap F ( FMap U g) ) o FMap F ( TMap η a ) 
-              ≈⟨ sym ( car ( nat ε ))  ⟩ 
-                  ( g o TMap ε ( FObj F a) )  o FMap F ( TMap η a ) 
-              ≈⟨ sym assoc ⟩ 
+              ≈⟨ assoc  ⟩
+                  ( TMap ε b o  FMap F ( FMap U g) ) o FMap F ( TMap η a )
+              ≈⟨ sym ( car ( nat ε ))  ⟩
+                  ( g o TMap ε ( FObj F a) )  o FMap F ( TMap η a )
+              ≈⟨ sym assoc ⟩
                   g o ( TMap ε ( FObj F a)   o FMap F ( TMap η a ) )
-              ≈⟨ cdr ( IsAdjunction.adjoint2 ( isAdjunction adj )) ⟩ 
+              ≈⟨ cdr ( IsAdjunction.adjoint2 ( isAdjunction adj )) ⟩
                   g o id (FObj F a)
-              ≈⟨ idR ⟩ 
+              ≈⟨ idR ⟩
                   g

 
@@ -104,13 +104,13 @@
               isFunctor = myIsFunctor
        } where
     myFMap : {a b : Obj A} → Hom A a b → Hom B (F a) (F b)
-    myFMap f = (_* um)  (A [  η (Category.cod A f )   o f ]) 
+    myFMap f = (_* um)  (A [  η (Category.cod A f )   o f ])
     lemma-id1 :  {a : Obj A} →  A [ A [ FMap U (id1 B (F a))  o  η a ]  ≈ (A [ (η a) o (id1 A a) ]) ]
     lemma-id1 {a} = let open ≈-Reasoning (A) in
        begin
-           FMap U (id1 B (F a))  o  η a 
+           FMap U (id1 B (F a))  o  η a
        ≈⟨ ( car ( IsFunctor.identity ( isFunctor U )))  ⟩
-           id (FObj U ( F a )) o  η a 
+           id (FObj U ( F a )) o  η a
        ≈⟨ idL  ⟩
            η a
        ≈⟨ sym idR  ⟩
@@ -118,27 +118,27 @@

     lemma-id :  {a : Obj A} →  B [ ( (_* um) (A [ (η a) o (id1 A a)] )) ≈ (id1 B (F a)) ]
     lemma-id {a} =   ( IsUniversalMapping.uniquness ( isUniversalMapping um ) ) lemma-id1
-    lemma-cong2 : (a b : Obj A) (f g : Hom A a b) → A [ f ≈ g ] → 
+    lemma-cong2 : (a b : Obj A) (f g : Hom A a b) → A [ f ≈ g ] →
                 A [ A [ FMap U ((_* um) (A [ η b  o  g ]) ) o  η a ] ≈  A [ η b  o  f ] ]
     lemma-cong2 a b f g eq =  let open ≈-Reasoning (A) in
        begin
-          ( FMap U ((_* um) (A [ η b  o  g ]) )) o  η a 
+          ( FMap U ((_* um) (A [ η b  o  g ]) )) o  η a
        ≈⟨  ( IsUniversalMapping.universalMapping ( isUniversalMapping um ))  ⟩
-          η b  o  g 
+          η b  o  g
        ≈⟨ ( IsCategory.o-resp-≈ ( Category.isCategory A ) (sym eq) (refl-hom)  ) ⟩
-          η b  o  f 
+          η b  o  f

     lemma-cong1 : (a b : Obj A) (f g : Hom A a b) → A [ f ≈ g ] → B [ (_* um) (A [ η b  o  f ] ) ≈  (_* um) (A [ η b  o  g ]) ]
     lemma-cong1 a b f g eq = ( IsUniversalMapping.uniquness ( isUniversalMapping um ) ) ( lemma-cong2 a b f g eq )
     lemma-cong :  {a b : Obj A} {f g : Hom A a b} → A [ f ≈ g ] → B [ myFMap f ≈ myFMap g ]
     lemma-cong {a} {b} {f} {g} eq = lemma-cong1 a b f g eq
-    lemma-distr2 :  (a b c : Obj A) (f : Hom A a b) (g : Hom A b c) → 
+    lemma-distr2 :  (a b c : Obj A) (f : Hom A a b) (g : Hom A b c) →
             A [ A [ FMap U (B [(_* um) (A [ η c o g ]) o (_* um)( A [ η b  o f ]) ])  o  η a ] ≈ (A [ η c o A [ g o f ] ]) ]
     lemma-distr2 a b c f g = let open ≈-Reasoning (A) in
        begin
-           ( FMap U (B [(_* um) (A [ η c o g ]) o (_* um)( A [ η b  o f ]) ] ) )  o  η a 
+           ( FMap U (B [(_* um) (A [ η c o g ]) o (_* um)( A [ η b  o f ]) ] ) )  o  η a
        ≈⟨ car (distr U )  ⟩
-           (( FMap U ((_* um) (A [ η c o g ])) o ( FMap U ((_* um)( A [ η b  o f ])))) )   o  η a 
+           (( FMap U ((_* um) (A [ η c o g ])) o ( FMap U ((_* um)( A [ η b  o f ])))) )   o  η a
        ≈⟨ sym assoc ⟩
            ( FMap U ((_* um) (A [ η c o g ])) o (( FMap U ((_* um)( A [ η b  o f ]))))   o  η a )
        ≈⟨ cdr ( IsUniversalMapping.universalMapping ( isUniversalMapping um ))  ⟩
@@ -150,11 +150,11 @@
        ≈⟨ sym assoc  ⟩
             η c o ( g o f )

-    lemma-distr1 :  (a b c : Obj A) (f : Hom A a b) (g : Hom A b c) → 
+    lemma-distr1 :  (a b c : Obj A) (f : Hom A a b) (g : Hom A b c) →
             B [ (_* um) (A [ η c o A [ g o f ] ]) ≈ (B [(_* um) (A [ η c o g ]) o (_* um)( A [ η b  o f ]) ] )]
     lemma-distr1 a b c f g =  ( IsUniversalMapping.uniquness ( isUniversalMapping um )) (lemma-distr2 a b c f g )
     lemma-distr :  {a b c : Obj A} {f : Hom A a b} {g : Hom A b c} → B [ myFMap (A [ g o f ]) ≈ (B [ myFMap g o myFMap f ] )]
-    lemma-distr {a} {b} {c} {f} {g} = lemma-distr1 a b c f g 
+    lemma-distr {a} {b} {c} {f} {g} = lemma-distr1 a b c f g
     myIsFunctor : IsFunctor A B F myFMap
     myIsFunctor =
       record { ≈-cong   = lemma-cong
@@ -165,11 +165,11 @@
 --
 -- naturality of η
 --
-nat-η : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ') 
+nat-η : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  { U : Functor B A }
                  { F : Obj A → Obj B }
                  { η : (a : Obj A) → Hom A a ( FObj U (F a) ) } →
-       (um : UniversalMapping A B U F η )  → 
+       (um : UniversalMapping A B U F η )  →
            NTrans  A A identityFunctor ( U ○ FunctorF A B um )
 nat-η A B {U} {F} {η} um = record {
              TMap = η ; isNTrans = myIsNTrans
@@ -180,21 +180,21 @@
       → A [ A [ (FMap U (FMap F' f))  o  ( η a ) ]  ≈ A [ (η b ) o f ] ]
     commute {a} {b} {f} =   let open ≈-Reasoning (A) in
        begin
-            (FMap U (FMap F' f))  o  ( η a ) 
+            (FMap U (FMap F' f))  o  ( η a )
        ≈⟨⟩
-            (FMap U ((_* um)  (A [  η b  o f ])))   o  ( η a ) 
+            (FMap U ((_* um)  (A [  η b  o f ])))   o  ( η a )
        ≈⟨ (IsUniversalMapping.universalMapping ( isUniversalMapping um ))  ⟩
-            (η b ) o f 
+            (η b ) o f

     myIsNTrans : IsNTrans A A identityFunctor ( U ○  F' ) η
     myIsNTrans = record { commute = commute }
 
-nat-ε : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ') 
+nat-ε : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  { U : Functor B A }
                  { F : Obj A → Obj B }
                  { η : (a : Obj A) → Hom A a ( FObj U (F a) ) } →
-       (um : UniversalMapping A B U F η )  → 
-           NTrans B B ( FunctorF A B um ○ U) identityFunctor 
+       (um : UniversalMapping A B U F η )  →
+           NTrans B B ( FunctorF A B um ○ U) identityFunctor
 nat-ε A B {U} {F} {η} um = record {
              TMap = ε ; isNTrans = myIsNTrans
        } where
@@ -202,34 +202,34 @@
     F' = FunctorF A B um
     ε : ( b : Obj B ) → Hom B ( FObj F' ( FObj U b) ) b
     ε b = (_* um) ( id1 A (FObj U b))
-    lemma-nat1 :  (a b : Obj B) (f : Hom B a b ) → 
+    lemma-nat1 :  (a b : Obj B) (f : Hom B a b ) →
              A [ A [ FMap U ( B [ (um *) (id1 A (FObj U b)) o ((um *) (A [ η (FObj U b) o FMap U f ])) ] )  o η (FObj U a) ]
                  ≈ A [ FMap U f o id1 A (FObj U a) ] ]
     lemma-nat1 a b f = let open ≈-Reasoning (A) in
-       begin 
-          FMap U ( B [ (um *) (id1 A (FObj U b)) o ((um *) ( η (FObj U b) o FMap U f )) ] )  o η (FObj U a) 
+       begin
+          FMap U ( B [ (um *) (id1 A (FObj U b)) o ((um *) ( η (FObj U b) o FMap U f )) ] )  o η (FObj U a)
        ≈⟨ car ( distr U  ) ⟩
-          ( FMap U  ((um *) (id1 A (FObj U b))) o FMap U ((um *) ( η (FObj U b) o FMap U f )) )  o η (FObj U a) 
+          ( FMap U  ((um *) (id1 A (FObj U b))) o FMap U ((um *) ( η (FObj U b) o FMap U f )) )  o η (FObj U a)
        ≈⟨ sym assoc  ⟩
-           FMap U  ((um *) (id1 A (FObj U b))) o ( FMap U ((um *) ( η (FObj U b) o FMap U f )))  o η (FObj U a) 
+           FMap U  ((um *) (id1 A (FObj U b))) o ( FMap U ((um *) ( η (FObj U b) o FMap U f )))  o η (FObj U a)
        ≈⟨ cdr ((IsUniversalMapping.universalMapping ( isUniversalMapping um )) )  ⟩
            FMap U  ((um *) (id1 A (FObj U b))) o ( η (FObj U b) o FMap U f )
        ≈⟨ assoc  ⟩
-           (FMap U  ((um *) (id1 A (FObj U b))) o  η (FObj U b)) o FMap U f 
+           (FMap U  ((um *) (id1 A (FObj U b))) o  η (FObj U b)) o FMap U f
        ≈⟨ car ((IsUniversalMapping.universalMapping ( isUniversalMapping um )) ) ⟩
-           id1 A (FObj U b) o FMap U f 
+           id1 A (FObj U b) o FMap U f
        ≈⟨ idL ⟩
-            FMap U f 
+            FMap U f
        ≈⟨ sym idR ⟩
-          FMap U f o id (FObj U a) 
+          FMap U f o id (FObj U a)

     lemma-nat2 : (a b : Obj B) (f : Hom B a b ) → A [ A [ FMap U ( B [ f o ((um *) (id1 A (FObj U a ))) ] ) o η (FObj U a) ]
                                                         ≈ A [ FMap U f o id1 A (FObj U a) ] ]
     lemma-nat2 a b f = let open ≈-Reasoning (A) in
        begin
-          FMap U ( B [ f o ((um *) (id1 A (FObj U a ))) ])  o η (FObj U a) 
+          FMap U ( B [ f o ((um *) (id1 A (FObj U a ))) ])  o η (FObj U a)
        ≈⟨ car ( distr U  ) ⟩
-          (FMap U f o FMap U ((um *) (id1 A (FObj U a ))))  o η (FObj U a) 
+          (FMap U f o FMap U ((um *) (id1 A (FObj U a ))))  o η (FObj U a)
        ≈⟨ sym assoc  ⟩
           FMap U f o ( FMap U ((um *) (id1 A (FObj U a )))  o η (FObj U a)  )
        ≈⟨ cdr ( IsUniversalMapping.universalMapping ( isUniversalMapping um)) ⟩
@@ -260,23 +260,23 @@
 --
 -----
 
-UMAdjunction : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ') 
+UMAdjunction : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  ( U : Functor B A )
                  ( F' : Obj A → Obj B )
                  ( η' : (a : Obj A) → Hom A a ( FObj U (F' a) ) ) →
-       (um : UniversalMapping A B U F' η' )  → 
+       (um : UniversalMapping A B U F' η' )  →
               Adjunction A B U (FunctorF A B um) (nat-η A B um) (nat-ε A B  um)
 UMAdjunction A B U F' η' um = record {
            isAdjunction = record {
-               adjoint1 = adjoint1 ; 
+               adjoint1 = adjoint1 ;
                adjoint2 = adjoint2
-           } 
+           }
        } where
           F : Functor A B
           F = FunctorF A B um
-          η : NTrans A A identityFunctor ( U ○  F ) 
+          η : NTrans A A identityFunctor ( U ○  F )
           η = nat-η A B um
-          ε : NTrans B B  ( F ○  U ) identityFunctor 
+          ε : NTrans B B  ( F ○  U ) identityFunctor
           ε = nat-ε A B um
           adjoint1 :   { b : Obj B } →
                      A [ A [ ( FMap U ( TMap ε b ))  o ( TMap η ( FObj U b )) ]  ≈ id1 A (FObj U b) ]
@@ -286,16 +286,16 @@
              ≈⟨⟩
                FMap U ((_* um) ( id1 A (FObj U b)))  o  η' ( FObj U b )
              ≈⟨ IsUniversalMapping.universalMapping ( isUniversalMapping um )  ⟩
-               id (FObj U b) 
+               id (FObj U b)

-          lemma-adj1 : (a : Obj A) → 
-             A [ A [ FMap U ((B [((_* um) ( id1 A (FObj U ( FObj F a )))) o (_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]) ])) o η' a ] 
+          lemma-adj1 : (a : Obj A) →
+             A [ A [ FMap U ((B [((_* um) ( id1 A (FObj U ( FObj F a )))) o (_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]) ])) o η' a ]
                ≈ (η' a) ]
           lemma-adj1 a =  let open ≈-Reasoning (A) in
              begin
-               FMap U ((B [((_* um) ( id1 A (FObj U ( FObj F a )))) o (_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]) ])) o η' a 
+               FMap U ((B [((_* um) ( id1 A (FObj U ( FObj F a )))) o (_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]) ])) o η' a
              ≈⟨ car (distr U)  ⟩
-               (FMap U ((_* um) ( id1 A (FObj U ( FObj F a)))) o FMap U ((_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]))) o η' a 
+               (FMap U ((_* um) ( id1 A (FObj U ( FObj F a)))) o FMap U ((_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ]))) o η' a
              ≈⟨ sym assoc ⟩
                FMap U ((_* um) ( id1 A (FObj U ( FObj F a)))) o ( FMap U ((_* um) (A [  η' (FObj U ( FObj F a )) o ( η' a ) ])) o η' a )
              ≈⟨ cdr (IsUniversalMapping.universalMapping ( isUniversalMapping um)) ⟩
@@ -310,11 +310,11 @@
           lemma-adj2 : (a : Obj A) → A [ A [ FMap U (id1 B (FObj F a)) o η' a ] ≈  η' a ]
           lemma-adj2 a = let open ≈-Reasoning (A) in
              begin
-               FMap U (id1 B (FObj F a)) o η' a 
+               FMap U (id1 B (FObj F a)) o η' a
              ≈⟨  car ( IsFunctor.identity ( isFunctor U))  ⟩
-               id (FObj U (FObj F a)) o η' a 
+               id (FObj U (FObj F a)) o η' a
              ≈⟨ idL ⟩
-               η' a 
+               η' a

           adjoint2 :   {a : Obj A} →
                      B [ B [ ( TMap ε ( FObj F a ))  o ( FMap F ( TMap η a )) ]  ≈ id1 B (FObj F a) ]
@@ -332,10 +332,82 @@
 
 ------
 --
+--  Hom Set Adjunction
+--
 --   Hom(F(-),-) = Hom(-,U(-))
 --       Unity of opposite
 -----
 
+--  Assuming 
+--     naturality of left (Φ)
+--     f' = k* f   k*: Hom A F(a) k,
+--                        left                                               left
+--    f : Hom A F(a)   b --------> f* : Hom B a U(b)      f : Hom A F(a')b --------> f* : Hom B a' U(b)
+--       |                               |                     |                               |
+--       |k*                             |U(k*)                |F(h*)                          |h*
+--       v                               v                     v                               v
+--    f': Hom A F(a)   b'--------> f* : Hom B a U(b')     f': Hom A F(a)  b --------> f* : Hom B a U(b)
+--                        left
+
+record UnityOfOppsite  {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
+                         ( U : Functor B A )
+                         ( F : Functor A B )
+                         : Set (suc (c₁ ⊔ c₂ ⊔ ℓ ⊔ c₁' ⊔ c₂' ⊔ ℓ' )) where
+           field
+               right  : {a : Obj A} { b : Obj B } → Hom A a ( FObj U b ) → Hom B (FObj F a) b
+               left   : {a : Obj A} { b : Obj B } → Hom B (FObj F a) b   → Hom A a ( FObj U b )
+               right-injective : {a : Obj A} { b : Obj B } → {f : Hom A a (FObj U b) }  → A [ left ( right f ) ≈ f ]
+               left-injective  : {a : Obj A} { b : Obj B } → {f : Hom B (FObj F a) b }  → B [ right ( left f ) ≈ f ]
+               ---  naturality of Φ
+               left-commute1 : {a : Obj A} {b b' : Obj B } ->
+                       { f : Hom B (FObj F a) b }  -> { k : Hom B b b' } ->
+                        A [  left ( B [ k o  f ] )  ≈ A [ FMap U k o left f  ] ]
+               left-commute2 : {a a' : Obj A} {b : Obj B } ->
+                       { f : Hom B (FObj F a) b }  -> { h : Hom A a' a } ->
+                        A [ left ( B [ f  o  FMap F h ] )  ≈  A [ left f o h ] ]
+               r-cong : {a : Obj A} { b : Obj B } → { f g : Hom A a ( FObj U b ) } →  A [ f  ≈ g ] → B [ right f ≈ right g ]
+               l-cong : {a : Obj A} { b : Obj B } → { f g : Hom B (FObj F a) b }   →  B [ f  ≈ g ] → A [ left f ≈ left g   ]
+           --  naturality of right (Φ-1)
+           right-commute1 : {a : Obj A} {b b' : Obj B } ->
+                       { g : Hom A a (FObj U b)}  -> { k : Hom B b b' } ->
+                        B [ B [ k o  right g ]   ≈ right ( A [ FMap U k o g  ] ) ]
+           right-commute1 {a} {b} {b'} {g} {k} =  let open ≈-Reasoning (B) in
+                     begin
+                          k o  right g
+                     ≈⟨ sym left-injective ⟩
+                          right ( left ( k o  right g ) )
+                     ≈⟨ r-cong left-commute1 ⟩
+                          right ( A [ FMap U k o left ( right g ) ] )
+                     ≈⟨ r-cong (lemma-1 g k) ⟩
+                         right ( A [ FMap U k o g  ] )
+                     ∎ where
+                             lemma-1 : {a : Obj A} {b b' : Obj B } ->
+                               ( g : Hom A a (FObj U b))  -> ( k : Hom B b b' ) ->
+                                A [ A [ FMap U k o left ( right g ) ]   ≈  A [ FMap U k o g  ] ]
+                             lemma-1 g k = let open ≈-Reasoning (A) in
+                                   begin
+                                        FMap U k o left ( right g )
+                                   ≈⟨ cdr ( right-injective) ⟩
+                                        FMap U k o g
+                                   ∎
+           right-commute2 : {a a' : Obj A} {b : Obj B } ->
+                       { g : Hom A a (FObj U b) }  -> { h : Hom A a' a } ->
+                        B [ B [ right g  o  FMap F h ]   ≈  right ( A [ g o h ] ) ]
+           right-commute2 {a} {a'} {b} {g} {h} =  let open ≈-Reasoning (B) in
+                     begin
+                          right g  o  FMap F h
+                     ≈⟨  sym left-injective ⟩
+                          right ( left ( right g  o  FMap F h  ))
+                     ≈⟨ r-cong  left-commute2  ⟩
+                          right ( A [ left ( right g ) o h ] )
+                     ≈⟨ r-cong ( lemma-2 g h  ) ⟩
+                          right ( A [ g o h ] )
+                     ∎  where
+                           lemma-2 :  {a a' : Obj A} {b : Obj B } ->
+                               ( g : Hom A a (FObj U b))  -> ( h : Hom A a' a ) ->
+                                A [ A [  left ( right g ) o h ]   ≈  A [ g o h  ] ]
+                           lemma-2 g h  = let open ≈-Reasoning (A) in car ( right-injective  )
+
 Adj2UO : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  { U : Functor B A }
                  { F : Functor A B }
@@ -344,30 +416,30 @@
                  ( adj : Adjunction A B U F η ε )  → UnityOfOppsite A B U F
 Adj2UO A B {U} {F} {η} {ε} adj = record {
             right =  right ;
-            left  =  left ; 
+            left  =  left ;
             right-injective =  right-injective  ;
             left-injective = left-injective  ;
             left-commute1 = left-commute1 ;
             left-commute2 = left-commute2 ;
             r-cong = r-cong ;
-            l-cong = l-cong 
+            l-cong = l-cong
       } where
             right  : {a : Obj A} { b : Obj B } → Hom A a ( FObj U b ) → Hom B (FObj F a) b
-            right {a} {b} f = B [ TMap ε b o FMap F f ] 
+            right {a} {b} f = B [ TMap ε b o FMap F f ]
             left   : {a : Obj A} { b : Obj B } → Hom B (FObj F a) b   → Hom A a ( FObj U b )
             left  {a} {b} f = A [ FMap U f o (TMap η a)  ]
             right-injective : {a : Obj A} { b : Obj B } → {f : Hom A a (FObj U b) }  → A [ left ( right f ) ≈ f ]
             right-injective {a} {b} {f} =  let open ≈-Reasoning (A) in
                      begin
-                         FMap U (B [ TMap ε b o FMap F f ]) o (TMap η a)  
+                         FMap U (B [ TMap ε b o FMap F f ]) o (TMap η a)
                      ≈⟨ car ( distr U ) ⟩
-                         ( FMap U (TMap ε b) o FMap U (FMap F f )) o (TMap η a)  
+                         ( FMap U (TMap ε b) o FMap U (FMap F f )) o (TMap η a)
                      ≈↑⟨ assoc  ⟩
                          FMap U (TMap ε b) o ( FMap U (FMap F f ) o (TMap η a) )
                      ≈⟨ cdr ( nat η)  ⟩
-                         FMap U (TMap ε b) o ((TMap η (FObj U b))  o f ) 
+                         FMap U (TMap ε b) o ((TMap η (FObj U b))  o f )
                      ≈⟨ assoc  ⟩
-                         (FMap U (TMap ε b) o (TMap η (FObj U b)))  o f  
+                         (FMap U (TMap ε b) o (TMap η (FObj U b)))  o f
                      ≈⟨  car  ( IsAdjunction.adjoint1 ( isAdjunction adj )) ⟩
                         id1 A (FObj U b) o f
                      ≈⟨ idL  ⟩
@@ -376,7 +448,7 @@
             left-injective  : {a : Obj A} { b : Obj B } → {f : Hom B (FObj F a) b }  → B [ right ( left f ) ≈ f ]
             left-injective {a} {b} {f} =  let open ≈-Reasoning (B) in
                      begin
-                         TMap ε b o FMap F ( A [ FMap U f o (TMap η a)  ]) 
+                         TMap ε b o FMap F ( A [ FMap U f o (TMap η a)  ])
                      ≈⟨ cdr ( distr F ) ⟩
                          TMap ε b o ( FMap F (FMap U f) o FMap F (TMap η a))
                      ≈⟨ assoc  ⟩
@@ -386,18 +458,45 @@
                      ≈↑⟨ assoc  ⟩
                           f  o ( TMap ε ( FObj F a ) o ( FMap F ( TMap η a )))
                      ≈⟨  cdr  ( IsAdjunction.adjoint2 ( isAdjunction adj )) ⟩
-                        f o id1 B (FObj F a) 
+                        f o id1 B (FObj F a)
                      ≈⟨ idR  ⟩
                         f

             left-commute1 : {a : Obj A} {b b' : Obj B } ->
-                       ( f : Hom B (FObj F a) b )  -> ( k : Hom B b b' ) ->
+                       { f : Hom B (FObj F a) b }  -> { k : Hom B b b' } ->
                         A [  left ( B [ k o  f ] )  ≈ A [ FMap U k o left f  ] ]
-            left-commute1 = {!!}
+            left-commute1 {a} {b} {b'} {f} {k} = let open ≈-Reasoning (A) in
+                     begin
+                         left ( B [ k o  f ] )
+                     ≈⟨⟩
+                         FMap U  ( B [ k o  f ] ) o (TMap η a) 
+                     ≈⟨ car (distr U) ⟩
+                         ( FMap U k o  FMap U f ) o (TMap η a) 
+                     ≈↑⟨ assoc ⟩
+                         FMap U k o  ( FMap U f o (TMap η a) )
+                     ≈⟨⟩
+                         FMap U k o left f  
+                     ∎
             left-commute2 : {a a' : Obj A} {b : Obj B } ->
-                       ( f : Hom B (FObj F a) b )  -> ( h : Hom A a' a ) ->
+                       { f : Hom B (FObj F a) b }  -> { h : Hom A a' a}  ->
                         A [ left ( B [ f  o  FMap F h ] )  ≈  A [ left f o h ] ]
-            left-commute2 = {!!}
+            left-commute2 {a'} {a} {b} {f} {h} = let open ≈-Reasoning (A) in
+                     begin
+                         left ( B [ f  o  FMap F h ] )
+                     ≈⟨⟩
+                         FMap U (  B [ f  o  FMap F h ] )  o TMap η a
+                     ≈⟨ car (distr U ) ⟩
+                         (FMap U f  o  FMap U (FMap F h )) o TMap η a
+                     ≈↑⟨ assoc ⟩
+                         FMap U f o  ( FMap U (FMap F h ) o TMap η a )
+                     ≈⟨ cdr ( nat η) ⟩
+                         FMap U f o (TMap η a' o h )
+                     ≈⟨ assoc ⟩
+                         ( FMap U f  o TMap η a') o h
+                     ≈⟨⟩
+                         left f o h 
+                     ∎
+
             r-cong : {a : Obj A} { b : Obj B } → { f g : Hom A a ( FObj U b ) } →  A [ f  ≈ g ] → B [ right f ≈ right g ]
             r-cong eq = let open ≈-Reasoning (B) in ( cdr ( fcong F  eq ) )
             l-cong : {a : Obj A} { b : Obj B } → { f g : Hom B (FObj F a) b }   →  B [ f  ≈ g ] → A [ left f ≈ left g   ]
@@ -409,27 +508,27 @@
 --   f                            : a -----------> U(b)
 --   1_F(a)                       :F(a) ---------> F(a)
 --   ε(b) = right uo (1_F(a))     :UF(b)---------> a
---   η(a) = left  uo (1_U(a))     : a -----------> FU(a)  
+--   η(a) = left  uo (1_U(a))     : a -----------> FU(a)
 
 
-uo-η-map  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} {A : Category c₁ c₂ ℓ} {B : Category c₁' c₂' ℓ'} 
-                 { U : Functor B A }
-                 { F : Functor A B } → 
+uo-η-map  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
+                 ( U : Functor B A )
+                 ( F : Functor A B ) →
                  ( uo : UnityOfOppsite A B U F)  →  (a : Obj A )  → Hom A a (FObj U ( FObj F a ))
-uo-η-map {_} {_} {_} {_} {_} {_} {A} {B} {U} {F} uo a =  left uo ( id1 B (FObj F a) )
+uo-η-map A B U F uo a =  left uo ( id1 B (FObj F a) )
 
-uo-ε-map  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} {A : Category c₁ c₂ ℓ} {B : Category c₁' c₂' ℓ'} 
-                 { U : Functor B A }
-                 { F : Functor A B } → 
+uo-ε-map  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
+                 ( U : Functor B A )
+                 ( F : Functor A B ) →
                  ( uo : UnityOfOppsite A B U F)  →  (b : Obj B )  → Hom B (FObj F ( FObj U ( b ) )) b
-uo-ε-map {_} {_} {_} {_} {_} {_} {A} {B} {U} {F} uo b =  right uo ( id1 A (FObj U b) )
+uo-ε-map A B U F uo b =  right uo ( id1 A (FObj U b) )
 
 uo-solution  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  ( U : Functor B A )
-                 ( F : Functor A B ) → 
-                 ( uo : UnityOfOppsite A B U F)  →  {a : Obj A} {b : Obj B } -> 
+                 ( F : Functor A B ) →
+                 ( uo : UnityOfOppsite A B U F)  →  {a : Obj A} {b : Obj B } ->
                        ( f : Hom A a (FObj U b )) -> Hom B (FObj F a) b
-uo-solution A B U F uo {a} {b} f =  --  B  [ right uo (id1 A (FObj U b)) o FMap F f ] 
+uo-solution A B U F uo {a} {b} f =  --  B  [ right uo (id1 A (FObj U b)) o FMap F f ]
                                      right uo f
 
 --     F(ε(b)) o η(F(b))
@@ -437,8 +536,8 @@
 
 UO2UM  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  ( U : Functor B A )
-                 ( F : Functor A B ) → 
-                 ( uo : UnityOfOppsite A B U F)  → UniversalMapping A B U (FObj F) ( uo-η-map uo  )
+                 ( F : Functor A B ) →
+                 ( uo : UnityOfOppsite A B U F)  → UniversalMapping A B U (FObj F) ( uo-η-map A B U F uo  )
 UO2UM  A B U F uo = record {
          _* = uo-solution A B U F uo  ;
          isUniversalMapping = record {
@@ -447,13 +546,13 @@
               }
       } where
          universalMapping :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } →
-                     A [ A [ FMap U ( uo-solution A B U F uo f) o ( uo-η-map uo  ) a' ]  ≈ f ]
+                     A [ A [ FMap U ( uo-solution A B U F uo f) o ( uo-η-map A B U F uo  ) a' ]  ≈ f ]
          universalMapping {a} {b} {f}  = let open ≈-Reasoning (A) in
                begin
-                    FMap U ( uo-solution A B U F uo f) o ( uo-η-map uo  ) a
+                    FMap U ( uo-solution A B U F uo f) o ( uo-η-map A B U F uo  ) a
                ≈⟨⟩
                     FMap U ( right uo  f) o left uo ( id1 B (FObj F a)  )
-               ≈↑⟨  left-commute1 uo ( id1 B (FObj F a)) ( right uo  f)  ⟩
+               ≈↑⟨  left-commute1 uo   ⟩
                     left uo ( B [  right uo  f o  id1 B (FObj F a) ] )
                ≈⟨ l-cong uo lemma-1  ⟩
                     left uo ( right uo f )
@@ -463,7 +562,7 @@
                   lemma-1 :  B [ B [  right uo f o  id1 B (FObj F a) ] ≈ right uo f ]
                   lemma-1 = let open ≈-Reasoning (B) in idR
          uniqueness :   {a' : Obj A} { b' : Obj B } → { f : Hom A a' (FObj U b') } → { g :  Hom B (FObj F a') b'} →
-                     A [ A [ FMap U g o  ( uo-η-map uo  ) a' ]  ≈ f ] → B [ uo-solution A B U F uo f  ≈ g ]
+                     A [ A [ FMap U g o  ( uo-η-map A B U F uo  ) a' ]  ≈ f ] → B [ uo-solution A B U F uo f  ≈ g ]
          uniqueness {a} {b} {f} {g} eq = let open ≈-Reasoning (B) in
                begin
                     uo-solution A B U F uo f
@@ -471,44 +570,113 @@
                     right uo  f
                ≈↑⟨ r-cong uo eq ⟩
                     right uo  ( A [  FMap U g o  left uo ( id1 B (FObj F a) ) ] )
-               ≈↑⟨ r-cong uo ( left-commute1 uo ( id1 B (FObj F a) ) g ) ⟩
+               ≈↑⟨ r-cong uo ( left-commute1 uo  ) ⟩
                     right uo ( left uo ( g  o ( id1 B (FObj F a) ) ) )
                ≈⟨ left-injective uo  ⟩
                     g  o ( id1 B (FObj F a) )
                ≈⟨ idR ⟩
                     g
-               ∎ 
+               ∎
 
-uo-ε  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} {A : Category c₁ c₂ ℓ} {B : Category c₁' c₂' ℓ'}
-                 { U : Functor B A }
-                 { F : Functor A B }→  
-                 ( uo : UnityOfOppsite A B U F)  → NTrans B B  ( F ○  U ) identityFunctor  
-uo-ε = {!!}
+uo-η  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
+                 ( U : Functor B A )
+                 ( F : Functor A B ) →
+                 ( uo : UnityOfOppsite A B U F)  → NTrans A A identityFunctor ( U ○  F )
+uo-η A B U F uo = record {
+             TMap = uo-η-map A B U F uo  ; isNTrans = myIsNTrans
+       } where
+    η = uo-η-map A B U F uo
+    commute :  {a b : Obj A} {f : Hom A a b}
+      → A [ A [ (FMap U (FMap F f))  o  ( η a ) ]  ≈ A [ (η b ) o f ] ]
+    commute {a} {b} {f} =   let open ≈-Reasoning (A) in
+       begin
+            (FMap U (FMap F f))  o  (left uo ( id1 B (FObj F a) ) )
+       ≈↑⟨ left-commute1 uo  ⟩
+            left uo ( B [ (FMap F f)  o  ( id1 B (FObj F a) ) ] )
+       ≈⟨ l-cong uo (IsCategory.identityR (Category.isCategory B))  ⟩
+            left uo ( FMap F f )
+       ≈↑⟨ l-cong uo (IsCategory.identityL (Category.isCategory B))  ⟩
+            left uo ( B [  ( id1 B (FObj F b ))  o  FMap F f ] )
+       ≈⟨ left-commute2 uo   ⟩
+            (left uo ( id1 B (FObj F b) )  ) o f
+       ≈⟨⟩
+            (η b ) o f
+       ∎ where
+          lemma-1 : B [ B [ (FMap F f)  o  ( id1 B (FObj F a) ) ]  ≈  FMap F f ]
+          lemma-1 = IsCategory.identityR (Category.isCategory B)
+    myIsNTrans : IsNTrans A A identityFunctor ( U ○  F ) η
+    myIsNTrans = record { commute = commute }
 
-uo-η  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} {A : Category c₁ c₂ ℓ} {B : Category c₁' c₂' ℓ'}
-                 { U : Functor B A }
-                 { F : Functor A B }→  
-                 ( uo : UnityOfOppsite A B U F)  → NTrans A A identityFunctor ( U ○  F )
-uo-η  = {!!}
+uo-ε  : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
+                 ( U : Functor B A )
+                 ( F : Functor A B )→
+                 ( uo : UnityOfOppsite A B U F)  → NTrans B B  ( F ○  U ) identityFunctor
+uo-ε A B U F uo = record {
+             TMap = ε ; isNTrans = myIsNTrans
+       } where
+    ε  = uo-ε-map A B U F uo
+    commute : {a b : Obj B} {f : Hom B a b }
+      →  B [ B [ f o (ε a) ] ≈ B [(ε b) o (FMap F (FMap U f)) ] ]
+    commute {a} {b} {f} = let open ≈-Reasoning (B) in
+       sym ( begin
+          ε b o (FMap F (FMap U f))
+       ≈⟨⟩
+         right uo ( id1 A (FObj U b) )  o (FMap F (FMap U f))
+       ≈⟨ right-commute2 uo ⟩
+         right uo ( A [ id1 A (FObj U b)   o FMap U f ] )
+       ≈⟨ r-cong uo (IsCategory.identityL (Category.isCategory A))  ⟩
+         right uo (  FMap U f  )
+       ≈↑⟨ r-cong uo (IsCategory.identityR (Category.isCategory A))  ⟩
+         right uo ( A [ FMap U f  o  id1 A (FObj U a) ] )
+       ≈↑⟨ right-commute1 uo ⟩
+          f o  right uo ( id1 A (FObj U a) )
+       ≈⟨⟩
+          f o  (ε a)
+       ∎  )
+    myIsNTrans : IsNTrans B B ( F ○ U ) identityFunctor ε
+    myIsNTrans = record { commute = commute }
+
 
 UO2Adj : {c₁ c₂ ℓ c₁' c₂' ℓ' : Level} (A : Category c₁ c₂ ℓ) (B : Category c₁' c₂' ℓ')
                  { U : Functor B A }
                  { F : Functor A B }
-                 ( uo : UnityOfOppsite A B U F)  
-                    → Adjunction A B U F ( uo-η uo ) (uo-ε uo )
+                 ( uo : UnityOfOppsite A B U F)
+                    → Adjunction A B U F ( uo-η A B U F uo ) (uo-ε A B U F uo )
 UO2Adj A B {U} {F} uo = record {
            isAdjunction = record {
-               adjoint1 = adjoint1 ; 
+               adjoint1 = adjoint1 ;
                adjoint2 = adjoint2
-           } 
+           }
        } where
-          um = UO2UM A B U F uo 
+          um = UO2UM A B U F uo
           adjoint1 :   { b : Obj B } →
-                     A [ A [ ( FMap U ( TMap (uo-ε uo) b ))  o ( TMap (uo-η uo) ( FObj U b )) ]  ≈ id1 A (FObj U b) ]
-          adjoint1  {b} = {!!}
+                     A [ A [ ( FMap U ( TMap (uo-ε A B U F uo) b ))  o ( TMap (uo-η A B U F uo) ( FObj U b )) ]  ≈ id1 A (FObj U b) ]
+          adjoint1 {b} = let open ≈-Reasoning (A) in
+               begin
+                  ( FMap U ( TMap (uo-ε A B U F uo) b ))  o ( TMap (uo-η A B U F uo) ( FObj U b )) 
+               ≈⟨⟩
+                    FMap U (right uo (id1 A (FObj U b))) o (left uo (id1 B (FObj F (FObj U b))))
+               ≈↑⟨ left-commute1 uo ⟩
+                    left uo ( B [ right uo (id1 A (FObj U b))  o id1 B (FObj F (FObj U b)) ] )
+               ≈⟨ l-cong uo ((IsCategory.identityR (Category.isCategory B))) ⟩
+                    left uo ( right uo (id1 A (FObj U b))  )
+               ≈⟨ right-injective uo ⟩
+                  id1 A (FObj U b)
+               ∎
           adjoint2 :   {a : Obj A} →
-                     B [ B [ ( TMap (uo-ε uo) ( FObj F a ))  o ( FMap F ( TMap (uo-η uo) a )) ]  ≈ id1 B (FObj F a) ]
-          adjoint2 {a} = {!!}
+                     B [ B [ ( TMap (uo-ε A B U F uo) ( FObj F a ))  o ( FMap F ( TMap (uo-η A B U F uo) a )) ]  ≈ id1 B (FObj F a) ]
+          adjoint2 {a} = let open ≈-Reasoning (B) in
+               begin
+                   ( TMap (uo-ε A B U F uo) ( FObj F a ))  o ( FMap F ( TMap (uo-η A B U F uo) a ))
+               ≈⟨⟩
+                   right uo (Category.Category.Id A) o FMap F (left uo (id1 B (FObj F a)))
+               ≈⟨ right-commute2  uo ⟩
+                   right uo ( A [ (Category.Category.Id A)   o (left uo (id1 B (FObj F a))) ] )
+               ≈⟨ r-cong uo ((IsCategory.identityL (Category.isCategory A))) ⟩
+                   right uo ( left uo (id1 B (FObj F a)))
+               ≈⟨  left-injective uo ⟩
+                  id1 B (FObj F a)
+               ∎
 
 
 --  done!