01 / 20
\( p \to q \)
\( \land \lor \neg \)

Propositional
Logic Translation

Learn to convert English statements into precise logical formulas using connectives like \( \land \), \( \lor \), \( \neg \), \( \to \), and \( \leftrightarrow \).

Discrete Math

What Is Propositional Logic?

Propositional logic is a branch of mathematics that studies how to combine simple declarative statements (called propositions) using logical connectives to form compound statements whose truth value can be determined precisely.

✓ Proposition
"The sky is blue" : this is either true or false.
✕ Not a Proposition
"What time is it?" : questions have no truth value.

The Five Logical Connectives

Every compound proposition is built from simple propositions joined by one or more of these five connectives. Memorizing their symbols and English keywords is the foundation of translation.

Connective Symbol English Keywords
Negation \( \neg p \) not, it is not the case that
Conjunction \( p \land q \) and, but, yet, also
Disjunction \( p \lor q \) or, either...or
Conditional \( p \to q \) if...then, implies, only if
Biconditional \( p \leftrightarrow q \) if and only if, iff, exactly when

How Connectives Relate

Think of propositions as building blocks. Connectives combine them into larger structures. The diagram below shows how two atomic propositions can be joined by each connective.

\( p \)
\( q \)
\( p \land q \) (AND)
\( p \lor q \) (OR)
\( p \to q \) (IF)
\( p \leftrightarrow q \) (IFF)
\( \neg p \) (NOT)

Why Translation Matters

Natural language is ambiguous. Logical notation is precise. Translating lets us apply formal rules, build truth tables, and prove arguments valid: tasks that would be impossible with English alone.

Ambiguity Removed
"I'll go if it's sunny or warm" could mean different things. Logic makes the grouping explicit.
Proof Ready
Once in symbolic form, you can apply inference rules, build truth tables, and verify validity mechanically.
Universal
Logical notation works across languages and disciplines: from math proofs to programming to law.

The Conditional \( p \to q \)

The conditional is the most important and most confusing connective. It appears in many disguises. All of the following English phrases translate to \( p \to q \):

1
If \( p \), then \( q \). The most direct form.
2
\( p \) implies \( q \). Common in proofs.
3
\( p \) only if \( q \). Tricky: "only if" introduces the consequent.
4
\( q \) whenever \( p \). The word after "whenever" is the hypothesis.
5
\( p \) is sufficient for \( q \). "Sufficient" tags the hypothesis.
6
\( q \) is necessary for \( p \). "Necessary" tags the conclusion.

"If" vs "Only If"

The phrases "if" and "only if" point to different parts of a conditional. This is the single most common source of translation errors.

English Phrase "If" Form "Only If" Form
Structure If \( p \), then \( q \) \( p \) only if \( q \)
Hypothesis \( p \) \( p \)
Conclusion \( q \) \( q \)
Translation \( p \to q \) \( p \to q \)
Key Insight "If" introduces hypothesis "Only if" introduces conclusion

How to Translate Step by Step

1
Identify atomic propositions. Find each simple declarative claim and assign a variable: \( p \), \( q \), \( r \), etc.
2
Spot connective keywords. Underline words like "and", "or", "if...then", "not", "only if", "if and only if".
3
Determine scope and grouping. Decide which propositions each connective joins. Add parentheses for clarity.
4
Write the formula. Replace English with symbols: \( \neg \), \( \land \), \( \lor \), \( \to \), \( \leftrightarrow \).
5
Verify by reading back. Translate the formula back to English and check it matches the original meaning.

Example 1: Simple Conjunction

1
Assign variables: Let \( p \) = "It is raining." Let \( q \) = "The ground is wet."
2
Keyword: "and" signals conjunction \( \land \).
3
Translation: \( p \land q \)
\( p \)
It is raining
\( \land \)
\( q \)
Ground is wet

Example 2: Conditional with Negation

1
Assign variables: Let \( p \) = "It is sunny." Let \( q \) = "I will bring an umbrella."
2
Keywords: "not" signals \( \neg \), "if...then" signals \( \to \).
3
Hypothesis: "not sunny" = \( \neg p \). Conclusion: \( q \).
4
Translation: \( \neg p \to q \)
\( \neg \)
\( p \)
It is sunny
\( \to \)
\( q \)
Bring umbrella

Example 3: Nested Connectives

1
Variables: \( p \) = "Alarm goes off", \( q \) = "Door is locked", \( r \) = "Police arrive", \( s \) = "Security company calls."
2
Hypothesis: \( p \land q \) (alarm AND door locked).
3
Conclusion: \( r \lor s \) (police OR security).
4
Translation: \( (p \land q) \to (r \lor s) \)

Translating Biconditionals

The biconditional \( p \leftrightarrow q \) means "\( p \) if and only if \( q \)". It is true when both sides have the same truth value.

The Tricky Word: "Unless"

The word "unless" causes confusion because it doesn't map directly to a single connective symbol. Here is the key rule:

Example
"I'll go to the party unless it rains." → \( \neg q \to p \), or equivalently \( p \lor q \), where \( p \) = "I go" and \( q \) = "It rains."
Verification
"I'll go to the party if it does not rain." This reads naturally, confirming the translation.

Operator Precedence

Just like arithmetic has order of operations, propositional logic has precedence rules. When parentheses are absent, connectives bind in this order (highest to lowest):

1
\( \neg \) (Negation): binds tightest, applies to the single proposition immediately following it.
2
\( \land \) (Conjunction): "and" binds before "or".
3
\( \lor \) (Disjunction): "or" binds next.
4
\( \to \) (Conditional): "if...then" binds loosely.
5
\( \leftrightarrow \) (Biconditional): binds the loosest.

Common Mistakes

✕ Swapping Hypothesis and Conclusion
Writing \( q \to p \) instead of \( p \to q \) when translating "If \( p \), then \( q \)." Pay close attention to what follows "if" versus "then".
✕ Misreading "Only If"
"\( p \) only if \( q \)" means \( p \to q \), NOT \( q \to p \). The phrase after "only if" is the conclusion, not the hypothesis.
✕ Forgetting Parentheses
Writing \( p \land q \to r \) when you mean \( (p \land q) \to r \). Without parentheses, precedence rules may change the meaning.

Translation Cheat Sheet

English Phrase Symbol Notes
not \( p \) \( \neg p \) Negate the proposition
\( p \) and \( q \) \( p \land q \) Also: but, yet, while
\( p \) or \( q \) \( p \lor q \) Inclusive or (default)
If \( p \), then \( q \) \( p \to q \) "If" marks hypothesis
\( p \) only if \( q \) \( p \to q \) "Only if" marks conclusion
\( p \) unless \( q \) \( \neg q \to p \) Equivalently: \( p \lor q \)
\( p \) iff \( q \) \( p \leftrightarrow q \) Both directions
\( p \) is sufficient for \( q \) \( p \to q \) Sufficient = hypothesis
\( p \) is necessary for \( q \) \( q \to p \) Necessary = conclusion

Question 1 of 5

Let \( p \) = "It is cold" and \( q \) = "I wear a jacket." Translate: "If it is cold, then I wear a jacket."

Question 2 of 5

Let \( p \) = "You study" and \( q \) = "You pass the exam." Translate: "You pass the exam only if you study."

Question 3 of 5

Let \( p \) = "I go swimming" and \( q \) = "It rains." Translate: "I go swimming unless it rains."

Question 4 of 5

Let \( p \) = "The light is green" and \( q \) = "Cars move." Translate: "The light is green if and only if cars move."

Question 5 of 5

Let \( p \) = "The alarm sounds", \( q \) = "The door is open", \( r \) = "Security is called." Translate: "If the alarm sounds and the door is open, then security is called."