1. Home
  2. Explore
  3. Philosophy
  4. Introduction to Logic

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Logic

Foundations of Classical Logic

Why logic matters

Logic studies the principles by which conclusions follow from premises. It provides tools for evaluating whether reasoning is consistent and whether an argument’s conclusion is supported by its assumptions. Logic is useful across fields because arguments in mathematics, science, philosophy, and everyday decision-making all rely on relationships between claims.

Learning basic logic does not require becoming a specialist. Understanding a few central principles and practicing how to apply them can make reasoning clearer. Logic distinguishes several ideas that should not be confused:

  • A statement’s truth concerns whether that statement accurately describes a situation.

  • An argument’s validity concerns whether its conclusion follows from its premises.

  • An argument’s soundness concerns both its validity and the truth of its premises.

The basic rules described here belong to classical logic, which treats propositions as having one of two truth values: true or false.


Aristotle’s Laws of Thought

Three principles commonly associated with Aristotle are called the laws of thought. They describe basic constraints on classical reasoning.

The law of identity

The law of identity states that a thing is identical with itself. Symbolically, this is expressed as A=AA = AA=A.

If an object or proposition is designated as AAA, then it is AAA. Stable identity is necessary for meaningful discussion: if a term changed its meaning unpredictably during an argument, it would be impossible to determine what the argument claimed.

For example, if a particular object is being discussed as a chair, a speaker cannot silently switch what “that chair” refers to midway through the argument.

The law of non-contradiction

The law of non-contradiction states that a proposition and its negation cannot both be true at the same time and in the same respect. Its form is ¬(A∧¬A)\neg(A \land \neg A)¬(A∧¬A).

If AAA means “the object is a chair,” then AAA and ¬A\neg A¬A cannot both be true of that object at the same time and in the same sense. This qualification matters: an object could be a chair at one time and no longer be a chair later, or it could count as a chair under one definition but not another. Such cases change the time or interpretation rather than affirming a contradiction in the same respect.

The law of excluded middle

The law of excluded middle states that for any proposition AAA, either AAA or its negation is true. Its form is A∨¬AA \lor \neg AA∨¬A.

This principle concerns a proposition and its exact negation. It should not be mistaken for the claim that any two contrasting descriptions must cover every possibility. For example, “hot” and “cold” may leave room for “lukewarm.” The law applies when the alternatives are genuinely exhaustive—for example, “hot” or “not hot.”

In classical logic, a proposition cannot be both true and false in the same respect, and it cannot be neither true nor false.

These principles support stable meanings and consistent reasoning. Different logical systems may treat some principles differently, but the laws above are foundational within classical logic.


Propositions, connectives, and truth tables

A proposition is a statement that can be evaluated as true or false. Letters such as AAA, BBB, PPP, and QQQ stand for propositions. Logical connectives combine or modify propositions:

  • Negation means “not.”

  • Conjunction means “and.”

  • Disjunction means “or.”

  • A conditional means “if … then ….”

  • A biconditional means “if and only if.”

A truth table lists the possible truth-value combinations for the propositions in an expression and shows the truth value of the resulting expression in each case. It makes an evaluation systematic by checking every possible assignment of truth values.

For nnn propositional variables, a complete truth table has 2n2^n2n rows:

  • One variable requires 21=22^1 = 221=2 rows.

  • Two variables require 22=42^2 = 422=4 rows.

  • Three variables require 23=82^3 = 823=8 rows.

With two variables, a standard ordering of the possible assignments is:

  • A=TA = TA=T, B=TB = TB=T

  • A=TA = TA=T, B=FB = FB=F

  • A=FA = FA=F, B=TB = TB=T

  • A=FA = FA=F, B=FB = FB=F

Here, TTT means true and FFF means false. A helpful practice is to translate each symbol into words while evaluating it—for example, to read ¬A\neg A¬A as “not AAA.”


The basic truth tables

Negation

Negation reverses the truth value of a proposition. The symbol ¬\neg¬ means “not.” Negation is not arithmetic subtraction; it is a logical operation.

  • If AAA is true, then ¬A\neg A¬A is false.

  • If AAA is false, then ¬A\neg A¬A is true.

For example, if AAA means “I have a hamburger,” then ¬A\neg A¬A means “I do not have a hamburger.”

Conjunction

Conjunction joins propositions with “and.” The symbol is ∧\land∧, so A∧BA \land BA∧B means “AAA and BBB.”

  • A∧BA \land BA∧B is true only when both AAA and BBB are true.

  • It is false when either proposition is false or when both are false.

For example, if AAA means “I receive a hamburger” and BBB means “I receive fries,” then A∧BA \land BA∧B is true only if both items are received.

Disjunction

Disjunction joins propositions with “or.” The symbol is ∨\lor∨, so A∨BA \lor BA∨B means “AAA or BBB.”

In standard classical logic, this is an inclusive disjunction:

  • A∨BA \lor BA∨B is true if AAA is true, if BBB is true, or if both are true.

  • It is false only when both AAA and BBB are false.

Thus, if someone promises “a hamburger or fries,” the logical disjunction is true if they provide either item—or both. Whether that wording would be understood differently in ordinary conversation is a question of conversational meaning, not the truth table for inclusive disjunction.

Material conditional

A material conditional represents “if AAA, then BBB” and is written A→BA \to BA→B.

  • AAA is the antecedent, the proposition following “if.”

  • BBB is the consequent, the proposition following “then.”

  • A→BA \to BA→B is false only when the antecedent is true and the consequent is false.

  • In all other cases, it is true.

The four cases are:

  • A=TA = TA=T, B=TB = TB=T: A→BA \to BA→B is true.

  • A=TA = TA=T, B=FB = FB=F: A→BA \to BA→B is false.

  • A=FA = FA=F, B=TB = TB=T: A→BA \to BA→B is true.

  • A=FA = FA=F, B=FB = FB=F: A→BA \to BA→B is true.

When the antecedent is false, the conditional is true in material logic, regardless of the consequent. This is sometimes called vacuous truth. For instance, a statement of the form “If I visit, then I receive a hamburger” is not falsified by a situation in which no visit occurs. The material conditional does not by itself express that the antecedent causes the consequent; it captures a particular truth-functional relationship.

Biconditional

A biconditional represents “if and only if” and is written A↔BA \leftrightarrow BA↔B.

  • A↔BA \leftrightarrow BA↔B is true when AAA and BBB have the same truth value.

  • It is false when one is true and the other is false.

Therefore, it is true in the T,TT,TT,T and F,FF,FF,F cases, and false in the T,FT,FT,F and F,TF,TF,T cases. It can be understood as asserting both directions: if AAA, then BBB, and if BBB, then AAA.

Biconditionals are useful for expressing definitions or exact conditions. For instance, a proposed definition might claim that a condition holds if and only if another condition holds. This is stronger than saying that the first condition is sufficient for the second: it claims a connection in both directions.


Deductive reasoning and argument evaluation

A deductive argument is valid when it is impossible for all its premises to be true while its conclusion is false. Validity concerns the argument’s structure, not whether its premises happen to be true in the real world.

A sound argument is both:

  • Valid: the premises cannot all be true while the conclusion is false.

  • Premise-true: every premise is actually true.

For example:

  1. All men are mortal.

  2. Socrates is a man.

  3. Therefore, Socrates is mortal.

The argument is valid because the conclusion follows necessarily from the premises. If the premises are also true, the argument is sound.

Testing validity with a truth table

To test a propositional argument:

  1. Identify every distinct propositional variable.

  2. Create all possible truth-value combinations, using 2n2^n2n rows for nnn variables.

  3. Calculate the truth value of each premise and the conclusion in every row.

  4. Look for a row in which all premises are true and the conclusion is false.

If such a row exists, it is a counterexample to the argument, and the argument is invalid. If no such row exists, the argument is valid.

A valid argument does not require its premises to be true in every row. It requires only that there be no possible row where all the premises are true and the conclusion is false.


Three common deductive forms

Modus ponens

Modus ponens has this form:

  • If PPP, then QQQ.

  • PPP.

  • Therefore, QQQ.

In symbols: P→QP \to QP→Q, PPP, therefore QQQ.

Example:

  • If there is sugar in the cookie, the cookie is sweet.

  • There is sugar in the cookie.

  • Therefore, the cookie is sweet.

Whenever both premises are true, the conclusion must be true. Modus ponens is valid.

Affirming the consequent

Affirming the consequent mistakenly reverses the direction of a conditional:

  • If PPP, then QQQ.

  • QQQ.

  • Therefore, PPP.

This form is invalid. QQQ could be true for a reason other than PPP.

For example:

  • If there is sugar in the cookie, the cookie is sweet.

  • The cookie is sweet.

  • Therefore, there is sugar in the cookie.

The cookie might be sweet because of another ingredient. A truth table reveals a case in which both premises are true but the conclusion is false.

Modus tollens

Modus tollens has this form:

  • If PPP, then QQQ.

  • Not QQQ.

  • Therefore, not PPP.

In symbols: P→QP \to QP→Q, ¬Q\neg Q¬Q, therefore ¬P\neg P¬P.

Example:

  • If there is sugar in the cookie, the cookie is sweet.

  • The cookie is not sweet.

  • Therefore, there is no sugar in the cookie.

Given the conditional premise, denying its consequent requires denying its antecedent. This form is valid.

Denying the antecedent

Denying the antecedent mistakenly assumes that the negation of the antecedent guarantees the negation of the consequent:

  • If PPP, then QQQ.

  • Not PPP.

  • Therefore, not QQQ.

This form is invalid. The consequent might still be true for another reason.

For example:

  • If there is sugar in the cookie, the cookie is sweet.

  • There is no sugar in the cookie.

  • Therefore, the cookie is not sweet.

The cookie might be sweet because of another ingredient. A truth table provides a row where both premises are true and the conclusion is false.

Disjunctive syllogism

Disjunctive syllogism uses a disjunction and rules out one of its alternatives:

  • PPP or QQQ.

  • Not PPP.

  • Therefore, QQQ.

In symbols: P∨QP \lor QP∨Q, ¬P\neg P¬P, therefore QQQ.

For example:

  • I will receive a hamburger or fries.

  • I did not receive a hamburger.

  • Therefore, I received fries.

This form is valid under standard inclusive-disjunction logic: if at least one alternative must be true and PPP is false, then QQQ must be true.


Redundant connectives and logical equivalence

A connective is redundant in a logical system when it can be defined using other connectives. Redundancy does not mean that the connective is useless in practice; familiar connectives can make expressions easier to read.

Exclusive disjunction

An exclusive disjunction, often called XOR, means that exactly one of two propositions is true. It is true when one proposition is true and the other is false, and false when both have the same truth value.

It can be expressed using negation, conjunction, and inclusive disjunction:

(A∨B)∧¬(A∧B)(A \lor B) \land \neg(A \land B)(A∨B)∧¬(A∧B)

This says that at least one of AAA and BBB is true, while ruling out the case in which both are true. Therefore, a separate exclusive-or connective is not necessary if ¬\neg¬, ∧\land∧, and ∨\lor∨ are available.

Biconditional in terms of conditionals

A biconditional is equivalent to the conjunction of two conditionals:

(A→B)∧(B→A)(A \to B) \land (B \to A)(A→B)∧(B→A)

The first conditional states that AAA implies BBB; the second states that BBB implies AAA. Together, they are true exactly when AAA and BBB have the same truth value.

Conditional in terms of negation and disjunction

A material conditional is equivalent to a disjunction:

A→B≡¬A∨BA \to B \equiv \neg A \lor BA→B≡¬A∨B

Both expressions are false only when AAA is true and BBB is false. In all other cases, both are true. Consequently, material conditionals and biconditionals can be defined using negation, conjunction, and disjunction.

Logical equivalence versus biconditional

Logical equivalence describes a relationship between two expressions: they are logically equivalent if they have identical truth values in every possible case. It is often written with a symbol such as ≡\equiv≡.

A biconditional, by contrast, is a connective inside a proposition, such as A↔BA \leftrightarrow BA↔B. These ideas are closely related but play different roles: equivalence compares expressions, while a biconditional forms a compound proposition.


Functionally complete operators

A set of connectives is functionally complete if every truth-functional operation can be expressed using connectives from that set.

Negation, conjunction, and disjunction together are functionally complete. The conditional and biconditional can be built from them, as can exclusive disjunction. Thus, these three connectives are sufficient to express all the operators discussed above.

A logical system can be reduced even further by using either of two single connectives:

  • NAND, “not both,” is the negation of conjunction: ¬(A∧B)\neg(A \land B)¬(A∧B).

  • NOR, “neither nor,” is the negation of disjunction: ¬(A∨B)\neg(A \lor B)¬(A∨B).

Each is individually functionally complete: all ordinary truth-functional connectives can be constructed from NAND alone or from NOR alone. For example, negation can be formed from NAND by giving it the same proposition twice:

¬A≡¬(A∧A)\neg A \equiv \neg(A \land A)¬A≡¬(A∧A)

Although a single connective is theoretically sufficient, expressions built from only NAND or only NOR can become difficult to read. The standard connectives remain useful because they make logical structure more recognizable.


Complex truth tables

Truth tables become longer as the number of variables increases. An expression with three variables has 23=82^3 = 823=8 possible rows. A systematic ordering is:

  • P,Q,R=T,T,TP,Q,R = T,T,TP,Q,R=T,T,T

  • P,Q,R=T,T,FP,Q,R = T,T,FP,Q,R=T,T,F

  • P,Q,R=T,F,TP,Q,R = T,F,TP,Q,R=T,F,T

  • P,Q,R=T,F,FP,Q,R = T,F,FP,Q,R=T,F,F

  • P,Q,R=F,T,TP,Q,R = F,T,TP,Q,R=F,T,T

  • P,Q,R=F,T,FP,Q,R = F,T,FP,Q,R=F,T,F

  • P,Q,R=F,F,TP,Q,R = F,F,TP,Q,R=F,F,T

  • P,Q,R=F,F,FP,Q,R = F,F,FP,Q,R=F,F,F

Each row represents one possible assignment of truth values. Once the initial variables are listed, more complex expressions are evaluated in stages.

Evaluating nested expressions

For a compound expression, begin with the operators that have the narrowest scope—the operators affecting the smallest parts of the expression. Then work outward until the main connective has been evaluated.

For example, to evaluate ¬(P∧Q)→(R∨Q)\neg(P \land Q) \to (R \lor Q)¬(P∧Q)→(R∨Q):

  1. Evaluate P∧QP \land QP∧Q.

  2. Negate that result to obtain ¬(P∧Q)\neg(P \land Q)¬(P∧Q).

  3. Evaluate R∨QR \lor QR∨Q.

  4. Evaluate the conditional using the results of steps 2 and 3.

This staged approach prevents confusion about which truth values each operator combines. Parentheses indicate the grouping and scope of the operations.

Evaluating a complex argument

Consider the argument:

  • P↔QP \leftrightarrow QP↔Q

  • P∨RP \lor RP∨R

  • ¬Q\neg Q¬Q

  • Therefore, RRR

The three variables PPP, QQQ, and RRR require eight rows. For this argument, the row-by-row evaluation gives:

  • P,Q,R=T,T,TP,Q,R = T,T,TP,Q,R=T,T,T: P↔QP \leftrightarrow QP↔Q is true, P∨RP \lor RP∨R is true, and ¬Q\neg Q¬Q is false. Not all premises are true.

  • P,Q,R=T,T,FP,Q,R = T,T,FP,Q,R=T,T,F: the first two premises are true, but ¬Q\neg Q¬Q is false.

  • P,Q,R=T,F,TP,Q,R = T,F,TP,Q,R=T,F,T: P↔QP \leftrightarrow QP↔Q is false.

  • P,Q,R=T,F,FP,Q,R = T,F,FP,Q,R=T,F,F: P↔QP \leftrightarrow QP↔Q is false.

  • P,Q,R=F,T,TP,Q,R = F,T,TP,Q,R=F,T,T: P↔QP \leftrightarrow QP↔Q is false.

  • P,Q,R=F,T,FP,Q,R = F,T,FP,Q,R=F,T,F: P↔QP \leftrightarrow QP↔Q is false, and P∨RP \lor RP∨R is false.

  • P,Q,R=F,F,TP,Q,R = F,F,TP,Q,R=F,F,T: all three premises are true, and the conclusion RRR is true.

  • P,Q,R=F,F,FP,Q,R = F,F,FP,Q,R=F,F,F: P↔QP \leftrightarrow QP↔Q is true, but P∨RP \lor RP∨R is false.

There is no row where all premises are true and the conclusion is false, so the argument is valid.

Truth tables provide a mechanical, exhaustive method for checking propositional arguments. With many variables, however, the number of rows grows rapidly. More advanced techniques, such as natural deduction and formal proofs, can offer more practical ways to derive conclusions without listing every possible assignment.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent