Logic and Proofs

Learn the language of mathematical reasoning. Translate English statements into propositional and predicate logic, evaluate them with truth tables and rewrite them with the laws of logic. Draw valid conclusions with rules of inference, then write your own direct, contrapositive, contradiction and case proofs, and disprove false claims with counterexamples.

BeginnerLesson 1 of 10 in Discrete Mathematics Course

What you will learn

  1. Recognize propositions, translate English sentences with connectives into symbols, and use truth tables to find the truth value of any compound proposition.
    • Recognize propositions and combine them with connectives
      Decide which sentences are propositions, use negation, conjunction, disjunction and exclusive or, and translate everyday sentences into symbols and back.
    • Work with conditional and biconditional statements
      Use the truth tables of "if … then …" and "if and only if", translate the many English forms of a conditional, and form its converse, inverse and contrapositive.
    • Build truth tables and classify compound propositions
      Apply the order of operations for connectives, construct complete truth tables, and decide whether a proposition is a tautology, a contradiction or a contingency.
  2. Show that two compound propositions have the same truth value in every case, using truth tables and the standard laws of logic, and use the laws to simplify and negate statements.
    • Test equivalence and know the standard laws
      Define logical equivalence, check it with a truth table, and know the main laws of propositional logic, including De Morgan's laws and the laws for conditionals.
    • Prove equivalences step by step with the laws
      Transform one proposition into another through a chain of named laws, simplify expressions, show that a proposition is a tautology, and negate statements correctly.
  3. Use predicates, domains and the quantifiers "for all" and "there exists" to state precise claims about many objects, translate between English and logic, and negate quantified statements, including nested ones.
    • Use predicates, domains and quantifiers
      Evaluate predicates, state when universal and existential statements are true over a given domain, and tell bound variables from free ones.
    • Translate between English and quantified logic
      Choose predicates and a domain, write sentences with "every", "some", "no" and "only" in logical form, and read formulas back as natural English.
    • Negate quantified statements and handle nested quantifiers
      Apply De Morgan's laws for quantifiers, read statements with several quantifiers in the right order, and negate them step by step.
  4. Tell valid arguments from fallacies, and build step-by-step formal arguments in propositional and predicate logic with the standard rules of inference.
    • Check arguments and apply the propositional rules
      Define a valid argument, test validity with a truth table, derive conclusions with modus ponens, modus tollens and the other basic rules, and recognize the two classic fallacies.
    • Reason with quantified statements
      Use universal and existential instantiation and generalization, combine them with the propositional rules, and avoid the errors that make quantified arguments invalid.
  5. Write clear proofs of conditional and "if and only if" statements about integers and real numbers, working directly from the definitions or by proving the contrapositive.
    • Prove conditional statements directly
      Use the vocabulary of proofs and the definitions of even, odd, divides, prime and rational to write direct proofs that are complete and easy to follow.
    • Prove by contrapositive and prove "if and only if" statements
      Recognize when proving the contrapositive is easier, write such proofs correctly, and prove biconditional statements by proving both directions.
  6. Use proof by contradiction and proof by cases, prove existence and uniqueness, disprove false claims with counterexamples, and choose a suitable proof method while avoiding common errors.
    • Prove statements by contradiction
      Assume the negation of a statement, reach a contradiction, and use the method to prove classic results such as the irrationality of √2 and the existence of infinitely many primes.
    • Prove statements by cases
      Split a statement into cases that together cover every possibility, prove each case, and use exhaustive checking and "without loss of generality" correctly.
    • Prove existence and uniqueness, and disprove with counterexamples
      Prove "there exists" statements constructively or nonconstructively, prove that exactly one object has a property, and disprove universal claims with a single counterexample.
    • Choose a proof method and spot flawed proofs
      Match the form of a statement to a suitable proof method, plan a proof by working forward and backward, and find the error in a flawed argument.

Logic and Proofs study guide

6 chapters

1

Turn statements into logic

A mathematical statement has a truth value, and its structure tells you how that value depends on simpler statements. Connectives give precise meanings to words such as “and,” “or,” and “if.” You will translate these words into symbols, distinguish a conditional from its reverse, and build truth tables that cover every possibility. These tools also let you check whether a collection of software requirements can all hold at once.

1.1 Propositions and the basic connectives

“The file is saved” makes a claim that can be true or false. “Save the file” gives a command. Logic begins by separating claims that have truth values from sentences that serve other purposes.

What counts as a proposition?

A proposition is a declarative sentence that is either true or false, but not both. A false claim is still a proposition: “2+3=6” has the truth value F. A question or command has no truth value. The open sentence “x+1=5” needs a value for x before its truth can be decided.

Letters such as p and q stand for propositions. An atomic proposition is treated as one basic claim. A compound proposition combines claims using connectives. The letters carry the truth values T and F; the connectives tell you how to combine them.

Not, and, and the two kinds of or

Negation, ¬p, reverses a truth value. Conjunction, p∧q, is true exactly when both claims are true. In “The algorithm is fast but uses a lot of memory,” the word “but” still joins the claims with ∧. Its conversational contrast adds no new truth condition.

pq¬pp∧qp∨qp⊕q
TTFTTF
TFFFTT
FTTFTT
FFTFFF

The symbol ∨ means inclusive or: at least one claim is true, and both may be true. Exclusive or, ⊕, requires exactly one true claim. Mathematical “or” means inclusive or unless the wording excludes the possibility of both.

Translate the whole sentence

Let s mean “Sam studies” and p mean “Sam passes.” Then “Sam studies and does not pass” is s∧¬p. “Sam studies or passes, but not both” is s⊕p. Define the letters first so that each part of the translation has a fixed meaning.

“Sam neither studies nor passes” says that both claims are false:

¬s∧¬p.

“Sam does not both study and pass” only rules out both being true:

¬(s∧p).

The second statement allows Sam to study without passing. This is why “neither … nor” and “not both” need different formulas. Likewise, the negation of “Every file is saved” is “At least one file is not saved”; claiming that every file is unsaved would go further.

Apply a connective to bits

Bits use 1 for T and 0 for F. A bitwise operation works independently at each position. For the strings 1011 and 0110, AND gives 0010, OR gives 1111, and exclusive OR gives 1101. In the second position, for example, the inputs are 0 and 1, so AND gives 0 while each kind of OR gives 1.

A search instruction such as “logic AND proofs NOT philosophy” uses the same idea: require the first two terms and exclude the third. The truth conditions describe which results pass the combined test.

Key Takeaways

  • A proposition has one truth value, T or F.
  • p∧q needs both claims; p∨q needs at least one.
  • p⊕q requires exactly one true claim.
  • “Neither” negates both claims and joins them with ∧.

1.2 Conditionals, their reverses, and “if and only if”

“If the input is valid, the program produces a result” makes a one-way commitment. It says what happens when the input is valid. It leaves open what may happen for an invalid input.

When a conditional is false

The conditional p→q has hypothesis p and conclusion q. Its single false case is a true hypothesis with a false conclusion.

pqp→qp↔q
TTTT
TFFF
FTTF
FFTT

For the promise “If you score at least 90, you get an A,” only a score of at least 90 without an A breaks the promise. A lower score leaves the conditional true whether or not an A is awarded. This is vacuous truth: a false hypothesis cannot produce a counterexample to a conditional.

A conditional expresses a truth-value relationship. It does not require a causal connection between its two parts.

Read necessary and sufficient conditions

Each of these phrases means p→q:

  • “q if p” or “q whenever p.”
  • “p only if q.”
  • “p is sufficient for q.”
  • “q is necessary for p.”

“You can board only if you have a ticket” becomes b→t. Boarding requires a ticket; the sentence does not guarantee boarding to everyone with a ticket. “Only if” introduces the necessary condition, which belongs after the arrow. In contrast, “You can board if you have a ticket” puts the ticket condition before the arrow.

“q unless r” means “if not r, then q”:

¬r→q≡r∨q.

For “The build fails unless all tests pass,” let t mean that all tests pass and f that the build fails. The formula is ¬t→f. Passing all tests is not asserted to guarantee a successful build.

Compare the related conditionals
NameForm from p→q
Converseq→p
Inverse¬p→¬q
Contrapositive¬q→¬p

A conditional is equivalent to its contrapositive. The converse and inverse are equivalent to each other, and can disagree with the original.

For integers, “If n is divisible by 4, then n is even” is true. Its converse fails at n=6: evenness is not enough for divisibility by 4. Its inverse fails at the same value. Its contrapositive says that a noneven integer is not divisible by 4, which is true.

Make a two-way claim

The biconditional p↔q is true when both sides have the same truth value. It combines two conditionals:

(p→q)∧(q→p).

Thus “if and only if,” often abbreviated “iff,” requires both directions in a proof. Its negation says that exactly one side is true, so it is equivalent to p⊕q. Mathematical definitions are read in both directions: defining an even integer as one equal to 2k for some integer k gives a test for evenness as well as a way to use it.

Check a direction by looking for a violation

To test “Boarding is sufficient for having a ticket,” look for someone who boards without a ticket. That person would make b→t false. To test “Having a ticket is sufficient for boarding,” look for someone who has a ticket but does not board. This tests t→b, a different statement.

A quick truth-value check can also separate a conditional from a biconditional. At b=F,t=T, the boarding requirement b→t is true, but b↔t is false. The biconditional forbids an unused ticket; the one-way requirement does not.

Key Takeaways

  • p→q is false only at T, F.
  • “p only if q” means p→q.
  • “q unless r” means ¬r→q.
  • A conditional and its contrapositive are equivalent.
  • The converse reverses the arrow; its truth needs a separate check.
  • A biconditional combines both directions.

1.3 Truth tables and consistent requirements

A truth table checks a compound statement on every assignment of truth values. It makes “every possibility” a finite list, so a missing case cannot hide inside an informal argument.

Build from the inside out

For n variables, use 2n rows. Two variables need four rows; three need eight. For three variables, write four T values and four F values for p, repeat TTFF for q, and alternate T and F for r. This lists every assignment once.

Add columns for smaller expressions before evaluating the whole expression. Use the order ¬, ∧, ∨, →, then ↔. Thus ¬p∧q means (¬p)∧q. Parentheses make mixed expressions clear, especially when combining AND with OR or writing several arrows.

Consider

(p∨¬q)→(p∧q).

First find ¬q, then the two sides of the arrow, then the conditional.

pq¬qp∨¬qp∧qWhole expression
TTFTTT
TFTTFF
FTFFFT
FFTTFF

In the third row, the hypothesis is false. The conditional is therefore true even though its conclusion is also false. The final column matches q on every row.

Classify the final column

A tautology is true on every row, such as p∨¬p. A contradiction is false on every row, such as p∧¬p. A contingency has both true and false rows. A proposition is satisfiable if at least one row makes it true, so tautologies and contingencies are satisfiable.

A set of requirements is consistent if one assignment makes all of them true together. It is not enough that each requirement can be true on a different assignment.

Suppose a system requires “The backup runs or the log is full,” “The log is not full,” and “If the backup runs, an alert is sent.” Write these as b∨f, ¬f, and b→a. The second requires f=F. The first then requires b=T, and the third requires a=T. This assignment satisfies all three, proving consistency.

Look for a possible failure

Sometimes a targeted check is shorter than a full table. To test

((p→q)∧(q→r))→(p→r),

ask how its conclusion could be false. It would require p=T and r=F. If q=T, then q→r is false. If q=F, then p→q is false. Either way the outer hypothesis is false, so the whole conditional is true. No false row exists: this is a tautology.

This shortcut works because both possible values of q were considered. Merely checking several favorable rows would leave a gap. For a full table, count the rows before calculating, and evaluate each arrow from its complete hypothesis and conclusion.

