Discrete Math • Logic and Proof

Translate statements into propositional logic

Transform natural-language assertions into precise symbolic formulas that eliminate ambiguity and enable rigorous proof.

A connected graph with binary values and set braces for discrete mathematics
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Human language is inherently ambiguous. A sentence like "If it rains and the game is cancelled, we will go to the movies or stay home" can be parsed in multiple ways: does "or" mean one option exclusively, or could both happen? Does the conditional apply to the conjunction of rain and cancellation, or just to rain? Propositional logic was developed precisely to resolve such ambiguities, providing a formal language in which the logical structure of statements is made explicit and unambiguous. The drive to formalize reasoning stretches back to antiquity, but the symbolic apparatus we use today crystallized over roughly two millennia of intellectual effort.

~350 BCE • Aristotle's Syllogistic Logic

Aristotle systematized deductive reasoning through syllogisms in the Organon, establishing the idea that valid argument forms can be catalogued and studied independently of their content.

~300 BCE • Stoic Propositional Logic

Chrysippus and the Stoic logicians shifted focus from categorical syllogisms to compound propositions joined by connectives such as "if…then" and "or," anticipating the modern propositional calculus.

1847 • Boole's Algebraic Logic

George Boole published The Mathematical Analysis of Logic, introducing algebraic notation for logical operations and demonstrating that reasoning could be treated as symbolic computation.

1879 • Frege's Begriffsschrift

Gottlob Frege created the first complete formal system for propositional and predicate logic, introducing the modern notions of quantifiers, truth-functional connectives, and formal derivation rules.

1910–1913 • Principia Mathematica

Bertrand Russell and Alfred North Whitehead published their monumental work attempting to ground all of mathematics in formal logic, solidifying the notation and methods that underpin today's discrete-mathematics curriculum.

Today, translating natural-language statements into propositional logic is a foundational skill in discrete mathematics, computer science, and philosophy. It is the gateway to truth-table analysis, logical equivalences, formal proof techniques, and ultimately to the design of digital circuits and verification of software. The central question this lesson addresses is: How do we systematically convert an English sentence into a well-formed propositional formula?

SECTION 2

Core Principles & Definitions

Before translating any sentence, you need a precise vocabulary. A proposition is a declarative sentence that is either true or false, but not both. Questions, commands, and exclamations are not propositions. We assign each atomic proposition a propositional variable — typically a lowercase letter such as p, q, or r — and then combine these atoms using logical connectives to build compound propositions. The five standard connectives, together with parentheses for grouping, are all you need to capture the logical structure of any compound English statement.

1

Negation (¬)

Flips the truth value. English cues: "not," "it is not the case that," "fails to." ¬p is true exactly when p is false.
2

Conjunction (∧)

True only when both operands are true. English cues: "and," "but," "yet," "moreover," "although." p ∧ q requires both p and q.
3

Disjunction (∨)

True when at least one operand is true (inclusive or). English cues: "or," "unless." p ∨ q is false only when both are false.
4

Conditional (→)

False only when the hypothesis is true and the conclusion is false. English cues: "if…then," "implies," "only if," "sufficient for."
5

Biconditional (↔)

True when both sides share the same truth value. English cues: "if and only if," "iff," "exactly when," "is necessary and sufficient for."
✦

KEY TAKEAWAY

Think of translating English into propositional logic like parsing a complex recipe into a flowchart. Each atomic proposition is a single ingredient check ("Do we have flour?"), and the connectives are the decision nodes that combine those checks ("If we have flour and sugar, then we bake a cake"). The symbolic formula is the unambiguous flowchart that any chef — or computer — can follow without misinterpretation.

SECTION 3

Visual Explanation — The Translation Pipeline

The process of translating an English statement into propositional logic follows a systematic pipeline. You begin with the raw natural-language sentence, identify the atomic propositions, locate the logical connectives hiding behind English words, and finally assemble the symbolic formula with correct grouping. The diagram below illustrates this pipeline using the sentence: "If it is sunny and warm, then we will go to the beach."

Translation Pipeline: English → Propositional LogicSTEP 1 — ORIGINAL SENTENCE"If it is sunny and warm, then we will go to the beach."STEP 2 — IDENTIFY ATOMIC PROPOSITIONSp"It is sunny"q"It is warm"r"We go to the beach"STEP 3 — MAP ENGLISH CONNECTIVES TO SYMBOLS"and" →∧"if…then" →→STEP 4 — FINAL FORMULA(p ∧ q) → r
The pipeline shows four stages: the original English sentence is parsed to extract atomic propositions (p, q, r), connective keywords are mapped to logical symbols (∧, →), and parentheses enforce the intended grouping to produce the final formula (p ∧ q) → r.

Notice how the parentheses in the final formula make the scope of each connective explicit. Without them, p ∧ q → r could be read as p ∧ (q → r) under standard precedence rules (since → binds more loosely than ∧), which happens to coincide with the intended reading here. However, relying on precedence rather than explicit parentheses is a common source of errors, especially in longer formulas. When in doubt, parenthesize.

SECTION 4

The Formal Framework — Syntax and Semantics

Propositional logic has two complementary aspects. The syntax tells you which strings of symbols count as well-formed formulas (WFFs). The semantics assigns truth values to those formulas under every possible truth assignment to the propositional variables. Together, these two layers let you confirm that a translation is both grammatically legal and logically faithful to the original English.

Well-Formed Formula (Recursive Definition)

WFF — BASE CASE

Anypropositionalvariablep,q,r,…isaWFF.Any propositional variable p, q, r, … is a WFF.

These are the atomic building blocks. Constants ⊤ (true) and ⊥ (false) are also WFFs.

WFF — RECURSIVE CASES

IfαandβareWFFs,thensoare:¬α,(α∧β),(α∨β),(α→β),(α↔β).If α and β are WFFs, then so are: ¬α, (α ∧ β), (α ∨ β), (α → β), (α ↔ β).

Parentheses are mandatory in the formal definition to avoid ambiguity. In practice, we use a precedence convention: ¬ (highest) > ∧ > ∨ > → > ↔ (lowest).

Truth-Table Semantics for Each Connective

pq¬pp ∧ qp ∨ qp → qp ↔ q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

Complete truth table for the five standard connectives.

⚠

The Conditional Trap

The most counterintuitive row is p → q when p is false. The conditional is vacuously true whenever its hypothesis is false. "If pigs fly, then the moon is made of cheese" is logically true — the promise was never triggered. This convention is essential for mathematical proof, where we need universally quantified conditionals to be true whenever no counterexample exists.

SECTION 5

Phrase-to-Symbol Translation Guide

The trickiest part of translating English into propositional logic is recognizing which connective a given phrase or sentence structure invokes. English is rife with synonyms and idiomatic constructions that map to the same logical connective, and some phrases — notably "only if" and "unless" — are notoriously confusing. The table below serves as a comprehensive reference, organized by connective, that you can consult during translation.

ConnectiveSymbolEnglish PhrasesTranslation Pattern
Negation¬pnot p; it is not the case that p; p fails; p doesn't hold¬p
Conjunctionp ∧ qp and q; p but q; p yet q; p although q; p moreover q; both p and qp ∧ q
Disjunctionp ∨ qp or q; either p or q (inclusive); at least one of p, qp ∨ q
Exclusive Orp ⊕ qp or q but not both; either p or q (exclusive); exactly one of p, q(p ∨ q) ∧ ¬(p ∧ q)
Conditionalp → qif p then q; p implies q; p is sufficient for q; q if p; q whenever p; q provided that p; p only if q ⚠️p → q
Converseq → pp if q; p is necessary for q; q only if pq → p
Unless¬q → pp unless q (equivalent to p ∨ q)p ∨ q or ¬q → p
Biconditionalp ↔ qp if and only if q; p iff q; p is necessary and sufficient for q; p exactly when qp ↔ q

