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=A.
If an object or proposition is designated as A, then it is A. 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).
If A means “the object is a chair,” then A and ¬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 A, either A or its negation is true. Its form is A∨¬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 A, B, P, and Q 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 n propositional variables, a complete truth table has 2n rows:
One variable requires 21=2 rows.
Two variables require 22=4 rows.
Three variables require 23=8 rows.
With two variables, a standard ordering of the possible assignments is:
A=T, B=T
A=T, B=F
A=F, B=T
A=F, B=F
Here, T means true and F means false. A helpful practice is to translate each symbol into words while evaluating it—for example, to read ¬A as “not A.”
The basic truth tables
Negation
Negation reverses the truth value of a proposition. The symbol ¬ means “not.” Negation is not arithmetic subtraction; it is a logical operation.
If A is true, then ¬A is false.
If A is false, then ¬A is true.
For example, if A means “I have a hamburger,” then ¬A means “I do not have a hamburger.”
Conjunction
Conjunction joins propositions with “and.” The symbol is ∧, so A∧B means “A and B.”
A∧B is true only when both A and B are true.
It is false when either proposition is false or when both are false.
For example, if A means “I receive a hamburger” and B means “I receive fries,” then A∧B is true only if both items are received.
Disjunction
Disjunction joins propositions with “or.” The symbol is ∨, so A∨B means “A or B.”
In standard classical logic, this is an inclusive disjunction:
A∨B is true if A is true, if B is true, or if both are true.
It is false only when both A and B 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 A, then B” and is written A→B.
A is the antecedent, the proposition following “if.”
B is the consequent, the proposition following “then.”
A→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=T, B=T: A→B is true.
A=T, B=F: A→B is false.
A=F, B=T: A→B is true.
A=F, B=F: A→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↔B.
A↔B is true when A and B have the same truth value.
It is false when one is true and the other is false.
Therefore, it is true in the T,T and F,F cases, and false in the T,F and F,T cases. It can be understood as asserting both directions: if A, then B, and if B, then A.
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:
All men are mortal.
Socrates is a man.
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:
Identify every distinct propositional variable.
Create all possible truth-value combinations, using 2n rows for n variables.
Calculate the truth value of each premise and the conclusion in every row.
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 P, then Q.
P.
Therefore, Q.
In symbols: P→Q, P, therefore Q.
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 P, then Q.
Q.
Therefore, P.
This form is invalid. Q could be true for a reason other than P.
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 P, then Q.
Not Q.
Therefore, not P.
In symbols: P→Q, ¬Q, therefore ¬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 P, then Q.
Not P.
Therefore, not Q.
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:
P or Q.
Not P.
Therefore, Q.
In symbols: P∨Q, ¬P, therefore Q.
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 P is false, then Q 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:
This says that at least one of A and B is true, while ruling out the case in which both are true. Therefore, a separate exclusive-or connective is not necessary if ¬, ∧, and ∨ are available.
Biconditional in terms of conditionals
A biconditional is equivalent to the conjunction of two conditionals:
The first conditional states that A implies B; the second states that B implies A. Together, they are true exactly when A and B have the same truth value.
Conditional in terms of negation and disjunction
A material conditional is equivalent to a disjunction:
Both expressions are false only when A is true and B 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 ≡.
A biconditional, by contrast, is a connective inside a proposition, such as A↔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).
NOR, “neither nor,” is the negation of disjunction: ¬(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:
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=8 possible rows. A systematic ordering is:
P,Q,R=T,T,T
P,Q,R=T,T,F
P,Q,R=T,F,T
P,Q,R=T,F,F
P,Q,R=F,T,T
P,Q,R=F,T,F
P,Q,R=F,F,T
P,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):
Evaluate P∧Q.
Negate that result to obtain ¬(P∧Q).
Evaluate R∨Q.
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↔Q
P∨R
¬Q
Therefore, R
The three variables P, Q, and R require eight rows. For this argument, the row-by-row evaluation gives:
P,Q,R=T,T,T: P↔Q is true, P∨R is true, and ¬Q is false. Not all premises are true.
P,Q,R=T,T,F: the first two premises are true, but ¬Q is false.
P,Q,R=T,F,T: P↔Q is false.
P,Q,R=T,F,F: P↔Q is false.
P,Q,R=F,T,T: P↔Q is false.
P,Q,R=F,T,F: P↔Q is false, and P∨R is false.
P,Q,R=F,F,T: all three premises are true, and the conclusion R is true.
P,Q,R=F,F,F: P↔Q is true, but P∨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.