-
Notifications
You must be signed in to change notification settings - Fork 82
Strict preorders #1308
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
Merged
Merged
Strict preorders #1308
Changes from 6 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b959f9f
extract order theory from PR 1211
EgbertRijke 67de136
make pre-commit
EgbertRijke c902276
typo
EgbertRijke ded1898
strict orders
EgbertRijke 78f3838
put min/max back
EgbertRijke a2b6844
fix broken link
EgbertRijke 3f5a8d1
make pre-commit
EgbertRijke 812a6c6
indefinite articles
EgbertRijke 219e07b
make pre-commit
EgbertRijke f10692a
\leq
EgbertRijke c17b41c
name changes
EgbertRijke 28374b8
fixes
EgbertRijke de912a6
irreflexive
EgbertRijke c4aa22f
rename strictly inflationary maps
EgbertRijke ed1905c
make pre-commit
EgbertRijke 43ac344
rename strictly preordered type to strict preorder
EgbertRijke c799ca3
make pre-commit
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 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
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
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,151 @@ | ||
# Deflationary maps on a poset | ||
|
||
```agda | ||
module order-theory.deflationary-maps-posets where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.dependent-pair-types | ||
open import foundation.propositions | ||
open import foundation.subtypes | ||
open import foundation.universe-levels | ||
|
||
open import order-theory.deflationary-maps-preorders | ||
open import order-theory.order-preserving-maps-posets | ||
open import order-theory.posets | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
A map $f : P → P$ on a [poset](order-theory.posets.md) $P$ is said to be an | ||
{{#concept "deflationary map" Disambiguation="poset" Agda=deflationary-map-Poset}} | ||
if the inequality | ||
|
||
$$ | ||
f(x) \leq x | ||
$$ | ||
|
||
holds for any element $x : P$. In other words, a map on a poset is deflationary | ||
precisely when the map on its underlying [preorder](order-theory.preorders.md) | ||
is [deflationary](order-theory.deflationary-maps-preorders.md). If $f$ is also | ||
[order preserving](order-theory.order-preserving-maps-posets.md) we say that $f$ | ||
is an | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{#concept "deflationary morphism" Disambiguation="poset" Agda=deflationary-hom-Poset}}. | ||
|
||
## Definitions | ||
|
||
### The predicate of being an deflationary map | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) (f : type-Poset P → type-Poset P) | ||
where | ||
|
||
is-deflationary-prop-map-Poset : | ||
Prop (l1 ⊔ l2) | ||
is-deflationary-prop-map-Poset = | ||
is-deflationary-prop-map-Preorder (preorder-Poset P) f | ||
|
||
is-deflationary-map-Poset : | ||
UU (l1 ⊔ l2) | ||
is-deflationary-map-Poset = | ||
is-deflationary-map-Preorder (preorder-Poset P) f | ||
|
||
is-prop-is-deflationary-map-Poset : | ||
is-prop is-deflationary-map-Poset | ||
is-prop-is-deflationary-map-Poset = | ||
is-prop-is-deflationary-map-Preorder (preorder-Poset P) f | ||
``` | ||
|
||
### The type of deflationary maps on a poset | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) | ||
where | ||
|
||
deflationary-map-Poset : | ||
UU (l1 ⊔ l2) | ||
deflationary-map-Poset = | ||
deflationary-map-Preorder (preorder-Poset P) | ||
|
||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) (f : deflationary-map-Poset P) | ||
where | ||
|
||
map-deflationary-map-Poset : | ||
type-Poset P → type-Poset P | ||
map-deflationary-map-Poset = | ||
map-deflationary-map-Preorder (preorder-Poset P) f | ||
|
||
is-deflationary-deflationary-map-Poset : | ||
is-deflationary-map-Poset P map-deflationary-map-Poset | ||
is-deflationary-deflationary-map-Poset = | ||
is-deflationary-deflationary-map-Preorder (preorder-Poset P) f | ||
``` | ||
|
||
### The predicate on order preserving maps of being deflationary | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) (f : hom-Poset P P) | ||
where | ||
|
||
is-deflationary-prop-hom-Poset : Prop (l1 ⊔ l2) | ||
is-deflationary-prop-hom-Poset = | ||
is-deflationary-prop-hom-Preorder (preorder-Poset P) f | ||
|
||
is-deflationary-hom-Poset : UU (l1 ⊔ l2) | ||
is-deflationary-hom-Poset = | ||
is-deflationary-hom-Preorder (preorder-Poset P) f | ||
|
||
is-prop-is-deflationary-hom-Poset : | ||
is-prop is-deflationary-hom-Poset | ||
is-prop-is-deflationary-hom-Poset = | ||
is-prop-is-deflationary-hom-Preorder (preorder-Poset P) f | ||
``` | ||
|
||
### The type of deflationary morphisms on a poset | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) | ||
where | ||
|
||
deflationary-hom-Poset : UU (l1 ⊔ l2) | ||
deflationary-hom-Poset = | ||
deflationary-hom-Preorder (preorder-Poset P) | ||
|
||
module _ | ||
{l1 l2 : Level} (P : Poset l1 l2) (f : deflationary-hom-Poset P) | ||
where | ||
|
||
hom-deflationary-hom-Poset : | ||
hom-Poset P P | ||
hom-deflationary-hom-Poset = | ||
hom-deflationary-hom-Preorder (preorder-Poset P) f | ||
|
||
map-deflationary-hom-Poset : | ||
type-Poset P → type-Poset P | ||
map-deflationary-hom-Poset = | ||
map-deflationary-hom-Preorder (preorder-Poset P) f | ||
|
||
preserves-order-deflationary-hom-Poset : | ||
preserves-order-Poset P P map-deflationary-hom-Poset | ||
preserves-order-deflationary-hom-Poset = | ||
preserves-order-deflationary-hom-Preorder (preorder-Poset P) f | ||
|
||
is-deflationary-deflationary-hom-Poset : | ||
is-deflationary-map-Poset P map-deflationary-hom-Poset | ||
is-deflationary-deflationary-hom-Poset = | ||
is-deflationary-deflationary-hom-Preorder (preorder-Poset P) f | ||
|
||
deflationary-map-deflationary-hom-Poset : | ||
deflationary-map-Poset P | ||
deflationary-map-deflationary-hom-Poset = | ||
deflationary-map-deflationary-hom-Preorder (preorder-Poset P) f | ||
``` |
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,151 @@ | ||
# Deflationary maps on a preorder | ||
|
||
```agda | ||
module order-theory.deflationary-maps-preorders where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.dependent-pair-types | ||
open import foundation.propositions | ||
open import foundation.subtypes | ||
open import foundation.universe-levels | ||
|
||
open import order-theory.order-preserving-maps-preorders | ||
open import order-theory.preorders | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
A map $f : P → P$ on a [preorder](order-theory.preorders.md) $P$ is said to be | ||
an | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{#concept "deflationary map" Disambiguation="preorder" Agda=deflationary-map-Preorder}} | ||
if the inequality | ||
|
||
$$ | ||
f(x) \leq x | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
$$ | ||
|
||
holds for any element $x : P$. If $f$ is also | ||
[order preserving](order-theory.order-preserving-maps-preorders.md) we say that | ||
$f$ is an | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{#concept "deflationary morphism" Disambiguation="preorder" Agda=deflationary-hom-Preorder}}. | ||
|
||
## Definitions | ||
|
||
### The predicate of being an deflationary map | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) (f : type-Preorder P → type-Preorder P) | ||
where | ||
|
||
is-deflationary-prop-map-Preorder : | ||
Prop (l1 ⊔ l2) | ||
is-deflationary-prop-map-Preorder = | ||
Π-Prop (type-Preorder P) (λ x → leq-prop-Preorder P (f x) x) | ||
|
||
is-deflationary-map-Preorder : | ||
UU (l1 ⊔ l2) | ||
is-deflationary-map-Preorder = | ||
type-Prop is-deflationary-prop-map-Preorder | ||
|
||
is-prop-is-deflationary-map-Preorder : | ||
is-prop is-deflationary-map-Preorder | ||
is-prop-is-deflationary-map-Preorder = | ||
is-prop-type-Prop is-deflationary-prop-map-Preorder | ||
``` | ||
|
||
### The type of deflationary maps on a preorder | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) | ||
where | ||
|
||
deflationary-map-Preorder : | ||
UU (l1 ⊔ l2) | ||
deflationary-map-Preorder = | ||
type-subtype (is-deflationary-prop-map-Preorder P) | ||
|
||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) (f : deflationary-map-Preorder P) | ||
where | ||
|
||
map-deflationary-map-Preorder : | ||
type-Preorder P → type-Preorder P | ||
map-deflationary-map-Preorder = | ||
pr1 f | ||
|
||
is-deflationary-deflationary-map-Preorder : | ||
is-deflationary-map-Preorder P map-deflationary-map-Preorder | ||
is-deflationary-deflationary-map-Preorder = | ||
pr2 f | ||
``` | ||
|
||
### The predicate on order preserving maps of being deflationary | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) (f : hom-Preorder P P) | ||
where | ||
|
||
is-deflationary-prop-hom-Preorder : Prop (l1 ⊔ l2) | ||
is-deflationary-prop-hom-Preorder = | ||
is-deflationary-prop-map-Preorder P (map-hom-Preorder P P f) | ||
|
||
is-deflationary-hom-Preorder : UU (l1 ⊔ l2) | ||
is-deflationary-hom-Preorder = | ||
is-deflationary-map-Preorder P (map-hom-Preorder P P f) | ||
|
||
is-prop-is-deflationary-hom-Preorder : | ||
is-prop is-deflationary-hom-Preorder | ||
is-prop-is-deflationary-hom-Preorder = | ||
is-prop-is-deflationary-map-Preorder P (map-hom-Preorder P P f) | ||
``` | ||
|
||
### The type of deflationary morphisms on a preorder | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) | ||
where | ||
|
||
deflationary-hom-Preorder : UU (l1 ⊔ l2) | ||
deflationary-hom-Preorder = | ||
type-subtype (is-deflationary-prop-hom-Preorder P) | ||
|
||
module _ | ||
{l1 l2 : Level} (P : Preorder l1 l2) (f : deflationary-hom-Preorder P) | ||
where | ||
|
||
hom-deflationary-hom-Preorder : | ||
hom-Preorder P P | ||
hom-deflationary-hom-Preorder = | ||
pr1 f | ||
|
||
map-deflationary-hom-Preorder : | ||
type-Preorder P → type-Preorder P | ||
map-deflationary-hom-Preorder = | ||
map-hom-Preorder P P hom-deflationary-hom-Preorder | ||
|
||
preserves-order-deflationary-hom-Preorder : | ||
preserves-order-Preorder P P map-deflationary-hom-Preorder | ||
preserves-order-deflationary-hom-Preorder = | ||
preserves-order-hom-Preorder P P hom-deflationary-hom-Preorder | ||
|
||
is-deflationary-deflationary-hom-Preorder : | ||
is-deflationary-map-Preorder P map-deflationary-hom-Preorder | ||
is-deflationary-deflationary-hom-Preorder = | ||
pr2 f | ||
|
||
deflationary-map-deflationary-hom-Preorder : | ||
deflationary-map-Preorder P | ||
pr1 deflationary-map-deflationary-hom-Preorder = | ||
map-deflationary-hom-Preorder | ||
pr2 deflationary-map-deflationary-hom-Preorder = | ||
is-deflationary-deflationary-hom-Preorder | ||
``` |
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.
Uh oh!
There was an error while loading. Please reload this page.