First-Order Logic
Propositional logic works with propositions, which are statements that, as a whole, are assigned either true or false.
In contrast, first-order logic (also known as predicate logic) works with predicates, which are statements that contain variables and can be true or false depending on the values of those variables. That is, first-order logic extends propositional logic by allowing formulae to depend on variables.
In turn, first-order logic allows us to express statements about objects and their properties, as well as relationships between objects.
Predicates and Quantifiers
A predicate is a function that takes one or more variables as input and returns a propositional formula:
Definition 27: Predicate
A predicate is a function that takes variables as input and returns a propositional formula. The variables are called the arguments of the predicate.
Example.
Definition 28: Universal Quantifier
The universal quantifier is a logical operator that takes a variable and a proposition as input and produces a new proposition. The proposition is true if and only if is true for every possible value of .
Definition 29: Existential Quantifier
The existential quantifier is a logical operator that takes a variable and a proposition as input and produces a new proposition. The proposition is true if and only if there exists at least one value of such that is true.
Resource 3: Properties Involving Quantifiers
| Property | Equivalence | |
|---|---|---|
| Negation Laws | Negation of | |
| Negation of | ||
| Distributivity Laws | Distributivity of over | |
| Distributivity of over | ||
| Non-distributivity of over | ||
| Non-distributivity of over | ||
| Commutativity Laws | Commutativity of | |
| Commutativity of |