Repository navigation
Conversation
PR summary ef9ae2a401Import changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.CategoryTheory.Monoidal.Category | 344 | 355 | +11 (+3.20%) |
Import changes for all files
| Files | Import difference |
|---|---|
11 filesMathlib.CategoryTheory.Bicategory.End Mathlib.CategoryTheory.Monoidal.Action.Basic Mathlib.CategoryTheory.Monoidal.Action.LinearFunctor Mathlib.CategoryTheory.Monoidal.Category Mathlib.CategoryTheory.Monoidal.CoherenceLemmas Mathlib.Tactic.CategoryTheory.Monoidal.Basic Mathlib.Tactic.CategoryTheory.Monoidal.Datatypes Mathlib.Tactic.CategoryTheory.Monoidal.Normalize Mathlib.Tactic.CategoryTheory.Monoidal.PureCoherence Mathlib.Tactic.CategoryTheory.MonoidalComp Mathlib.Tactic.Widget.StringDiagram |
11 |
Declarations diff
+ AddMonoidalCategory
+ AddMonoidalCategoryStruct
+ Discrete.addMonoidal
+ Discrete.addMonoidalFunctor
+ Discrete.addMonoidalFunctorComp
+ Discrete.addMonoidalFunctorComp_isMonoidal
+ Discrete.addMonoidalFunctorMonoidal
+ Discrete.addMonoidalFunctor_obj
+ Discrete.addMonoidalFunctor_δ
+ Discrete.addMonoidalFunctor_ε
+ Discrete.addMonoidalFunctor_η
+ Discrete.addMonoidalFunctor_μ
+ Discrete.addMonoidal_tensorUnit_as
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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
Sorry, I don't get this. With your PR, the meaning of |
|
To you know about the syntax |
|
Also, adding the translation |
|
I've added some imports and (hopefully) fixed CI! @YaelDillies exactly; right now we have Unfortunately, Long term, it's probably best to remove the conflicting instances and add But I wanted to keep this PR as small as possible! @JovanGerb indeed I was worried about breaking things, but everything still compiles so hopefully it should be OK? I don't think we'd want to mark tensor-things Also, @YaelDillies, is it a wise move to start on some PRs depending on this one to:
If we get all that done, then that should be everything I need to get my thesis on the latest |
b8f29fa to
54970ab
Compare
YaelDillies
left a comment
There was a problem hiding this comment.
Okay, that makes sense. I've clarified the PR description accordingly.
I think you can start working on the next PRs, but conversely this one is probably pretty close to merging. What's left to do is mostly to acquire consensus on the new names and notations. I suspect this will be done most efficiently on Zulip. Mind starting a topic?
|
|
||
| ## References | ||
| * Tensor categories, Etingof, Gelaki, Nikshych, Ostrik, | ||
| * Tensor categories, Etingof, Gelaki, Nikshych, Ostrik,\ |
There was a problem hiding this comment.
Accident? Out of scope change?
| attribute [to_additive (attr := simp)] | ||
| whiskerLeft_comp id_whiskerLeft tensor_whiskerLeft comp_whiskerRight whiskerRight_id | ||
| whiskerRight_tensor whisker_assoc | ||
| attribute [to_additive] | ||
| whiskerLeft_comp_assoc id_whiskerLeft_assoc tensor_whiskerLeft_assoc comp_whiskerRight_assoc | ||
| whiskerRight_id_assoc whiskerRight_tensor_assoc whisker_assoc_assoc |
There was a problem hiding this comment.
Why not do this inline? Is it because reassoc and to_additive are incompatible? Does @[reassoc (attr := to_additive (attr := simp))] work by any chance?
There was a problem hiding this comment.
The issue is that would tag the associated versions as simp lemmas; here, we want only the non-associated versions as simp lemmas since the originals are tagged with @[reassoc, simp] rather than @[reassoc (attr := simp)]. If we do what you suggest we get stuck in infinite simp loops and timeout (I did it by accident!).
|
@YaelDillies here's a link to the Zulip thread I made: #mathlib4 > to_additive on MonoidalCategory |
Co-authored-by: Yaël Dillies <[email protected]>
Update reference formatting in the documentation.
d9f714b to
4778d23
Compare
|
Hello! Hopefully I didn't break anything (we'll see); I just realized Looking at Mathlib, all lemmas of the form So I consider this a bugfix, rather than a change, especially since it doesn't break anything, but let me know. |
|
Hmm, all those special cases look like a maintainability issue. |
|
Whoops, wrong button! |
|
That was scary! I think we can swap to n "neg"s before/after "hom" later without breaking anything if necessary; the other cases are unlikely to trigger for anything other than their specific lemma (triangle_assoc_neg) or are actually what we want ("when I say addAssociator_neg I mean addAssociator_inv since in general how do I negate an associator") Anyways I figured this out when porting the coherence tactic and realising neg was appearing everywhere; PR for that coming up! |
…nts in Discrete.lean
a9f2524 to
f1b7eb1
Compare
|
Oops; that last commit was meant for #30260, undid! |
|
Any updates? |
|
This is |
|
This pull request has conflicts, please merge |
Add
AddMonoidalCategory, the additive version ofMonoidalCategory.To get this to work, I needed to remove the
to_additiveattributes inDiscrete.lean, since existing code relies on theAddMonoid M → MonoidalCategory Minstance. For now, we simply implement the additive variants by hand instead.As discussed in #28718; I added an
AddMonoidalCategorystruct and taggedMonoidalCategorywithto_additive, along with the lemmas inCategory.lean.I think this is the right approach, since under this framework the "correct" additive version of
Discrete.leanwould be mapping anAddMonoidto anAddMonoidalCategory.Next steps would be to:
monoidal_coherenceandcoherencesupportAddMonoidalCategoryCocartesianMonoidalCategoryextendingAddMonoidalCategory