Skip to content

[Merged by Bors] - feat(CategoryTheory/Sites): descent data, given as coalgebras#35452

Closed
joelriou wants to merge 11 commits intoleanprover-community:masterfrom
joelriou:descent-data-as-coalgebra
Closed

[Merged by Bors] - feat(CategoryTheory/Sites): descent data, given as coalgebras#35452
joelriou wants to merge 11 commits intoleanprover-community:masterfrom
joelriou:descent-data-as-coalgebra

Conversation

@joelriou
Copy link
Contributor

@joelriou joelriou commented Feb 17, 2026

Let F : LocallyDiscrete Cᵒᵖ ⥤ᵖ Adj Cat be a pseudofunctor to the bicategory of adjunctions in Cat. In particular,
for any morphism g : X ⟶ Y in C, we have an adjunction (g^*, g_*) between a pullback functor and a
pushforward functor.
In this PR, given a family of morphisms f i : X i ⟶ S indexed by a type ι in C, we introduce a category F.DescentDataAsCoalgebra f of descent data relative to the morphisms f i, where the objects are described as a family of objects obj i over X i, and the morphisms relating them are described as morphisms obj i₁ ⟶ (f i₁)^* (f i₂)_* (obj i₂), similarly as Eilenberg-Moore coalgebras. Indeed, when the index type ι contains a unique element, we show that F.DescentDataAsCoalgebra (fun (i : ι) ↦ f identifies to the category of coalgebras for the comonad attached to the adjunction (F.map f.op.toLoc).adj.

Co-authored-by: Christian Merten


Open in Gitpod

@joelriou joelriou added WIP Work in progress t-category-theory Category theory labels Feb 17, 2026
@github-actions
Copy link

github-actions bot commented Feb 17, 2026

PR summary 8dbc02da01

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.CategoryTheory.Bicategory.Adjunction.Cat 428 434 +6 (+1.40%)
Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Bicategory.Adjunction.Cat 6
Mathlib.CategoryTheory.Sites.Descent.DescentDataAsCoalgebra (new file) 448

Declarations diff

+ DescentDataAsCoalgebra
+ Hom
+ coalgebraEquivalence
+ comp_hom
+ counit_naturality
+ hom_ext
+ id_hom
+ instance : Category (F.DescentDataAsCoalgebra f)
+ isEquivalence_toDescentDataAsCoalgebra_iff_isEquivalence_comonadComparison
+ isoMk
+ left_triangle_components
+ right_triangle_components
+ toDescentDataAsCoalgebra
+ toDescentDataAsCoalgebraCompCoalgebraEquivalenceFunctorIso
+ unit_naturality

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for scripts/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/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).

@joelriou joelriou removed the WIP Work in progress label Feb 17, 2026
@joelriou joelriou added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Feb 17, 2026
@robin-carlier robin-carlier added the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 20, 2026
@joelriou joelriou removed the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 20, 2026
@robin-carlier
Copy link
Contributor

Thanks!

maintainer merge

@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Feb 20, 2026
@riccardobrasca
Copy link
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 Feb 21, 2026
mathlib-bors bot pushed a commit that referenced this pull request Feb 21, 2026
Let `F : LocallyDiscrete Cᵒᵖ ⥤ᵖ Adj Cat` be a pseudofunctor to the bicategory of adjunctions in `Cat`. In particular,
for any morphism `g : X ⟶ Y` in `C`, we have an adjunction `(g^*, g_*)` between a pullback functor and a
pushforward functor.
In this PR, given a family of morphisms `f i : X i ⟶ S` indexed by a type `ι` in `C`, we introduce a category `F.DescentDataAsCoalgebra f` of descent data relative to the morphisms `f i`, where the objects are described as a family of objects `obj i` over `X i`, and the morphisms relating them are described as morphisms `obj i₁ ⟶ (f i₁)^* (f i₂)_* (obj i₂)`, similarly as Eilenberg-Moore coalgebras. Indeed, when the index type `ι` contains a unique element, we show that `F.DescentDataAsCoalgebra (fun (i : ι) ↦ f` identifies to the category of coalgebras for the comonad attached to the adjunction `(F.map f.op.toLoc).adj`.

Co-authored-by: Christian Merten
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 21, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory/Sites): descent data, given as coalgebras [Merged by Bors] - feat(CategoryTheory/Sites): descent data, given as coalgebras Feb 21, 2026
@mathlib-bors mathlib-bors bot closed this Feb 21, 2026
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
…over-community#35452)

Let `F : LocallyDiscrete Cᵒᵖ ⥤ᵖ Adj Cat` be a pseudofunctor to the bicategory of adjunctions in `Cat`. In particular,
for any morphism `g : X ⟶ Y` in `C`, we have an adjunction `(g^*, g_*)` between a pullback functor and a
pushforward functor.
In this PR, given a family of morphisms `f i : X i ⟶ S` indexed by a type `ι` in `C`, we introduce a category `F.DescentDataAsCoalgebra f` of descent data relative to the morphisms `f i`, where the objects are described as a family of objects `obj i` over `X i`, and the morphisms relating them are described as morphisms `obj i₁ ⟶ (f i₁)^* (f i₂)_* (obj i₂)`, similarly as Eilenberg-Moore coalgebras. Indeed, when the index type `ι` contains a unique element, we show that `F.DescentDataAsCoalgebra (fun (i : ι) ↦ f` identifies to the category of coalgebras for the comonad attached to the adjunction `(F.map f.op.toLoc).adj`.

Co-authored-by: Christian Merten
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.

3 participants