-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iterating families of maps over a map (#1195)
Adds a module about iterating families of maps over a map, and does some refactoring for inverse sequential diagrams.
- Loading branch information
1 parent
4545c3a
commit cfd565d
Showing
9 changed files
with
224 additions
and
85 deletions.
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
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
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
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
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
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,116 @@ | ||
# Iterating families of maps over a map | ||
|
||
```agda | ||
module foundation.iterating-families-of-maps where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import elementary-number-theory.addition-natural-numbers | ||
open import elementary-number-theory.exponentiation-natural-numbers | ||
open import elementary-number-theory.multiplication-natural-numbers | ||
open import elementary-number-theory.multiplicative-monoid-of-natural-numbers | ||
open import elementary-number-theory.natural-numbers | ||
|
||
open import foundation.action-on-higher-identifications-functions | ||
open import foundation.action-on-identifications-dependent-functions | ||
open import foundation.action-on-identifications-functions | ||
open import foundation.dependent-homotopies | ||
open import foundation.dependent-identifications | ||
open import foundation.dependent-pair-types | ||
open import foundation.function-extensionality | ||
open import foundation.iterating-functions | ||
open import foundation.transport-along-identifications | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.commuting-squares-of-maps | ||
open import foundation-core.endomorphisms | ||
open import foundation-core.homotopies | ||
open import foundation-core.identity-types | ||
open import foundation-core.sets | ||
|
||
open import group-theory.monoid-actions | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Given a family of maps `g : (x : X) → C x → C (f x)` over a map `f : X → X`, | ||
then `g` can be | ||
{{#concept "iterated" Disambiguation="family of maps over a map of types" Agda=iterate-family-of-maps}} | ||
by repeatedly applying `g`. | ||
|
||
## Definition | ||
|
||
### Iterating dependent functions | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} {X : UU l1} {C : X → UU l2} {f : X → X} | ||
where | ||
|
||
iterate-family-of-maps : | ||
(k : ℕ) → ((x : X) → C x → C (f x)) → (x : X) → C x → C (iterate k f x) | ||
iterate-family-of-maps zero-ℕ g x y = y | ||
iterate-family-of-maps (succ-ℕ k) g x y = | ||
g (iterate k f x) (iterate-family-of-maps k g x y) | ||
|
||
iterate-family-of-maps' : | ||
(k : ℕ) → ((x : X) → C x → C (f x)) → (x : X) → C x → C (iterate' k f x) | ||
iterate-family-of-maps' zero-ℕ g x y = y | ||
iterate-family-of-maps' (succ-ℕ k) g x y = | ||
iterate-family-of-maps' k g (f x) (g x y) | ||
``` | ||
|
||
## Properties | ||
|
||
### The two definitions of iterating dependent functions are homotopic | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} {X : UU l1} {C : X → UU l2} {f : X → X} | ||
where | ||
|
||
reassociate-iterate-family-of-maps-succ-ℕ : | ||
(k : ℕ) (g : (x : X) → C x → C (f x)) (x : X) (y : C x) → | ||
dependent-identification C | ||
( reassociate-iterate-succ-ℕ k f x) | ||
( g (iterate k f x) (iterate-family-of-maps k g x y)) | ||
( iterate-family-of-maps k g (f x) (g x y)) | ||
reassociate-iterate-family-of-maps-succ-ℕ zero-ℕ g x y = refl | ||
reassociate-iterate-family-of-maps-succ-ℕ (succ-ℕ k) g x y = | ||
equational-reasoning | ||
tr C | ||
( reassociate-iterate-succ-ℕ (succ-ℕ k) f x) | ||
( g (iterate (succ-ℕ k) f x) (iterate-family-of-maps (succ-ℕ k) g x y)) | ||
= | ||
g ( iterate k f (f x)) | ||
( tr C | ||
( reassociate-iterate-succ-ℕ k f x) | ||
( g (iterate k f x) (iterate-family-of-maps k g x y))) | ||
by | ||
tr-ap f g | ||
( reassociate-iterate-succ-ℕ k f x) | ||
( iterate-family-of-maps (succ-ℕ k) g x y) | ||
= g (iterate k f (f x)) (iterate-family-of-maps k g (f x) (g x y)) | ||
by | ||
ap | ||
( g (iterate k f (f x))) | ||
( reassociate-iterate-family-of-maps-succ-ℕ k g x y) | ||
|
||
reassociate-iterate-family-of-maps : | ||
(k : ℕ) (g : (x : X) → C x → C (f x)) (x : X) (y : C x) → | ||
dependent-identification C | ||
( reassociate-iterate k f x) | ||
( iterate-family-of-maps k g x y) | ||
( iterate-family-of-maps' k g x y) | ||
reassociate-iterate-family-of-maps zero-ℕ g x y = refl | ||
reassociate-iterate-family-of-maps (succ-ℕ k) g x y = | ||
concat-dependent-identification C | ||
( reassociate-iterate-succ-ℕ k f x) | ||
( reassociate-iterate k f (f x)) | ||
( reassociate-iterate-family-of-maps-succ-ℕ k g x y) | ||
( reassociate-iterate-family-of-maps k g (f x) (g x y)) | ||
``` |
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.