01 Logic and Quantifiers
A structured guide to evaluating propositions, using logical connectives and truth tables, simplifying equivalent statements, and translating quantified English into formal logic.
Propositions and Statements
A is a declarative sentence with exactly one truth value: true or false. Examples include “7 is prime,” which is true, and “10 is less than 3,” which is false. A command such as “Close the door” and a question such as “Is the test tomorrow?” are not propositions.
An expression such as is not yet a when the value of is unspecified. Its truth depends on the value assigned to the variable, so it is instead an open statement or expression.
Propositions are often represented by lowercase letters such as , , and . Combining propositions produces compound propositions. For example, if means “the number is positive” and means “the number is even,” then “the number is positive and even” is represented by .
Takeaway: Before manipulating a statement, determine whether it already has a definite truth value or whether it still depends on variables.
Logical Connectives
A forms a compound from simpler propositions. The main connectives are:
Negation: , meaning “not .” It reverses the truth value of .
Conjunction: , meaning “ and .” It is true only when both components are true.
Disjunction: , meaning “ or .” In mathematical logic, this is inclusive: it is true when at least one component is true, including when both are true.
Conditional: , meaning “if , then .” It is false only when is true and is false.
Biconditional: , meaning “ if and only if .” It is true when the two components have the same truth value.
The conditional is not generally the same as its converse . For example, divisibility by implies being even, but being even does not imply divisibility by . A biconditional asserts both directions:
Takeaway: Pay particular attention to the direction of a conditional and to whether “or” is intended inclusively.
Truth Tables and Evaluation
A evaluates a compound by listing every possible assignment of truth values to its components. For two propositions, the four rows are the assignments , , , and . The basic behavior is:
is true only in the row.
is false only in the row.
is false only in the row.
is true in the and rows.
To evaluate a longer expression, calculate its smaller components first. For example, for , first determine , then compare that result with . The final column is true in every row, so the expression is a tautology.
Unless parentheses specify otherwise, use this precedence order:
Thus, means . Parentheses are preferable whenever the intended grouping could be unclear.
Takeaway: Truth tables provide a systematic method for checking every possible case rather than relying on intuition.
Equivalence and Logical Laws
Two expressions have when they match in truth value for every possible assignment. This relationship is written . It can be demonstrated with a or by applying logical laws.
Important laws include double negation, , the conditional equivalence , and the contrapositive equivalence . De Morgan’s laws are:
For example, simplify by applying De Morgan’s law and then double negation:
A that is always true is a tautology. A that is always false is a contradiction. If its truth value changes across assignments, it is contingent.
Takeaway: When simplifying, change one recognizable subexpression at a time and name the law that justifies each step.
Predicates, Domains, and Quantifiers
A is a statement involving variables whose truth depends on assigned values. For example, is true for and false for . It becomes a when a value is substituted or when a quantifier binds the variable.
The specifies the objects under consideration. A relation such as is a with two variables. Always state the domain because the interpretation of a depends on which objects are allowed.
Quantifiers turn predicates into propositions:
The means “for every.” The statement claims that every element of satisfies .
The means “there exists at least one.” The statement claims that at least one element of satisfies .
Unique existence, written , means that exactly one value satisfies the .
For example, is true because and are witnesses. By contrast, is true because the only solution is .
Takeaway: A quantified statement is meaningful only when the variables, predicates, and domain are all clear.
Negating Quantified Statements
Negating a quantified statement requires both reversing the quantifier and negating the :
In words, “not everything has property ” means “at least one thing does not have property ,” while “nothing has property ” means “everything lacks property .”
Negating comparisons also requires care. The negation of is ; the negation of is ; and the negation of is . For example, the negation of
is
The negated statement is false, because no real number has a negative square.
Takeaway: To negate a quantified claim, reverse and , then negate the condition accurately.
Translating English into Formal Logic
Formal translation begins with the domain and the meanings of the predicates. Then identify indicator words, preserve the logical structure, and check the scope of each quantifier.
For “Every integer is rational,” let mean “ is an integer” and mean “ is rational.” The correct form is:
The implication matters: the statement says that anything which is an integer is rational, not that every object is an integer.
For “Some integer is even and prime,” if means “ is even” and means “ is prime,” write:
A witness is . For “Only registered users may access the system,” let mean “ is registered” and mean “ may access the system.” The word “only” introduces a necessary condition:
With multiple quantifiers, order changes meaning. The statement allows a different for each , whereas requires one particular that works for every . Over the integers, if means , the first statement is true but the second is false.
Use this checklist:
Identify the domain.
Define every and relation.
Locate words such as “every,” “some,” “no,” “only,” and “exactly one.”
Translate conjunctions, disjunctions, negations, and implications.
Check parentheses, scope, and quantifier order.
Test the result with a witness or counterexample.
Takeaway: Most translation errors come from a reversed implication, an omitted domain, or an incorrect quantifier scope.