Key Takeaways

  • A table with n variables has 2n rows.
  • Calculate subexpressions before the main connective.
  • A tautology has only T rows; a contradiction has only F rows.
  • A contingency has both T and F rows.
  • Consistency requires one assignment satisfying every requirement.
2

Rewrite statements without changing their truth

Two statements may look different and still say exactly the same thing. Logical equivalence makes that idea precise: every assignment must give the same truth value on both sides. Truth tables can check this directly, while named laws let you rewrite an expression in smaller steps. You will use both methods to simplify formulas, negate compound claims, and explain why each transformation preserves meaning.

2.1 Equivalence laws and truth-table forms

Two propositions are logically equivalent when their truth values agree on every assignment. We write A≡B. This sign states a relationship between formulas; the biconditional A↔B is itself a proposition, and is a tautology exactly when the formulas are equivalent.

Check every row, or find one disagreement

To prove equivalence by table, place the formulas in the same table and compare their final columns. One differing row disproves equivalence. For example, when p=T and q=F, p→q is false but q→p is true. Reversing an arrow is therefore not a valid equivalence law.

Laws for AND, OR, and NOT

De Morgan's laws change the connective as they move a negation inward:

¬(p∧q)≡¬p∨¬q, ¬(p∨q)≡¬p∧¬q.

“The program does not both compile and run” allows either operation to fail. It does not require both to fail.

LawAND formOR form
Identityp∧T≡pp∨F≡p
Dominationp∧F≡Fp∨T≡T
Idempotentp∧p≡pp∨p≡p
Negationp∧¬p≡Fp∨¬p≡T
Absorptionp∧(p∨q)≡pp∨(p∧q)≡p

Double negation gives ¬¬p≡p. Commutative laws swap the order of two inputs; associative laws change grouping among repeated ANDs or repeated ORs. Both connectives distribute:

p∧(q∨r)≡(p∧q)∨(p∧r), p∨(q∧r)≡(p∨q)∧(p∨r).
Remove arrows carefully

The conditional law is p→q≡¬p∨q. It gives ¬(p→q)≡p∧¬q and the contrapositive equivalence. It also gives p∨q≡¬p→q.

Two requirements with the same hypothesis combine as

(p→q)∧(p→r)≡p→(q∧r).

With a common conclusion, AND between the conditionals gives OR between their hypotheses:

(p→r)∧(q→r)≡(p∨q)→r.

OR between those conditionals instead gives (p∧q)→r. Keeping the outer connective unchanged in that transformation would be an error.

A biconditional expands into both arrows. Also, p↔q≡¬p↔¬q, while ¬(p↔q)≡p↔¬q.

Build a formula from true rows

In disjunctive normal form, make one AND term for each true row. Include every variable, negating it when its row value is F. Join the terms with OR. Exclusive or has true rows T, F and F, T, so its formula is

(p∧¬q)∨(¬p∧q).

A table with no true rows can be represented by p∧¬p. NOT, AND, and OR can therefore express every truth table.

Read a compound law through its failure cases

Compare (p→r)∧(q→r) with (p→r)∨(q→r). The AND expression fails when either arrow fails: at least one of p,q is true while r is false. This is exactly the failure condition of (p∨q)→r.

The OR expression fails only when both arrows fail together. That requires p and q both true and r false, matching (p∧q)→r. The difference comes from whether one failed requirement or two failed alternatives defeat the whole expression.

For a DNF with three variables, a true row T, F, T contributes p∧¬q∧r. This conjunction is true on precisely that row. A row F, T, T contributes ¬p∧q∧r. OR joins the selected rows without including a row in which both terms fail.

Key Takeaways

  • Equivalence means agreement on every truth assignment.
  • De Morgan changes AND to OR, or OR to AND, when negating.
  • p→q≡¬p∨q
  • Absorption removes a redundant branch.
  • Both AND and OR distribute over the other.
  • DNF joins one conjunction for each true row.

2.2 Prove an equivalence one law at a time

An equivalence proof rewrites a formula while keeping its truth value on every assignment. Each line must follow from the preceding line by a valid law applied to a specific part of the expression.

Name the replacement

A chain A≡A1≡A2≡B proves that A and B are equivalent when every link is justified. A law can replace a subexpression inside a larger formula. Keep the rest of the formula unchanged.

To simplify ¬(p∨(¬p∧q)), first move the outer negation inward:

  1. ¬p∧¬(¬p∧q) — De Morgan.
  2. ¬p∧(¬¬p∨¬q) — De Morgan again.
  3. ¬p∧(p∨¬q) — double negation.
  4. (¬p∧p)∨(¬p∧¬q) — distribution.
  5. F∨(¬p∧¬q) — negation law.
  6. ¬p∧¬q — identity.

The fourth line exposes a contradiction that the original expression hid. Distribution may temporarily make an expression longer while bringing a useful simplification into view.

Factor a shared part

For (p∧q)∨(p∧¬q), distribute backward to obtain p∧(q∨¬q). The part in parentheses is T by the negation law. Identity then gives p. This proves the formula is equivalent to p, so it is a contingency, not a tautology.

Absorption handles a different pattern: p∨(p∧q)≡p. Once p is true, the second branch adds no new true assignments; when p is false, both branches are false.

Negate the claim that was made

Let v mean “The input is valid,” r mean “The program prints a result,” and e mean “The program logs an error.” Negate v→(r∨e):

¬(v→(r∨e))≡v∧¬(r∨e) ≡v∧(¬r∧¬e).

The negation says, “The input is valid, the program prints no result, and it logs no error.” A failed conditional needs the hypothesis to hold and the entire conclusion to fail. Writing v→¬(r∨e) would create a different conditional, true whenever the input is invalid.

Reduce a tautology to T

Start with (p∧q)→(p∨q). Removing the arrow gives ¬(p∧q)∨(p∨q). De Morgan gives (¬p∨¬q)∨(p∨q). Regroup and reorder to get (¬p∨p)∨(¬q∨q), which reduces to T∨T and then T.

A useful plan is to remove arrows, move negations inward, then look for repeated parts, opposite truth values, or factors. Begin on the more complicated side. If a proposed step is doubtful, test a row where the changed parts differ. For example, negating ¬(p∧q)∨r changes only the expression inside the existing negation; it gives no reason to negate r.

A full truth table is always available for a finite propositional formula, but its size doubles with every new variable. A short chain can reveal the structure more clearly. Failure to find a chain leaves the equivalence undecided; one disagreeing row settles it as false.

Key Takeaways

  • Apply one named equivalence law to a clear part of each line.
  • Remove arrows before moving negations inward.
  • Factoring can expose q∨¬q or q∧¬q.
  • Negating a conditional gives its true hypothesis and false conclusion.
  • Reduction to T proves a tautology.
3

State exactly which objects a claim concerns

Statements about numbers, people, or files need more than truth-value letters: they need variables, domains, and words such as “every” and “some.” Quantifiers make those parts explicit. You will translate sentences without changing which objects they concern, track what each variable means, and negate statements with several quantifiers. Their order matters because a choice that works separately for each object may not work for all objects at once.

3.1 Predicates, domains, and quantifier scope

The sentence “x>3” describes a property, but its truth depends on x. A predicate becomes a proposition when its variables receive values from a stated domain, the set of allowed objects.

Turn a property into a claim

If P(x) means “x>3” over the real numbers, then P(4) is true and P(2) is false. Quantifying the variable creates a claim about the domain:

  • ∀x P(x) means “For every x, P(x).” It is true only if every element has the property.
  • ∃x P(x) means “There is at least one x such that P(x).” It needs a single witness, an element with the property.
  • ∃!x P(x) means “There is exactly one x such that P(x).” Both existence and uniqueness must hold.

Over the real numbers, ∃x (x2=2) is true, with witness 2. Over the integers it is false. Over the reals, ∃!x (2x+3=11) is true because only 4 works, while ∃!x (x2=9) is false because 3 and −3 both work.

Evaluate finite and empty domains

On the domain {1,2,3}, a universal statement expands into an AND of its three instances. An existential statement expands into an OR. Thus ∀x (x<4) is true, while ∃x (x>3) is false.

On an empty domain, a universal statement is true: there is no element that violates it. An existential statement is false because there is no witness. This also explains why “Every object with property A has property B” need not assert that any A objects exist.

Track each variable's scope

A variable occurrence is bound if a quantifier controls it and free otherwise. In ∃x (x+y=1), the variable x is bound but y remains free. The whole expression still depends on y. Renaming a bound variable consistently changes no meaning: ∀x P(x) and ∀t P(t) make the same claim.

Parentheses show the quantifier's scope. Under the convention used here, ∀x P(x)∨Q(x) means (∀x P(x))∨Q(x), leaving the last occurrence of x free. Write ∀x (P(x)∨Q(x)) when both parts belong inside the quantifier.

Restrict the objects correctly

Over the reals, ∀x>0  P(x) abbreviates ∀x (x>0→P(x)). The existential restriction uses AND: ∃x>0  P(x) means ∃x (x>0∧P(x)). A universal restriction exempts objects outside the group; an existential restriction requires its witness to belong to the group.

Universal quantification distributes over AND, and existential quantification distributes over OR. The reverse pairings fail in general. Every integer is even or odd, yet neither “Every integer is even” nor “Every integer is odd” is true. Similarly, an even integer and an odd integer exist, but no integer is both. Separate existential witnesses need not be the same object.

Check whether a quantifier can distribute

Take the domain {1,2}, with P(x) meaning “x=1” and Q(x) meaning “x=2.” Every element satisfies P(x)∨Q(x), so ∀x (P(x)∨Q(x)) is true. Yet ∀x P(x) is false at 2, and ∀x Q(x) is false at 1. Splitting the universal across OR would change this true claim to a false one.

The same domain has a witness for P and a witness for Q, but no witness for their conjunction. Thus ∃x P(x)∧∃x Q(x) need not imply ∃x (P(x)∧Q(x)). By contrast, a witness for a conjunction supplies a witness for each component, since it is the same object with both properties.

Key Takeaways

  • A predicate needs values or quantifiers for its free variables.
  • The domain affects whether a quantified statement is true.
  • ∀ requires every element; ∃ requires a witness.
  • ∃! requires exactly one witness.
  • Parentheses show which occurrences a quantifier binds.
  • Universal restrictions use implication; existential restrictions use conjunction.

3.2 Translate “every,” “some,” “no,” and “only”

A good translation preserves both the group being discussed and the property claimed about it. Begin by choosing a domain and defining the predicates; then decide how the quantifiers and connectives fit together.

Every and some use different patterns

Use all people as the domain. Let S(x) mean “x is a student in the class” and L(x) mean “x has a laptop.”

SentenceFormula
Every student in the class has a laptop.∀x (S(x)→L(x))
Some student in the class has a laptop.∃x (S(x)∧L(x))
No student in the class has a laptop.∀x (S(x)→¬L(x))
Not every student in the class has a laptop.∃x (S(x)∧¬L(x))

The first formula leaves nonstudents unrestricted. Replacing its arrow with AND would claim that every person is a student in the class and has a laptop. The second formula needs an actual student who has a laptop. Using an arrow there would allow a nonstudent to serve as a witness, since a false hypothesis makes an implication true.

If the domain consists only of students in the class, the first two formulas shorten to ∀x L(x) and ∃x L(x). The domain already supplies the group restriction.

“No student has a laptop” rules out every student with a laptop, so it also means ¬∃x (S(x)∧L(x)). “Not every student has a laptop” needs just one student without a laptop. It allows other students to have one.

Put “only” in the correct direction

Let V(x) mean “x can vote” and M(x) mean “x is a member,” again over all people. “Only members can vote” means

∀x (V(x)→M(x)).

