Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wild ω-semicategories #1229

Draft
wants to merge 105 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
645fdb9
work on universal objects
Sep 24, 2024
c2abb43
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
Sep 24, 2024
3e17ca8
adding infrastructure for globular types
EgbertRijke Sep 28, 2024
9bac61a
work
EgbertRijke Oct 9, 2024
4f6cead
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 9, 2024
72731cb
computation of the universal globular type, and correspondence of dep…
EgbertRijke Oct 11, 2024
bb31cac
reflexive globular maps
EgbertRijke Oct 13, 2024
f56cc6a
sections and pi
EgbertRijke Oct 13, 2024
70213c1
typo
EgbertRijke Oct 13, 2024
5e0fac9
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 13, 2024
90651f3
make pre-commit
EgbertRijke Oct 13, 2024
0285824
working towards duality of directed graphs
EgbertRijke Oct 14, 2024
d421336
duality for directed graphs
EgbertRijke Oct 15, 2024
c98f6e2
fibers and sections
EgbertRijke Oct 15, 2024
cbc1744
wild category of pointed types
EgbertRijke Oct 15, 2024
8c3e39f
mention the categorical laws, which were duplicated
EgbertRijke Oct 15, 2024
9c4ac74
small edits
EgbertRijke Oct 15, 2024
7629b7d
work
EgbertRijke Oct 17, 2024
45f2d8b
refactor reflexive and transitive globular types
EgbertRijke Oct 17, 2024
f445848
lots of work
EgbertRijke Oct 18, 2024
b9ea44a
maps
EgbertRijke Oct 18, 2024
cab0051
colax functors of noncoherent wild higher precategories
EgbertRijke Oct 18, 2024
fe3a463
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 18, 2024
b4a6ea7
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 18, 2024
b16dbd3
work
EgbertRijke Oct 18, 2024
c9f1f92
large (co)lax reflexive globular maps
EgbertRijke Oct 18, 2024
3e20e46
variations of transitive globular maps
EgbertRijke Oct 18, 2024
d958890
refacotr colax functors of noncoherent large wild precategories
EgbertRijke Oct 21, 2024
f2bec34
make pre-commit
EgbertRijke Oct 21, 2024
d019b03
fix concept macros
EgbertRijke Oct 21, 2024
66679f5
make pre-commit
EgbertRijke Oct 21, 2024
f340e81
reflexive graphs
EgbertRijke Oct 21, 2024
5236141
reflexive graphs
EgbertRijke Oct 21, 2024
7d88972
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 21, 2024
0773c07
make pre-commit
EgbertRijke Oct 21, 2024
04893a9
fix bugs
EgbertRijke Oct 21, 2024
f38ef28
work on broken links
EgbertRijke Oct 21, 2024
1cea2fb
make pre-commit
EgbertRijke Oct 21, 2024
fa04874
work on reflexive graphs
EgbertRijke Oct 22, 2024
cd31b20
bugs
EgbertRijke Oct 22, 2024
c12c18d
work
EgbertRijke Oct 23, 2024
a889dcd
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 23, 2024
6221b38
fibers of morphisms of reflexive graphs
EgbertRijke Oct 23, 2024
e5ad3f5
make pre-commit
EgbertRijke Oct 23, 2024
c8b9596
typo
EgbertRijke Oct 23, 2024
7851d96
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 24, 2024
3aabeb8
dependent products of reflexive graphs
EgbertRijke Oct 24, 2024
b39c097
minor edit
EgbertRijke Oct 24, 2024
077e3a9
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Oct 25, 2024
d1e5448
review comments
EgbertRijke Oct 25, 2024
7d1a041
base change of universal dependent directed graph
EgbertRijke Oct 25, 2024
deaccdc
upstream master
EgbertRijke Nov 5, 2024
9336e8e
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Nov 5, 2024
ec6eec8
some review comments
EgbertRijke Nov 5, 2024
9b9511e
-> laxly
EgbertRijke Nov 5, 2024
a0bda74
review comment
EgbertRijke Nov 5, 2024
3f48134
typo
EgbertRijke Nov 5, 2024
f070148
-> lax
EgbertRijke Nov 5, 2024
d72ea0b
concept
EgbertRijke Nov 5, 2024
a3a945c
pointwise extensions of families of globular types
EgbertRijke Nov 12, 2024
221e5d8
file for extensive globular types
EgbertRijke Nov 12, 2024
392b591
superglobular types
EgbertRijke Nov 14, 2024
d3789b6
superglobular types
EgbertRijke Nov 14, 2024
4626f95
uniform
EgbertRijke Nov 14, 2024
668bd20
structure
EgbertRijke Nov 14, 2024
45a4ea8
removing the itemization formatting in record
EgbertRijke Nov 14, 2024
d5a255b
unbolden text with added colon
EgbertRijke Nov 14, 2024
774d2ae
correcting an incorrect definition of discrete relations
EgbertRijke Nov 14, 2024
bf7aab7
Update src/foundation/discrete-relations.lagda.md
EgbertRijke Nov 14, 2024
79b6cf2
fix broken Agda reference
EgbertRijke Nov 14, 2024
0b304f7
Merge branch 'discrete-graphs' of github.com:EgbertRijke/agda-unimath…
EgbertRijke Nov 14, 2024
bc2b2be
factor out discrete globular types
EgbertRijke Nov 15, 2024
7d0819d
implementing discreteness via adjointness
EgbertRijke Nov 15, 2024
fdd6436
bugs
EgbertRijke Nov 15, 2024
cef5ecd
bugs
EgbertRijke Nov 15, 2024
3189352
adjointness for discrete directed graphs
EgbertRijke Nov 15, 2024
f123e98
Merge branch 'master' of github.com:UniMath/agda-unimath into globular
EgbertRijke Nov 15, 2024
444251a
edit discrete reflexive globular types
EgbertRijke Nov 15, 2024
8a74a9a
discrete globular types
EgbertRijke Nov 15, 2024
84b899d
ᵣ to refl
EgbertRijke Nov 15, 2024
5362869
partially revert long copattern matchings
EgbertRijke Nov 15, 2024
58b750e
make pre-commit
EgbertRijke Nov 15, 2024
4bb915b
discrete dependent reflexive graphs
EgbertRijke Nov 15, 2024
01fb7d6
make pre-commit
EgbertRijke Nov 15, 2024
092b19a
discrete dependent reflexive globular types
EgbertRijke Nov 15, 2024
c36005f
adjust text for discrete binary relations
EgbertRijke Nov 16, 2024
9cb7cf0
make pre-commit
EgbertRijke Nov 16, 2024
aae6781
Merge branch 'discrete-graphs' into globular
EgbertRijke Nov 16, 2024
ea117bb
moving files to globular types namespace
EgbertRijke Nov 17, 2024
44edc1e
fix imports
EgbertRijke Nov 17, 2024
bc5b08a
resolve merge conflicts
EgbertRijke Nov 17, 2024
ef70c90
make pre-commit
EgbertRijke Nov 17, 2024
3013c3f
resolve merge conflicts
EgbertRijke Nov 20, 2024
735ea9c
bug
EgbertRijke Nov 20, 2024
18b0121
make pre-commit
EgbertRijke Nov 20, 2024
8539d1a
noncoherent ω-semiprecategories
fredrik-bakke Nov 30, 2024
fb7439d
universal property isomorphisms
fredrik-bakke Dec 1, 2024
4eb4427
Idempotent points in noncoherent ω-semiprecategories
fredrik-bakke Dec 1, 2024
89d8853
wip homotopies of globular maps
fredrik-bakke Dec 1, 2024
a96af86
type arithmetic standard pullbacks
fredrik-bakke Dec 3, 2024
9008f71
pre-commit
fredrik-bakke Dec 3, 2024
005b2f4
composition of spans
fredrik-bakke Dec 3, 2024
b7830e5
Merge branch 'master' into wild-ω-semicategories
fredrik-bakke Dec 3, 2024
0365517
pre-commit
fredrik-bakke Dec 3, 2024
c578ff2
fix
fredrik-bakke Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/foundation-core/pullbacks.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ open import foundation.functoriality-fibers-of-maps
open import foundation.identity-types
open import foundation.morphisms-arrows
open import foundation.standard-pullbacks
open import foundation.type-arithmetic-standard-pullbacks
open import foundation.universe-levels

open import foundation-core.commuting-triangles-of-maps
Expand Down
3 changes: 3 additions & 0 deletions src/foundation.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ open import foundation.complements public
open import foundation.complements-subtypes public
open import foundation.composite-maps-in-inverse-sequential-diagrams public
open import foundation.composition-algebra public
open import foundation.composition-spans public
open import foundation.computational-identity-types public
open import foundation.cones-over-cospan-diagrams public
open import foundation.cones-over-inverse-sequential-diagrams public
Expand Down Expand Up @@ -380,6 +381,7 @@ open import foundation.split-idempotent-maps public
open import foundation.split-surjective-maps public
open import foundation.standard-apartness-relations public
open import foundation.standard-pullbacks public
open import foundation.standard-ternary-pullbacks public
open import foundation.strict-symmetrization-binary-relations public
open import foundation.strictly-involutive-identity-types public
open import foundation.strictly-right-unital-concatenation-identifications public
Expand Down Expand Up @@ -432,6 +434,7 @@ open import foundation.type-arithmetic-coproduct-types public
open import foundation.type-arithmetic-dependent-function-types public
open import foundation.type-arithmetic-dependent-pair-types public
open import foundation.type-arithmetic-empty-type public
open import foundation.type-arithmetic-standard-pullbacks public
open import foundation.type-arithmetic-unit-type public
open import foundation.type-duality public
open import foundation.type-theoretic-principle-of-choice public
Expand Down
163 changes: 163 additions & 0 deletions src/foundation/composition-spans.lagda.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# Composition of spans

```agda
module foundation.composition-spans where
```

<details><summary>Imports</summary>

```agda
open import foundation.commuting-triangles-of-maps
open import foundation.dependent-pair-types
open import foundation.equivalences
open import foundation.equivalences-arrows
open import foundation.equivalences-spans
open import foundation.homotopies
open import foundation.identity-types
open import foundation.morphisms-arrows
open import foundation.morphisms-spans
open import foundation.pullbacks
open import foundation.spans
open import foundation.standard-pullbacks
open import foundation.type-arithmetic-standard-pullbacks
open import foundation.universe-levels

open import foundation-core.function-types
```

</details>

## Idea

Given two [spans](foundation.spans.md) `F` and `G` such that the source of `G`
is the target of `F`

```text
F G

A <----- S -----> B <----- T -----> C,
```

then we may
{{#concept "compose" Disambiguation="spans of types" Agda=comp-span}} the two
spans by forming the [pullback](foundation.standard-pullbacks.md) of the middle
[cospan diagram](foundation.cospan-diagrams.md)

```text
∙ ------> T ------> C
| ⌟ |
| | G
∨ ∨
S ------> B
|
| F
A
```

giving us a span `G ∘ F` from `A` to `C`. This operation is unital and
associative.

## Definitions

### Composition of spans

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{A : UU l1} {B : UU l2} {C : UU l3}
(G : span l4 B C) (F : span l5 A B)
where

spanning-type-comp-span : UU (l2 ⊔ l4 ⊔ l5)
spanning-type-comp-span =
standard-pullback (right-map-span F) (left-map-span G)

left-map-comp-span : spanning-type-comp-span → A
left-map-comp-span = left-map-span F ∘ vertical-map-standard-pullback

right-map-comp-span : spanning-type-comp-span → C
right-map-comp-span = right-map-span G ∘ horizontal-map-standard-pullback

comp-span : span (l2 ⊔ l4 ⊔ l5) A C
comp-span = spanning-type-comp-span , left-map-comp-span , right-map-comp-span
```

## Properties

### Associativity of composition of spans

```agda
module _
{l1 l2 l3 l4 l5 l6 l7 : Level}
{A : UU l1} {B : UU l2} {C : UU l3} {D : UU l4}
(H : span l5 C D) (G : span l6 B C) (F : span l7 A B)
where

essentially-associative-spanning-type-comp-span :
spanning-type-comp-span (comp-span H G) F ≃
spanning-type-comp-span H (comp-span G F)
essentially-associative-spanning-type-comp-span =
inv-associative-standard-pullback
( right-map-span F)
( left-map-span G)
( right-map-span G)
( left-map-span H)

essentially-associative-comp-span :
equiv-span (comp-span (comp-span H G) F) (comp-span H (comp-span G F))
essentially-associative-comp-span =
( essentially-associative-spanning-type-comp-span , refl-htpy , refl-htpy)

associative-comp-span :
comp-span (comp-span H G) F = comp-span H (comp-span G F)
associative-comp-span =
eq-equiv-span
( comp-span (comp-span H G) F)
( comp-span H (comp-span G F))
( essentially-associative-comp-span)
```

### The left unit law for composition of spans

```agda
module _
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} (F : span l3 A B)
where

left-unit-law-comp-span' :
equiv-span F (comp-span id-span F)
left-unit-law-comp-span' =
inv-right-unit-law-standard-pullback (right-map-span F) ,
refl-htpy ,
refl-htpy

left-unit-law-comp-span :
equiv-span (comp-span id-span F) F
left-unit-law-comp-span =
right-unit-law-standard-pullback (right-map-span F) ,
refl-htpy ,
inv-htpy coherence-square-standard-pullback
```

### The right unit law for composition of spans

```agda
module _
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} (F : span l3 A B)
where

right-unit-law-comp-span' :
equiv-span F (comp-span F id-span)
right-unit-law-comp-span' =
inv-left-unit-law-standard-pullback (left-map-span F) ,
refl-htpy ,
refl-htpy

right-unit-law-comp-span :
equiv-span (comp-span F id-span) F
right-unit-law-comp-span =
left-unit-law-standard-pullback (left-map-span F) ,
coherence-square-standard-pullback ,
refl-htpy
```
5 changes: 5 additions & 0 deletions src/foundation/operations-spans.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,8 @@ module _
pr2 (pr2 right-concat-equiv-arrow-span) =
right-map-right-concat-equiv-arrow-span
```

## See also

- [Composition of spans](foundation.composition-spans.md)
- [Opposite spans](foundation.opposite-spans.md)
Loading
Loading