Predicates, Functors, and Logical Connectives
Predicates
Predicates are tools in logic for describing the attributes and relations of objects. A unary predicate describes the property of a single object, containing only one variable, typically represented in the form
Binary and multiary predicates describe relationships between objects. For instance,
Functors
Functors are tools for establishing connections between different categories. In category theory, a category consists of objects and morphisms; objects can be anything, while morphisms are mappings that preserve structure between objects. Imagine two different cities, each with its own set of streets and buildings. The streets and buildings in each city can be seen as a “category.” In each category, streets (corresponding to morphisms) connect buildings (corresponding to objects). The layout of streets and buildings may differ completely between cities.
A functor acts as a highly detailed map, not only showing the corresponding location of each building in another city but also explaining the corresponding route (street) in the other city. In other words, a functor is a rule that maps objects and morphisms in one category to objects and morphisms in another category while preserving relationships (maintaining the structure of the category). In comparison, a function only acts on objects, describing a simple mapping relationship between two sets.
Suppose there are two categories representing position and temperature. For example,
These two concepts may sound complex, but they are not difficult. Predicates describe relationships or states between objects, while functors are mappings between categories. When we input a property value, we get the value of a new property in return.
Logical Connectives
We often use propositional variables
Negation, representing “not”; means “not .” Conjunction, representing “and”; means “both and hold.” Disjunction, representing “or”; means “at least one of or holds.” Implication, representing “if…then…”; means “if holds, then also holds.” Biconditional, representing “if and only if”; means “ holds if and only if holds.”
In Carnap’s book,