Skip to content

feat(CategoryTheory/ObjectProperty): define objects admitting finite resolutions by objects satisfying P : ObjectProperty C#41880

Open
mbkybky wants to merge 6 commits into
leanprover-community:masterfrom
mbkybky:HasFiniteResolution
Open

feat(CategoryTheory/ObjectProperty): define objects admitting finite resolutions by objects satisfying P : ObjectProperty C#41880
mbkybky wants to merge 6 commits into
leanprover-community:masterfrom
mbkybky:HasFiniteResolution

Conversation

@mbkybky

@mbkybky mbkybky commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Let C be a category, P : ObjectProperty C be a property of objectsin C. We say that X : C has a P-resolution of length n if there exists an exact sequence 0 ⟶ Eₙ ⟶ ⋯ ⟶ E₀ ⟶ X ⟶ 0 such that each Eᵢ : C satisfies P.


Open in Gitpod

@github-actions github-actions Bot added the t-category-theory Category theory label Jul 18, 2026
@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown

PR summary 0673ab95b0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.ObjectProperty.HasFiniteResolution.Basic (new file) 802

Declarations diff (regex)

+ HasFiniteResolution
+ HasFiniteResolutionOfLength
+ hasFiniteResolution
+ instance [P.Is X] : P.HasFiniteResolution X
+ of_property
+ of_shortExact
+ property
++ map_exactFunctor
++ monotone
++ of_iso
++ property_of_isClosedUnderQuotients

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

Lean-aware diff — post-build, computed from the Lean environment (commit 0673ab9).

  • +31 new declarations
  • −0 removed declarations
+CategoryTheory.ObjectProperty.HasFiniteResolution
+CategoryTheory.ObjectProperty.HasFiniteResolution.casesOn
+CategoryTheory.ObjectProperty.HasFiniteResolution.instOfIs
+CategoryTheory.ObjectProperty.HasFiniteResolution.map_exactFunctor
+CategoryTheory.ObjectProperty.HasFiniteResolution.mk
+CategoryTheory.ObjectProperty.HasFiniteResolution.monotone
+CategoryTheory.ObjectProperty.HasFiniteResolution.of_iso
+CategoryTheory.ObjectProperty.HasFiniteResolution.of_property
+CategoryTheory.ObjectProperty.HasFiniteResolution.of_shortExact
+CategoryTheory.ObjectProperty.HasFiniteResolution.out
+CategoryTheory.ObjectProperty.HasFiniteResolution.property_of_isClosedUnderQuotients
+CategoryTheory.ObjectProperty.HasFiniteResolution.rec
+CategoryTheory.ObjectProperty.HasFiniteResolution.recOn
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.below
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.below.casesOn
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.below.rec
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.below.succ
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.below.zero
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.brecOn
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.casesOn
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.hasFiniteResolution
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.map_exactFunctor
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.monotone
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.of_iso
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.property
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.property_of_isClosedUnderQuotients
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.rec
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.recOn
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.succ
+CategoryTheory.ObjectProperty.HasFiniteResolutionOfLength.zero

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 0673ab95b0
Reference commit abb22825db

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/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 the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

Comment thread Mathlib/CategoryTheory/ObjectProperty/HasFiniteResolution/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/ObjectProperty/HasFiniteResolution/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/ObjectProperty/HasFiniteResolution/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/ObjectProperty/HasFiniteResolution/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/ObjectProperty/HasFiniteResolution/Basic.lean Outdated
@joelriou joelriou added the awaiting-author A reviewer has asked the author a question or requested changes. label Jul 19, 2026
mbkybky and others added 2 commits July 19, 2026 19:57
Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
@mbkybky mbkybky removed the awaiting-author A reviewer has asked the author a question or requested changes. label Jul 19, 2026
Comment on lines +18 to +19
We say that `X : C` has a `P`-resolution of length `n` if there exists an
exact sequence `0 ⟶ Eₙ ⟶ ⋯ ⟶ E₀ ⟶ X ⟶ 0` such that each `Eᵢ : C` satisfies `P`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should say that in the implementation it is defined using an inductive predicate.

@joelriou joelriou added the awaiting-author A reviewer has asked the author a question or requested changes. label Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes. t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants