-
Notifications
You must be signed in to change notification settings - Fork 299
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
fix(category_theory/finite_limits): fix definition, and construct from finite products and equalizers #1427
Conversation
I've kept everything constructive, so in particular a |
I just learned from reading this PR that However I will say that my instinct is that it would be better to make |
Probably because you can't extend |
Ok, I can make it a mix-in. I was just hoping to minimise the number of separate arguments that need to be passed around. |
Ahh, sorry. I really just meant to have |
Oops, sorry, that should have been obvious. :-) Fixed now. |
(Updated to reflect #1412 being merged.) |
Doc strings for defs, please! |
I've added documentation, and this should be ready for further review/merging. |
src/category_theory/limits/shapes/constructions/finite_limits.lean
Outdated
Show resolved
Hide resolved
I really think Otherwise, looks great! |
I agree the |
Hopefully we're ready to go now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
…m finite products and equalizers (leanprover-community#1427) * chore(category_theory): require morphisms live in Type * move back to Type * fix(category_theory/finite_limits): fix definition, and construct from finite products and equalizers * fixes * fix duplicate name * make fin_category a mixin * fix * fix * oops * fixes * oops missing universe change * finish documentation * fix namespace * move variables to the right place * don't repeat yourself * update module doc-string now that the files have been merged * inlining has_limit instances
…m finite products and equalizers (leanprover-community#1427) * chore(category_theory): require morphisms live in Type * move back to Type * fix(category_theory/finite_limits): fix definition, and construct from finite products and equalizers * fixes * fix duplicate name * make fin_category a mixin * fix * fix * oops * fixes * oops missing universe change * finish documentation * fix namespace * move variables to the right place * don't repeat yourself * update module doc-string now that the files have been merged * inlining has_limit instances
This fixes the error in the definition of finite limits noted in #1410, and tests out the new definition by constructing finite limits from finite products and equalizers.
Happily, we can reuse the construction of (arbitrary) limits from (arbitrary) products and equalizers almost verbatim --- all the
fintype
instances slot into place without any help.It's a bit sad that
constructions/finite_limits.lean
duplicates so much of the text fromconstructions/limits_of_products_and_equalizers.lean
, but I don't see how to factor anything out without being extremely awkward.Fixes #1410.