Skip to content

Commit

Permalink
Merge pull request coq-community#20 from urkud/fix-compile
Browse files Browse the repository at this point in the history
Specify some arguments explicitly to speedup compilation.
  • Loading branch information
spitters authored Jun 4, 2017
2 parents b927934 + c18e3eb commit 85465bf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions theory/adjunctions.v
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ Section for_φAdjunction.
Proof with try reflexivity; try apply _.
intros d d' f.
change ((φ ⁻¹) cat_id ◎ fmap F (fmap G f) = f ◎ (φ ⁻¹) cat_id).
rewrite <- φ_adjunction_natural_left_inv, <- φ_adjunction_natural_right_inv, left_identity, right_identity...
rewrite
<- φ_adjunction_natural_left_inv,
<- φ_adjunction_natural_right_inv,
(left_identity (fmap G f)),
right_identity...
Qed.

Lemma φ_in_terms_of_η `(f: F x ⟶ a): φ f = fmap G f ◎ η x.
Expand Down Expand Up @@ -164,15 +168,15 @@ Section for_ηAdjunction.
unfold φ. unfold id in *. unfold compose in η.
constructor...
repeat intro. unfold compose.
rewrite associativity...
rewrite (associativity (fmap G k))...
rewrite preserves_comp...
repeat intro. unfold compose.
rewrite preserves_comp...
rewrite <- associativity.
pose proof (η_adjunction_natural F G c' c h) as P.
change (η c ◎ h = fmap G (fmap F h) ◎ η c') in P.
rewrite <- P.
rewrite associativity...
rewrite (associativity (fmap G f))...
Qed.

End for_ηAdjunction.
Expand Down

0 comments on commit 85465bf

Please sign in to comment.