Skip to content

[Merged by Bors] - feat(CategoryTheory/MorphismProperty): HasPullbacksAgainst#39534

Closed
robin-carlier wants to merge 4 commits into
leanprover-community:masterfrom
robin-carlier:hasPullbackAgainst
Closed

[Merged by Bors] - feat(CategoryTheory/MorphismProperty): HasPullbacksAgainst#39534
robin-carlier wants to merge 4 commits into
leanprover-community:masterfrom
robin-carlier:hasPullbackAgainst

Conversation

@robin-carlier

@robin-carlier robin-carlier commented May 18, 2026

Copy link
Copy Markdown
Contributor

Given P P̀': MorphismProperty C, we add a type class HasPullbacksAgainst expressing that any morphism satisfying P admits a pullback along any morphism satisfying P'. We also add a type-class expressing that pullbacks of morphisms of P along any morphism satisfying P' still satisfies P.

This will be used to encode pairs of morphism properties for which suitable bicategories of spans exist.

From SymmMonCoherence


I welcome any better name here! HasPullacksAlong and friends are already taken, hence I picked "against".

Open in Gitpod

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

Copy link
Copy Markdown

PR summary 22853d3039

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ HasPullbacksAgainst
+ HasPushoutsAgainst
+ IsStableUnderBaseChangeAgainst
+ IsStableUnderCobaseChangeAgainst
+ _root_.CategoryTheory.Limits.hasPullback_ofHasPullbacksAgainst
+ _root_.CategoryTheory.Limits.hasPushout_ofHasPushoutsAgainst
+ hasPullbacksAgainst_top_iff
+ hasPushoutsAgainst_top_iff
+ instance (P : MorphismProperty C) [P.HasPullbacks] (P' : MorphismProperty C) :
+ instance (P : MorphismProperty C) [P.HasPushouts] (P' : MorphismProperty C) :
+ instance (P : MorphismProperty C) [P.IsStableUnderBaseChange]
+ instance (P : MorphismProperty C) [P.IsStableUnderCobaseChange]
+ isStableUnderBaseChangeAgainst_top_iff
+ isStableUnderCobaseChangeAgainst_top_iff

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.

@joelriou

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

@mathlib-triage mathlib-triage Bot added the ready-to-merge This PR has been sent to bors. label May 20, 2026
mathlib-bors Bot pushed a commit that referenced this pull request May 20, 2026
Given `P P̀': MorphismProperty C`, we add a type class `HasPullbacksAgainst` expressing that any morphism satisfying `P` admits a pullback along any morphism satisfying `P'`. We also add a type-class expressing that pullbacks of morphisms of `P` along any morphism satisfying `P'` still satisfies `P`. 

This will be used to encode pairs of morphism properties for which suitable bicategories of spans exist.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
@mathlib-bors

mathlib-bors Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(CategoryTheory/MorphismProperty): HasPullbacksAgainst [Merged by Bors] - feat(CategoryTheory/MorphismProperty): HasPullbacksAgainst May 20, 2026
@mathlib-bors mathlib-bors Bot closed this May 20, 2026
Comment on lines +1013 to +1015
lemma hasPullbacksAgainst_top_iff
(P : MorphismProperty C) :
P.IsStableUnderBaseChangeAgainst ⊤ ↔ P.IsStableUnderBaseChange where

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This lemma does not seem to show what the name suggests (same below for hasPushoutsAgainst_top_iff).

@robin-carlier robin-carlier May 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops, you’re right, it’s a copy-paste error. Fixed in #39647, thanks a lot for catching this!

mathlib-bors Bot pushed a commit that referenced this pull request May 21, 2026
…39647)

Two lemmas introduced in #39534 do not have the right content and repeat previous lemmas. This PR fixes them to make them prove what their name claim.
RaggedR pushed a commit to RaggedR/mathlib4 that referenced this pull request May 22, 2026
…ver-community#39534)

Given `P P̀': MorphismProperty C`, we add a type class `HasPullbacksAgainst` expressing that any morphism satisfying `P` admits a pullback along any morphism satisfying `P'`. We also add a type-class expressing that pullbacks of morphisms of `P` along any morphism satisfying `P'` still satisfies `P`. 

This will be used to encode pairs of morphism properties for which suitable bicategories of spans exist.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
RaggedR pushed a commit to RaggedR/mathlib4 that referenced this pull request May 22, 2026
…eanprover-community#39647)

Two lemmas introduced in leanprover-community#39534 do not have the right content and repeat previous lemmas. This PR fixes them to make them prove what their name claim.
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
…ver-community#39534)

Given `P P̀': MorphismProperty C`, we add a type class `HasPullbacksAgainst` expressing that any morphism satisfying `P` admits a pullback along any morphism satisfying `P'`. We also add a type-class expressing that pullbacks of morphisms of `P` along any morphism satisfying `P'` still satisfies `P`. 

This will be used to encode pairs of morphism properties for which suitable bicategories of spans exist.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
…eanprover-community#39647)

Two lemmas introduced in leanprover-community#39534 do not have the right content and repeat previous lemmas. This PR fixes them to make them prove what their name claim.
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
…ver-community#39534)

Given `P P̀': MorphismProperty C`, we add a type class `HasPullbacksAgainst` expressing that any morphism satisfying `P` admits a pullback along any morphism satisfying `P'`. We also add a type-class expressing that pullbacks of morphisms of `P` along any morphism satisfying `P'` still satisfies `P`. 

This will be used to encode pairs of morphism properties for which suitable bicategories of spans exist.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
…eanprover-community#39647)

Two lemmas introduced in leanprover-community#39534 do not have the right content and repeat previous lemmas. This PR fixes them to make them prove what their name claim.
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