Comprehensive English-to-symbol mapping for propositional connectives.

"Only If" vs "If" — Parsing the Conditional DirectionPATTERN A: "If p then q""If it rains, then the ground is wet."p = rainsq = wet→p → qPATTERN B: "p only if q""It rains only if there are clouds."p = rainsq = clouds→p → qBoth yield the same formula: p → q"only if" places q as a necessary condition for p, which is equivalent to p → q.⚠️ COMMON MISTAKE"p only if q" ≠ "only if p, then q"The subject before "only if" is the hypothesis.✓ MNEMONIC"p only if q" means p cannot be truewithout q being true: ¬q → ¬p ≡ p → q
Side-by-side comparison of "if p then q" and "p only if q." Despite different English phrasing, both translate to p → q. The mnemonic: "only if" identifies a necessary condition, which sits on the right side of the arrow.
💡

Handling "Unless"

"p unless q" is logically equivalent to p ∨ q. A reliable strategy: replace "unless" with "if not." For example, "The flight will depart unless there is a storm" becomes "The flight will depart if there is not a storm," i.e., ¬q → p, which is logically equivalent to p ∨ q.

SECTION 6

Worked Example — Multi-Connective Translation

Let us translate a complex English passage into propositional logic step by step. Consider the statement: "You can take the course if and only if you have completed the prerequisite, and you will pass only if you attend every lecture or complete all the assignments."

Translating a Compound English Statement

  1. 1

    Step 1 — Identify Atomic Propositions

    Read through the sentence and isolate every simple declarative clause that cannot be broken down further. We find four atoms: p = "You can take the course," q = "You have completed the prerequisite," r = "You will pass," s = "You attend every lecture," t = "You complete all the assignments."
    Five propositional variables: p, q, r, s, t.
  2. 2

    Step 2 — Parse the Sentence Structure

    The sentence is a conjunction of two main clauses connected by "and." Clause 1: "You can take the course if and only if you have completed the prerequisite." Clause 2: "You will pass only if you attend every lecture or complete all the assignments." The overall structure is Clause 1 ∧ Clause 2.
    Top-level structure: (Clause 1) ∧ (Clause 2).
  3. 3

    Step 3 — Translate Clause 1

    "If and only if" signals a biconditional. "You can take the course if and only if you have completed the prerequisite" translates directly to p ↔ q.
    Clause 1: p ↔ q
  4. 4

    Step 4 — Translate Clause 2

    "Only if" signals a conditional where the subject is the hypothesis. "You will pass only if …" becomes r → (…). The remainder is "you attend every lecture or complete all the assignments," which is a disjunction: s ∨ t. Therefore Clause 2 is r → (s ∨ t).
    Clause 2: r → (s ∨ t)
  5. 5

    Step 5 — Assemble the Final Formula

    Combine Clauses 1 and 2 with conjunction as identified in Step 2.
    (p ↔ q) ∧ (r → (s ∨ t))
💡

Verification Tip

After you write the formula, read it back in English and compare it to the original sentence. If they say the same thing, your translation is correct. For our formula: "You can take the course exactly when you've completed the prerequisite, and passing requires attending every lecture or finishing all assignments." This matches the original intent.

SECTION 7

Common Pitfalls and Strategies

Even with a solid understanding of the connectives, certain English constructions routinely trip up students. This section catalogues the most common pitfalls alongside strategies for avoiding them. Being aware of these traps before you encounter them on assignments and exams is worth far more than memorizing truth tables.

