Skip to content

[Merged by Bors] - feat(CategoryTheory/Bicategory): Spans with left and right legs satisfying given morphism properties#39536

Closed
robin-carlier wants to merge 19 commits into
leanprover-community:masterfrom
robin-carlier:spans
Closed

[Merged by Bors] - feat(CategoryTheory/Bicategory): Spans with left and right legs satisfying given morphism properties#39536
robin-carlier wants to merge 19 commits into
leanprover-community:masterfrom
robin-carlier:spans

Conversation

@robin-carlier

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

Copy link
Copy Markdown
Contributor

In this PR, we define a structure Span Wₗ Wᵣ c c' which bundles the data of spans in C from c to c' where the left map satisfies Wₗ and the right map satisfies Wᵣ. When Wₗ and Wᵣ are adequate, we define the identity span and the composition of compatible spans.

In a later pull request, this will be extended to be the 1-morphisms of a bicategory structure on a type alias of C.

From SymmMonCoherence


Open in Gitpod

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

github-actions Bot commented May 18, 2026

Copy link
Copy Markdown

PR summary 4c9b125de5

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Bicategory.Span.Basic (new file) 687

Declarations diff

+ Hom
+ Span
+ comp
+ hom_ext
+ id
+ instance (S₁ : Span Wₗ Wᵣ c c') : Wᵣ.IsStableUnderBaseChangeAlong S₁.l
+ instance (S₁ : Span Wₗ Wᵣ c c') : Wₗ.IsStableUnderBaseChangeAlong S₁.r
+ instance : Category (Span Wₗ Wᵣ c c')
+ instance {c c' c'' : C} (S₁ : Span Wₗ Wᵣ c c') (S₂ : Span Wₗ Wᵣ c' c'') : HasPullback S₁.r S₂.l
+ mkIso

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.

@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label May 18, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label May 20, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.lean Outdated
Co-authored-by: Robin Carlier <57142648+robin-carlier@users.noreply.github.com>

@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/Bicategory/Span/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.lean Outdated
Comment thread Mathlib/CategoryTheory/Bicategory/Span/Basic.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 21, 2026
@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors d+

@mathlib-bors

mathlib-bors Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

✌️ robin-carlier can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels May 23, 2026
@robin-carlier robin-carlier added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label May 27, 2026
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label May 27, 2026
@robin-carlier

Copy link
Copy Markdown
Contributor Author

Thanks!

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request May 28, 2026
…fying given morphism properties (#39536)

In this PR, we define a structure `Span Wₗ Wᵣ c c'` which bundles the data of spans in `C` from `c` to `c'` where the left map satisfies `Wₗ` and the right map satisfies `Wᵣ`. When `Wₗ` and `Wᵣ` are adequate, we define the identity span and the composition of compatible spans.

In a later pull request, this will be extended to be the 1-morphisms of a bicategory structure on a type alias of `C`.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
@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/Bicategory): Spans with left and right legs satisfying given morphism properties [Merged by Bors] - feat(CategoryTheory/Bicategory): Spans with left and right legs satisfying given morphism properties 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
…fying given morphism properties (leanprover-community#39536)

In this PR, we define a structure `Span Wₗ Wᵣ c c'` which bundles the data of spans in `C` from `c` to `c'` where the left map satisfies `Wₗ` and the right map satisfies `Wᵣ`. When `Wₗ` and `Wᵣ` are adequate, we define the identity span and the composition of compatible spans.

In a later pull request, this will be extended to be the 1-morphisms of a bicategory structure on a type alias of `C`.

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
…fying given morphism properties (leanprover-community#39536)

In this PR, we define a structure `Span Wₗ Wᵣ c c'` which bundles the data of spans in `C` from `c` to `c'` where the left map satisfies `Wₗ` and the right map satisfies `Wᵣ`. When `Wₗ` and `Wᵣ` are adequate, we define the identity span and the composition of compatible spans.

In a later pull request, this will be extended to be the 1-morphisms of a bicategory structure on a type alias of `C`.

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

In this PR, we define a structure `Span Wₗ Wᵣ c c'` which bundles the data of spans in `C` from `c` to `c'` where the left map satisfies `Wₗ` and the right map satisfies `Wᵣ`. When `Wₗ` and `Wᵣ` are adequate, we define the identity span and the composition of compatible spans.

In a later pull request, this will be extended to be the 1-morphisms of a bicategory structure on a type alias of `C`.

From [SymmMonCoherence](https://github.com/robin-carlier/SymmMonCoherence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants