[Merged by Bors] - chore(CategoryTheory/Comma/Arrow): restore use of inferInstanceAs#38065
[Merged by Bors] - chore(CategoryTheory/Comma/Arrow): restore use of inferInstanceAs#38065JovanGerb wants to merge 1 commit intoleanprover-community:masterfrom
inferInstanceAs#38065Conversation
PR summary 044631201fImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
!bench |
|
Benchmark results for 6b12b77 against 0446312 are in. No significant results found. @JovanGerb
Small changes (1✅)
|
|
I think the performance impact is neutral. |
|
I'm sure this is the correct thing to do, but can you explain a bit what the issue was? And why doesn't instance : Category (Arrow T) where
Hom := Arrow.Hom
__ := inferInstanceAs <| Category (Comma (𝟭 T) (𝟭 T))work? |
|
The issue is in the data fields The option you suggested doesn't compile. It is possible to write And this does give the right defeq. But the generated term is a lot more unnecessarily complicated. |
|
Thanks! maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by robin-carlier. |
|
I would trust your judgement here! bors merge |
|
Pull request successfully merged into master. Build succeeded: |
inferInstanceAsinferInstanceAs
This PR fixes the category instance on
Arrowto be less leaky. This is a fix after the refactor in #37764.