Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jan 30, 2024
1 parent a67a044 commit 48ea563
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions Adjunction/Natural/Transformation/Universal.v
Original file line number Diff line number Diff line change
Expand Up @@ -23,45 +23,41 @@ Program Definition Adjunction_from_Transform (A : F ∹ U) : F ⊣ U := {|
; from := {| morphism := fun f =>
@Transformation.counit _ _ _ _ A b ∘ fmap f |} |}
|}.
Next Obligation. proper; rewrites; reflexivity. Qed.
Next Obligation. proper; rewrites; reflexivity. Qed.
Next Obligation. proper; now rewrites. Qed.
Next Obligation. proper; now rewrites. Qed.
Next Obligation.
rewrite fmap_comp.
rewrite <- comp_assoc.
srewrite (naturality[Transformation.unit]).
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]).
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]).
rewrite comp_assoc.
reflexivity.
srewrite (naturality[unit[A]]).
now rewrite comp_assoc.
Qed.
Next Obligation.
rewrite fmap_comp.
rewrite comp_assoc.
reflexivity.
now rewrite comp_assoc.
Qed.
Next Obligation.
rewrite fmap_comp.
rewrite comp_assoc.
reflexivity.
now rewrite comp_assoc.
Qed.
Next Obligation.
rewrite fmap_comp.
rewrite comp_assoc.
srewrite_r (naturality[Transformation.counit]).
rewrite <- comp_assoc.
reflexivity.
srewrite_r (naturality[counit[A]]).
now rewrite <- comp_assoc.
Qed.

Program Definition Adjunction_to_Transform {A : F ⊣ U} : F ∹ U := {|
Expand Down

0 comments on commit 48ea563

Please sign in to comment.