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 1 commit
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
Prev Previous commit
Next Next commit
type arithmetic standard pullbacks
  • Loading branch information
fredrik-bakke committed Dec 3, 2024
commit a96af863cebb14c4f117c7d18e774034b06bc00c
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
255 changes: 0 additions & 255 deletions src/foundation/standard-pullbacks.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,36 129,6 @@ module _
pr2 (pr2 (gap c z)) = coherence-square-cone f g c z
```

#### The standard ternary pullback

Given two cospans with a shared vertex `B`:

```text
f g h i
A ----> X <---- B ----> Y <---- C,
```

we call the standard limit of the diagram the
{{#concept "standard ternary pullback" Disambiguation="of types" Agda=standard-ternary-pullback}}.
It is defined as the sum

```text
standard-ternary-pullback f g h i :=
Σ (a : A) (b : B) (c : C), ((f a = g b) × (h b = i c)).
```

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{X : UU l1} {Y : UU l2} {A : UU l3} {B : UU l4} {C : UU l5}
(f : A → X) (g : B → X) (h : B → Y) (i : C → Y)
where

standard-ternary-pullback : UU (l1 ⊔ l2 ⊔ l3 ⊔ l4 ⊔ l5)
standard-ternary-pullback =
Σ A (λ a → Σ B (λ b → Σ C (λ c → (f a = g b) × (h b = i c))))
```

## Properties

### Characterization of the identity type of the standard pullback
Expand Down Expand Up @@ -257,231 227,6 @@ module _
pr2 (pr2 (htpy-cone-up-pullback-standard-pullback c)) = right-unit-htpy
```

### Standard pullbacks are symmetric

The standard pullback of `f : A -> X <- B : g` is equivalent to the standard
pullback of `g : B -> X <- A : f`.

```agda
map-commutative-standard-pullback :
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} {X : UU l3}
(f : A → X) (g : B → X) → standard-pullback f g → standard-pullback g f
pr1 (map-commutative-standard-pullback f g x) =
horizontal-map-standard-pullback x
pr1 (pr2 (map-commutative-standard-pullback f g x)) =
vertical-map-standard-pullback x
pr2 (pr2 (map-commutative-standard-pullback f g x)) =
inv (coherence-square-standard-pullback x)

inv-inv-map-commutative-standard-pullback :
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} {X : UU l3}
(f : A → X) (g : B → X) →
( map-commutative-standard-pullback f g ∘
map-commutative-standard-pullback g f) ~ id
inv-inv-map-commutative-standard-pullback f g x =
eq-pair-eq-fiber
( eq-pair-eq-fiber
( inv-inv (coherence-square-standard-pullback x)))

abstract
is-equiv-map-commutative-standard-pullback :
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} {X : UU l3}
(f : A → X) (g : B → X) → is-equiv (map-commutative-standard-pullback f g)
is-equiv-map-commutative-standard-pullback f g =
is-equiv-is-invertible
( map-commutative-standard-pullback g f)
( inv-inv-map-commutative-standard-pullback f g)
( inv-inv-map-commutative-standard-pullback g f)

commutative-standard-pullback :
{l1 l2 l3 : Level} {A : UU l1} {B : UU l2} {X : UU l3}
(f : A → X) (g : B → X) →
standard-pullback f g ≃ standard-pullback g f
pr1 (commutative-standard-pullback f g) =
map-commutative-standard-pullback f g
pr2 (commutative-standard-pullback f g) =
is-equiv-map-commutative-standard-pullback f g
```

#### The gap map of the swapped cone computes as the underlying gap map followed by a swap

```agda
triangle-map-commutative-standard-pullback :
{l1 l2 l3 l4 : Level} {A : UU l1} {B : UU l2} {X : UU l3} {C : UU l4}
(f : A → X) (g : B → X) (c : cone f g C) →
gap g f (swap-cone f g c) ~
map-commutative-standard-pullback f g ∘ gap f g c
triangle-map-commutative-standard-pullback f g c = refl-htpy
```

### Standard pullbacks are associative

Consider two cospans with a shared vertex `B`:

```text
f g h i
A ----> X <---- B ----> Y <---- C,
```

then we can construct their limit using standard pullbacks in two equivalent
ways. We can construct it by first forming the standard pullback of `f` and `g`,
and then forming the standard pullback of the resulting `h ∘ f'` and `i`

```text
(A ×_X B) ×_Y C ---------------------> C
| ⌟ |
| | i
∨ ∨
A ×_X B ---------> B ------------> Y
| ⌟ f' | h
| | g
∨ ∨
A ------------> X,
f
```

or we can first form the pullback of `h` and `i`, and then form the pullback of
`f` and the resulting `g ∘ i'`:

```text
A ×_X (B ×_Y C) --> B ×_Y C ---------> C
| ⌟ | ⌟ |
| | i' | i
| ∨ ∨
| B ------------> Y
| | h
| | g
∨ ∨
A ------------> X.
f
```

We show that both of these constructions are equivalent by showing they are
equivalent to the standard ternary pullback.

**Note:** Associativity with respect to ternary cospans

```text
B
|
| g
A ------> X <------ C
f h
```

is a special case of what we consider here that is recovered by using

```text
f g g h
A ----> X <---- B ----> X <---- C.
```

- See also the following relevant stack exchange question:
[Associativity of pullbacks](https://math.stackexchange.com/questions/2046276/associativity-of-pullbacks).

#### Computing the left associated iterated standard pullback

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{X : UU l1} {Y : UU l2} {A : UU l3} {B : UU l4} {C : UU l5}
(f : A → X) (g : B → X) (h : B → Y) (i : C → Y)
where

map-left-associative-standard-pullback :
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i →
standard-ternary-pullback f g h i
map-left-associative-standard-pullback ((a , b , p) , c , q) =
( a , b , c , p , q)

map-inv-left-associative-standard-pullback :
standard-ternary-pullback f g h i →
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i
map-inv-left-associative-standard-pullback (a , b , c , p , q) =
( ( a , b , p) , c , q)

is-equiv-map-left-associative-standard-pullback :
is-equiv map-left-associative-standard-pullback
is-equiv-map-left-associative-standard-pullback =
is-equiv-is-invertible
( map-inv-left-associative-standard-pullback)
( refl-htpy)
( refl-htpy)

compute-left-associative-standard-pullback :
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i ≃
standard-ternary-pullback f g h i
compute-left-associative-standard-pullback =
( map-left-associative-standard-pullback ,
is-equiv-map-left-associative-standard-pullback)
```

#### Computing the right associated iterated dependent pullback

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{X : UU l1} {Y : UU l2} {A : UU l3} {B : UU l4} {C : UU l5}
(f : A → X) (g : B → X) (h : B → Y) (i : C → Y)
where

map-right-associative-standard-pullback :
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i}) →
standard-ternary-pullback f g h i
map-right-associative-standard-pullback (a , (b , c , p) , q) =
( a , b , c , q , p)

map-inv-right-associative-standard-pullback :
standard-ternary-pullback f g h i →
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i})
map-inv-right-associative-standard-pullback (a , b , c , p , q) =
( a , (b , c , q) , p)

is-equiv-map-right-associative-standard-pullback :
is-equiv map-right-associative-standard-pullback
is-equiv-map-right-associative-standard-pullback =
is-equiv-is-invertible
( map-inv-right-associative-standard-pullback)
( refl-htpy)
( refl-htpy)

compute-right-associative-standard-pullback :
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i}) ≃
standard-ternary-pullback f g h i
compute-right-associative-standard-pullback =
( map-right-associative-standard-pullback ,
is-equiv-map-right-associative-standard-pullback)
```

#### Standard pullbacks are associative

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{X : UU l1} {Y : UU l2} {A : UU l3} {B : UU l4} {C : UU l5}
(f : A → X) (g : B → X) (h : B → Y) (i : C → Y)
where

associative-standard-pullback :
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i ≃
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i})
associative-standard-pullback =
( inv-equiv (compute-right-associative-standard-pullback f g h i)) ∘e
( compute-left-associative-standard-pullback f g h i)

map-associative-standard-pullback :
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i →
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i})
map-associative-standard-pullback = map-equiv associative-standard-pullback

map-inv-associative-standard-pullback :
standard-pullback f (g ∘ vertical-map-standard-pullback {f = h} {g = i}) →
standard-pullback (h ∘ horizontal-map-standard-pullback {f = f} {g = g}) i
map-inv-associative-standard-pullback =
map-inv-equiv associative-standard-pullback
```

### Pullbacks can be "folded"

Given a standard pullback square
Expand Down
76 changes: 76 additions & 0 deletions src/foundation/standard-ternary-pullbacks.lagda.md
Original file line number Diff line number Diff line change
@@ -0,0 1,76 @@
# Standard ternary pullbacks

```agda
module foundation.standard-ternary-pullbacks where
```

<details><summary>Imports</summary>

```agda
open import foundation.action-on-identifications-functions
open import foundation.cones-over-cospan-diagrams
open import foundation.dependent-pair-types
open import foundation.equality-cartesian-product-types
open import foundation.functoriality-cartesian-product-types
open import foundation.identity-types
open import foundation.structure-identity-principle
open import foundation.universe-levels

open import foundation-core.cartesian-product-types
open import foundation-core.commuting-squares-of-maps
open import foundation-core.diagonal-maps-cartesian-products-of-types
open import foundation-core.equality-dependent-pair-types
open import foundation-core.equivalences
open import foundation-core.function-types
open import foundation-core.functoriality-dependent-pair-types
open import foundation-core.homotopies
open import foundation-core.retractions
open import foundation-core.sections
open import foundation-core.type-theoretic-principle-of-choice
open import foundation-core.universal-property-pullbacks
open import foundation-core.whiskering-identifications-concatenation
```

</details>

## Idea

Given two [cospan of types](foundation.cospans.md) with a shared vertex `B`:

```text
f g h i
A ----> X <---- B ----> Y <---- C,
```

we call the standard limit of the diagram the
{{#concept "standard ternary pullback" Disambiguation="of types" Agda=standard-ternary-pullback}}.
It is defined as the [sum](foundation.dependent-pair-types.md)

```text
standard-ternary-pullback f g h i :=
Σ (a : A) (b : B) (c : C), ((f a = g b) × (h b = i c)).
```

## Definitions

```agda
module _
{l1 l2 l3 l4 l5 : Level}
{X : UU l1} {Y : UU l2} {A : UU l3} {B : UU l4} {C : UU l5}
(f : A → X) (g : B → X) (h : B → Y) (i : C → Y)
where

standard-ternary-pullback : UU (l1 ⊔ l2 ⊔ l3 ⊔ l4 ⊔ l5)
standard-ternary-pullback =
Σ A (λ a → Σ B (λ b → Σ C (λ c → (f a = g b) × (h b = i c))))
```

## See also

- [Type arithmetic with standard pullbacks](foundation.type-arithmetic-standard-pullbacks.md)

## Table of files about pullbacks

The following table lists files that are about pullbacks as a general concept.

{{#include tables/pullbacks.md}}
Loading