-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correcting an incorrect definition of discrete relations and discrete…
… graphs (#1222) This PR corrects an incorrect definition.
- Loading branch information
1 parent
5f454d3
commit 76c5d87
Showing
11 changed files
with
401 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Discrete binary relations | ||
|
||
```agda | ||
module foundation.discrete-binary-relations where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.binary-relations | ||
open import foundation.empty-types | ||
open import foundation.propositions | ||
open import foundation.universe-levels | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
A [binary relation](foundation.binary-relations.md) `R` on `A` is said to be | ||
{{#concept "discrete" Disambiguation="binary relation" Agda=is-discrete-Relation}} | ||
if it does not relate any elements, i.e., if the type `R x y` is empty for all | ||
`x y : A`. In other words, a binary relation is discrete if and only if it is | ||
the initial binary relation. This definition ensures that the inclusion of | ||
[discrete directed graphs](graph-theory.discrete-directed-graphs.md) is a left | ||
adjoint to the forgetful functor `(V , E) ↦ (V , ∅)`. | ||
|
||
The condition of discreteness of binary relations compares to the condition of | ||
[discreteness](foundation.discrete-reflexive-relations.md) of | ||
[reflexive relations](foundation.reflexive-relations.md) in the sense that both | ||
conditions imply initiality. A discrete binary relation is initial becauase it | ||
is empty, while a discrete reflexive relation is initial because it is | ||
[torsorial](foundation-core.torsorial-type-families.md) and hence it is an | ||
[identity system](foundation.identity-systems.md). | ||
|
||
**Note:** It is also possible to impose the torsoriality condition on an | ||
arbitrary binary relation. However, this leads to the concept of | ||
[functional correspondence](foundation.functional-correspondences.md). That is, | ||
a binary relation `R` on `A` such that `R x` is torsorial for every `x : A` is | ||
the graph of a function. | ||
|
||
## Definitions | ||
|
||
### The predicate on relations of being discrete | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} {A : UU l1} (R : Relation l2 A) | ||
where | ||
|
||
is-discrete-prop-Relation : Prop (l1 ⊔ l2) | ||
is-discrete-prop-Relation = | ||
Π-Prop A (λ x → Π-Prop A (λ y → is-empty-Prop (R x y))) | ||
|
||
is-discrete-Relation : UU (l1 ⊔ l2) | ||
is-discrete-Relation = type-Prop is-discrete-prop-Relation | ||
|
||
is-prop-is-discrete-Relation : is-prop is-discrete-Relation | ||
is-prop-is-discrete-Relation = is-prop-type-Prop is-discrete-prop-Relation | ||
``` | ||
|
||
## See also | ||
|
||
- [Discrete reflexive relations](foundation.discrete-reflexive-relations.md) | ||
- [Discrete directed graphs](graph-theory.discrete-directed-graphs.md) | ||
- [Discrete-reflexive graphs](graph-theory.discrete-reflexive-graphs.md) |
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
Oops, something went wrong.