PitfallExampleWhy It's WrongCorrect Approach
Reversing the conditional direction"q if p" translated as q → p"q if p" means p is the condition for q, so the arrow points from p to q.p → q
Confusing inclusive and exclusive or"You may have tea or coffee" as p ∨ qContext often implies exclusive or (you pick one), but ∨ is inclusive. Use ⊕ or (p ∨ q) ∧ ¬(p ∧ q) when exclusivity is intended.(p ∨ q) ∧ ¬(p ∧ q)
Missing implicit negation"Neither p nor q" as ¬p ∨ ¬q"Neither…nor" means both are false, which is conjunction of negations, not disjunction.¬p ∧ ¬q
Ignoring scope of "not""It is not the case that p and q" as ¬p ∧ qThe negation applies to the whole conjunction, not just p.¬(p ∧ q)
Mishandling "but""p but q" treated differently from "p and q""But" carries rhetorical contrast, yet logically it is plain conjunction.p ∧ q

Five common translation pitfalls with corrections.

✦

KEY TAKEAWAY

Think of English connective words as lossy compression of logical structure — much like a JPEG drops pixel-level detail, everyday language drops logical precision. Your job as a translator is to reconstruct the lossless original. When in doubt, rephrase the sentence in the most explicit, pedantic English you can before reaching for symbols. If the pedantic version reads differently from the original, you've uncovered an ambiguity that needs resolution.

SECTION 8

Connection to Predicate Logic and Formal Proof

Propositional logic is powerful but limited. It treats each proposition as an indivisible atom, so it cannot express statements about objects, properties, or quantities. The sentence "Every student who studies will pass" requires predicate logic (first-order logic), which extends the propositional framework with variables ranging over a domain, predicates that assign properties to those variables, and quantifiers (∀, ∃) that specify scope. Nevertheless, every predicate-logic formula is built on a propositional skeleton, so the translation skills you learn here transfer directly.

FeaturePropositional LogicPredicate (First-Order) Logic
Basic unitPropositional variable (p, q, r)Predicate applied to terms: P(x), Q(a, b)
Connectives¬, ∧, ∨, →, ↔Same connectives + quantifiers ∀, ∃
Expressive powerFixed, finite propositionsStatements about all/some elements of a domain
DecidabilityDecidable (truth tables)Semi-decidable (Church–Turing)
Translation skill usedIdentifying atoms + connectivesSame, plus identifying variables, domains, quantifier scope

Propositional logic vs. predicate logic — a roadmap for your next course.

Once you can translate statements into propositional logic fluently, you are positioned to engage with formal proof systems such as natural deduction, resolution, and sequent calculus. In each of these systems, the rules of inference operate on symbolic formulas — not English sentences. Your ability to produce an accurate formula from a verbal claim is therefore the critical first step in any proof-based workflow. The formalization also enables automated reasoning: SAT solvers, model checkers, and theorem provers all take propositional or predicate formulas as input and return guarantees about their satisfiability or validity.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the sentence "Close the door!" cannot be translated into propositional logic, whereas "The door is closed" can. What property must a sentence have to qualify as a proposition?
Show answer
A proposition must be a declarative sentence with a definite truth value — it is either true or false. "Close the door!" is an imperative (a command) and does not assert anything that can be true or false; it merely directs action. "The door is closed," on the other hand, makes a factual claim about the state of the door, which is determinately true or false at any given moment. Commands, questions, and exclamations are excluded from propositional logic because they lack truth values.

Question 2: BASIC CALCULATION

Translate the following sentence into a propositional formula. Let p = "It is raining" and q = "I carry an umbrella." Sentence: "If it is not raining, then I do not carry an umbrella."
Show answer
The sentence has the form "If [not p], then [not q]." The hypothesis is ¬p and the conclusion is ¬q. Using the conditional connective, the translation is ¬p → ¬q. Note that this is the inverse of p → q, and it is not logically equivalent to p → q. It is, however, logically equivalent to the converse q → p by contraposition (contrapositives are equivalent, but the inverse is the contrapositive of the converse, not of the original).

Question 3: INTERMEDIATE

