Symbolic Logic
This chapter provides notes on first-order logic.
- Primitives
- Propositional Alphabet
- Definition of a Proposition
- Compound Propositions
- Propositional Formulas
- Logical Equivalence
- De Morgan's Laws
- Tautology
- Contradictions
- Conditional Propositions
- Implications as Logical Disjunctions
- Negative Implications
- The Contrapositive
- Idiom: Only If
- The Biconditional
- Common Equivalences
First-order logic (FOL) is the field of logic most people are familiar with. It's the kind of logic we'd encounter in a "Logic 101" course, and it's the logic most heavily used in mathematics. We begin first with propositional logic.
Primitives
Before we study logic formally, let's set some ground rules. Because of how low-level logic is, there's a tendency to plunge down an all too familiar sequence:
What is ? is
What is is
What is is
While such questions are important and interesting, we need this sequence to converge as a sanity check. In logic and mathematics, we avoid infinite regression by using primitive notions — a concept that is not defined in terms of previously-defined concepts. We have to start somewhere, and if we aren't starting at the same place, well, we'll just have to go our separate ways.
Our first primitive notion is a symbol:
symbol. A symbol is a drawing or mark perceptible by sight.
For example, all of the following are symbols:
From the primitive notion of a symbol, we can construct our first definition.
alphabet. A finite set of symbols is called an alphabet, which we may arbitrarily denote as .
For example, the set:
is an alphabet of two symbols, and The alphabet:
is an alphabet of 10 symbols. This particular alphabet is called the Hindu-Arabic numerals, and each element of the set is called a digit. Having defined what an alphabet is, here is our next definition:
string. A string of length is an -tuple:
where each is a member of some alphabet That is, There exists a unique string where which we call the empty string, denoted We say that the first symbol in is the first letter and the last symbol is the last letter. The set of all strings on the alphabet is the disjoint union:
When we want to explicitly refer to a string divorced of all connotations, we will use question marks. For example, to denote the string "cookie", we write:
to denote the string 2518 we write:
Next, we define a method for combining strings.
concatenation. Given the strings and on an alphabet the concatenation is defined as:
Thus, we say that is a string on of length We define concatenation to be associative: for all We define the empty string to be the identity element: And we define concatenation to have two-sided cancellation: If then and if then
Propositional Alphabet
We begin by stating the first few symbols of our alphabet:
These symbols are given the following meanings.
Symbol | Meaning |
---|---|
constant 1 | |
constant 0 | |
not | |
or | |
and |
These first few symbols are called propositional connectives. Next, we have a set, denoted where each member of is a symbol for a propositional atom. For now, comprises the Hindu-Arabic numerals, and the Latin and Greek letters, lower and uppercase. For example, two common symbols we'll use from are and Informally, we can think of these as just symbols where we'd "plug in" statements: etc. The symbol is the Hebrew letter tav.
Definition of a Proposition
With the basic constructions, we define a proposition as follows.
proposition. Let be the alphabet A proposition is a string on for which there exists a sequence where such that For each either or there are such that is a member of the set of concatenations We denote the set of propositions on as
This definition seems awfully rigid, but it can't be helped (we're defining something that underlies all of mathematics). Fortunately, outside of the definition box, we can take a breather and look at things informally. In short, the definition says, a proposition is a string consisting only of symbols from our alphabet which we defined as:
That is, the disjoint union of the set of propositional atoms and the set of propositional connectives. That string, however, isn't just any string. It's a string with at least one of the following properties:
- is an atom.
- is
- is
- Where is one of the propositions or
Note that we've defined our propositions in prefix notation — and The benefit to prefix notation is that it follows naturally from our definitions. The cost, however, is readability. As such, we adopt the following convention without apology or compromise: Given a string we may also write and given a string we may also write