Skip to content

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

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

[Merged by Bors] - feat: port CategoryTheory.Abelian.Basic#2769
mattrobball wants to merge 19 commits intomasterfrom
port/CategoryTheory.Abelian.Basic

Conversation

@mattrobball
Copy link
Copy Markdown
Contributor

@mattrobball mattrobball commented Mar 10, 2023

@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
Copy link
Copy Markdown
Contributor

kim-em commented Mar 11, 2023

@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
Copy link
Copy Markdown
Contributor

kim-em commented Mar 24, 2023

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
Copy link
Copy Markdown
Contributor

kim-em commented Apr 5, 2023

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
Copy link
Copy Markdown
Contributor

kim-em commented Apr 5, 2023

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
Copy link
Copy Markdown
Contributor

kim-em commented Apr 5, 2023

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
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Apr 5, 2023

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
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
MonadMaverick pushed a commit that referenced this pull request Apr 9, 2023
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
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 <scott.morrison@gmail.com>
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