Skip to content

Commit

Permalink
Minor work in Adjunction/Natural/Transformation/Universal.v
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jan 31, 2024
1 parent 5336ee1 commit 3908290
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Adjunction/Natural/Transformation/Universal.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,29 @@ Context {U : C ⟶ D}.

Program Definition Adjunction_from_Transform (A : F ∹ U) : F ⊣ U := {|
adj := fun a b =>
{| to := {| morphism := fun f =>
fmap f ∘ @Transformation.unit _ _ _ _ A a |}
; from := {| morphism := fun f =>
@Transformation.counit _ _ _ _ A b ∘ fmap f |} |}
{| to := {| morphism := fun f =>n fmap f ∘ transform[unit[A]] a |}

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.17)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.17)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.19)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.19)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.16)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.18)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.18)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.16)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.15)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.15)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.14)

The reference n was not found in the current environment.

Check failure on line 21 in Adjunction/Natural/Transformation/Universal.v

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:8.14)

The reference n was not found in the current environment.
; from := {| morphism := fun f => transform[counit[A]] b ∘ fmap f |} |}
|}.
Next Obligation. proper; now rewrites. Qed.
Next Obligation. proper; now rewrites. Qed.
Next Obligation.
rewrite fmap_comp.
rewrite <- comp_assoc.
srewrite (naturality[@Transformation.unit _ _ _ _ A]).
srewrite (naturality[unit[A]]).
rewrite comp_assoc.
srewrite (@Transformation.fmap_counit_unit); cat.
Qed.
Next Obligation.
rewrite fmap_comp.
rewrite comp_assoc.
srewrite_r (naturality[@Transformation.counit _ _ _ _ A]).
srewrite_r (naturality[counit[A]]).
rewrite <- comp_assoc.
srewrite (@Transformation.counit_fmap_unit); cat.
Qed.
Next Obligation.
rewrite fmap_comp.
rewrite <- comp_assoc.
srewrite (naturality[@Transformation.unit _ _ _ _ A]).
srewrite (naturality[unit[A]]).
now rewrite comp_assoc.
Qed.
Next Obligation.
Expand All @@ -56,13 +54,13 @@ Qed.
Next Obligation.
rewrite fmap_comp.
rewrite comp_assoc.
srewrite_r (naturality[@Transformation.counit _ _ _ _ A]).
srewrite_r (naturality[counit[A]]).
now rewrite <- comp_assoc.
Qed.

Program Definition Adjunction_to_Transform {A : F ⊣ U} : F ∹ U := {|
Transformation.unit := {| transform := fun a => @unit _ _ _ _ A a |};
Transformation.counit := {| transform := fun b => @counit _ _ _ _ A b |}
Transformation.unit := {| transform := fun _ => unit |};
Transformation.counit := {| transform := fun _ => counit |}
|}.
Next Obligation.
unfold unit.
Expand Down

0 comments on commit 3908290

Please sign in to comment.