Logic#

Propositional Logic#

Propositions#

I shall not try to give a general definition of “proposition”, as it is impossible to do so.

Wittgenstein Lectures, Ludwig Wittgenstein

Symbolic Expression

\(p, q, r\)

Definition

A sentence that can be judged either true or false.

Truth Tables#

Truth tables are the standard way of evaluating the truth of a symbolic proposition. However, when the number of terms in a compound proposition rises above 4, truth tables can quickly become cumbersome. See Carnap’s Method of Tautology for an alternate way of evaluating the truth of a symbolic propositions.

Value Assignment#

Each row of a truth table represents a different value assignment to the constituent propositions involved in the compound proposition. For example, in the case of “p or q”, the compound symbolic proposition is \(p \lor q\). A truth table is constructed by listing every possible combination of truth value for p and q,

\(p\)

\(q\)

\(p \lor q\)

T

T

T

T

F

T

F

T

T

F

F

F

The first two columns represent the input propositions and their respective truth-values. The third column represents the output proposition and the truth-value that results from that particular value assignment.

Each row details a different state of the world. The list is exhaustive because every possible combination is contained in the table. Therefore, by looking at the table, we know in which cases we can correctly say \(p \lor q\).

Operations#

Negation#

Symbolic Expression

\(\neg p\)

\(p\)

\(\neg p\)

T

F

F

T

Conjunction#

Symbolic Expression

\(p \land q\)

\(p\)

\(q\)

\(p \land q\)

T

T

T

T

F

F

F

T

F

F

F

F

Disjunction#

Symbolic Expression

\(p \lor q\)

\(p\)

\(q\)

\(p \lor q\)

T

T

T

T

F

T

F

T

T

F

F

F

Equivalence#

Symbolic Expression

\(p \equiv q\)

\(p\)

\(q\)

\(p \equiv q\)

T

T

T

T

F

F

F

T

F

F

F

T

Implication#

Symbolic Expression

\(p \implies q\)

Definition

A symbolic representation of a conditional (if-then) relationship between two propositions.

This type of proposition can be translated into English in the following ways,

  1. “if p, then q

  2. “whenever p, then q

  3. p implies q

  4. q follows from p

The truth table for logical implication is given below,

\(p\)

\(q\)

\(p \implies q\)

T

T

T

T

F

F

F

T

T

F

F

T

Logical Redundancy#

Logical implication can be expressed in terms of the other logical connectives introduced. Notice the range of the implication connective assigns a value of True in three cases of the four possible value assignments to its constituent propositions (i.e. three rows of the truth table are True). Logical disjunctions also assigns a value of True to three of its four possible value assignments. It is a natural question whether implication can be reduced to disjunction or visa versa.

TODO

It can be shown that all second-order logic can be reduced to universal quantification and logical equivalence. See Logical Primitives for more information regarding the number of necessarily primitive logical connectives.

Inference#

Law of Detachment#

The Law of Detachment is a symbolic expression for the process of deductive logic. The truth of an implication is asserted in conjunction with the truth of its hypothesis, which leads to the truth of the implication’s consequence. Symbolically,

\[( (p \implies q) \land p ) \implies q\]

Note

The Law of Detachment is often known by its Latin name, modus ponens.

Symbolic Arguments#

TODO

Tautologies#

TODO

Contradictions#

TODO

Carnap’s Method of Tautology#

A common problem in formal logic is determining whether a given proposition is a tautology, i.e. true in all possible cases. Since the number of rows in a truth table grows exponentially with the number of propositions, the traditional method of truth tables is computationally expensive. In Introduction to Symbolic Logic and Its Applications, Carnap presents a different method for evaluating whether or not a given proposition is a tautology. Rather than enumerating all possible cases and checking if each one is true, it suffices to show the assignment of false to a proposition is impossible. In other words, Carnap’s method starts by assuming the proposition is false and then works backwards through the logical connectives to see whether or not an assignment of false is consistent with the proposition.

For example, consider the well-known property of implications,

\[((p \implies r) \land (q \implies r)) \implies ((p \land q) \implies r)\]

To determine whether this constitues a tautology, it must be shown whether or not an assignment of false can be made to the entire proposition. The proposition is built out of nested propositions. The assignment of false to entire proposition will in turn require the subformulas of the proposition to assume particular values. This will yield conditions for evaluating whether the overall assignment is consistent with the assignment of its components. The top-level connective is,

\[s \implies t\]

Where \(s = (p \implies r) \land (q \implies r)\) and \(t = ((p \land q) \implies r)\).

In order for this implication to be false, the hypothesis, \(s\), must be true, while the consequence, \(t\), must be false.

The assignment of false to \(t\) in turn requires \(p \land q\) to be true and \(r\) to be false.

The assignment of true to \(p \land q\) in turn requires \(p\) be true and \(q\) be true.

Thus, it is seen in order for the proposition itself to be false, \(p\) and \(q\) must be true, while \(r\) is false.

These values, however, are inconsistent with the hypothesis, \(s\), which was required to be true, for \(p \implies r\) and \(q \implies r\) are both false under this assignment, and thus their conjunction is false. This contradicts our initial assumption that \(s\) is true. Therefore, the entire proposition cannot be false for any assignment and it must be concluded the entire proposition is true for all possible values of \(p\), \(q\) and \(r\).

\[((p \implies r) \land (q \implies r)) \implies ((p \land q) \implies r)\]

Categorical Logic#

Aristotelian Logic#

Aristotelian logic differs from propositional logic. In (first order) propositional logic, the proposition being expressed is reduced to a single truth value and this value is what enables its syntactic calculus through symbolic arguments. Aristotle, however, viewed the proposition as being decomposed into terms which then had categorical relations asserted between them. In other words, The Aristotelian model of logic is the study of sentences that express categorical relations between terms.

A “term” in Aristotelian logic is not quite a set and it is not quite a proposition. A “term” is a grammatical object that denotes both the subject and the predicate. In short, a term can be understood, roughly, as Aristotle’s “οὐσία”, the substance and essence of a thing.

The ontological status of a “term” in Aristotelian logic is substantially more complex than the preceding implies. To fully elucidate its natures requires a nuanced discussion on the Categories of Aristotle. To be brief, Aristotle considers thought of language as being composed of ten categories,

  1. Substance (οὐσία): What something fundamentally is.

  2. Quantity (ποσόν): How much or how many of the subtance exists.

  3. Quality (ποιόν): What kind or sort of thing a substance is.

  4. Relation (πρός τι): How a substance stands in reference to another substance.

  5. Place (ποῦ): Where the substance is located.

  6. Time (πότε): When the substance exists.

  7. Position (κεῖσθαι): The physical arrangement of the substance’s parts.

  8. State (ἔχειν): The condition or state of having something.

  9. Action (ποιεῖν): What the substance is actively doing.

  10. Passion (πάσχειν): What is being done to the substance.

The ultimate subject of a sentence in Aristotelian logic must reduce to a “substantial being” of reality.

The sentences AaB and AeB are called universal assertions since they express relations of the whole. The sentences AiB and AoB are called particular assertions since they express relations between the parts.

A sentence p is the contradictory of another sentence q if the truth of p implies the falsity of the q and the falsity of p implies the truth of q. For example, if all B are A is true, then it must be the case that some B are not A is false (i.e., some B are A). In the opposite direction, if all B are A is false, then it must be the case the some B are not A is true

A sentence p is the contrary of q if the truth of p implies the falsity of q, but the falsity of p does not imply the falsity of q. For example, if AaB is true, then it must be the case that AeB is false. However, if AaB is false, then AeB is not necessarily true, since it may be the case AiB.

A sentence p is the subcontrary of q is the falsity of p implies the truth of q, but the truth of p does not imply the falsity of q. For example, if AiB is false, then it must be the case AoB. However, from the truth of AiB, nothing regarding AoB can be deduced.

A sentence p is the subalternation of q if the truth of q implies the truth of p. For example, if AaB, it must be the case AiB.

A sentence p is the superalternation of q if the falsity of q implies the falsity of p. For example, if AiB is false, then AaB must also be false.

Conversions#

  1. AeBBeA

TODO

  1. BiAAiB

TODO

  1. AaBAiB

TODO

Figures#

Note

The traditional medieval pneumonic devices are included beside each deductive figure. The order of the vowels in the Latin name corresponds to the order of relations in symbolic argument.

First Figure#
  1. (Barbara) AaB, BaCAaC

TODO

  1. (Celarent) AeB, BaCAeC

TODO

  1. (Darii) AaB, BiCAiC

TODO

  1. (Ferio) AeB, BiCAoC

Second Figure#
  1. (Camestres) MaN, MeXNeX

TODO

  1. (Cesare) MeN, MaXNeX

TODO

  1. (Festino) MeN, MiXNoX

TODO

  1. (Baroco) MaN, MoXNoX

TODO

Third Figure#
  1. (Darapti) PaS, RaSPiR

Note

This one could be strengthened in a system with more expressive power to “all P that are S are also R”.

TODO

  1. (Felapton) PeS, RaSPoR

TODO

  1. (Datisi) PaS, RiSPiR

TODO

  1. (Disamis) PiS, RaSPiR

TODO

  1. (Bocardo) PoS, RaSPoR

TODO

  1. (Ferison) PeS, RiSPoR

TODO

Quantification#

TODO

Universal Quantification#

Symbolic Expression

\(\forall p: q\)

Definition

A symbolic expression for a universal proposition.

This type of proposition can be translated into English in the following ways,

  1. “for all p, q

  2. “for every p, q

  3. “for each p, q

Existential Quantification#

Symbolic Expression

\(\exists p: q\)

Definition

A symbolic representation of an existential proposition.

This type of proposition can be translated into English in the following ways,

  1. “there exists a p such that q

  2. “for some p, q

  3. “there is a p that q