Translate the following sentence and identify every connective: "The alarm sounds if and only if there is smoke or the temperature exceeds 150°F, but the sprinklers activate only if the alarm sounds." Use: p = "The alarm sounds," q = "There is smoke," r = "The temperature exceeds 150°F," s = "The sprinklers activate."
Show answer
Break the sentence at the main conjunction "but" (which is logically ∧). Clause 1: "The alarm sounds if and only if there is smoke or the temperature exceeds 150°F" translates to p ↔ (q ∨ r). The parentheses around the disjunction are essential because the biconditional should connect p to the entire disjunction, not just q. Clause 2: "the sprinklers activate only if the alarm sounds" translates to s → p ("only if" places the condition after the arrow as the conclusion of the subject). The complete formula is (p ↔ (q ∨ r)) ∧ (s → p). Connectives used: ↔, ∨, ∧, →.

Question 4: APPLIED

A software specification states: "The system shall log the event unless the user has disabled logging, and either the database is available or an error message is displayed; moreover, the error message is displayed only if the database is not available." Define appropriate propositional variables and produce the formula. Then identify any redundancy in the specification.
Show answer
Let p = "The system logs the event," q = "The user has disabled logging," r = "The database is available," s = "An error message is displayed." Translate clause by clause. "The system shall log the event unless the user has disabled logging": p ∨ q (recall "A unless B" ≡ A ∨ B, equivalently ¬B → A). "Either the database is available or an error message is displayed": r ∨ s. "The error message is displayed only if the database is not available": s → ¬r. The three clauses are conjoined with "and" / "moreover," yielding (p ∨ q) ∧ (r ∨ s) ∧ (s → ¬r). Regarding redundancy: the third clause s → ¬r together with the second clause r ∨ s implies that exactly one of r, s holds (exclusive or), because if both held, s → ¬r would be violated. Thus the second clause could be strengthened to an exclusive or without loss, and conversely the third clause is implied by an exclusive-or reading of the second.

Question 5: CRITICAL THINKING

Consider the English statement: "Passing the exam is necessary for graduating, but it is not sufficient." (a) Translate this into propositional logic using p = "You pass the exam" and q = "You graduate." (b) Prove that your translation is not logically equivalent to p → q by exhibiting a truth assignment where one is true and the other is false. (c) Discuss what additional information you would need to turn the "not sufficient" claim into a fully specified formula.
Show answer
(a) "Passing is necessary for graduating" means you cannot graduate without passing: q → p. "It is not sufficient" means passing alone does not guarantee graduation: ¬(p → q). The full translation is (q → p) ∧ ¬(p → q). (b) The formula p → q is true when p = T, q = T. Under this same assignment, q → p is T and p → q is T, so ¬(p → q) is F, making (q → p) ∧ ¬(p → q) false. Conversely, when p = T, q = F, our formula gives (F → T) ∧ ¬(T → F) = T ∧ T = T, but p → q gives T → F = F. So the two formulas disagree when p = T and q = F. (c) The claim "not sufficient" tells us that p → q is not a tautology — there exists a scenario where you pass but do not graduate. To make it fully specified, you would need to state what additional conditions, beyond passing, are required for graduation, e.g., "passing and completing the thesis is sufficient for graduating," which would add a new variable and a more complex conditional.

SUMMARY

Summary

Summary

Translating English into propositional logic requires three core skills: identifying atomic propositions (the indivisible true-or-false building blocks), mapping English connective phrases to the five standard logical connectives (¬, ∧, ∨, →, ↔), and using parentheses to enforce the correct scope and grouping. Key phrases to watch for include "only if" (which identifies a necessary condition on the right side of →), "unless" (equivalent to inclusive disjunction or "if not"), and "neither…nor" (a conjunction of negations, ¬p ∧ ¬q).

Once a statement is formalized, it becomes amenable to truth-table evaluation, logical equivalence checking, and formal proof. Mastering this translation step is the gateway to every subsequent topic in mathematical logic — from predicate logic and natural deduction to the design of digital circuits and the verification of software specifications.

Varsity Tutors • Discrete Math • Translate statements into propositional logic