-
Notifications
You must be signed in to change notification settings - Fork 92
Refactor function actions on cauchy approximations #1738
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
Open
malarbol
wants to merge
41
commits into
UniMath:master
Choose a base branch
from
malarbol:refactor-function-actions-cauchy-approximations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6508a94
misc results
malarbol 02e4ae0
metric extensions
malarbol d36ea7a
unused imports
malarbol 03c3e2b
refactor
malarbol 7a21f12
isometries between metric extensions
malarbol 4afd6bd
fix link
malarbol 9fe2c5f
rephrase header
malarbol 83610c8
Update src/metric-spaces/isometries-between-metric-extensions-of-pseu…
malarbol 57e8c80
Update src/metric-spaces/isometries-between-metric-extensions-of-pseu…
malarbol f955463
Update src/metric-spaces/isometries-between-metric-extensions-of-pseu…
malarbol 898e0b0
Update src/metric-spaces/isometries-between-metric-extensions-of-pseu…
malarbol 7e0a1f3
fix names
malarbol 621ab65
fix names `isometry-Metric-Extension`
malarbol aebfd7e
shorter name
malarbol 78d2866
Update src/metric-spaces/isometries-between-metric-extensions-of-pseu…
malarbol 3b1d036
import whiskering
malarbol dc35782
fix name id-isometry-XX
malarbol d0bc999
fix name id-short-function-XX
malarbol ba5385e
forgetful metric extensions of metric spaces
malarbol fd43093
plural (preserves|reflects)-neighborhoods-XXX
malarbol 1e8202c
remove --lossy-unification
malarbol 6f601dd
Merge branch 'master' into metric-extensions
malarbol 81a70be
Merge branch 'master' into metric-extensions
malarbol 55d66a4
Merge branch 'master' into metric-extensions
malarbol 4b1c84f
refactor action of functions
malarbol 3f01f29
fix link
malarbol a48c9a7
fix link
malarbol 4979c51
remove metric extensions
malarbol ec29d82
Update src/metric-spaces/action-of-isometries-on-cauchy-approximation…
malarbol 95f93b9
Update src/metric-spaces/action-of-short-maps-on-cauchy-approximation…
malarbol bc8bc1e
Update src/metric-spaces/action-of-short-maps-on-cauchy-approximation…
malarbol 7864a77
Update src/metric-spaces/action-of-short-maps-on-cauchy-approximation…
malarbol 10bac4c
Update src/metric-spaces/action-of-short-maps-on-cauchy-approximation…
malarbol 3d3307b
Update src/metric-spaces/action-of-isometries-on-cauchy-approximation…
malarbol 76a216b
Update src/metric-spaces/cauchy-approximations-in-cauchy-pseudocomple…
malarbol ca042bd
fix phrasing
malarbol fac7192
abstract
malarbol 7cfa0ca
fix module names
malarbol c82b230
Merge branch 'master' into refactor-function-actions-cauchy-approxima…
malarbol c71ea93
typo
malarbol 033f6d5
fix name
malarbol 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
143 changes: 143 additions & 0 deletions
143
...-spaces/action-on-cauchy-approximations-isometries-pseudometric-spaces.lagda.md
This file contains hidden or 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,143 @@ | ||
| # The action on Cauchy approximations of isometries between pseudometric spaces | ||
|
|
||
| ```agda | ||
| module metric-spaces.action-on-cauchy-approximations-isometries-pseudometric-spaces where | ||
| ``` | ||
|
|
||
| <details><summary>Imports</summary> | ||
|
|
||
| ```agda | ||
| open import elementary-number-theory.addition-positive-rational-numbers | ||
| open import elementary-number-theory.positive-rational-numbers | ||
|
|
||
| open import foundation.dependent-pair-types | ||
| open import foundation.function-extensionality | ||
| open import foundation.function-types | ||
| open import foundation.homotopies | ||
| open import foundation.identity-types | ||
| open import foundation.propositions | ||
| open import foundation.subtypes | ||
| open import foundation.universe-levels | ||
|
|
||
| open import metric-spaces.action-on-cauchy-approximations-short-maps-pseudometric-spaces | ||
| open import metric-spaces.cauchy-approximations-pseudometric-spaces | ||
| open import metric-spaces.cauchy-pseudocompletion-of-pseudometric-spaces | ||
| open import metric-spaces.isometries-pseudometric-spaces | ||
| open import metric-spaces.pseudometric-spaces | ||
| open import metric-spaces.short-functions-pseudometric-spaces | ||
| ``` | ||
|
|
||
| </details> | ||
|
|
||
| ## Idea | ||
|
|
||
| [Isometries](metric-spaces.isometries-pseudometric-spaces.md) between | ||
| [pseudometric spaces](metric-spaces.pseudometric-spaces.md) act on | ||
| [Cauchy approximations](metric-spaces.cauchy-approximations-pseudometric-spaces.md) | ||
| and induce an isometry between the | ||
| [Cauchy pseudocompletions](metric-spaces.cauchy-pseudocompletion-of-pseudometric-spaces.md). | ||
|
|
||
| ## Definitions | ||
|
|
||
| ### The action of isometries on Cauchy approximations | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Pseudometric-Space l1 l2) (B : Pseudometric-Space l1' l2') | ||
| (f : isometry-Pseudometric-Space A B) | ||
| where | ||
|
|
||
| map-cauchy-approximation-isometry-Pseudometric-Space : | ||
| cauchy-approximation-Pseudometric-Space A → | ||
| cauchy-approximation-Pseudometric-Space B | ||
| map-cauchy-approximation-isometry-Pseudometric-Space = | ||
| map-cauchy-approximation-short-function-Pseudometric-Space | ||
| ( A) | ||
| ( B) | ||
| ( short-isometry-Pseudometric-Space A B f) | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| ### The action of isometries on Cauchy approximations is an isometry | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Pseudometric-Space l1 l2) (B : Pseudometric-Space l1' l2') | ||
| (f : isometry-Pseudometric-Space A B) | ||
| where abstract | ||
|
|
||
| preserves-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space : | ||
| (d : ℚ⁺) → | ||
| (x y : cauchy-approximation-Pseudometric-Space A) → | ||
| neighborhood-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( d) | ||
| ( x) | ||
| ( y) → | ||
| neighborhood-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| ( d) | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f x) | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f y) | ||
| preserves-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space = | ||
| preserves-neighborhoods-map-cauchy-approximation-short-function-Pseudometric-Space | ||
| ( A) | ||
| ( B) | ||
| ( short-isometry-Pseudometric-Space A B f) | ||
|
|
||
| reflects-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space : | ||
| (d : ℚ⁺) → | ||
| (x y : cauchy-approximation-Pseudometric-Space A) → | ||
| neighborhood-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| ( d) | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f x) | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f y) → | ||
| neighborhood-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( d) | ||
| ( x) | ||
| ( y) | ||
| reflects-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space | ||
| d x y Nxy α β = | ||
| reflects-neighborhoods-map-isometry-Pseudometric-Space | ||
| ( A) | ||
| ( B) | ||
| ( f) | ||
| ( α +ℚ⁺ β +ℚ⁺ d) | ||
| ( map-cauchy-approximation-Pseudometric-Space A x α) | ||
| ( map-cauchy-approximation-Pseudometric-Space A y β) | ||
| ( Nxy α β) | ||
|
|
||
| is-isometry-map-cauchy-approximation-isometry-Pseudometric-Space : | ||
| is-isometry-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f) | ||
| is-isometry-map-cauchy-approximation-isometry-Pseudometric-Space d x y = | ||
| ( ( preserves-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space | ||
| ( d) | ||
| ( x) | ||
| ( y)) , | ||
| ( reflects-neighborhoods-map-cauchy-approximation-isometry-Pseudometric-Space | ||
| ( d) | ||
| ( x) | ||
| ( y))) | ||
|
|
||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Pseudometric-Space l1 l2) (B : Pseudometric-Space l1' l2') | ||
| (f : isometry-Pseudometric-Space A B) | ||
| where | ||
|
|
||
| isometry-map-cauchy-approximation-isometry-Pseudometric-Space : | ||
| isometry-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| isometry-map-cauchy-approximation-isometry-Pseudometric-Space = | ||
| ( map-cauchy-approximation-isometry-Pseudometric-Space A B f , | ||
| is-isometry-map-cauchy-approximation-isometry-Pseudometric-Space A B f) | ||
| ``` |
91 changes: 91 additions & 0 deletions
91
...metric-spaces/action-on-cauchy-approximations-short-maps-metric-spaces.lagda.md
malarbol marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,91 @@ | ||
| # The action on Cauchy approximations of short maps between metric spaces | ||
|
|
||
| ```agda | ||
| module metric-spaces.action-on-cauchy-approximations-short-maps-metric-spaces where | ||
| ``` | ||
|
|
||
| <details><summary>Imports</summary> | ||
|
|
||
| ```agda | ||
| open import elementary-number-theory.addition-positive-rational-numbers | ||
| open import elementary-number-theory.positive-rational-numbers | ||
|
|
||
| open import foundation.dependent-pair-types | ||
| open import foundation.function-extensionality | ||
| open import foundation.function-types | ||
| open import foundation.homotopies | ||
| open import foundation.identity-types | ||
| open import foundation.propositions | ||
| open import foundation.subtypes | ||
| open import foundation.universe-levels | ||
|
|
||
| open import metric-spaces.action-on-cauchy-approximations-short-maps-pseudometric-spaces | ||
| open import metric-spaces.cauchy-approximations-metric-spaces | ||
| open import metric-spaces.metric-spaces | ||
| open import metric-spaces.short-functions-metric-spaces | ||
| ``` | ||
|
|
||
| </details> | ||
|
|
||
| ## Idea | ||
|
|
||
| [metric spaces](metric-spaces.metric-spaces.md) act on | ||
| [cauchy approximations](metric-spaces.cauchy-approximations-metric-spaces.md) | ||
| and induce a short map between the | ||
| [Cauchy pseudocompletions](metric-spaces.cauchy-pseudocompletion-of-metric-spaces.md). | ||
|
|
||
| ## Definitions | ||
|
|
||
| ### The action of short maps on Cauchy approximations | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Metric-Space l1 l2) (B : Metric-Space l1' l2') | ||
| (f : short-function-Metric-Space A B) | ||
| where | ||
|
|
||
| map-short-function-cauchy-approximation-Metric-Space : | ||
| cauchy-approximation-Metric-Space A → | ||
| cauchy-approximation-Metric-Space B | ||
| map-short-function-cauchy-approximation-Metric-Space = | ||
| map-cauchy-approximation-short-function-Pseudometric-Space | ||
| ( pseudometric-Metric-Space A) | ||
| ( pseudometric-Metric-Space B) | ||
| ( f) | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| ### Functoriality of the action of short maps | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 : Level} | ||
| (A : Metric-Space l1 l2) | ||
| where | ||
|
|
||
| htpy-id-map-short-function-cauchy-approximation-Metric-Space : | ||
| map-short-function-cauchy-approximation-Metric-Space | ||
| ( A) | ||
| ( A) | ||
| ( id-short-function-Metric-Space A) = | ||
| id | ||
| htpy-id-map-short-function-cauchy-approximation-Metric-Space = refl | ||
|
|
||
| module _ | ||
| {l1a l2a l1b l2b l1c l2c : Level} | ||
| (A : Metric-Space l1a l2a) | ||
| (B : Metric-Space l1b l2b) | ||
| (C : Metric-Space l1c l2c) | ||
| (g : short-function-Metric-Space B C) | ||
| (f : short-function-Metric-Space A B) | ||
| where | ||
|
|
||
| htpy-comp-map-short-function-cauchy-approximation-Metric-Space : | ||
| ( map-short-function-cauchy-approximation-Metric-Space B C g ∘ | ||
| map-short-function-cauchy-approximation-Metric-Space A B f) = | ||
| ( map-short-function-cauchy-approximation-Metric-Space A C | ||
| ( comp-short-function-Metric-Space A B C g f)) | ||
| htpy-comp-map-short-function-cauchy-approximation-Metric-Space = refl | ||
| ``` |
97 changes: 97 additions & 0 deletions
97
...-spaces/action-on-cauchy-approximations-short-maps-pseudometric-spaces.lagda.md
malarbol marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,97 @@ | ||
| # The action on Cauchy approximations of short maps between pseudometric spaces | ||
|
|
||
| ```agda | ||
| module metric-spaces.action-on-cauchy-approximations-short-maps-pseudometric-spaces where | ||
| ``` | ||
|
|
||
| <details><summary>Imports</summary> | ||
|
|
||
| ```agda | ||
| open import elementary-number-theory.addition-positive-rational-numbers | ||
| open import elementary-number-theory.positive-rational-numbers | ||
|
|
||
| open import foundation.dependent-pair-types | ||
| open import foundation.function-extensionality | ||
| open import foundation.function-types | ||
| open import foundation.homotopies | ||
| open import foundation.identity-types | ||
| open import foundation.propositions | ||
| open import foundation.subtypes | ||
| open import foundation.universe-levels | ||
|
|
||
| open import metric-spaces.cauchy-approximations-pseudometric-spaces | ||
| open import metric-spaces.cauchy-pseudocompletion-of-pseudometric-spaces | ||
| open import metric-spaces.isometries-pseudometric-spaces | ||
| open import metric-spaces.pseudometric-spaces | ||
| open import metric-spaces.short-functions-pseudometric-spaces | ||
| ``` | ||
|
|
||
| </details> | ||
|
|
||
| ## Idea | ||
|
|
||
| [Short maps](metric-spaces.short-functions-pseudometric-spaces.md) between | ||
| [pseudometric spaces](metric-spaces.pseudometric-spaces.md) act on | ||
| [cauchy approximations](metric-spaces.cauchy-approximations-pseudometric-spaces.md) | ||
| and induce a short map between the | ||
| [Cauchy pseudocompletions](metric-spaces.cauchy-pseudocompletion-of-pseudometric-spaces.md). | ||
|
|
||
| ## Definitions | ||
|
|
||
| ### The action of short maps on Cauchy approximations | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Pseudometric-Space l1 l2) (B : Pseudometric-Space l1' l2') | ||
| (f : short-function-Pseudometric-Space A B) | ||
| where | ||
|
|
||
| map-cauchy-approximation-short-function-Pseudometric-Space : | ||
| cauchy-approximation-Pseudometric-Space A → | ||
| cauchy-approximation-Pseudometric-Space B | ||
| map-cauchy-approximation-short-function-Pseudometric-Space (u , H) = | ||
| ( map-short-function-Pseudometric-Space A B f ∘ u , | ||
| λ ε δ → | ||
| is-short-map-short-function-Pseudometric-Space | ||
| ( A) | ||
| ( B) | ||
| ( f) | ||
| ( ε +ℚ⁺ δ) | ||
| ( u ε) | ||
| ( u δ) | ||
| ( H ε δ)) | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| ### The action of short maps on Cauchy approximations is short | ||
|
|
||
| ```agda | ||
| module _ | ||
| {l1 l2 l1' l2' : Level} | ||
| (A : Pseudometric-Space l1 l2) (B : Pseudometric-Space l1' l2') | ||
| (f : short-function-Pseudometric-Space A B) | ||
| where | ||
|
|
||
| preserves-neighborhoods-map-cauchy-approximation-short-function-Pseudometric-Space : | ||
| is-short-function-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| ( map-cauchy-approximation-short-function-Pseudometric-Space A B f) | ||
| preserves-neighborhoods-map-cauchy-approximation-short-function-Pseudometric-Space | ||
| d x y Nxy α β = | ||
| is-short-map-short-function-Pseudometric-Space A B f | ||
| ( α +ℚ⁺ β +ℚ⁺ d) | ||
| ( map-cauchy-approximation-Pseudometric-Space A x α) | ||
| ( map-cauchy-approximation-Pseudometric-Space A y β) | ||
| ( Nxy α β) | ||
|
|
||
| short-map-cauchy-approximation-short-function-Pseudometric-Space : | ||
| short-function-Pseudometric-Space | ||
| ( cauchy-pseudocompletion-Pseudometric-Space A) | ||
| ( cauchy-pseudocompletion-Pseudometric-Space B) | ||
| short-map-cauchy-approximation-short-function-Pseudometric-Space = | ||
| ( map-cauchy-approximation-short-function-Pseudometric-Space A B f , | ||
| preserves-neighborhoods-map-cauchy-approximation-short-function-Pseudometric-Space) | ||
| ``` |
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.
Uh oh!
There was an error while loading. Please reload this page.