Skip to content

[Merged by Bors] - feat(CategoryTheory): the category of κ-directed posets#39669

Closed
joelriou wants to merge 14 commits into
leanprover-community:masterfrom
joelriou:cardinal-directed-poset0
Closed

[Merged by Bors] - feat(CategoryTheory): the category of κ-directed posets#39669
joelriou wants to merge 14 commits into
leanprover-community:masterfrom
joelriou:cardinal-directed-poset0

Conversation

@joelriou

@joelriou joelriou commented May 21, 2026

Copy link
Copy Markdown
Contributor

Given a regular cardinal κ : Cardinal.{u}, we define the category CardinalFilteredPoset κ of κ-directed partially ordered types (with order embeddings as morphisms). In a future PR #39655, we shall show that it is a κ-accessible category.
In this PR, we also show that if J : CardinalFilteredPoset κ, the object J.withTop obtained by adding a top element is a κ'-filtered colimit of objects of cardinality < κ' (when κ' is a regular cardinal such that κ ≤ κ'). This shall be used in #39655 in order to characterize κ'-presentable objects in CardinalFilteredPoset κ as the objects that are of cardinality < κ'.


Open in Gitpod

@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown

PR summary 0271eb7d56

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Presentable.CardinalDirectedPoset (new file) 1010

Declarations diff

+ CardinalFilteredPoset
+ CardinalFilteredPoset.ι
+ PropSetWithTop
+ coconeWithTop
+ exists_mem_propSetWithTop
+ instance (A : Type u) [SmallCategory A] [IsCardinalFiltered A κ] :
+ instance (J : CardinalFilteredPoset κ) (κ' : Cardinal.{u}) [Fact κ'.IsRegular] :
+ instance (J : CardinalFilteredPoset κ) : IsCardinalFiltered J.obj κ := J.property
+ instance (J : CardinalFilteredPoset κ) : IsFiltered J.obj
+ instance (J : CardinalFilteredPoset κ) : Nonempty J.obj := IsFiltered.nonempty
+ instance (J : Type u) [SmallCategory J] [IsCardinalFiltered J κ] :
+ instance (S : Subtype (J.PropSetWithTop κ')) : HasTerminal S
+ instance (S : Subtype (J.PropSetWithTop κ')) : IsCardinalFiltered S κ
+ instance : (forget PartOrdEmb.{u}).ReflectsIsomorphisms
+ instance : (isCardinalFiltered κ).IsClosedUnderIsomorphisms
+ instance : HasCardinalFilteredColimits (CardinalFilteredPoset κ) κ
+ instance : IsCardinalFiltered (Subtype (J.PropSetWithTop κ')) κ'
+ instance : IsDirectedOrder (Subtype (J.PropSetWithTop κ'))
+ instance : IsFiltered (Subtype (J.PropSetWithTop κ'))
+ instance : Nonempty (Subtype (J.PropSetWithTop κ'))
+ instance : ReflectsColimitsOfShape J (forget PartOrdEmb.{u})
+ isCardinalFiltered
+ isCardinalFiltered_iff
+ isCardinalFiltered_pt
+ isColimitCoconeOfPredicateSet
+ isColimitCoconeWithTop
+ isColimitOfPredicateSet
+ of
+ orderIsoEquivIso
+ orderIsoOfIso
+ propSetWithTop_pair
+ withTop
++ coconeOfPredicateSet
++ functorOfPredicateSet

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.


No changes to strong technical debt.
No changes to weak technical debt.

@dagurtomas dagurtomas left a comment

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.

Thanks!

maintainer delegate

Comment thread Mathlib/CategoryTheory/Presentable/CardinalDirectedPoset.lean Outdated
Comment thread Mathlib/CategoryTheory/Presentable/CardinalDirectedPoset.lean Outdated
Comment thread Mathlib/CategoryTheory/Presentable/CardinalDirectedPoset.lean
Comment thread Mathlib/CategoryTheory/Presentable/CardinalDirectedPoset.lean Outdated
Comment thread Mathlib/Order/Category/PartOrdEmb.lean
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by dagurtomas.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 21, 2026
joelriou and others added 4 commits May 21, 2026 22:50
Co-authored-by: Dagur Asgeirsson <dagurtomas@gmail.com>
Co-authored-by: Dagur Asgeirsson <dagurtomas@gmail.com>
Co-authored-by: Dagur Asgeirsson <dagurtomas@gmail.com>
@joelriou joelriou added WIP Work in progress and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels May 22, 2026
@joelriou

joelriou commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Downstream developments require some refactoring, so that this will have to be reviewed again later (I am sorry for this).

@joelriou

Copy link
Copy Markdown
Contributor Author

The only significant difference with the previously maintainer merged version of this PR is in the commit f5bd8f0 which introduces helpers to construct (filtered) colimits in PartOrdEmb and CardinalFilteredPoset (given a predicate P on subsets of a partial ordered type T, there are conditions that allow to show that T is the colimit of the subset satisfying P). This added API makes it easier to construct the colimit cocone coconeWithTop. (This API will be reused in subsequent PR.)

@joelriou joelriou removed the WIP Work in progress label May 22, 2026
@dagurtomas
dagurtomas self-requested a review May 28, 2026 06:55

@dagurtomas dagurtomas left a comment

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.

Thanks! Again:

maintainer delegate

Comment thread Mathlib/CategoryTheory/Presentable/CardinalDirectedPoset.lean Outdated
Comment thread Mathlib/Order/Category/PartOrdEmb.lean Outdated
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by dagurtomas.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 28, 2026
joelriou and others added 3 commits May 28, 2026 18:11
@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors merge

@mathlib-triage mathlib-triage Bot added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels May 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request May 28, 2026
Given a regular cardinal `κ : Cardinal.{u}`, we define the category `CardinalFilteredPoset κ` of `κ`-directed partially ordered types (with order embeddings as morphisms). In a future PR #39655, we shall show that it is a `κ`-accessible category.
In this PR, we also show that if `J : CardinalFilteredPoset κ`, the object `J.withTop` obtained by adding a top element is a `κ'`-filtered colimit of objects of cardinality `< κ'` (when `κ'` is a regular cardinal such that `κ ≤ κ'`). This shall be used in #39655 in order to characterize `κ'`-presentable objects in `CardinalFilteredPoset κ` as the objects that are of cardinality `< κ'`.
@mathlib-bors

mathlib-bors Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(CategoryTheory): the category of κ-directed posets [Merged by Bors] - feat(CategoryTheory): the category of κ-directed posets May 28, 2026
@mathlib-bors mathlib-bors Bot closed this May 28, 2026
grunweg pushed a commit to grunweg/mathlib4 that referenced this pull request May 30, 2026
…ommunity#39669)

Given a regular cardinal `κ : Cardinal.{u}`, we define the category `CardinalFilteredPoset κ` of `κ`-directed partially ordered types (with order embeddings as morphisms). In a future PR leanprover-community#39655, we shall show that it is a `κ`-accessible category.
In this PR, we also show that if `J : CardinalFilteredPoset κ`, the object `J.withTop` obtained by adding a top element is a `κ'`-filtered colimit of objects of cardinality `< κ'` (when `κ'` is a regular cardinal such that `κ ≤ κ'`). This shall be used in leanprover-community#39655 in order to characterize `κ'`-presentable objects in `CardinalFilteredPoset κ` as the objects that are of cardinality `< κ'`.
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
…ommunity#39669)

Given a regular cardinal `κ : Cardinal.{u}`, we define the category `CardinalFilteredPoset κ` of `κ`-directed partially ordered types (with order embeddings as morphisms). In a future PR leanprover-community#39655, we shall show that it is a `κ`-accessible category.
In this PR, we also show that if `J : CardinalFilteredPoset κ`, the object `J.withTop` obtained by adding a top element is a `κ'`-filtered colimit of objects of cardinality `< κ'` (when `κ'` is a regular cardinal such that `κ ≤ κ'`). This shall be used in leanprover-community#39655 in order to characterize `κ'`-presentable objects in `CardinalFilteredPoset κ` as the objects that are of cardinality `< κ'`.
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
…ommunity#39669)

Given a regular cardinal `κ : Cardinal.{u}`, we define the category `CardinalFilteredPoset κ` of `κ`-directed partially ordered types (with order embeddings as morphisms). In a future PR leanprover-community#39655, we shall show that it is a `κ`-accessible category.
In this PR, we also show that if `J : CardinalFilteredPoset κ`, the object `J.withTop` obtained by adding a top element is a `κ'`-filtered colimit of objects of cardinality `< κ'` (when `κ'` is a regular cardinal such that `κ ≤ κ'`). This shall be used in leanprover-community#39655 in order to characterize `κ'`-presentable objects in `CardinalFilteredPoset κ` as the objects that are of cardinality `< κ'`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants