Definition
In type theory, a predicate on types is a function
In classical set theory, a predicate is represented semantically as a subset
Relations
A binary relation between sets and is a predicate . When , we call a homogeneous relation on .
Homogeneous relations on a set support properties such as:
- reflexivity and irreflexivity
- symmetry and asymmetry
- anti-symmetry
- transitivity
These properties combine to give structured relations such as equivalence relations, preorders, partial orders, and total orders.
Functions as Relations
A binary relation is a function iff it is:
Category Pred
Define the category as follows:
- objects are where and .
- is given by:
- such that
- for each
The treating each predicate as a subset, the last step could be written condition could be also be written When is in , then can be regarded as the slice category .
Write for the subcateory of categories indexed by a particular set . Looked at another way, is the category of poset of inclusion of subsets of .
Related Concepts
- Reflexive Relation
- Symmetric Relation
- Transitive Relation
- Anti-Symmetric Relation
- Equivalence Relation
- Preorder
- Partial Order
- Total Ordering