Membership is necessary for permission to vote. The reverse formula says every member can vote, a different claim. Keep “can vote” in the predicate definition: permission and actually voting are different properties.

Some English wording needs clarification before symbolizing. “Every answer is not correct” can mean either that none is correct or that at least one is incorrect. Those readings need different formulas.

Read relations in order

Let L(x,y) mean “x likes y,” with both variables ranging over people.

  • ∀x ∃y L(x,y): “Everybody likes somebody.”
  • ∃y ∀x L(x,y): “There is somebody whom everybody likes.”
  • ∃x ∀y L(x,y): “Somebody likes everybody.”

The argument positions tell you who likes whom. The quantifier order tells you when one person must be chosen for all the others.

Make hidden quantifiers visible

“If n is odd, then n2 is odd” means ∀n (O(n)→O(n2)) over the integers. “There is no largest integer” means ∀n ∃m (m>n), with both variables integers.

For a software requirement, let A(u) mean “user u has admin rights” and D(u,f) mean “user u can delete file f.” With users as the domain of u and files as the domain of f, “Every admin can delete every file” is ∀u ∀f (A(u)→D(u,f)). Stating each variable's domain keeps the relation readable.

Translate a database condition

Let c range over customers and o over orders. Define R(o,c) as “Order o belongs to customer c” and P(o) as “Order o is paid.” The customers with at least one unpaid order are the customers for whom

∃o (R(o,c)∧¬P(o))

is true. The customer variable remains free because the condition is tested separately for each customer. The bound order variable searches for a witness belonging to that customer.

Using ∃o (R(o,c)→¬P(o)) would admit an order belonging to somebody else as a witness: the false ownership hypothesis makes that conditional true. The conjunction keeps the ownership restriction and the unpaid property attached to the same order.

Key Takeaways

  • Define domains and predicate meanings before translating.
  • “Every A is B” uses ∀x (A(x)→B(x)).
  • “Some A is B” uses ∃x (A(x)∧B(x)).
  • “Not every” needs one exception; “no” rules out all witnesses.
  • “Only A are B” puts B before the arrow.
  • Relation argument positions and quantifier order each affect meaning.

3.3 Negate quantifiers and track dependent choices

A quantified statement fails in a precise way. A universal claim fails at an exception; an existential claim fails when no witness works. These two facts guide both negation and disproof.

Move NOT past one quantifier

The quantifier forms of De Morgan's laws are

¬∀x P(x)≡∃x ¬P(x), ¬∃x P(x)≡∀x ¬P(x).

The negation of “All tests passed” is “At least one test did not pass.” It is not “All tests failed,” which would rule out a mixture of passed and failed tests. Negating “Some test passed” does give “Every test failed,” if “failed” means “did not pass.”

For restricted quantifiers, retain the same group. The negation of “Every positive integer n satisfies n2≥n” is “Some positive integer n satisfies n2<n.” Moving to nonpositive integers would change the domain instead of negating the claim.

A separate choice is not a shared choice

Over the integers, compare

∀x ∃y (x+y=0)

and

∃y ∀x (x+y=0).

The first is true: after an arbitrary x is chosen, choose y=−x. That choice can depend on x. The second is false: one fixed y would need to work for every integer. The value x=0 requires y=0, but x=1 requires y=−1.

A shared witness gives a witness for each object, so ∃y ∀x P(x,y) implies ∀x ∃y P(x,y). The reverse need not hold. Quantifiers of the same kind can swap: two universals cover every pair in either order, while two existentials ask for at least one pair in either order.

Negate a nested statement step by step

To negate ∀x ∃y P(x,y), move the negation inward:

  1. ¬∀x ∃y P(x,y).
  2. ∃x ¬∃y P(x,y).
  3. ∃x ∀y ¬P(x,y).

Keep the order while switching each quantifier. The result says there is one x for which every possible y fails.

With x real and n an integer, “For every x there is an n with n>x” becomes ∀x ∃n (n>x). Its negation is ∃x ∀n (n≤x): one real number bounds all integers from above. The comparison changes from greater than to less than or equal to, so equality is included.

Use the negation to find a disproof

Consider ∀x ∃y (xy=1) over the reals. Its negation is ∃x ∀y (xy≠1). Choose x=0. Every real y then gives xy=0, so none can make the product 1. This one choice disproves the original statement because it defeats every candidate response, not just one unsuccessful value of y.

Keep a restriction attached when negating

Over all integers, expand “Every positive integer has property P” as ∀n (n>0→P(n)). Negating gives

∃n ¬(n>0→P(n))≡∃n (n>0∧¬P(n)).

The positive restriction survives because the counterexample must meet the conditional's hypothesis. This calculation explains why a negative integer is irrelevant to refuting the original claim.

Similarly, the negation of “Some positive integer has property P” is ∀n (n>0→¬P(n)). It rules out every positive witness while making no claim about nonpositive integers. Expanding the shorthand first is useful when a restriction and a nested quantifier occur together.

Key Takeaways

  • Negating ∀ gives ∃ and negates the property.
  • Negating ∃ gives ∀ and negates the property.
  • Keep restrictions and quantifier order when negating.
  • In ∀x∃y, the witness may depend on x.
  • In ∃y∀x, one witness must work for all x.
4

Build arguments from justified steps

An argument connects premises to a conclusion. The key question is whether those premises could all be true while the conclusion is false. Rules of inference give reliable patterns for taking one step at a time, and truth tables can expose an invalid pattern. With quantified claims, you must also track whether a named object is arbitrary or is a particular witness. That distinction becomes central when writing proofs.

4.1 Valid arguments and inference rules

An argument consists of premises followed by a conclusion. It is valid when every assignment that makes all its premises true also makes its conclusion true. It is sound when it is valid and its premises are true.

Test the argument, not just its conclusion

For premises p1,…,pn and conclusion q, validity means that (p1∧⋯∧pn)→q is a tautology. In a truth table, inspect the rows where every premise is true. A single such row with a false conclusion makes the argument invalid.

A valid argument can have false premises. “If 7 is even, then 49 is even; 7 is even; therefore 49 is even” has a valid form, but it is not sound. Truth of a conclusion by itself also cannot repair invalid reasoning.

Use reliable one-step patterns
RulePremisesConclusion
Modus ponensp→q; pq
Modus tollensp→q; ¬q¬p
Hypothetical syllogismp→q; q→rp→r
Disjunctive syllogismp∨q; ¬pq
Additionpp∨q
Simplificationp∧qp
Conjunctionp; qp∧q
Resolutionp∨q; ¬p∨rq∨r

Modus ponens follows an arrow from a true hypothesis. Modus tollens works backward from a false conclusion. Resolution removes opposite occurrences of a variable and retains the remaining alternatives.

Write a connected derivation

Suppose d→u, ¬u, d∨c, and c→o describe a server being down, a website being unreachable, a cache being outdated, and old prices appearing.

  1. d→u — premise.
  2. ¬u — premise.
  3. ¬d — modus tollens, 1 and 2.
  4. d∨c — premise.
  5. c — disjunctive syllogism, 4 and 3.
  6. c→o — premise.
  7. o — modus ponens, 5 and 6.

Working backward from o shows why c is useful; working forward from ¬u provides a route to it. The written argument then runs in the order that justifies each line.

Catch two reversed patterns

Affirming the consequent infers p from p→q and q. Denying the antecedent infers ¬q from p→q and ¬p. Both fail when p=F and q=T. An implication gives no guarantee about q when p is false.

Also check the whole premise before using a rule. From p∨(q→r) and q, you cannot extract q→r and use modus ponens: that conditional is only one possible branch.

If the premises are inconsistent, there is no row where all are true, so the argument is valid for any conclusion. This is the same vacuous-truth pattern as a conditional with an impossible hypothesis. It makes consistency worth checking before treating a derivation as useful information about a situation.

Why resolution works

Suppose p∨q and ¬p∨r are both true. If p is true, then ¬p is false and the second premise forces r. If p is false, the first premise forces q. Either way q∨r follows. Resolution does not identify which of q,r holds, and it does not require both.

For example, a system may have “The input is cached or retrieval is needed” and “The input is not cached or validation is needed.” Resolution concludes “Retrieval or validation is needed.” The two cases for the cache state justify the conclusion without adding an observation about which state actually occurs.

Key Takeaways

  • Validity rules out true premises with a false conclusion.
  • Soundness adds the requirement that the premises are true.
  • Modus ponens follows a conditional; modus tollens uses its false conclusion.
  • Affirming the consequent and denying the antecedent are invalid.
  • Each formal line needs a premise, rule, or equivalence as its reason.
  • Inconsistent premises give no assignment on which to test a conclusion.

4.2 Use general rules and particular witnesses

Quantified reasoning connects claims about a whole domain with claims about individual objects. Four basic moves let you go between those levels, but their conditions determine what you may conclude.

Instantiate or generalize

Universal instantiation applies ∀x P(x) to any named domain element c, giving P(c). Existential generalization goes the other way from an actual instance: P(c) establishes ∃x P(x).

Existential instantiation starts from ∃x P(x) and introduces a fresh name a for a witness. It provides P(a), without identifying the witness as any previously named object. Two existential statements may have different witnesses, so give them different fresh names unless a relationship has been established.

Universal generalization concludes ∀x P(x) from a proof of P(c) for an arbitrary domain element. The proof must use no special property of c beyond its membership in that domain. Checking P(4) cannot establish the universal claim.

Combine quantifiers with propositional rules

From ∀x (P(x)→Q(x)) and P(a), instantiate the universal statement at a, then apply modus ponens to get Q(a). This combined move is universal modus ponens. With ¬Q(a) instead, universal modus tollens gives ¬P(a).

For instance, every prime greater than 2 is odd, and 101 is a prime greater than 2, so 101 is odd. Knowing only that 9 is odd would not establish that 9 is prime; that would affirm the consequent.

Follow one witness through the proof

Use people as the domain. Let C(x) mean “x is in the class,” B(x) mean “x has read the book,” and P(x) mean “x passed the first exam.” Suppose

∃x (C(x)∧¬B(x)), ∀x (C(x)→P(x)).

We want to show ∃x (P(x)∧¬B(x)).

  1. Choose a fresh witness a with C(a)∧¬B(a).
  2. Simplify to obtain C(a) and ¬B(a).
  3. Instantiate the universal premise: C(a)→P(a).
  4. Apply modus ponens to get P(a).
  5. Conjoin to obtain P(a)∧¬B(a).
  6. Generalize existentially to reach the required conclusion.

Instantiating the existential first supplies the person to whom the universal rule should be applied. The same witness keeps both properties through the argument.

Distinguish a witness from an arbitrary object

“Some integer is even” and “Some integer is odd” give an even witness a and an odd witness b. They do not establish an integer that is both even and odd. Naming both witnesses a would silently add an unsupported identification.

In a proof beginning “Let n be an arbitrary odd integer,” n is arbitrary among odd integers. The definition supplies some integer k with n=2k+1. That k is a witness depending on n. A calculation that reaches an odd form for n2 then supports the conclusion about every odd integer, because nothing special about the starting n was used.

A quantified rule can exclude a witness too

Let E(x) mean “Device x is encrypted,” A(x) mean “Device x is approved,” and L(x) mean “Device x is logged.” Suppose some logged device is not approved, and every encrypted device is approved:

∃x (L(x)∧¬A(x)),∀x (E(x)→A(x)).

Choose a fresh witness d for the first premise. Universal instantiation gives E(d)→A(d). Since ¬A(d) holds, modus tollens gives ¬E(d). Keep L(d) from the same witness, then conjoin and generalize to conclude ∃x (L(x)∧¬E(x)). The universal rule was applied only after the witness's identity in the argument was fixed.

Key Takeaways

  • Universal instantiation applies a rule to a domain element.
  • Existential instantiation introduces a fresh witness name.
  • Existential generalization needs one established instance.
  • Universal generalization needs an arbitrary element.
  • Two existential premises may refer to different objects.
5

Turn definitions into proofs

A proof explains why a claim holds for every object it concerns. Definitions provide the algebraic forms that make this possible: even integers, divisibility, and rational numbers each come with a precise test. You will use those forms in direct proofs, then switch to the contrapositive when the negated conclusion gives a clearer starting point. For “if and only if” claims, you will keep the two directions visible.

5.1 Direct proofs from definitions

A proof establishes a claim from definitions, axioms, and results already proved. A proved result is a theorem; a helper result is a lemma; a result following quickly from a theorem is a corollary. An unproved claim believed true is a conjecture. An axiom supplies an accepted starting point.

Unpack the definitions

For integers, even means n=2k and odd means n=2k+1 for some integer k. Every integer has exactly one of those parities. For integers a,b with a≠0, a∣b means b=ak for an integer k. A prime is an integer greater than 1 with only 1 and itself as positive divisors.

A real number is rational when it equals a/b for integers a,b with b≠0; otherwise it is irrational. The integer and nonzero conditions are part of the definition, so a proof must keep them.

Begin with an arbitrary object

To prove a universal conditional directly, choose an arbitrary element of its domain and assume the hypothesis. Rewrite that assumption using definitions. Then use valid algebra and known facts to reach the conclusion's defining form.

For “The square of an odd integer is odd,” let n be an arbitrary odd integer. Write n=2k+1 for an integer k. Then

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1.

Since 2k2+2k is an integer, the last expression is odd. □

The final statement about the integer expression matters: oddness requires an integer multiplier, not merely an expression that looks like “twice something plus one.” The proof covers every odd n because the only property used was its defining form.

Keep independent witnesses independent

Suppose a∣b and b∣c, where a,b are nonzero integers. There are integers k,m with b=ak and c=bm. Therefore

c=(ak)m=a(km).

The product km is an integer, so a∣c. □

Using the same witness letter for both divisibility assumptions would impose a relationship the assumptions never gave. Likewise, two arbitrary even integers need forms such as 2k and 2j, not the same expression 2k for both.

Prove closure of rational numbers under addition

Let r=a/b and s=c/d be rational, with integer numerators and nonzero integer denominators. Then

r+s=ad+bcbd.

Both numerator and denominator are integers. Also bd≠0 because neither factor is zero. This is the definition of a rational number, proving the claim. □

Recognize short conditional proofs

A trivial proof shows the conclusion is true regardless of the hypothesis. A vacuous proof shows the hypothesis is impossible. For real x, “If x2<0, then x=5” is vacuously true because a real square is nonnegative.

Examples are useful for testing a conjecture, but checking odd integers 1, 3, and 5 covers only those integers. A general proof uses an arbitrary element. Write the argument in complete sentences, link each equation to its reason, and end when the required definition has been reached.

Key Takeaways

  • Use definitions to turn assumptions into workable equations.
  • A direct proof starts with the hypothesis and reaches the conclusion.
  • Use different witness letters for independent quantities.
  • Check integer membership and nonzero denominators where needed.
  • A universal claim needs general reasoning, not a sample of examples.
  • Trivial proofs use a true conclusion; vacuous proofs use an impossible hypothesis.

5.2 Contrapositives and two-way proofs

A true statement may have an awkward hypothesis for a direct proof. The contrapositive changes the starting point while preserving the statement's truth: to prove P→Q, prove ¬Q→¬P.

Choose the useful assumption

For integers, “If n2 is even, then n is even” starts from an equation about a square. The contrapositive starts from an odd integer, so the definition immediately provides n=2k+1. Expanding gives an odd square, which is the negation of the original hypothesis.

State the switch explicitly. For “If 5n+3 is even, then n is odd,” write: “We prove the contrapositive: if n is even, then 5n+3 is odd.” Let n=2k for an integer k. Then

5n+3=10k+3=2(5k+1)+1.

Since 5k+1 is an integer, this is odd. The contrapositive, and hence the original conditional, is proved. □

Proving “If n is odd, then 5n+3 is even” instead would prove the converse. Even when a converse happens to be true, proving it does not establish the original direction.

Negate a compound conclusion

For real x,y, consider “If x+y≥10, then x≥5 or y≥5.” The negation of the OR conclusion is x<5 and y<5. Assume these inequalities; adding them gives x+y<10. This proves the contrapositive. □

Replacing OR by OR when negating would weaken the assumption and spoil the argument. For example, knowing only x<5 leaves y free to be very large. Both inequalities are needed to force the sum below 10.

Prove both halves of “if and only if”

A biconditional P↔Q contains the claims P→Q and Q→P. Each direction may use its own method. To prove “An integer n is even if and only if n2 is even,” separate the directions.

Forward direction. If n=2k for an integer k, then n2=4k2=2(2k2), so n2 is even.

Reverse direction. Prove the contrapositive. If n is odd, write n=2k+1. Then n2=2(2k2+2k)+1 is odd. This proves that an even square requires an even integer. □

A proof of only the forward direction would leave open whether any noneven integer could have an even square. The reverse direction closes that gap. In contrast, divisibility by 4 implies evenness, but evenness does not imply divisibility by 4: 6 defeats the reverse direction.

Link several equivalent statements

For statements P1,P2,…,Pn, a cycle of implications is enough:

P1→P2, P2→P3, …, Pn→P1.

Following the arrows around the cycle takes any starting statement to any other, using hypothetical syllogism. The last link back to the first is essential; a one-way chain alone need not make all the statements equivalent.

Key Takeaways

  • Contrapositive proof establishes ¬Q→¬P.
  • Negate compound conclusions with De Morgan’s laws.
  • The converse and inverse need separate justification.
  • An iff proof needs both directions, possibly by different methods.
  • A closed implication cycle proves several statements equivalent.
6

Handle contradiction, cases, and false claims

Some statements are easier to prove by showing why their negations fail or by separating the possibilities into cases. Other statements turn out to be false and need a counterexample. You will also distinguish showing that an object exists from proving that it is unique. The final step is to choose a method from the claim’s logical form and inspect each line for hidden assumptions, missing cases, or invalid algebra.

6.1 Proof by contradiction

A proof by contradiction assumes the negation of the claim and derives something impossible. The contradiction must conflict with a definition, an assumption, or an established fact; being unexpected is not enough.

State what you assume

To prove P, assume ¬P. If this leads to r∧¬r, then ¬P is false and P is true. To prove P→Q by contradiction, assume P∧¬Q, the exact negation of the conditional. You may then use both parts of that assumption.

For example, suppose there were a largest integer M. The integer M+1 would be larger than M, contradicting its claimed maximality. Hence no largest integer exists. □

Prove that the square root of 2 is irrational

Suppose, for contradiction, that 2=a/b for integers a,b with b≠0. Choose the fraction in lowest terms, so a and b have no common factor greater than 1.

Squaring gives a2=2b2. Thus a2 is even. The result that an even square has an even integer root gives a=2c for an integer c. Substitute this into the equation:

4c2=2b2,b2=2c2.

Now b2 is even, so b is even too. Both a and b are divisible by 2, contradicting the choice of a fraction in lowest terms. The assumption that 2 is rational must be false. □

The lowest-terms condition is what makes the ending a contradiction. A fraction can have two even entries, such as 2/4; what it cannot do is have two even entries and also be in lowest terms.

Prove that primes never run out

Suppose there were only finitely many primes, listed as p1,p2,…,pn. Form

N=p1p2⋯pn+1.

Since N>1, it has a prime factor p. The supposed complete list must contain p, so p divides the product p1p2⋯pn. It also divides N. Subtracting the two multiples shows that p divides 1, which is impossible for a prime. Hence the list could not have contained every prime. □

This proof needs a prime factor of N; it never requires N itself to be prime. For the first six primes,

2⋅3⋅5⋅7⋅11⋅13+1=30031=59⋅509.

The composite value still has prime factors absent from the original list.

Distinguish contradiction from contrapositive

In a contrapositive proof of P→Q, assume ¬Q and derive ¬P. A contradiction proof assumes P as well and seeks an impossibility. If its only contradiction is ¬P against P, it may be clearer as a contrapositive proof. Contradiction is more general because the conflict can be with any established fact.

When the claim is quantified, negate it before beginning. The negation of “Every object has a property” supplies one exception. Assuming that no object has the property would be a stronger and generally incorrect starting point.

Key Takeaways

  • Assume the exact negation of the claim.
  • For P→Q, contradiction starts from P∧¬Q.
  • Name the precise fact contradicted at the end.
  • The irrationality proof uses a fraction in lowest terms.
  • Euclid’s proof needs a new prime factor, not a prime product-plus-one.

6.2 Proofs that cover every case

A proof by cases divides the possibilities into groups and proves the conclusion in every group. The cases must cover the whole domain. They may overlap, although separate cases are often easier to follow.

Split by parity

To prove that n2+n is even for every integer n, use the fact that each integer is even or odd.

Case 1: n is even. Write n=2k with k an integer. Then

n2+n=4k2+2k=2(2k2+k),

which is even.

Case 2: n is odd. Write n=2k+1. Then

n2+n=4k2+6k+2=2(2k2+3k+1),

also even. The cases cover every integer, so the claim holds. □

The logical pattern is to prove Pi→Q for every case Pi, together with the fact that at least one Pi always holds.

Use the form a case provides

The same parity split shows that an integer square has the form 4m or 4m+1. If n=2k, then n2=4k2. If n=2k+1, then

n2=4(k2+k)+1.

Both new multipliers are integers. Therefore an integer of the form 4m+3, such as 7, 11, or 103, cannot be a perfect square. The case split produces information about every square, not just the squares tested numerically.

Include zero in sign cases

For real numbers, ∣a∣=a when a≥0 and ∣a∣=−a when a<0. To prove ∣xy∣=∣x∣∣y∣, split by the signs of both variables:

  • If x≥0 and y≥0, then ∣xy∣=xy=∣x∣∣y∣.
  • If x≥0 and y<0, then ∣xy∣=−xy=x(−y)=∣x∣∣y∣.
  • If x<0 and y≥0, then ∣xy∣=−xy=(−x)y=∣x∣∣y∣.
  • If x<0 and y<0, then ∣xy∣=xy=(−x)(−y)=∣x∣∣y∣.

These cases include zero in the nonnegative group. Splitting only into positive and negative values would leave zero untreated.

Omit a case only through symmetry

“Without loss of generality,” or WLOG, means an omitted case follows by renaming objects. If integers x,y have opposite parity, assume WLOG that x=2k and y=2j+1. Then x+y=2(k+j)+1 is odd. Swapping x and y covers the other order because their sum is unchanged. An expression that treats its two variables differently needs a separate symmetry check.

Know when checking is exhaustive

An exhaustive proof checks every member of a finite domain. For n=1,2,3,4, the expression n2+n+41 gives 43, 47, 53, and 61, all prime. This proves the claim for those four values. Even its success for every integer from 0 through 39 leaves later values open: at n=40 it equals 1681=412.

Before writing case calculations, list the cases and explain why they exhaust the possibilities. A split by remainder on division by 3 needs 3k, 3k+1, and 3k+2. Two of those forms leave an entire group out.

Key Takeaways

  • Every possible input must fall into a proved case.
  • Parity cases are even and odd; sign cases must include zero.
  • WLOG needs a symmetry that carries the omitted case to the proved case.
  • Finite checking proves only the domain fully checked.

6.3 Existence, uniqueness, and counterexamples

The logical form of a claim determines what counts as evidence. One successful object proves existence; one failed object disproves a universal claim. Uniqueness adds a further demand: no second object can work.

Prove existence by constructing a witness

A constructive existence proof gives an object and checks its property. For “A positive integer is the sum of two cubes of positive integers in two different ways,” use

1729=13+123=93+103.

The pairs (1,12) and (9,10) are distinct, and all four entries are positive integers.

A nonconstructive existence proof establishes that a witness exists without determining a particular one. Let a=(2)2. If a is rational, the irrational numbers x=y=2 have rational xy. If a is irrational, take x=a and y=2. Then

xy=((2)2)2=(2)2=2.

The argument establishes existence without deciding which case supplies the witness.

Separate existence from uniqueness

To prove a unique real number satisfies 3x−5=7, first show existence: x=4 works because 3⋅4−5=7. Next show uniqueness: if any real y satisfies 3y−5=7, then 3y=12 and y=4. Every solution is the one already found. □

Finding a solution alone leaves uniqueness unproved. Conversely, showing that any two possible solutions must coincide leaves existence unproved if no solution has been established.

Disprove a universal claim

A counterexample belongs to the claim's domain and makes its property false. The prime 2 disproves “Every prime is odd.” For “Every real x satisfies x2>x,” choose x=1/2, since 1/4<1/2.

For a conditional, meet the hypothesis and fail the conclusion. The claim “If n is prime, then 2n−1 is prime” fails at n=11:

211−1=2047=23⋅89.

The input 11 is prime but the output is composite. Using n=4 would not work because it fails the hypothesis.

For nonzero integers, “If a∣bc, then a∣b or a∣c” fails at a=4,b=2,c=2. Four divides the product 4 but divides neither factor. To disprove “Every positive integer is a sum of two integer squares,” use 3: the only squares small enough are 0 and 1, and two of these cannot total 3.

Match the quantifier before testing

To disprove ∃x P(x), show ∀x ¬P(x). One unsuccessful candidate cannot rule out all possible witnesses. For a universal claim, small and boundary values such as 0, 1, negative numbers, fractions, and the prime 2 are useful places to search for a counterexample. If none fails, the claim still needs a proof.

Show why a proposed disproof fails

For an existential claim, separate an unsuccessful candidate from a proof of impossibility. Testing x=1 does not disprove “Some real x has x2=−1.” To rule out every candidate, use the fact that every real square is nonnegative. That general fact excludes the entire domain and proves the negated existential claim.

For uniqueness, start with two hypothetical solutions when a single known solution is inconvenient. If real u,v both satisfy 3x−5=7, then 3u−5=3v−5, giving 3u=3v and u=v. This establishes at most one solution. The earlier check of x=4 supplies existence, so the two parts together establish exactly one.

Key Takeaways

  • Constructive existence gives and checks a witness.
  • Nonconstructive existence establishes a witness without selecting one.
  • Uniqueness requires existence and at most one possible solution.
  • A conditional counterexample has a true hypothesis and false conclusion.
  • Disproving existence requires ruling out every candidate.

6.4 Choose a method and inspect the proof

Before calculating, write the claim's logical form. It tells you what the proof must deliver and often suggests a useful starting assumption.

Match the claim to the method
ClaimWhat to establish
P→QDirect proof, contrapositive, or contradiction
P↔QBoth directions
An object existsA checked witness or nonconstructive existence argument
Exactly one object existsExistence and uniqueness
A universal claim with a parity or sign splitA proof in every case
No object existsRule out an arbitrary candidate, often by contradiction
A universal claim is falseA counterexample

A conditional whose hypothesis is awkward may have an easy contrapositive. For integers, consider “If n3+5 is odd, then n is even.” Negating the conclusion gives an odd n=2k+1. Then

n3+5=8k3+12k2+6k+6=2(4k3+6k2+3k+3),

which is even. This establishes the contrapositive.

Plan backward, then justify forward

Ask what the hypothesis gives through definitions, and what form would establish the conclusion. Scratch work can start at either end. The finished proof must connect known facts to the claim by justified steps.

Reaching a true equality from an assumed claim is not enough when the steps cannot be reversed. Starting from the false equation −2=2 and squaring gives the true equation 4=4. The squaring step loses sign information; it cannot establish the original equality.

Find the first unsupported step

A flawed proof of “If n2 is even, then n is even” might say: “Write n2=2k. Let n=2m. Thus n is even.” The second sentence already assumes the desired conclusion. This is circular reasoning. A valid repair proves the contrapositive using an arbitrary odd integer.

Another false proof begins with a=b and b≠0, then obtains

(a+b)(a−b)=b(a−b).

Cancelling a−b appears to give a+b=b and then 2=1. But a−b=0, so cancellation divides by zero. The error occurs at that cancellation, not at the final impossible equality.

Check domains, witnesses, and coverage

Read each line with a specific question: which definition, premise, rule, or earlier result licenses it? Check that independent numbers have independent witness letters, a chosen existential witness is not treated as arbitrary, and each case split covers the whole domain. A proof of the converse cannot replace the required direction.

A sample of successful values may suggest a pattern, but a universal conclusion still needs a general argument. Exhaustive checking works only when it checks the entire finite domain. Claims that build from smaller positive integers often call for induction, a separate proof method.

Finally, locate where each assumption is used and where the conclusion is reached. An unused hypothesis may mean that a stronger theorem has been proved, or that a step relying on it was skipped. Inspect the actual reasoning before deciding which explanation fits.

Key Takeaways

  • The claim’s logical form sets the proof’s obligations.
  • Backward scratch work must become justified forward reasoning.
  • Find the first unsupported step in a flawed proof.
  • Check a factor is nonzero before cancelling it.
  • Assuming the desired conclusion makes an argument circular.
  • An unused assumption calls for inspection of the argument.

Logic and Proofs examples

6 Walkthroughs

1

Read a software rule and check every case

13 steps
Translate connected claims, distinguish one-way and two-way rules, and evaluate a compound statement.
  1. 1
    IntroductionGive each claim a fixed meaning

    A software rule can combine several claims without saying them all in the same way. “And” requires both; “or” permits alternatives; “if” sets a condition. Start by assigning a letter to each complete claim. We will keep those meanings fixed while translating the sentence and checking its truth values.

  2. 2
    ExplanationSeparate a claim from a command

    “The update is installed” has a truth value and is a proposition. “Install the update” is a command, so it has no truth value. A false claim still qualifies: “2+3=6” is false but is a proposition. An open sentence such as “x+1=5” needs a value for its variable before its truth can be decided.

  3. 3
    ExampleTranslate two linked claims

    Let i mean “The update is installed” and r mean “The device restarts.” Translate “The update is installed but the device does not restart” as i∧¬r.

    The conjunction requires the installation claim and the negated restart claim together. If the update is installed and the device restarts, the first part is true but the second false, so the sentence is false. The word “but” adds conversational contrast, while its truth condition remains AND.

  4. 4
    ChallengeDistinguish “neither” from “not both”

    Using the same claims, translate “Neither the update is installed nor the device restarts.”

    ---reveal---

    The formula is ¬i∧¬r. It is true only when both original claims are false. In the case i=T,r=F, the first negated claim fails, so “neither” is false.

    By contrast, ¬(i∧r) is true in that case: the installation and restart do not both happen. This distinguishes “neither” from “not both.”

  5. 5
    AnalogyTreat a conditional as a commitment

    For “If the update is installed, the device restarts,” the formula is i→r. A broken commitment has an installed update and no restart: T, F. When no update is installed, the rule makes no demand about restarting, so either restart value leaves the conditional true. A logical conditional describes these truth conditions without requiring a causal link.

  6. 6
    ExplanationRead “only if” in the right direction

    “The update is installed only if approval is recorded” says that installation requires approval. With a for approval, write i→a. Approval is a necessary condition for installation.

    An installed but unapproved update would violate this rule. An approved update that is not installed would not violate it, because the hypothesis is false. The reverse arrow a→i would make approval sufficient to guarantee installation.

  7. 7
    ChallengeReverse and negate

    What is the contrapositive of i→r, and is the converse equivalent to it?

    ---reveal---

    The contrapositive is ¬r→¬i. Reverse the direction and negate both claims. A failure of this arrow would require ¬r true and ¬i false: exactly installation without restarting, the original arrow’s failure too.

    The converse r→i is different. A restart without installation makes it false while the original conditional is true.

  8. 8
    ConnectionAdd the reverse direction deliberately

    “The device restarts if and only if the update is installed” requires both r→i and i→r. Their conjunction is i↔r.

    When the two claims agree, both arrows are true. When they disagree, the arrow going from a true hypothesis to a false conclusion fails. The biconditional therefore permits both events or neither event, but excludes installation without restart and restart without installation.

  9. 9
    ExampleList the rows before calculating

    Check (i∨¬r)→(i∧r). Two variables need four rows, ordered TT, TF, FT, FF. The hypothesis is the whole expression i∨¬r; the conclusion is the whole expression i∧r.

    Calculate ¬r first. Use it to evaluate the hypothesis, evaluate the conclusion separately, and only then apply the conditional rule. A false conclusion does not settle the result until you know whether the hypothesis is true.

  10. 10
    ExampleEvaluate the first two rows

    At i=T,r=T, the negation ¬r is F. Thus i∨¬r is T because its first component is true. Also i∧r is T. The outer arrow is T → T, giving T.

    At i=T,r=F, the negation is T, so the hypothesis is again T. The conjunction in the conclusion is now F. The arrow is T → F, giving F. This row is an actual violation of the compound conditional.

  11. 11
    ExampleFinish and classify the formula

    At FT, the hypothesis i∨¬r is F and the conclusion i∧r is F. The outer arrow is F → F, so it is T.

    At FF, the negation ¬r is T, making the hypothesis T, while the conclusion stays F. This arrow is T → F, so it is F.

    The final column is T, F, T, F. Both truth values occur, making the formula a contingency. Its true rows are also witnesses to satisfiability.

  12. 12
    ChallengeCombine a rule with an observed failure

    A configuration must satisfy i∨r and i→r, and the device does not restart. Can all three requirements hold?

    ---reveal---

    No. The observation fixes r=F. To keep i∨r true, i must be T. But that makes i→r a T → F conditional, so it fails.

    The alternative i=F would satisfy the conditional but make the disjunction false. Neither value of i works, so the requirements are inconsistent.

  13. 13
    RecapCheck the whole expression

    Before accepting a symbolic translation, read it back with the original meanings of its letters. When evaluating it, locate the main connective and supply all truth assignments. For several requirements, search for one assignment that satisfies all of them together; different assignments for different requirements do not complete the check.

2

Simplify a formula with named laws

11 steps
Follow a worked equivalence chain, then negate a compound requirement without changing its scope.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionPreserve every truth value
  2. 2
    ExplanationRemove one arrow
  3. 3
    ChallengeFind a row that breaks a proposed law
  4. 4
    ExampleRewrite both conditionals
  5. 5
    ExampleExpose a contradiction
  6. 6
    Key InsightRead the simplification in words
  7. 7
    ChallengeNegate a compound conclusion
  8. 8
    ConnectionRead a formula from a table
  9. 9
    TipKeep the untouched parts
  10. 10
    ChallengeSimplify and classify
  11. 11
    RecapChoose a complete justification
3

Track a domain and a witness

13 steps
Translate quantified statements and show why the order of choices affects their truth.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSay which objects are allowed
  2. 2
    ExampleChange the domain, change the answer
  3. 3
    ExplanationBind only the intended variables
  4. 4
    ChallengeCheck existence and uniqueness separately
  5. 5
    ExampleRestrict a universal claim
  6. 6
    ExampleRequire an actual witness
  7. 7
    ChallengeTranslate “not every”
  8. 8
    AnalogyChoose after the input is known
  9. 9
    ExampleTry one response for everyone
  10. 10
    ExampleNegate the stages in order
  11. 11
    ChallengeDefeat every possible response
  12. 12
    ChallengeTranslate and then negate
  13. 13
    RecapAudit the choices
4

Derive a conclusion without losing the witness

11 steps
Build propositional and quantified arguments while keeping each step’s justification visible.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionAsk what the premises force
  2. 2
    ExampleStart from the observed failure
  3. 3
    ExampleFollow the remaining alternative
  4. 4
    ChallengeFind a refuting assignment
  5. 5
    Key InsightSeparate validity and soundness
  6. 6
    ExampleName the witness first
  7. 7
    ExampleApply the general rule to that witness
  8. 8
    TipKeep independent witnesses apart
  9. 9
    ChallengeChoose the legitimate generalization
  10. 10
    ChallengeCombine a witness with a contrapositive
  11. 11
    RecapFollow the justification of each line
5

Prove a parity claim in both directions

11 steps
Build a direct proof, then prove a related direction by contrapositive and assemble an iff proof.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionAim for a defining form
  2. 2
    ExampleStart from an arbitrary odd integer
  3. 3
    ExampleExpand and recover the odd form
  4. 4
    ChallengeUse independent even integers
  5. 5
    ConnectionProve the harder direction indirectly
  6. 6
    ExampleSupply the other arrow
  7. 7
    ChallengeNegate both alternatives
  8. 8
    TipWrite the direction before the algebra
  9. 9
    ChallengeCheck a rational-number proof
  10. 10
    ChallengeDetect an incomplete iff proof
  11. 11
    RecapCheck the final proof obligations
6

Choose, complete, or reject a proof

16 steps
Work through contradiction, cases, existence, uniqueness, and the diagnosis of a false proof.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionLet the claim guide the method
  2. 2
    ExampleMake an assumption that can be contradicted
  3. 3
    ExampleLocate the precise conflict
  4. 4
    ChallengeName the full negation
  5. 5
    Key InsightA new prime factor is enough
  6. 6
    ExampleOpen two cases that cover the domain
  7. 7
    ExampleClose the second case
  8. 8
    ChallengeInspect a remainder split
  9. 9
    ExampleProve a unique solution exists
  10. 10
    ConnectionUse a case split to establish existence
  11. 11
    ChallengeMeet the hypothesis before refuting the conclusion
  12. 12
    ExampleFind the first unsupported assertion
  13. 13
    ChallengeCancel only when permitted
  14. 14
    TipSeparate scratch work from the argument
  15. 15
    ChallengeChoose between a witness and a universal check
  16. 16
    RecapRead a proof as a sequence of obligations

Logic and Proofs practice questions

50 Practice Questions in 5 sets

Set 1: Read statements and start reasoning10 Practice Questions

Question 1 of 10

Let e mean “The report is exported” and a mean “Approval is recorded.” How do you write “The report is exported only if approval is recorded”?
  1. a→e
  2. e↔a
  3. e→¬a
  4. e→a
Show answerHide answer
Answer: D
Approval is necessary for export, so export is the hypothesis and approval the conclusion. Reversing the arrow would say approval guarantees export. The sentence supplies no such guarantee and also does not require a two-way biconditional.

Question 2 of 10

Let p mean “The sensor is active” and q mean “The display is lit.” How do you write “Neither the sensor is active nor the display is lit”?
  1. ¬p∨¬q
  2. ¬p∧¬q
  3. ¬(p∧q)
  4. p⊕q
Show answerHide answer
Answer: B
“Neither” requires both claims to be false, so negate each and join them with AND. The expression ¬p∨¬q only needs one false claim and would allow an active sensor with an unlit display. It expresses “not both,” a weaker requirement.

Question 3 of 10

What is the truth value of (p∧¬q)→r when p=F, q=F, and r=F?
  1. T, because the hypothesis is false.
  2. F, because the conclusion is false.
  3. F, because all three variables are false.
  4. T, because the hypothesis is true.
Show answerHide answer
Answer: A
The conjunction p∧¬q is false because p is false. A conditional with a false hypothesis is true, including when its conclusion is false. Looking only at r would miss the hypothesis and incorrectly mark the whole statement false.

Question 4 of 10

How can ¬(u∨v) be rewritten with negations only on variables?
  1. ¬u∨¬v
  2. u∧v
  3. ¬u∧¬v
  4. u∨¬v
Show answerHide answer
Answer: C
De Morgan’s law changes OR to AND while negating both inputs. Keeping OR would allow just one input to be false, even if the original disjunction were true. Negating the whole disjunction requires both inputs to be false.

Question 5 of 10

For what reason is ∃!x (x2=16) false over the real numbers?
  1. There are no real witnesses.
  2. There is one witness, namely 4.
  3. There are two witnesses, 4 and −4.
  4. There are infinitely many witnesses.
Show answerHide answer
Answer: C
The numbers 4 and −4 are distinct real witnesses because both squares equal 16. Thus the ordinary existential statement is true, but the uniqueness quantifier is false: it requires exactly one witness, not merely a successful one. Taking only the positive square root finds a solution while overlooking the second solution allowed by the stated real domain.

Question 6 of 10

Use all people as the domain. Let R(x) mean “x is a researcher” and T(x) mean “x uses the telescope.” How do you write “Some researcher uses the telescope”?
  1. ∃x (R(x)∧T(x))
  2. ∃x (R(x)→T(x))
  3. ∀x (R(x)→T(x))
  4. ∀x (R(x)∧T(x))
Show answerHide answer
Answer: A
The witness must be a researcher and use the telescope, so an existential quantifier joins the properties with AND. An existential implication could be true merely because a nonresearcher exists. That would not establish the researcher the sentence requires.

Question 7 of 10

From a→b and ¬b, what conclusion follows by modus tollens?
  1. a
  2. b
  3. ¬a→b
  4. ¬a
Show answerHide answer
Answer: D
If a were true, the conditional would force b, contrary to the premise ¬b. Therefore a must be false. Inferring a would run the conditional in an unsupported direction and directly conflict with what its conclusion permits.

Question 8 of 10

Let m=2r and n=2s+1 for integers r,s. What form of m+n establishes its parity?
  1. 2(r+s+1), so it is even.
  2. 2(r+s)+1, so it is odd.
  3. 2(r+s), so it is even.
  4. 2(r+s)+2, so it is even.
Show answerHide answer
Answer: B
Adding gives 2r+2s+1=2(r+s)+1. Since r+s is an integer, this is the defining form of an odd integer. Moving the final 1 inside the doubled parentheses would add 2 instead of 1 and change the sum.

Question 9 of 10

A proof about all real x treats x>0 and x<0. What additional case completes this split?
  1. x=0
  2. x=1
  3. x≥1
  4. x≤−1
Show answerHide answer
Answer: A
Positive, negative, and zero together cover the real numbers, so the missing case is zero. The value 1 is already in the positive case. Adding more positive or negative inputs cannot close the gap at zero.

Question 10 of 10

A claim says that for nonzero integers a,b,c, a∣bc implies a∣b or a∣c. What triple is a counterexample?
  1. a=6, b=6, c=3
  2. a=6, b=2, c=5
  3. a=6, b=2, c=3
  4. a=6, b=3, c=6
Show answerHide answer
Answer: C
With a=6,b=2,c=3, the product bc is 6, so the hypothesis a∣bc holds. But 6 divides neither 2 nor 3, making both alternatives in the conclusion false. The triple 6,2,5 fails the hypothesis because 6 does not divide 10; that failed premise prevents it from being a counterexample, even though its individual factors also fail divisibility.
Set 2: Connect translations, witnesses, and proofs10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

For bit strings 1100 and 1010, what is their bitwise exclusive OR?
  1. 1110
  2. 1000
  3. 0110
  4. 0011
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

What is the contrapositive of h→¬k?
  1. k→¬h
  2. ¬k→h
  3. ¬h→k
  4. h→k
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What does (r∨s)∧(r∨¬s) simplify to?
  1. s
  2. r
  3. T
  4. r∧s
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

In ∀x (R(x,y)∨S(x)), what variable remains free?
  1. x
  2. Both variables.
  3. Neither variable.
  4. y
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Let D(x,y) mean “user x can open file y,” with x ranging over users and y over files. How do you negate “Every user can open some file”?
  1. ∀x ∃y ¬D(x,y)
  2. ∃x ∀y ¬D(x,y)
  3. ∃y ∀x ¬D(x,y)
  4. ∀y ∀x ¬D(x,y)
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Over devices, suppose ∀x (S(x)→U(x)) and S(d). What conclusion follows about d?
  1. ∀x S(x)
  2. ¬U(d)
  3. U(d)
  4. ∀x U(x)
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

For integer n, a proof of “If 7n+2 is odd, then n is odd” uses the contrapositive. What assumption starts that proof?
  1. n is even.
  2. n is odd.
  3. 7n+2 is odd.
  4. 7n+2 is even.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A proof assumes that every prime occurs in a finite list and sets N equal to their product plus 1. What fact about a prime factor q of N gives the contradiction?
  1. If q is listed, it equals N.
  2. If q is unlisted, it divides 1.
  3. If q is listed, then N is prime.
  4. If q is listed, it divides 1.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A student claims that x=3 follows from x2=9 because “taking square roots gives x=3.” What is the gap over the real numbers?
  1. The step omits the solution x=0.
  2. Squaring never preserves an equality.
  3. The step omits the solution x=−3.
  4. A real square cannot equal 9.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

What law turns t∧(t∨u) into t?
  1. Distribution.
  2. Absorption.
  3. Domination.
  4. Double negation.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Evaluate full arguments and proof steps10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

What is the classification of (p→q)∨(q→p)?
  1. A contradiction.
  2. A contingency.
  3. An unsatisfiable formula.
  4. A tautology.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

What is ((p→r)∧(¬p→r))∨s equivalent to?
  1. r∧s
  2. p∨s
  3. r∨s
  4. p∨r
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Over all devices, let C(x) mean “x is connected” and A(x) mean “x is authorized.” How do you write “Only authorized devices are connected”?
  1. ∀x (A(x)→C(x))
  2. ∃x (C(x)∧A(x))
  3. ∀x (C(x)→A(x))
  4. ∀x (C(x)↔A(x))
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Over real numbers, how do you negate ∀x>0 ∃y (y>x∧R(x,y))?
  1. ∃x>0 ∀y (y≤x∨¬R(x,y))
  2. ∃x≤0 ∀y (y≤x∨¬R(x,y))
  3. ∃x>0 ∀y (y≤x∧¬R(x,y))
  4. ∀x>0 ∃y (y≤x∨¬R(x,y))
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Given p∨q, p→r, q→s, and ¬r, what must follow?
  1. ¬s
  2. p
  3. ¬q
  4. s
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Over people, what must follow from ∃x R(x) and ∃x S(x)?
  1. ∃x (R(x)∨S(x))
  2. ∃x (R(x)∧S(x))
  3. ∀x (R(x)∨S(x))
  4. ∀x (R(x)∧S(x))
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

For rational r=a/b and s=c/d with nonzero integer b,d, what verifies that rs is rational?
  1. rs=(a+c)/(b+d) with integer b+d.
  2. rs=ac/(bd) with possibly zero bd.
  3. rs=ac/(bd) with nonzero integer bd.
  4. rs=(ad+bc)/(bd) with nonzero integer bd.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A proof establishes P→Q. What additional direction is needed to prove P↔Q?
  1. ¬Q→¬P
  2. Q→P
  3. P→¬Q
  4. Q→¬P
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

To prove “If real x satisfies x2<4, then x<2” by contradiction, what should be assumed?
  1. x2≥4 and x<2.
  2. x2<4 and x≥2.
  3. x2<4 and x>2.
  4. x2≥4 and x≥2.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A proof shows that any two real solutions of F(x)=0 must be equal. What remains to establish “There is exactly one real solution”?
  1. Show that at least one real solution exists.
  2. Show that at least one real number is not a solution.
  3. Show that two different solutions exist.
  4. Show that every real number is a solution.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Combine conditions and repair reasoning10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Over an empty domain, what are the truth values of ∀x P(x) and ∃x P(x), in that order?
  1. F, T
  2. T, T
  3. T, F
  4. F, F
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let r mean “The service restarts” and m mean “Maintenance is active.” How do you write “The service restarts unless maintenance is active”?
  1. ¬m→r
  2. m→¬r
  3. r→¬m
  4. ¬r→¬m
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A configuration must satisfy a∨b, a→c, b→c, and ¬c. How many truth assignments satisfy all four?
  1. 1
  2. 2
  3. 0
  4. 3
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A two-variable truth table is true exactly on TT and FT, in the order p,q. What disjunctive normal form follows directly from those rows?
  1. (p∧q)∨(p∧¬q)
  2. (p∨q)∧(¬p∨q)
  3. (¬p∧¬q)∨(p∧q)
  4. (p∧q)∨(¬p∧q)
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

How does ¬(p→q)∨(p∧q) simplify?
  1. q
  2. p
  3. p∧q
  4. p∨q
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Users and files form separate domains. Let A(u) mean “u is an admin” and D(u,f) mean “u can delete f.” How do you write “Some admin can delete every file”?
  1. ∀f ∃u (A(u)∧D(u,f))
  2. ∃u (A(u)→∀f D(u,f))
  3. ∀u (A(u)→∃f D(u,f))
  4. ∃u (A(u)∧∀f D(u,f))
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

What truth assignment refutes the argument with premises p→q and q and conclusion p?
  1. p=F, q=T
  2. p=T, q=F
  3. p=F, q=F
  4. p=T, q=T
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

For real x,y, a proof targets “If x+y>12, then x>6 or y>6.” What argument correctly proves its contrapositive?
  1. If x≤6 or y≤6, then x+y≤12.
  2. If x+y≤12, then x≤6 and y≤6.
  3. If x≤6 and y≤6, then x+y≤12.
  4. If x<6 and y<6, then x+y<12.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

To prove n(n+1) is even for every integer n, what complete case split uses parity?
  1. n=2k or n=2k+2, with integer k.
  2. n=2k or n=2k+1, with integer k.
  3. n=2k+1 or n=2k−1, with integer k.
  4. n=4k or n=4k+1, with integer k.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A student proves that the sum of two even integers is even by writing “Let a=2k and b=2k; then a+b=4k.” What is the gap?
  1. The coefficient 4 is not an even integer.
  2. The proof assumes the sum is odd.
  3. Even integers cannot have negative witnesses.
  4. The same witness forces the integers to be equal.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Transfer proof methods to unfamiliar claims10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Two propositions are both true. What are the values of their inclusive OR and exclusive OR, respectively?
  1. T, T
  2. F, T
  3. T, F
  4. F, F
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A rule A is (p→r)∨(q→r). What assignment shows that A is not equivalent to B=(p∨q)→r?
  1. p=T,q=T,r=F
  2. p=F,q=T,r=F
  3. p=F,q=F,r=F
  4. p=T,q=F,r=T
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Over integers, what distinguishes ∀x∃y (y>x) from ∃y∀x (y>x)?
  1. The first is true; the second is false.
  2. Both are true with the same fixed witness.
  3. The first is false; the second is true.
  4. Both are false because integers are unbounded.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Over people, suppose ∃x (A(x)∧B(x)) and ∀x (B(x)→C(x)). What conclusion must hold?
  1. ∀x (A(x)→C(x))
  2. ∃x (A(x)∧¬C(x))
  3. ∀x (B(x)∧C(x))
  4. ∃x (A(x)∧C(x))
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Let nonzero integer a divide integers b and c. What equation directly proves a∣(3b−2c)?
  1. 3b−2c=a(3r−2s) from b=ar,c=as.
  2. 3b−2c=a(r−s) from b=ar,c=as.
  3. 3b−2c=a(3r+2s) from b=ar,c=as.
  4. 3b−2c=(3a−2a)rs from b=ar,c=as.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

To prove 10 irrational, suppose 10=a/b in lowest terms with integer b≠0. Given the fact that an even square has an even root, what completes a contradiction?
  1. a=2c leads to c2=5b2, forcing b odd.
  2. a=2c leads to 2c2=5b2, forcing a odd.
  3. a=2c leads to 2c2=5b2, forcing b even.
  4. a=2c leads to 4c2=10b2, forcing b=0.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

For real x,y, a proof of ∣x∣+∣y∣≥∣x+y∣ assumes WLOG that x≥0. Is this justified solely by swapping x and y?
  1. Yes; swapping changes both signs.
  2. No; swapping leaves the both-negative case untreated.
  3. Yes; absolute values require nonnegative inputs.
  4. No; swapping changes the statement’s truth value.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

For each real parameter a, consider ax=1 over real x. What is the correct existence-and-uniqueness conclusion?
  1. Exactly one solution for every real a.
  2. At least two solutions if a≠0; none if a=0.
  3. No solution if a≠0; every real x if a=0.
  4. Exactly one solution if a≠0; none if a=0.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

In a calculation that assumes u=v, what must be checked before cancelling the factor u−v?
  1. Whether the factor is nonzero.
  2. Whether the factor is an integer.
  3. Whether it appears on both sides.
  4. Whether it has a square root.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A proof establishes A→B, B→C, and C→A. Why does this prove all three statements equivalent?
  1. Three true implications force all three statements to be true.
  2. Chaining the arrows gives both directions between every pair.
  3. The first two arrows alone already give every reverse direction.
  4. Any arrow can be reversed without another argument.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

102 Key Terms, each with its definition

A

Absorption law
The absorption law removes a branch that adds no new truth assignments beyond a proposition already present in the expression.
The formula p∨(p∧q) simplifies to p because the second branch adds no cases.
Addition rule
The addition rule infers a disjunction from one known true component, because inclusive OR needs at least one true component.
From p alone, infer p∨q without first establishing whether q is true.
Affirming the consequent
Affirming the consequent is the invalid inference from a conditional and its conclusion to the truth of its hypothesis.
The premises p→q and q still permit p to be false.
Arbitrary element
An arbitrary element is an unspecified member of a domain about which no special property is assumed beyond the stated conditions.
“Let n be any odd integer” allows a general proof using only the definition of oddness.
Associative laws
The associative laws allow regrouping repeated ANDs or repeated ORs.
The formula (p∨q)∨r can be regrouped as p∨(q∨r).
Atomic proposition
An atomic proposition is treated as one claim, without smaller connected propositions.
In “The input is valid and the output is saved,” each separate claim can be treated as atomic.
Axiom
An axiom is a statement accepted without proof as a starting point for a mathematical theory and the results proved within it.
A proof may start from axioms, but it cannot treat the new claim it is trying to establish as an axiom.

B

Biconditional
A biconditional asserts both implication directions and is true when its sides agree.
To prove “An integer is even iff its square is even,” establish each implication separately.
Biconditional proof
A biconditional proof establishes both directions of an “if and only if” statement, using a suitable method for each direction.
In proving “An integer is even iff its square is even,” one direction can be direct while the reverse direction uses a contrapositive.
Binary predicate
A binary predicate expresses a relation between two objects whose argument positions determine the roles those objects play.
If L(x,y) means “x likes y,” reversing its arguments reverses who likes whom.
Bound variable
A bound variable occurrence lies within the scope of a quantifier for that variable, which controls the values considered.
In ∀x (x+y>0), the quantifier binds x while y remains free.

C

Circular reasoning
Circular reasoning assumes the conclusion being proved, either directly or through an unjustified step that already contains it.
Writing n=2m while trying to prove that n is even assumes the desired conclusion.
Commutative laws
The commutative laws allow swapping the inputs to AND or OR without changing truth.
The formulas p∨q and q∨p agree on every truth assignment.
Compound proposition
A compound proposition joins simpler propositions using logical connectives.
The claim p∧¬q combines a conjunction with the negation of its second input.
Conclusion
A conclusion is the proposition an argument seeks to establish from its premises through justified inference steps.
In a valid argument, the conclusion cannot be false on an assignment making every premise true.
Conditional
A conditional p→q is false exactly when p is true and q is false.
“If a number is divisible by 4, it is even” rules out a divisible-by-4 integer that is odd.
Conjecture
A conjecture is a mathematical claim believed to be true that has not yet been established by a proof.
Checking that a formula gives many prime outputs may suggest a conjecture, but an untested input can still defeat it.
Conjunction
A conjunction is true exactly when all its components are true.
The claim p∧q fails when just one of its two components is false.
Conjunction rule
The conjunction rule joins separately established propositions with AND, after the truth of each component has been obtained.
Once P(a) and Q(a) are established, infer P(a)∧Q(a) about that same object.
Consistency
Consistency of a collection of propositions means that one assignment of truth values makes all the propositions true together.
The requirements p∨q and ¬p are consistent when q is true.
Constructive existence proof
A constructive existence proof presents a particular object and verifies that it has every property required by the claim.
The equality 1729=13+123=93+103 provides and checks the required cube-sum witness.
Contingency
A contingency is true on some truth assignments and false on others.
The formula p∧q is true at TT and false at TF, so it is contingent.
Contradiction
A contradiction is a proposition that is false on every truth assignment.
The formula p∧¬p cannot hold because it requires opposite truth values at once.
Contrapositive
The contrapositive of p→q is ¬q→¬p; it always has the same truth value as the original.
“If an integer is not even, it is not divisible by 4” restates “If an integer is divisible by 4, it is even.”
Converse
The converse of p→q is q→p, with the implication direction reversed.
The converse of “If divisible by 4, then even” fails for the even integer 6.
Corollary
A corollary is a proved result that follows quickly from an established theorem, with only a short further argument needed.
After a theorem is proved, a simple consequence can be stated and justified as a corollary.
Counterexample
A counterexample is an element of a universal claim’s domain for which its asserted property fails, disproving the claim.
The prime 2 refutes “Every prime is odd” by meeting the domain condition and failing the property.

D

De Morgan’s laws
De Morgan’s laws rewrite a negated conjunction as a disjunction of negations, and a negated disjunction as a conjunction of negations.
Negating “Both tests pass” gives “At least one test does not pass,” allowing either failure.
Denying the antecedent
Denying the antecedent is the invalid inference from a conditional and a false hypothesis to a false conclusion.
The premises p→q and ¬p still permit q to be true.
Dependent witness
A dependent witness is a choice allowed to vary with a previously selected object, as in a universal quantifier followed by an existential one.
To satisfy ∀x∃y (x+y=0) over integers, choose y=−x.
Direct proof
A direct proof starts with the hypothesis for an arbitrary object and derives the conclusion through definitions and established facts.
To prove an odd square is odd, expand the square of 2k+1 and show the required form.
Disjunctive normal form
A disjunctive normal form is an OR of AND terms containing literals, obtainable by making one term for each true truth-table row.
The true row TF contributes p∧¬q when the variables are ordered p,q.
Disjunctive syllogism
Disjunctive syllogism removes a false alternative from a true disjunction, establishing that the remaining alternative is true.
From p∨q and ¬p, the remaining alternative q follows.
Distributive laws
The distributive laws let AND distribute over OR and OR distribute over AND, producing equivalent grouped expressions.
The expression p∧(q∨r) expands to (p∧q)∨(p∧r).
Divisibility
Divisibility means that an integer b equals ak for an integer k and nonzero integer a; it is written a∣b.
The equation 18=6⋅3 establishes 6∣18 because the multiplier is an integer.
Domain
A domain is the collection of objects that a variable may represent, and it determines which witnesses and exceptions count.
The equation x2=2 has a real witness but no integer witness.
Domination laws
The domination laws say that AND with F is always F and OR with T is always T, regardless of the other input.
The expression r∨T is true even when r is false.
Double negation
Double negation is the equivalence ¬¬p≡p: two NOTs cancel.
Moving NOT inward through a formula can create a double negation that then simplifies.

E

Equivalence chain
An equivalence chain proves that expressions agree by replacing one part at a time using established logical laws.
Factoring, reducing a negation pair, and applying identity can turn (p∧q)∨(p∧¬q) into p.
Even integer
An even integer has the form 2k for some integer k.
The form 2(r+s) proves a sum even when both r and s are integers.
Exclusive or
An exclusive or is true when exactly one of its two components is true.
If both permitted choices are selected, their inclusive OR is true but their exclusive OR is false.
Exhaustive proof
An exhaustive proof checks every case in a finite domain, so no possible input remains outside the verification.
Checking four values proves a claim for those four inputs only when they are the whole stated domain.
Existential conjunction
An existential conjunction asserts that a single witness has all the properties joined by AND within its quantifier’s scope.
The formula ∃x (S(x)∧L(x)) needs one student who has a laptop.
Existential generalization
Existential generalization asserts that a witness exists after establishing the required property for one particular domain element.
From P(a)∧Q(a), infer ∃x (P(x)∧Q(x)).
Existential instantiation
Existential instantiation introduces a fresh name for an unspecified witness whose property is guaranteed by an existential claim.
From ∃x P(x), name a witness a without identifying it as a previously named object.
Existential quantifier
An existential quantifier asserts that at least one element of a stated domain has the required property.
Over the integers, ∃x (x2=9) has witnesses 3 and −3.

F

Free variable
A free variable occurrence is not controlled by a quantifier, so the expression still depends on a value assigned to that variable.
In ∃x (x+y=1), choosing a value of y completes a proposition.

H

Hypothesis
The hypothesis is the statement before the arrow in a conditional.
In p→q, a true p requires a true q for the whole conditional to hold.
Hypothetical syllogism
Hypothetical syllogism joins two implications when the first conclusion is the second hypothesis, producing a new implication.
From p→q and q→r, infer p→r without asserting p.

I

Idempotent laws
The idempotent laws remove duplicate inputs to AND or OR without changing truth.
Both p∧p and p∨p simplify to p because repeating an input adds no condition.
Identity laws
The identity laws say that combining a proposition with T by AND, or with F by OR, leaves its truth value unchanged.
After simplifying a factor to T, p∧T becomes p.
Implication cycle
An implication cycle is a closed sequence of arrows that allows each statement to imply every other statement in the cycle.
The arrows A→B, B→C, and C→A establish three equivalent statements.
Inclusive disjunction
An inclusive disjunction is true when at least one component is true, allowing both.
For two successful tests, “At least one test succeeded” remains true.
Invalid cancellation
An invalid cancellation removes a factor without meeting the condition that it is nonzero, making the division unjustified.
After assuming a=b, cancelling a−b divides by zero and can produce a false conclusion.
Inverse
The inverse of p→q is ¬p→¬q, negating both parts without reversing them.
An integer can fail divisibility by 4 yet still be even, so the inverse of “If divisible by 4, then even” need not hold.
Irrational number
An irrational number is a real number that cannot be expressed as a quotient of integers with a nonzero denominator.
Assuming 2 is a fraction in lowest terms leads to a contradiction, which proves that 2 is irrational.

L

Lemma
A lemma is a proved helper result used to establish another result, often isolating a useful step from a larger proof.
The fact that an even square has an even root supports the irrationality proof for the square root of 2.
Logical equivalence
Logical equivalence is agreement in truth value on every assignment, even when the formulas have different structures.
The formulas p→q and ¬p∨q agree on all four rows.
Lowest terms
A fraction is in lowest terms when its integer numerator and denominator share no common factor greater than 1.
If both entries of a supposed lowest-terms fraction are even, they share the forbidden factor 2.

M

Modus ponens
Modus ponens infers the conclusion of a conditional from that conditional and its true hypothesis.
From p→q and p, modus ponens establishes q.
Modus tollens
Modus tollens infers the negation of a conditional’s hypothesis from the conditional and the negation of its conclusion.
From p→q and ¬q, modus tollens establishes ¬p.

N

Necessary condition
A necessary condition is a condition that must hold whenever another specified condition holds; it follows that condition in an implication.
In “Export only if approved,” approval is necessary for export, without guaranteeing export.
Negated conditional
A negated conditional asserts that the hypothesis holds while the conclusion fails, which is the conditional’s only false case.
The failure of v→(r∨e) requires v together with both ¬r and ¬e.
Negation
The negation of a proposition reverses its truth value.
If p says “The light is on,” then ¬p says “The light is not on.”
Nested quantifiers
Nested quantifiers apply several quantified choices to one predicate; their order controls whether later choices may depend on earlier ones.
Over integers, ∀x∃y (x+y=0) lets the witness y depend on x.
Nonconstructive existence proof
A nonconstructive existence proof establishes that a required object exists without determining a particular witness.
A two-case argument about raising irrational numbers to irrational powers guarantees a suitable pair without deciding which case supplies it.

O

Odd integer
An odd integer has the form 2k+1 for some integer k.
The form 2(2k2+2k)+1 establishes an odd square because its multiplier is an integer.

P

Parity
Parity classifies an integer as even or odd, providing two cases that cover all integers without overlap.
The forms 2k and 2k+1 give the two parity cases for integer k.
Predicate
A predicate expresses a property or relation involving variables and becomes a proposition when its free variables receive values or are quantified.
Over real numbers, P(x) defined by x>3 is true at 4 and false at 2.
Premise
A premise is a proposition supplied as a starting point of an argument, whose truth is assumed when checking what follows.
The argument using p and p→q treats both propositions as premises before inferring q.
Prime number
A prime number is an integer greater than 1 with only 1 and itself as positive divisors.
Euclid’s argument uses a prime factor of the product of the listed primes plus one, even if that number is composite.
Proof
A proof is a valid mathematical argument that establishes a claim from axioms, definitions, and results already proved.
An argument that expands an arbitrary odd integer’s square into odd form is a proof that every odd integer has an odd square.
Proof by cases
A proof by cases establishes a conclusion in each of several situations that together cover every allowed input.
Even and odd cases together prove a statement for all integers when both calculations succeed.
Proof by contradiction
A proof by contradiction assumes the exact negation of a claim and derives an impossibility, establishing that the claim is true.
Assuming a largest integer leads to a larger integer, contradicting the starting assumption.
Proof by contrapositive
A proof by contrapositive establishes P→Q by proving the equivalent conditional ¬Q→¬P.
To prove that an even square has an even root, show an odd integer always has an odd square.
Proposition
A proposition is a declarative sentence that is true or false, but not both.
“The file is saved” is a proposition; “Save the file” is a command with no truth value.

Q

Quantifier negation
Quantifier negation switches a universal quantifier with an existential quantifier and negates the claim within its scope.
The negation of “Every test passed” is “Some test did not pass,” requiring one exception.

R

Rational number
A rational number is a quotient of integers with a nonzero denominator.
The sum formula (ad+bc)/(bd) proves rationality when both original denominators are nonzero.
Resolution
Resolution combines disjunctions containing opposite forms of a variable and infers the disjunction of their remaining parts.
From p∨q and ¬p∨r, infer q∨r.
Restricted quantifier
A restricted quantifier limits the objects under discussion using a condition, expressed by implication for all and conjunction for some.
Over reals, ∃x>0 P(x) requires a positive witness that also satisfies P.
Reversible step
A reversible step is a transformation whose result implies the starting statement as well as following from it under the stated conditions.
Squaring an equality is not always reversible, since opposite numbers have the same square.

S

Satisfiability
Satisfiability means that at least one truth assignment makes a formula true.
A tautology is satisfiable, since every one of its truth-table rows makes it true.
Shared witness
A shared witness is one object that satisfies the required relation for every object selected by a later universal quantifier.
The statement ∃y∀x (x+y=0) fails over integers because no fixed y works.
Simplification rule
The simplification rule extracts a component of an established conjunction, since every component must be true for AND to hold.
From p∧q, infer p or infer q; this extraction is not valid for OR.
Sound argument
A sound argument is a valid argument with true premises, so its conclusion is guaranteed to be true as well.
A valid derivation starting from “7 is even” lacks soundness because that premise is false.
Subexpression
A subexpression is a component expression within a larger logical formula.
In ¬(p∧q)∨r, De Morgan applies to the negated conjunction, leaving r unchanged.
Sufficient condition
A sufficient condition guarantees another specified condition through an implication; it appears before that implication’s arrow.
Divisibility by 4 is sufficient for evenness, although some even integers are not divisible by 4.

T

Tautology
A tautology is a proposition that is true on every truth assignment.
The statement p∨¬p has no false row, so it is a tautology.
Theorem
A theorem is a mathematical statement established by a valid proof from accepted starting points and previously established results.
Once the claim that every odd integer has an odd square is proved, it can be used as a theorem in a later parity proof.
Trivial proof
A trivial proof establishes a conditional by showing its conclusion is true regardless of whether the hypothesis holds.
A conditional whose conclusion is x2≥0 for real x has an always-true conclusion.
Truth table
A truth table records a formula’s value on every assignment to its variables.
Three independent propositional variables need eight rows to represent all possible truth assignments.
Truth value
A truth value is T or F, recording whether a proposition is true or false.
The equation 2+3=6 has truth value F, even though it is still a proposition.

U

Uniqueness proof
A uniqueness proof establishes both that a required object exists and that any object with the property must be that one.
Checking x=4 works and deriving y=4 for any solution proves uniqueness for 3x−5=7.
Uniqueness quantifier
A uniqueness quantifier asserts that exactly one element of the stated domain has a property, combining existence with at most one.
Over the reals, ∃!x (2x+3=11) is true because only 4 works.
Universal conditional
A universal conditional applies an implication to every element of a domain, restricting its conclusion to elements meeting the hypothesis.
With people as the domain, ∀x (S(x)→L(x)) leaves nonstudents unrestricted.
Universal generalization
Universal generalization concludes a property for every domain element after proving it for an arbitrary element without special assumptions.
A proof using only an integer’s odd form can establish the claim for every odd integer.
Universal instantiation
Universal instantiation applies a universally quantified claim to a particular element that belongs to its domain.
From ∀x (P(x)→Q(x)), obtain P(a)→Q(a) for a domain element a.
Universal quantifier
A universal quantifier asserts that a property holds for every element of a stated domain; one exception makes it false.
Over {1,2,3}, the statement ∀x (x<4) is true.

V

Vacuous proof
A vacuous proof establishes a conditional by showing that its hypothesis cannot hold for any object in the stated domain.
Over reals, a hypothesis x2<0 is impossible, so a conditional with that hypothesis is true.
Valid argument
A valid argument has no case in which all its premises are true and its conclusion is false; validity concerns the inference pattern.
Modus ponens remains valid even when a particular application starts from a false premise.

W

Without loss of generality
Without loss of generality permits choosing a representative case when a symmetry carries every omitted case to that one.
Swapping opposite-parity integers preserves their sum, so the even-first case represents both orders.
Witness
A witness is an object in the stated domain that satisfies the property asserted by an existential statement.
For ∃x (x2=9) over the integers, either 3 or −3 is a witness.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started