Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore(category_theory/limits): facts about opposites of limit cones #4250

Closed
wants to merge 9 commits into from

Conversation

semorrison
Copy link
Collaborator

Simple facts about limit cones and opposite categories.


@semorrison semorrison added the awaiting-review The author would like community review of the PR label Sep 25, 2020
Comment on lines +90 to +91

namespace Monad_Mon_equiv
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file are unrelated to the PR. It seems the definitions here were teetering at the end of our -T100000 limit, and adding a few more simp lemmas tipped them over. I split the affected declaration into three pieces, and took the opportunity to make the naming more boring.

Copy link
Collaborator

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If the file gets too big maybe it would be useful to make limits.cones.opposites? No strong opinions on that from me though

@@ -512,8 +512,7 @@ begin
dsimp,
rw [comp_id, H.map_comp, is_equivalence.fun_inv_map H, assoc, nat_iso.cancel_nat_iso_hom_left,
assoc, is_equivalence.inv_fun_id_inv_comp],
apply comp_id,
-- annoyingly `dsimp, simp` leaves it as `c.π.app j ≫ 𝟙 _ = c.π.app j` instead of closing...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with using comp_id to close the goal here? I guess it could be faster?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing was wrong with apply comp_id as a proof. More it was that I was previously disappointed that dsimp, simp was mysteriously failing, and now happy to see that it was working properly.

def unop (e : Cᵒᵖ ≌ Dᵒᵖ) : C ≌ D :=
{ functor := e.functor.unop,
inverse := e.inverse.unop,
unit_iso := nat_iso.of_components (λ X,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be just as short as the def above it? Is nat_iso.unop missing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Err... there's some good reason why it can't exist (Lean, quite reasonably, can't unify something) but I forget the details. I'll try to reconstruct them and write a comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. No, nat_iso.unop already exists, and works fine. The problem is that here we would be trying to unop something like e.functor.op ⋙ e.inverse.op. That is equal to (e.inverse ⋙ e.functor).op, but not equal enough for Lean to allow using nat_iso.unop.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I just wasn't trying hard enough. It's fixed now.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Sep 30, 2020
bors bot pushed a commit that referenced this pull request Sep 30, 2020
…4250)

Simple facts about limit cones and opposite categories.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link

bors bot commented Sep 30, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(category_theory/limits): facts about opposites of limit cones [Merged by Bors] - chore(category_theory/limits): facts about opposites of limit cones Sep 30, 2020
@bors bors bot closed this Sep 30, 2020
@bors bors bot deleted the is_limit_op branch September 30, 2020 12:06
adomani pushed a commit that referenced this pull request Oct 7, 2020
…4250)

Simple facts about limit cones and opposite categories.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants