Logic and Proof Method Diagnostics
Retrieval Prompts
- State the negation rules for universal and existential quantifiers from memory.
- Explain the difference between implication, converse, and contrapositive.
- List the situations in which you would first consider direct proof, contrapositive, contradiction, cases, and counterexample.
- Define logical equivalence without using the word "similar."
Compare and Distinguish
Separate these pairs clearly:
for all x exists y P(x, y)versusexists y for all x P(x, y)- contrapositive proof versus contradiction proof
- proving
P -> Qversus provingP <-> Q - invalid example-checking versus valid counterexample construction
Common Mistake Check
For each statement below, identify the error:
- "The negation of
for all x P(x)isfor all x not P(x)." - "I proved
Q -> P, soP -> Qis done." - "I checked the statement for
n = 1, 2, 3, 4, so it must be true for alln." - "I used contradiction because I was not sure what else to do."
Mini Application
For each statement, do all three tasks:
- classify the outer logical form
- negate it correctly
- choose the first proof or disproof method you would try
Statements:
- Every even integer greater than
2is the sum of two primes. - If
A subseteq B, thenA intersect C subseteq B intersect C. - There exists an integer
nsuch thatn^2 = 2. - A real number is nonzero if and only if it has a multiplicative inverse.
- Every relation on a finite set is transitive.
Evidence Check
This page is complete only if you can explain your method choices in sentences, not just write labels like "contradiction" or "direct."
Integrated Logic Drill
Translate each English statement into symbolic form, define the domain, then test the claim with either a truth table, a counterexample, or a short proof sketch.
- If a program accepts empty input, then it must either return a default value or raise a documented error.
- Every user has at least one role, but not every role belongs to an active user.
- A test suite is insufficient when there exists a public behavior with no assertion covering it.
- If no request mutates shared state, then all requests commute with each other.
For each statement:
- name the propositions or predicates
- state whether implication, conjunction, disjunction, negation, or quantification is doing the main work
- write the negation in plain English
- give one concrete counterexample if the statement is false