-
Notifications
You must be signed in to change notification settings - Fork 373
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
feat(CategoryTheory/Sums/Basic): functors out of Sum
#22278
Open
robin-carlier
wants to merge
6
commits into
master
Choose a base branch
from
RC_FunctorSumEquiv
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PR summary 445a018151Import changes exceeding 2%
|
File | Base Count | Head Count | Change |
---|---|---|---|
Mathlib.CategoryTheory.Sums.Basic | 282 | 288 | +6 (+2.13%) |
Import changes for all files
Files | Import difference |
---|---|
Mathlib.CategoryTheory.Sums.Associator Mathlib.CategoryTheory.Sums.Basic |
6 |
Declarations diff
+ functorEquiv
+ functorEquivFunctorCompFstIso
+ functorEquivFunctorCompSndIso
+ functorEquivInverseCompWhiskeringLeftInLIso
+ functorEquivInverseCompWhiskeringLeftInRIso
+ sum'_app_inl
+ sum'_app_inr
+-+ sum'
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>
The doc-module for script/declarations_diff.sh
contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/technical-debt-metrics.sh pr_summary
- The
relative
value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolute
value is therelative
value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
joelriou
reviewed
Feb 25, 2025
3b15c10
to
f193235
Compare
2 tasks
b-mehta
reviewed
Feb 25, 2025
Co-authored-by: Bhavik Mehta <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
large-import
Automatically added label for PRs with a significant increase in transitive imports
t-category-theory
Category theory
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We prove that the category structure defined in
CategoryTheory/Sums/Basic
satisfies a universal property that exhibits it as the binary coproduct of categories. In practive, this means that we construct an equivalence of categories(A ⊕ A') ⥤ B ≌ (A ⥤ B) × (A' ⥤ B)
, which we characterize via its compositions in both directions withSum.inl_
,Sum.inr_
,Prod.fst
andProd.snd
.I was unsure whether or not this should go in a separate new file in the
CategoryTheory/Sum
directory, as it brings the product as import, but it seems that this file was almost never imported anyways, so that it would be harmless to keep fragmentation to a minimum here.