Skip to content

Commit

Permalink
Be more explicit in Hom.v
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Jan 31, 2024
1 parent 4482ec2 commit 284c4bd
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions Adjunction/Hom.v
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ Qed.
Next Obligation.
simpl.
rewrite <- !comp_assoc.
srewrite_r (naturality[unit]).
srewrite_r (@naturality _ _ _ _ unit _ _ h).
rewrite !comp_assoc.
rewrite <- !fmap_comp.
reflexivity.
Qed.
Next Obligation.
simpl.
rewrite <- !comp_assoc.
srewrite_r (naturality[unit]).
srewrite_r (@naturality _ _ _ _ unit _ _ h).
rewrite !comp_assoc.
rewrite <- !fmap_comp.
reflexivity.
Expand All @@ -169,15 +169,15 @@ Qed.
Next Obligation.
simpl.
rewrite !comp_assoc.
srewrite (naturality[counit]).
srewrite (@naturality _ _ _ _ counit _ _ h0).
rewrite <- !comp_assoc.
rewrite <- !fmap_comp.
reflexivity.
Qed.
Next Obligation.
simpl.
rewrite !comp_assoc.
srewrite (naturality[counit]).
srewrite (@naturality _ _ _ _ counit _ _ h0).
rewrite <- !comp_assoc.
rewrite <- !fmap_comp.
reflexivity.
Expand All @@ -186,15 +186,15 @@ Next Obligation.
simpl; cat.
rewrite fmap_comp.
rewrite <- comp_assoc.
srewrite (naturality[unit]).
srewrite (@naturality _ _ _ _ unit _ _ x0).
rewrite comp_assoc.
srewrite (@fmap_counit_unit _ _ _ _ A); cat.
Qed.
Next Obligation.
simpl; cat.
rewrite fmap_comp.
rewrite comp_assoc.
srewrite_r (naturality[counit]).
srewrite_r (@naturality _ _ _ _ counit _ _ x0).
rewrite <- comp_assoc.
srewrite (@counit_fmap_unit _ _ _ _ A); cat.
Qed.
Expand Down Expand Up @@ -237,14 +237,9 @@ Qed.

Program Definition Adjunction_Universal_to_Hom (A : F ⊣ U) : Adjunction_Hom := {|
hom_adj :=
{| to := {| transform := fun _ =>
{| morphism := fun f => to adj f |} |}
; from := {| transform := fun _ =>
{| morphism := fun f => from adj f |} |} |}
{| to := {| transform := fun _ => {| morphism := to adj |} |}
; from := {| transform := fun _ => {| morphism := from adj |} |} |}
|}.
Next Obligation.
proper; rewrites; reflexivity.
Qed.
Next Obligation.
rewrite <- comp_assoc.
rewrite to_adj_nat_l.
Expand All @@ -259,9 +254,6 @@ Next Obligation.
rewrite to_adj_nat_l.
reflexivity.
Qed.
Next Obligation.
proper; rewrites; reflexivity.
Qed.
Next Obligation.
rewrite <- comp_assoc.
rewrite from_adj_nat_l.
Expand Down

0 comments on commit 284c4bd

Please sign in to comment.