Skip to content

[Merged by Bors] - feat: port CategoryTheory.Abelian.Basic - #2769

Closed
mattrobball wants to merge 19 commits into
masterfrom
port/CategoryTheory.Abelian.Basic
Closed

mattrobball wants to merge 19 commits into
masterfrom
port/CategoryTheory.Abelian.Basic

Conversation

@mattrobball

@mattrobball mattrobball commented Mar 10, 2023 •

Copy link
Copy Markdown
Contributor

@mattrobball mattrobball added the mathlib-port This is a port of a theory file from mathlib. label Mar 10, 2023
@kim-em kim-em added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Mar 10, 2023
Now we have `PreservesFiniteProducts` and `PreservesFiniteCoproducts` as
separate classes
…tsAndEqualizers' into port/CategoryTheory.Abelian.Basic
@kim-em kim-em added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Mar 10, 2023
@kim-em

kim-em commented Mar 11, 2023

Copy link
Copy Markdown
Contributor

@Parcly-Taxel Parcly-Taxel added awaiting-review and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Mar 11, 2023
@mattrobball
mattrobball force-pushed the port/CategoryTheory.Abelian.Basic branch from c616fe7 to d592edf Compare March 11, 2023 17:29
@mattrobball

Copy link
Copy Markdown
Contributor Author

The problem with simpNF appears to be Lean4#2055

@kim-em

kim-em commented Mar 24, 2023

Copy link
Copy Markdown
Contributor

Bumped to master in case Gabriel's changes in nightly-2023-03-17 help.

@mattrobball

Copy link
Copy Markdown
Contributor Author

Thanks. When I bumped on my own machine, it didn't but 🤞

@kim-em

kim-em commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Here's the snippet that shows that this really is leanprover/lean4#2055

import Mathlib

open CategoryTheory Limits

variable (C : Type _) [Category C] [Preadditive C]

set_option maxHeartbeats 20000
set_option trace.Meta.synthInstance true
-- set_option trace.Meta.isDefEq true
-- set_option pp.all true
set_option profiler true

#synth HasZeroObject C

@kim-em

kim-em commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Okay, we can just remove the troublesome instance. I've made a mathlib3 PR that verifies that removing the instance doesn't cause trouble downstream. I've left a porting note (and added one on the mathlib3 side), so hopefully when leanprover/lean4#2055 is resolved we will remember to clean this up again.

@kim-em

kim-em commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Apr 5, 2023
bors Bot pushed a commit that referenced this pull request Apr 5, 2023
@bors

bors Bot commented Apr 5, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat: port CategoryTheory.Abelian.Basic [Merged by Bors] - feat: port CategoryTheory.Abelian.Basic Apr 5, 2023
@bors bors Bot closed this Apr 5, 2023
@bors
bors Bot deleted the port/CategoryTheory.Abelian.Basic branch April 5, 2023 03:13
MonadMaverick pushed a commit that referenced this pull request Apr 9, 2023
MonadMaverick pushed a commit that referenced this pull request Apr 9, 2023
bors Bot pushed a commit to leanprover-community/mathlib3 that referenced this pull request Apr 28, 2023
…e_biproducts instance (#18740)

This backports a proposed removal of the `abelian.has_finite_biproducts` global instance, instead enabling it locally in the files that need it.

The reason for removing it is that it triggers the ~~dreaded~~ leanprover/lean4#2055 during the simpNF linter in leanprover-community/mathlib4#2769, the mathlib4 port of `category_theory.abelian.basic`.

This backport verifies that we won't run into further problems downstream if we (hopefully temporarily) remove these instances in mathlib4. 





Co-authored-by: Scott Morrison <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants