-
Notifications
You must be signed in to change notification settings - Fork 72
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
Rebase infrastructure for pushouts to span diagrams #885
Closed
Closed
Changes from 28 commits
Commits
Show all changes
288 commits
Select commit
Hold shift + click to select a range
bd9dfea
work
EgbertRijke 5339ec9
files
EgbertRijke fe97807
work
EgbertRijke a32d86f
edits
EgbertRijke 899a968
new file
EgbertRijke f5417ba
fixing some titles
EgbertRijke cfeff75
renaming kernel span diagrams
EgbertRijke 6ea5e9a
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 61d78f9
spans of pointed types
EgbertRijke 74dd151
work towards pointed arrows and spans
EgbertRijke 759fd83
work on pointed arrows
EgbertRijke 486e8b6
refactor pointed homotopies
EgbertRijke 668e435
exposition pointed homotopies
EgbertRijke 6967509
further refactoring of pointed homotopies
EgbertRijke bcfac67
complete refactoring of pointed homotopies
EgbertRijke eb732ff
morphisms and equivalences of cocones under morphisms and equivalence…
EgbertRijke 669fab3
refactor universal property pushout top/bottom universal property bot…
EgbertRijke 89edd32
horizontal -> left; vertical -> right
EgbertRijke b398b94
Update src/foundation-core/extensions-spans.lagda.md
EgbertRijke 05c7576
refactoring the flattening lemma
EgbertRijke f00ca65
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke 3f76272
Update src/foundation-core/extensions-span-diagrams.lagda.md
EgbertRijke ae377e0
Update src/foundation-core/extensions-span-diagrams.lagda.md
EgbertRijke fbaca6e
Update src/foundation-core/extensions-spans.lagda.md
EgbertRijke 011e8e2
renaming file
EgbertRijke 72609b6
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 699a100
refactoring flattening lemma
EgbertRijke 5338099
complete refactoring of the flattening lemma
EgbertRijke af91eee
beginning to refactor pushouts
EgbertRijke ba7f286
pushouts
EgbertRijke c0a4b81
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 59ab9ac
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 96d7f36
resolving merge conflicts
EgbertRijke 4f404a2
small changes
EgbertRijke 5da39ef
small changes
EgbertRijke 1c98886
editing informal text in pushouts
EgbertRijke a11afcd
cleaning up pushouts
EgbertRijke df9500e
refactoring flattening lemma
EgbertRijke fe85e9c
resolve merge conflicts
EgbertRijke a3ff21e
more refactoring flattening lemma
EgbertRijke a157bb6
refactor structure of type families over pushouts
EgbertRijke 6480b78
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 5ec4b50
work
EgbertRijke ca9136c
changing variable name for span diagrams
EgbertRijke 05c9dcf
small changes
EgbertRijke c8380ab
the structure of sections of type families over pushouts
EgbertRijke 538711c
work
EgbertRijke 284a76d
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke ce16cfc
work
EgbertRijke 9407a54
explaining the disambiguation between spans and span diagrams
EgbertRijke 156cf40
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke ab7d1e3
make pre-commit
EgbertRijke 40b59bd
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 0a7d6e5
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke 41c25d2
equivalence of cocones under equivalent span diagrams
EgbertRijke 9840f45
make pre-commit
EgbertRijke de0b66c
edits
EgbertRijke f0b793f
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke d3ddcf8
edits
EgbertRijke 70fff13
pulling changes from spans
EgbertRijke 27fa4a2
make pre-commit
EgbertRijke 3f8c659
minimal changes to make library compile
EgbertRijke 894b4b4
fix all the broken links
EgbertRijke f869abe
note on equivalence reasoning
EgbertRijke 6cd3516
make pre-commit
EgbertRijke 06b01e0
expanding on the note on equivalence reasoning
EgbertRijke 479ea44
refactoring cospans
EgbertRijke e39391a
minimally refactoring cospans
EgbertRijke 7b5c8a6
typos in spans
EgbertRijke 3873823
Agda fields in concept macros
EgbertRijke 9354761
fix bugs
EgbertRijke d368bc8
make pre-commit
EgbertRijke e2e2389
factoring out opposite spans, permutations of spans on families of ty…
EgbertRijke 18664cf
make pre-commit
EgbertRijke 3040bc1
extensions of spans -> concatenations of spans
EgbertRijke 332694e
fix links and Agda definitions in concept macros
EgbertRijke 6f1fa36
make pre-commit
EgbertRijke 3fe5820
Merge branch 'master' of github.com:UniMath/agda-unimath into spans-f…
EgbertRijke 710cb45
Merge branch 'master' of github.com:UniMath/agda-unimath into spans-f…
EgbertRijke 1140819
make pre-commit
EgbertRijke 8fb74f9
factoring out the action of functions on cocones under span diagrams
EgbertRijke 3888dd8
make pre-commit
EgbertRijke 73398d4
notes'
EgbertRijke e97700c
resolve merge conflicts
EgbertRijke c4c68f0
resolve merge conflicts
EgbertRijke ba438fc
merge
EgbertRijke 29de149
resolve merge conflicts'
EgbertRijke 3b3213c
fix broken links
EgbertRijke c689506
fix pullbacks table
EgbertRijke 63e30c6
Commuting square for cocone-map and morphisms of cocones under morphi…
EgbertRijke e3eb3d4
move file
EgbertRijke d387b07
pull all changes from spans-foundation
EgbertRijke 3d3c9aa
removing extension files
EgbertRijke 5c0862e
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke bd42293
Merge branch 'master' of github.com:UniMath/agda-unimath into spans-f…
EgbertRijke 82e32e0
explaining a thing about flattening of families of types over pushouts
EgbertRijke afbe831
merge conflicts
EgbertRijke 526c82b
merge conflicts
EgbertRijke b36704c
integrating the latest changes into this PR
EgbertRijke 5ab939e
first batch of comment resolutions
EgbertRijke 8691b0d
merge conflicts
EgbertRijke 99ffcd6
equivalences of spans and span diagrams of families of types
EgbertRijke 9ce892b
morphisms of spans on families of types
EgbertRijke d5874ea
terminal spans on families of types
EgbertRijke f4d8960
dependent function types are terminal spans
EgbertRijke 31e98c7
span-family-of-types -> span-type-family
EgbertRijke 6a8b9ff
make pre-commit
EgbertRijke b519458
Merge branch 'master' of github.com:UniMath/agda-unimath into spans-f…
EgbertRijke 5e0b3a3
minor edits and bugs
EgbertRijke f9ce11f
Merge branch 'master' of github.com:UniMath/agda-unimath into spans-f…
EgbertRijke 4ac92bd
making two defs abstract
EgbertRijke 7d7d480
Merge branch 'spans-foundation' into spans
EgbertRijke cf48d3e
typo
EgbertRijke 8192f51
typo
EgbertRijke 355c1af
work
EgbertRijke 376c66a
expanding on the note on equivalence reasoning
EgbertRijke d220388
work
EgbertRijke 0f36bab
typos
EgbertRijke ccb9989
period
EgbertRijke be6f7a9
Merge branch 'spans-foundation' into spans
EgbertRijke 4f16210
resolve merge conflicts
EgbertRijke 1c20822
revert change of section header in cospans
EgbertRijke 5d0fbd8
pulling the files
EgbertRijke 330c1af
reformatting morphisms pointed arrows
EgbertRijke d1c5088
merge conflict
EgbertRijke e21bb44
work
EgbertRijke e38c47c
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke fbadf2d
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 2eff63b
resolving merge conflicts
EgbertRijke 30ccf98
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 7f52b7f
refactoring whiskering of pointed homotopies and pointed homotopies
EgbertRijke 1fc1d19
modifications after the merge
EgbertRijke 501880b
making more files compile
EgbertRijke 5b83514
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke ac78d74
minor modifications
EgbertRijke 8df5ff4
work on pointed homotopies
EgbertRijke bf18d94
add file about commuting triangles of pointed maps
EgbertRijke 841a796
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 0632390
uniform and nonuniform pointed homotopies
EgbertRijke bf6e24c
pointed homotopies
EgbertRijke ca3ffb4
associativity of concatenation of pointed homotopies
EgbertRijke 46834d5
refactoring the computation of the type of sections of evaluation of …
EgbertRijke b9ec308
refactor whiskering of pointed homotopies
EgbertRijke f6374ce
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 74cb639
commuting squares of pointed maps
EgbertRijke a5c654a
refactor pointed equivalences
EgbertRijke 0dec914
refactor pointed equivalences
EgbertRijke ca9bc50
proof
EgbertRijke 24b6d7b
work
EgbertRijke c7e124a
work on pointed equivalences
EgbertRijke 0a159a3
cleanup pointed equivalences
EgbertRijke 3442bc9
work on morphisms of pointed arrows
EgbertRijke 20d6115
work on morphisms of pointed arrows
EgbertRijke 36d77d9
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 8e82d22
work
EgbertRijke 88e5feb
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke 2228f6b
work
EgbertRijke 3ee0c0e
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke 7586dda
resolve merge conflict
EgbertRijke 1de5394
work
EgbertRijke 8a0d972
whiskering of pointed homotopies
EgbertRijke bbd9f97
renaming whiskering of pointed homotopies with respect to composition
EgbertRijke 626e354
pulling changes from spans
EgbertRijke 1a7562b
making changes compatible with rest of library, up to synthetic hott
EgbertRijke 05bdc81
moving files
EgbertRijke cc07eb7
some repairs in synthetic homotopy theory
EgbertRijke 262572b
null
EgbertRijke 2bc60d6
work
EgbertRijke 3fa44e5
Merge branch 'spans' of github.com:EgbertRijke/agda-unimath into spans
EgbertRijke 22e58c3
fixing smash products
EgbertRijke c59bf6e
everything compiles
EgbertRijke 375d16d
make pre-commit
EgbertRijke b9eee83
adding file about pointed equivalences to fix missing link error
EgbertRijke 780ee8e
adding file about pointed equivalences to fix missing link error
EgbertRijke bad9f16
make pre-commit
EgbertRijke 66f71a6
name change for pointed type of cocones under pointed span diagrams
EgbertRijke 0ce4ad5
adding new file on morphisms of twisted pointed arrows in order to fi…
EgbertRijke 02c8dbf
factor out opposite pointed spans
EgbertRijke a2346ab
create new file on transposition pointed span diagrams in order to fi…
EgbertRijke 931a98f
make pre-commit
EgbertRijke d14273e
adding Agda entries to concept macros
EgbertRijke 2c55621
fix broken entries in concept macros
EgbertRijke 3ce12ab
work
EgbertRijke ac225b4
whiskering of pointed 2-homotopies with respect to concatenation
EgbertRijke b8ccae0
the reflexive homotopy of morphisms of pointed arrows
EgbertRijke 7544d3c
review comments
EgbertRijke 85c97f0
review comments on pointed homotopies
EgbertRijke 678dc82
make pre-commit
EgbertRijke d63be88
fix Cavallo's trick
EgbertRijke f981069
fix broken links
EgbertRijke caed77b
Merge branch 'master' of github.com:UniMath/agda-unimath into pointed
EgbertRijke e82eb9e
really fix broken links
EgbertRijke 294f9cd
factoring out uniform pointed homotopies and pointed 2-homotopies
EgbertRijke 734963f
fix missing Agda entry in concept macro
EgbertRijke a888f56
concatenation of pointed homotopies is a binary equivalence
EgbertRijke c80a035
shortening a lengthy coherence proof
EgbertRijke 25627ff
concatenation of pointed 2-homotopies is a binary equivalence
EgbertRijke 1022b00
torsoriality of homotopies of morphisms of pointed arrows
EgbertRijke 92df156
cut off unfinished work
EgbertRijke a2cb069
refactoring long construction of the base point coherence of the righ…
EgbertRijke cfe3204
using span diagrams in null cocones
EgbertRijke 1858236
review comments
EgbertRijke bb76498
review comments
EgbertRijke 4d1ebcd
revised all review comments
EgbertRijke b0b482d
refactoring pointed isos
EgbertRijke d84cc36
comma
EgbertRijke b215898
revised wording
EgbertRijke 432c6db
review comments
EgbertRijke d154d60
make pre-commit
EgbertRijke 7ba9e27
Merge branch 'master' of github.com:UniMath/agda-unimath into pointed
EgbertRijke cf05eb9
Merge branch 'master' of github.com:UniMath/agda-unimath into pointed
EgbertRijke c60e6e3
addressing last comments
EgbertRijke 04a3f6d
make pre-commit
EgbertRijke a724639
make pre-commit
EgbertRijke ce905ad
fix link
EgbertRijke c63634c
Merge branch 'master' of github.com:UniMath/agda-unimath into pointed
EgbertRijke 073f7c0
Merge branch 'pointed' of github.com:EgbertRijke/agda-unimath into po…
EgbertRijke e12959b
merge conflicts
EgbertRijke d03da20
make pre-commit
EgbertRijke c9c1dca
review comments
EgbertRijke 1166932
merge conflict
EgbertRijke b607cd7
Merge branch 'pointed' into spans
EgbertRijke 9ce1295
merge conflicts
EgbertRijke a5a57c9
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 98c1b01
work on flattening type families
EgbertRijke aa353af
add file
EgbertRijke ddde9ea
work
EgbertRijke bc93d28
work
EgbertRijke 35b81e9
Fix imports
VojtechStep 0da3854
`make-span`
VojtechStep bd8ca3b
Temporarily allow unsolved metas
VojtechStep 0bf0093
Rebase cocones under pointed span diagrams to pointed span diagrams
VojtechStep e5f630d
Standard pointed pushouts
VojtechStep 5662155
Bring back cofibers
VojtechStep 2d8a563
Bring back wedges
VojtechStep 80205ad
Bring back smash products
VojtechStep 944fe14
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke 5141988
Merge pull request #5 from VojtechStep/spans
EgbertRijke 041d016
dependent span diagrams
EgbertRijke 7066eab
cartesian morphisms of arrows
EgbertRijke 47cf8bd
base changes of span diagrams
EgbertRijke 5c9a05f
infrastructure
EgbertRijke daf7a19
new files
EgbertRijke 5ca02c2
make pre-commit
EgbertRijke 2dce70a
make pre-commit
EgbertRijke 9eaef8d
Merge branch 'master' of github.com:UniMath/agda-unimath into spans
EgbertRijke b0a319a
cartesian dependent span diagrams
EgbertRijke 3cbc16f
flattening dependent span diagrams
EgbertRijke 7700d5c
display
EgbertRijke 44d26a3
cartesian dependent span diagrams
EgbertRijke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,389 @@ | ||||||
# Extensions of spans | ||||||
|
||||||
```agda | ||||||
module foundation-core.extensions-spans where | ||||||
``` | ||||||
|
||||||
<details><summary>Imports</summary> | ||||||
|
||||||
```agda | ||||||
open import foundation.dependent-pair-types | ||||||
open import foundation.morphisms-arrows | ||||||
open import foundation.spans | ||||||
open import foundation.universe-levels | ||||||
|
||||||
open import foundation-core.function-types | ||||||
``` | ||||||
|
||||||
</details | ||||||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
## Idea | ||||||
|
||||||
Consider a [span](foundation.spans.md) `s` given by | ||||||
|
||||||
```text | ||||||
f g | ||||||
A <----- S -----> B | ||||||
``` | ||||||
|
||||||
and maps `i : A → A'` and `j : B → B'`. The {{#concept "extension" Disambiguation="span"}} of `s` by `i` and `j` is the span | ||||||
|
||||||
```text | ||||||
i ∘ f j ∘ g | ||||||
A' <------- S -------> B. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
``` | ||||||
|
||||||
## Definitions | ||||||
|
||||||
### Extensions of spans with fixed domain and codomain | ||||||
|
||||||
#### Extensions on both sides | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} | ||||||
{A : UU l1} {A' : UU l2} | ||||||
{B : UU l3} {B' : UU l4} | ||||||
where | ||||||
|
||||||
extend-span-fixed-domain-codomain : | ||||||
span-fixed-domain-codomain l5 A B → (A → A') → (B → B') → | ||||||
span-fixed-domain-codomain l5 A' B' | ||||||
pr1 (extend-span-fixed-domain-codomain s f g) = | ||||||
spanning-type-span-fixed-domain-codomain s | ||||||
pr1 (pr2 (extend-span-fixed-domain-codomain s f g)) = | ||||||
f ∘ left-map-span-fixed-domain-codomain s | ||||||
pr2 (pr2 (extend-span-fixed-domain-codomain s f g)) = | ||||||
g ∘ right-map-span-fixed-domain-codomain s | ||||||
``` | ||||||
|
||||||
#### Extensions on the left | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 : Level} | ||||||
{A : UU l1} {A' : UU l2} | ||||||
{B : UU l3} | ||||||
where | ||||||
|
||||||
left-extend-span-fixed-domain-codomain : | ||||||
span-fixed-domain-codomain l4 A B → (A → A') → | ||||||
span-fixed-domain-codomain l4 A' B | ||||||
left-extend-span-fixed-domain-codomain s f = | ||||||
extend-span-fixed-domain-codomain s f id | ||||||
``` | ||||||
|
||||||
#### Extensions on the right | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 : Level} | ||||||
{A : UU l1} | ||||||
{B : UU l3} {B' : UU l4} | ||||||
where | ||||||
|
||||||
right-extend-span-fixed-domain-codomain : | ||||||
span-fixed-domain-codomain l4 A B → (B → B') → | ||||||
span-fixed-domain-codomain l4 A B' | ||||||
right-extend-span-fixed-domain-codomain s g = | ||||||
extend-span-fixed-domain-codomain s id g | ||||||
``` | ||||||
|
||||||
#### Extensions by morphisms of arrows on the left | ||||||
|
||||||
Consider a `s` with fixed domain and codomain given by | ||||||
|
||||||
```text | ||||||
f g | ||||||
A <----- S -----> B | ||||||
``` | ||||||
|
||||||
and a [morphism of arrows](foundation.morphisms-arrows.md) `h : hom-arrow f' f` as indicated in the diagram | ||||||
|
||||||
```text | ||||||
h₀ g | ||||||
S' -----> S -----> B | ||||||
| | | ||||||
f' | f | | ||||||
V V | ||||||
A' -----> A'. | ||||||
h₁ | ||||||
``` | ||||||
|
||||||
Then we obtain a span `A' <- S' -> B`. | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} {A : UU l1} {B : UU l2} | ||||||
(s : span-fixed-domain-codomain l3 A B) | ||||||
{S' : UU l4} {A' : UU l5} (f' : S' → A') | ||||||
(h : hom-arrow f' (left-map-span-fixed-domain-codomain s)) | ||||||
where | ||||||
|
||||||
spanning-type-left-extend-hom-arrow-span-fixed-domain-codomain : UU l4 | ||||||
spanning-type-left-extend-hom-arrow-span-fixed-domain-codomain = S' | ||||||
|
||||||
left-map-left-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
spanning-type-left-extend-hom-arrow-span-fixed-domain-codomain → A' | ||||||
left-map-left-extend-hom-arrow-span-fixed-domain-codomain = f' | ||||||
|
||||||
right-map-left-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
spanning-type-left-extend-hom-arrow-span-fixed-domain-codomain → B | ||||||
right-map-left-extend-hom-arrow-span-fixed-domain-codomain = | ||||||
( right-map-span-fixed-domain-codomain s) ∘ | ||||||
( map-domain-hom-arrow f' (left-map-span-fixed-domain-codomain s) h) | ||||||
|
||||||
left-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
span-fixed-domain-codomain l4 A' B | ||||||
pr1 left-extend-hom-arrow-span-fixed-domain-codomain = | ||||||
spanning-type-left-extend-hom-arrow-span-fixed-domain-codomain | ||||||
pr1 (pr2 left-extend-hom-arrow-span-fixed-domain-codomain) = | ||||||
left-map-left-extend-hom-arrow-span-fixed-domain-codomain | ||||||
pr2 (pr2 left-extend-hom-arrow-span-fixed-domain-codomain) = | ||||||
right-map-left-extend-hom-arrow-span-fixed-domain-codomain | ||||||
``` | ||||||
|
||||||
#### Extensions by morphisms of arrows on the right | ||||||
|
||||||
Consider a `s` with fixed domain and codomain given by | ||||||
|
||||||
```text | ||||||
f g | ||||||
A <----- S -----> B | ||||||
``` | ||||||
|
||||||
and a [morphism of arrows](foundation.morphisms-arrows.md) `h : hom-arrow g' g` as indicated in the diagram | ||||||
|
||||||
```text | ||||||
g' | ||||||
S' ----> B' | ||||||
| | | ||||||
h₀ | | h₁ | ||||||
V V | ||||||
S -----> B | ||||||
| g | ||||||
f | | ||||||
V | ||||||
A. | ||||||
``` | ||||||
|
||||||
Then we obtain a span `A <- S' -> B'`. | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} {A : UU l1} {B : UU l2} | ||||||
(s : span-fixed-domain-codomain l3 A B) | ||||||
{S' : UU l4} {B' : UU l5} (g' : S' → B') | ||||||
(h : hom-arrow g' (right-map-span-fixed-domain-codomain s)) | ||||||
where | ||||||
|
||||||
spanning-type-right-extend-hom-arrow-span-fixed-domain-codomain : UU l4 | ||||||
spanning-type-right-extend-hom-arrow-span-fixed-domain-codomain = S' | ||||||
|
||||||
left-map-right-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
spanning-type-right-extend-hom-arrow-span-fixed-domain-codomain → A | ||||||
left-map-right-extend-hom-arrow-span-fixed-domain-codomain = | ||||||
( left-map-span-fixed-domain-codomain s) ∘ | ||||||
( map-domain-hom-arrow g' (right-map-span-fixed-domain-codomain s) h) | ||||||
|
||||||
right-map-right-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
spanning-type-right-extend-hom-arrow-span-fixed-domain-codomain → B' | ||||||
right-map-right-extend-hom-arrow-span-fixed-domain-codomain = g' | ||||||
|
||||||
right-extend-hom-arrow-span-fixed-domain-codomain : | ||||||
span-fixed-domain-codomain l4 A B' | ||||||
pr1 right-extend-hom-arrow-span-fixed-domain-codomain = | ||||||
spanning-type-right-extend-hom-arrow-span-fixed-domain-codomain | ||||||
pr1 (pr2 right-extend-hom-arrow-span-fixed-domain-codomain) = | ||||||
left-map-right-extend-hom-arrow-span-fixed-domain-codomain | ||||||
pr2 (pr2 right-extend-hom-arrow-span-fixed-domain-codomain) = | ||||||
right-map-right-extend-hom-arrow-span-fixed-domain-codomain | ||||||
``` | ||||||
|
||||||
### Extensions of spans | ||||||
|
||||||
#### Extensions on both sides | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} | ||||||
where | ||||||
|
||||||
extend-span : | ||||||
(s : span l1 l2 l3) | ||||||
{A' : UU l4} (f : domain-span s → A') | ||||||
{B' : UU l5} (g : codomain-span s → B') → | ||||||
span l4 l5 l3 | ||||||
pr1 (extend-span s {A'} f {B'} g) = A' | ||||||
pr1 (pr2 (extend-span s {A'} f {B'} g)) = B' | ||||||
pr2 (pr2 (extend-span s {A'} f {B'} g)) = | ||||||
extend-span-fixed-domain-codomain (span-fixed-domain-codomain-span s) f g | ||||||
``` | ||||||
|
||||||
#### Extensions on the left | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 : Level} | ||||||
where | ||||||
|
||||||
left-extend-span : | ||||||
(s : span l1 l2 l3) {A' : UU l4} (f : domain-span s → A') → span l4 l2 l3 | ||||||
left-extend-span s f = extend-span s f id | ||||||
``` | ||||||
|
||||||
#### Extensions on the right | ||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 : Level} | ||||||
where | ||||||
|
||||||
right-extend-span : | ||||||
(s : span l1 l2 l3) {B' : UU l4} (g : codomain-span s → B') → span l1 l4 l3 | ||||||
right-extend-span s g = extend-span s id g | ||||||
``` | ||||||
|
||||||
#### Extensions by morphisms of arrows on the left | ||||||
|
||||||
Consider a `s` with fixed domain and codomain given by | ||||||
|
||||||
```text | ||||||
f g | ||||||
A <----- S -----> B | ||||||
``` | ||||||
|
||||||
and a [morphism of arrows](foundation.morphisms-arrows.md) `h : hom-arrow f' f` as indicated in the diagram | ||||||
|
||||||
```text | ||||||
h₀ g | ||||||
S' -----> S -----> B | ||||||
| | | ||||||
f' | f | | ||||||
V V | ||||||
A' -----> A'. | ||||||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
h₁ | ||||||
``` | ||||||
|
||||||
Then we obtain a span `A' <- S' -> B`. | ||||||
fredrik-bakke marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} (s : span l1 l2 l3) | ||||||
{S' : UU l4} {A' : UU l5} (f' : S' → A') (h : hom-arrow f' (left-map-span s)) | ||||||
where | ||||||
|
||||||
domain-left-extend-hom-arrow-span : UU l5 | ||||||
domain-left-extend-hom-arrow-span = A' | ||||||
|
||||||
codomain-left-extend-hom-arrow-span : UU l2 | ||||||
codomain-left-extend-hom-arrow-span = codomain-span s | ||||||
|
||||||
span-fixed-domain-codomain-left-extend-hom-arrow-span : | ||||||
span-fixed-domain-codomain l4 | ||||||
( domain-left-extend-hom-arrow-span) | ||||||
( codomain-left-extend-hom-arrow-span) | ||||||
span-fixed-domain-codomain-left-extend-hom-arrow-span = | ||||||
left-extend-hom-arrow-span-fixed-domain-codomain | ||||||
( span-fixed-domain-codomain-span s) | ||||||
( f') | ||||||
( h) | ||||||
|
||||||
left-extend-hom-arrow-span : span l5 l2 l4 | ||||||
pr1 left-extend-hom-arrow-span = | ||||||
domain-left-extend-hom-arrow-span | ||||||
pr1 (pr2 left-extend-hom-arrow-span) = | ||||||
codomain-left-extend-hom-arrow-span | ||||||
pr2 (pr2 left-extend-hom-arrow-span) = | ||||||
span-fixed-domain-codomain-left-extend-hom-arrow-span | ||||||
|
||||||
spanning-type-left-extend-hom-arrow-span : UU l4 | ||||||
spanning-type-left-extend-hom-arrow-span = | ||||||
spanning-type-span left-extend-hom-arrow-span | ||||||
|
||||||
left-map-left-extend-hom-arrow-span : | ||||||
spanning-type-left-extend-hom-arrow-span → | ||||||
domain-left-extend-hom-arrow-span | ||||||
left-map-left-extend-hom-arrow-span = | ||||||
left-map-span left-extend-hom-arrow-span | ||||||
|
||||||
right-map-left-extend-hom-arrow-span : | ||||||
spanning-type-left-extend-hom-arrow-span → | ||||||
codomain-left-extend-hom-arrow-span | ||||||
right-map-left-extend-hom-arrow-span = | ||||||
right-map-span left-extend-hom-arrow-span | ||||||
``` | ||||||
|
||||||
#### Extensions by morphisms of arrows on the left | ||||||
|
||||||
Consider a `s` with fixed domain and codomain given by | ||||||
|
||||||
```text | ||||||
f g | ||||||
A <----- S -----> B | ||||||
``` | ||||||
|
||||||
and a [morphism of arrows](foundation.morphisms-arrows.md) `h : hom-arrow g' g` as indicated in the diagram | ||||||
|
||||||
```text | ||||||
g' | ||||||
S' ----> B' | ||||||
| | | ||||||
h₀ | | h₁ | ||||||
V V | ||||||
S -----> B | ||||||
| g | ||||||
f | | ||||||
V | ||||||
A. | ||||||
``` | ||||||
|
||||||
Then we obtain a span `A <- S' -> B'`. | ||||||
fredrik-bakke marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
```agda | ||||||
module _ | ||||||
{l1 l2 l3 l4 l5 : Level} (s : span l1 l2 l3) | ||||||
{S' : UU l4} {B' : UU l5} (g' : S' → B') | ||||||
(h : hom-arrow g' (right-map-span s)) | ||||||
where | ||||||
|
||||||
domain-right-extend-hom-arrow-span : UU l1 | ||||||
domain-right-extend-hom-arrow-span = domain-span s | ||||||
|
||||||
codomain-right-extend-hom-arrow-span : UU l5 | ||||||
codomain-right-extend-hom-arrow-span = B' | ||||||
|
||||||
span-fixed-domain-codomain-right-extend-hom-arrow-span : | ||||||
span-fixed-domain-codomain l4 | ||||||
( domain-right-extend-hom-arrow-span) | ||||||
( codomain-right-extend-hom-arrow-span) | ||||||
span-fixed-domain-codomain-right-extend-hom-arrow-span = | ||||||
right-extend-hom-arrow-span-fixed-domain-codomain | ||||||
( span-fixed-domain-codomain-span s) | ||||||
( g') | ||||||
( h) | ||||||
|
||||||
right-extend-hom-arrow-span : span l1 l5 l4 | ||||||
pr1 right-extend-hom-arrow-span = | ||||||
domain-right-extend-hom-arrow-span | ||||||
pr1 (pr2 right-extend-hom-arrow-span) = | ||||||
codomain-right-extend-hom-arrow-span | ||||||
pr2 (pr2 right-extend-hom-arrow-span) = | ||||||
span-fixed-domain-codomain-right-extend-hom-arrow-span | ||||||
|
||||||
spanning-type-right-extend-hom-arrow-span : UU l4 | ||||||
spanning-type-right-extend-hom-arrow-span = | ||||||
spanning-type-span right-extend-hom-arrow-span | ||||||
|
||||||
left-map-right-extend-hom-arrow-span : | ||||||
spanning-type-right-extend-hom-arrow-span → | ||||||
domain-right-extend-hom-arrow-span | ||||||
left-map-right-extend-hom-arrow-span = | ||||||
left-map-span right-extend-hom-arrow-span | ||||||
|
||||||
right-map-right-extend-hom-arrow-span : | ||||||
spanning-type-right-extend-hom-arrow-span → | ||||||
codomain-right-extend-hom-arrow-span | ||||||
right-map-right-extend-hom-arrow-span = | ||||||
right-map-span right-extend-hom-arrow-span | ||||||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented before, the contents of this file read more like pastings or concatenations to me